123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653 |
- var du=Object.defineProperty;var fu=(M,$,I)=>$ in M?du(M,$,{enumerable:!0,configurable:!0,writable:!0,value:I}):M[$]=I;var Wl=(M,$,I)=>(fu(M,typeof $!="symbol"?$+"":$,I),I);const scriptRel="modulepreload",assetsURL=function(M,$){return new URL(M,$).href},seen={},__vitePreload=function($,I,N){if(!I||I.length===0)return $();const B=document.getElementsByTagName("link");return Promise.all(I.map(j=>{if(j=assetsURL(j,N),j in seen)return;seen[j]=!0;const U=j.endsWith(".css"),q=U?'[rel="stylesheet"]':"";if(!!N)for(let G=B.length-1;G>=0;G--){const J=B[G];if(J.href===j&&(!U||J.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${j}"]${q}`))return;const K=document.createElement("link");if(K.rel=U?"stylesheet":scriptRel,U||(K.as="script",K.crossOrigin=""),K.href=j,document.head.appendChild(K),U)return new Promise((G,J)=>{K.addEventListener("load",G),K.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${j}`)))})})).then(()=>$()).catch(j=>{const U=new Event("vite:preloadError",{cancelable:!0});if(U.payload=j,window.dispatchEvent(U),!U.defaultPrevented)throw j})};/*!
- * Vue.js v2.7.14
- * (c) 2014-2022 Evan You
- * Released under the MIT License.
- */var emptyObject=Object.freeze({}),isArray$9=Array.isArray;function isUndef(M){return M==null}function isDef(M){return M!=null}function isTrue(M){return M===!0}function isFalse(M){return M===!1}function isPrimitive(M){return typeof M=="string"||typeof M=="number"||typeof M=="symbol"||typeof M=="boolean"}function isFunction$6(M){return typeof M=="function"}function isObject$6(M){return M!==null&&typeof M=="object"}var _toString=Object.prototype.toString;function toRawType$1(M){return _toString.call(M).slice(8,-1)}function isPlainObject$2(M){return _toString.call(M)==="[object Object]"}function isRegExp$5(M){return _toString.call(M)==="[object RegExp]"}function isValidArrayIndex(M){var $=parseFloat(String(M));return $>=0&&Math.floor($)===$&&isFinite(M)}function isPromise$1(M){return isDef(M)&&typeof M.then=="function"&&typeof M.catch=="function"}function toString$4(M){return M==null?"":Array.isArray(M)||isPlainObject$2(M)&&M.toString===_toString?JSON.stringify(M,null,2):String(M)}function toNumber(M){var $=parseFloat(M);return isNaN($)?M:$}function makeMap$1(M,$){for(var I=Object.create(null),N=M.split(","),B=0;B<N.length;B++)I[N[B]]=!0;return $?function(j){return I[j.toLowerCase()]}:function(j){return I[j]}}var isBuiltInTag=makeMap$1("slot,component",!0),isReservedAttribute=makeMap$1("key,ref,slot,slot-scope,is");function remove$2(M,$){var I=M.length;if(I){if($===M[I-1]){M.length=I-1;return}var N=M.indexOf($);if(N>-1)return M.splice(N,1)}}var hasOwnProperty$3=Object.prototype.hasOwnProperty;function hasOwn$4(M,$){return hasOwnProperty$3.call(M,$)}function cached(M){var $=Object.create(null);return function(N){var B=$[N];return B||($[N]=M(N))}}var camelizeRE=/-(\w)/g,camelize=cached(function(M){return M.replace(camelizeRE,function($,I){return I?I.toUpperCase():""})}),capitalize$1=cached(function(M){return M.charAt(0).toUpperCase()+M.slice(1)}),hyphenateRE=/\B([A-Z])/g,hyphenate=cached(function(M){return M.replace(hyphenateRE,"-$1").toLowerCase()});function polyfillBind(M,$){function I(N){var B=arguments.length;return B?B>1?M.apply($,arguments):M.call($,N):M.call($)}return I._length=M.length,I}function nativeBind(M,$){return M.bind($)}var bind$1$1=Function.prototype.bind?nativeBind:polyfillBind;function toArray$3(M,$){$=$||0;for(var I=M.length-$,N=new Array(I);I--;)N[I]=M[I+$];return N}function extend$6(M,$){for(var I in $)M[I]=$[I];return M}function toObject$1(M){for(var $={},I=0;I<M.length;I++)M[I]&&extend$6($,M[I]);return $}function noop$2(M,$,I){}var no=function(M,$,I){return!1},identity$1=function(M){return M};function genStaticKeys$1(M){return M.reduce(function($,I){return $.concat(I.staticKeys||[])},[]).join(",")}function looseEqual(M,$){if(M===$)return!0;var I=isObject$6(M),N=isObject$6($);if(I&&N)try{var B=Array.isArray(M),j=Array.isArray($);if(B&&j)return M.length===$.length&&M.every(function(Y,K){return looseEqual(Y,$[K])});if(M instanceof Date&&$ instanceof Date)return M.getTime()===$.getTime();if(!B&&!j){var U=Object.keys(M),q=Object.keys($);return U.length===q.length&&U.every(function(Y){return looseEqual(M[Y],$[Y])})}else return!1}catch{return!1}else return!I&&!N?String(M)===String($):!1}function looseIndexOf(M,$){for(var I=0;I<M.length;I++)if(looseEqual(M[I],$))return I;return-1}function once$2(M){var $=!1;return function(){$||($=!0,M.apply(this,arguments))}}function hasChanged$1(M,$){return M===$?M===0&&1/M!==1/$:M===M||$===$}var SSR_ATTR="data-server-rendered",ASSET_TYPES=["component","directive","filter"],LIFECYCLE_HOOKS=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],config$1={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:no,isReservedAttr:no,isUnknownElement:no,getTagNamespace:noop$2,parsePlatformTagName:identity$1,mustUseProp:no,async:!0,_lifecycleHooks:LIFECYCLE_HOOKS},unicodeRegExp=/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 isReserved(M){var $=(M+"").charCodeAt(0);return $===36||$===95}function def(M,$,I,N){Object.defineProperty(M,$,{value:I,enumerable:!!N,writable:!0,configurable:!0})}var bailRE=new RegExp("[^".concat(unicodeRegExp.source,".$_\\d]"));function parsePath(M){if(!bailRE.test(M)){var $=M.split(".");return function(I){for(var N=0;N<$.length;N++){if(!I)return;I=I[$[N]]}return I}}}var hasProto="__proto__"in{},inBrowser=typeof window<"u",UA=inBrowser&&window.navigator.userAgent.toLowerCase(),isIE$1=UA&&/msie|trident/.test(UA),isIE9=UA&&UA.indexOf("msie 9.0")>0,isEdge=UA&&UA.indexOf("edge/")>0;UA&&UA.indexOf("android")>0;var isIOS$1=UA&&/iphone|ipad|ipod|ios/.test(UA),isFF=UA&&UA.match(/firefox\/(\d+)/),nativeWatch={}.watch,supportsPassive$1=!1;if(inBrowser)try{var opts={};Object.defineProperty(opts,"passive",{get:function(){supportsPassive$1=!0}}),window.addEventListener("test-passive",null,opts)}catch{}var _isServer,isServerRendering=function(){return _isServer===void 0&&(!inBrowser&&typeof global<"u"?_isServer=global.process&&global.process.env.VUE_ENV==="server":_isServer=!1),_isServer},devtools=inBrowser&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative(M){return typeof M=="function"&&/native code/.test(M.toString())}var hasSymbol=typeof Symbol<"u"&&isNative(Symbol)&&typeof Reflect<"u"&&isNative(Reflect.ownKeys),_Set;typeof Set<"u"&&isNative(Set)?_Set=Set:_Set=function(){function M(){this.set=Object.create(null)}return M.prototype.has=function($){return this.set[$]===!0},M.prototype.add=function($){this.set[$]=!0},M.prototype.clear=function(){this.set=Object.create(null)},M}();var currentInstance=null;function getCurrentInstance(){return currentInstance&&{proxy:currentInstance}}function setCurrentInstance(M){M===void 0&&(M=null),M||currentInstance&¤tInstance._scope.off(),currentInstance=M,M&&M._scope.on()}var VNode=function(){function M($,I,N,B,j,U,q,Y){this.tag=$,this.data=I,this.children=N,this.text=B,this.elm=j,this.ns=void 0,this.context=U,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=I&&I.key,this.componentOptions=q,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=Y,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(M.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),M}(),createEmptyVNode=function(M){M===void 0&&(M="");var $=new VNode;return $.text=M,$.isComment=!0,$};function createTextVNode(M){return new VNode(void 0,void 0,void 0,String(M))}function cloneVNode(M){var $=new VNode(M.tag,M.data,M.children&&M.children.slice(),M.text,M.elm,M.context,M.componentOptions,M.asyncFactory);return $.ns=M.ns,$.isStatic=M.isStatic,$.key=M.key,$.isComment=M.isComment,$.fnContext=M.fnContext,$.fnOptions=M.fnOptions,$.fnScopeId=M.fnScopeId,$.asyncMeta=M.asyncMeta,$.isCloned=!0,$}var uid$2=0,pendingCleanupDeps=[],cleanupDeps=function(){for(var M=0;M<pendingCleanupDeps.length;M++){var $=pendingCleanupDeps[M];$.subs=$.subs.filter(function(I){return I}),$._pending=!1}pendingCleanupDeps.length=0},Dep=function(){function M(){this._pending=!1,this.id=uid$2++,this.subs=[]}return M.prototype.addSub=function($){this.subs.push($)},M.prototype.removeSub=function($){this.subs[this.subs.indexOf($)]=null,this._pending||(this._pending=!0,pendingCleanupDeps.push(this))},M.prototype.depend=function($){M.target&&M.target.addDep(this)},M.prototype.notify=function($){for(var I=this.subs.filter(function(U){return U}),N=0,B=I.length;N<B;N++){var j=I[N];j.update()}},M}();Dep.target=null;var targetStack=[];function pushTarget(M){targetStack.push(M),Dep.target=M}function popTarget(){targetStack.pop(),Dep.target=targetStack[targetStack.length-1]}var arrayProto=Array.prototype,arrayMethods=Object.create(arrayProto),methodsToPatch=["push","pop","shift","unshift","splice","sort","reverse"];methodsToPatch.forEach(function(M){var $=arrayProto[M];def(arrayMethods,M,function(){for(var N=[],B=0;B<arguments.length;B++)N[B]=arguments[B];var j=$.apply(this,N),U=this.__ob__,q;switch(M){case"push":case"unshift":q=N;break;case"splice":q=N.slice(2);break}return q&&U.observeArray(q),U.dep.notify(),j})});var arrayKeys=Object.getOwnPropertyNames(arrayMethods),NO_INIITIAL_VALUE={},shouldObserve=!0;function toggleObserving(M){shouldObserve=M}var mockDep={notify:noop$2,depend:noop$2,addSub:noop$2,removeSub:noop$2},Observer=function(){function M($,I,N){if(I===void 0&&(I=!1),N===void 0&&(N=!1),this.value=$,this.shallow=I,this.mock=N,this.dep=N?mockDep:new Dep,this.vmCount=0,def($,"__ob__",this),isArray$9($)){if(!N)if(hasProto)$.__proto__=arrayMethods;else for(var B=0,j=arrayKeys.length;B<j;B++){var U=arrayKeys[B];def($,U,arrayMethods[U])}I||this.observeArray($)}else for(var q=Object.keys($),B=0;B<q.length;B++){var U=q[B];defineReactive($,U,NO_INIITIAL_VALUE,void 0,I,N)}}return M.prototype.observeArray=function($){for(var I=0,N=$.length;I<N;I++)observe($[I],!1,this.mock)},M}();function observe(M,$,I){if(M&&hasOwn$4(M,"__ob__")&&M.__ob__ instanceof Observer)return M.__ob__;if(shouldObserve&&(I||!isServerRendering())&&(isArray$9(M)||isPlainObject$2(M))&&Object.isExtensible(M)&&!M.__v_skip&&!isRef$1(M)&&!(M instanceof VNode))return new Observer(M,$,I)}function defineReactive(M,$,I,N,B,j){var U=new Dep,q=Object.getOwnPropertyDescriptor(M,$);if(!(q&&q.configurable===!1)){var Y=q&&q.get,K=q&&q.set;(!Y||K)&&(I===NO_INIITIAL_VALUE||arguments.length===2)&&(I=M[$]);var G=!B&&observe(I,!1,j);return Object.defineProperty(M,$,{enumerable:!0,configurable:!0,get:function(){var Z=Y?Y.call(M):I;return Dep.target&&(U.depend(),G&&(G.dep.depend(),isArray$9(Z)&&dependArray(Z))),isRef$1(Z)&&!B?Z.value:Z},set:function(Z){var ee=Y?Y.call(M):I;if(hasChanged$1(ee,Z)){if(K)K.call(M,Z);else{if(Y)return;if(!B&&isRef$1(ee)&&!isRef$1(Z)){ee.value=Z;return}else I=Z}G=!B&&observe(Z,!1,j),U.notify()}}}),U}}function set$3(M,$,I){if(!isReadonly(M)){var N=M.__ob__;return isArray$9(M)&&isValidArrayIndex($)?(M.length=Math.max(M.length,$),M.splice($,1,I),N&&!N.shallow&&N.mock&&observe(I,!1,!0),I):$ in M&&!($ in Object.prototype)?(M[$]=I,I):M._isVue||N&&N.vmCount?I:N?(defineReactive(N.value,$,I,void 0,N.shallow,N.mock),N.dep.notify(),I):(M[$]=I,I)}}function del(M,$){if(isArray$9(M)&&isValidArrayIndex($)){M.splice($,1);return}var I=M.__ob__;M._isVue||I&&I.vmCount||isReadonly(M)||hasOwn$4(M,$)&&(delete M[$],I&&I.dep.notify())}function dependArray(M){for(var $=void 0,I=0,N=M.length;I<N;I++)$=M[I],$&&$.__ob__&&$.__ob__.dep.depend(),isArray$9($)&&dependArray($)}function reactive$1(M){return makeReactive(M,!1),M}function shallowReactive(M){return makeReactive(M,!0),def(M,"__v_isShallow",!0),M}function makeReactive(M,$){isReadonly(M)||observe(M,$,isServerRendering())}function isReactive$1(M){return isReadonly(M)?isReactive$1(M.__v_raw):!!(M&&M.__ob__)}function isShallow(M){return!!(M&&M.__v_isShallow)}function isReadonly(M){return!!(M&&M.__v_isReadonly)}function isProxy(M){return isReactive$1(M)||isReadonly(M)}function toRaw$1(M){var $=M&&M.__v_raw;return $?toRaw$1($):M}function markRaw(M){return Object.isExtensible(M)&&def(M,"__v_skip",!0),M}var RefFlag="__v_isRef";function isRef$1(M){return!!(M&&M.__v_isRef===!0)}function ref$1(M){return createRef(M,!1)}function shallowRef(M){return createRef(M,!0)}function createRef(M,$){if(isRef$1(M))return M;var I={};return def(I,RefFlag,!0),def(I,"__v_isShallow",$),def(I,"dep",defineReactive(I,"value",M,null,$,isServerRendering())),I}function triggerRef(M){M.dep&&M.dep.notify()}function unref(M){return isRef$1(M)?M.value:M}function proxyRefs(M){if(isReactive$1(M))return M;for(var $={},I=Object.keys(M),N=0;N<I.length;N++)proxyWithRefUnwrap($,M,I[N]);return $}function proxyWithRefUnwrap(M,$,I){Object.defineProperty(M,I,{enumerable:!0,configurable:!0,get:function(){var N=$[I];if(isRef$1(N))return N.value;var B=N&&N.__ob__;return B&&B.dep.depend(),N},set:function(N){var B=$[I];isRef$1(B)&&!isRef$1(N)?B.value=N:$[I]=N}})}function customRef(M){var $=new Dep,I=M(function(){$.depend()},function(){$.notify()}),N=I.get,B=I.set,j={get value(){return N()},set value(U){B(U)}};return def(j,RefFlag,!0),j}function toRefs(M){var $=isArray$9(M)?new Array(M.length):{};for(var I in M)$[I]=toRef(M,I);return $}function toRef(M,$,I){var N=M[$];if(isRef$1(N))return N;var B={get value(){var j=M[$];return j===void 0?I:j},set value(j){M[$]=j}};return def(B,RefFlag,!0),B}var rawToReadonlyFlag="__v_rawToReadonly",rawToShallowReadonlyFlag="__v_rawToShallowReadonly";function readonly$1(M){return createReadonly(M,!1)}function createReadonly(M,$){if(!isPlainObject$2(M)||isReadonly(M))return M;var I=$?rawToShallowReadonlyFlag:rawToReadonlyFlag,N=M[I];if(N)return N;var B=Object.create(Object.getPrototypeOf(M));def(M,I,B),def(B,"__v_isReadonly",!0),def(B,"__v_raw",M),isRef$1(M)&&def(B,RefFlag,!0),($||isShallow(M))&&def(B,"__v_isShallow",!0);for(var j=Object.keys(M),U=0;U<j.length;U++)defineReadonlyProperty(B,M,j[U],$);return B}function defineReadonlyProperty(M,$,I,N){Object.defineProperty(M,I,{enumerable:!0,configurable:!0,get:function(){var B=$[I];return N||!isPlainObject$2(B)?B:readonly$1(B)},set:function(){}})}function shallowReadonly(M){return createReadonly(M,!0)}function computed(M,$){var I,N,B=isFunction$6(M);B?(I=M,N=noop$2):(I=M.get,N=M.set);var j=isServerRendering()?null:new Watcher(currentInstance,I,noop$2,{lazy:!0}),U={effect:j,get value(){return j?(j.dirty&&j.evaluate(),Dep.target&&j.depend(),j.value):I()},set value(q){N(q)}};return def(U,RefFlag,!0),def(U,"__v_isReadonly",B),U}var normalizeEvent=cached(function(M){var $=M.charAt(0)==="&";M=$?M.slice(1):M;var I=M.charAt(0)==="~";M=I?M.slice(1):M;var N=M.charAt(0)==="!";return M=N?M.slice(1):M,{name:M,once:I,capture:N,passive:$}});function createFnInvoker(M,$){function I(){var N=I.fns;if(isArray$9(N))for(var B=N.slice(),j=0;j<B.length;j++)invokeWithErrorHandling(B[j],null,arguments,$,"v-on handler");else return invokeWithErrorHandling(N,null,arguments,$,"v-on handler")}return I.fns=M,I}function updateListeners(M,$,I,N,B,j){var U,q,Y,K;for(U in M)q=M[U],Y=$[U],K=normalizeEvent(U),isUndef(q)||(isUndef(Y)?(isUndef(q.fns)&&(q=M[U]=createFnInvoker(q,j)),isTrue(K.once)&&(q=M[U]=B(K.name,q,K.capture)),I(K.name,q,K.capture,K.passive,K.params)):q!==Y&&(Y.fns=q,M[U]=Y));for(U in $)isUndef(M[U])&&(K=normalizeEvent(U),N(K.name,$[U],K.capture))}function mergeVNodeHook(M,$,I){M instanceof VNode&&(M=M.data.hook||(M.data.hook={}));var N,B=M[$];function j(){I.apply(this,arguments),remove$2(N.fns,j)}isUndef(B)?N=createFnInvoker([j]):isDef(B.fns)&&isTrue(B.merged)?(N=B,N.fns.push(j)):N=createFnInvoker([B,j]),N.merged=!0,M[$]=N}function extractPropsFromVNodeData(M,$,I){var N=$.options.props;if(!isUndef(N)){var B={},j=M.attrs,U=M.props;if(isDef(j)||isDef(U))for(var q in N){var Y=hyphenate(q);checkProp(B,U,q,Y,!0)||checkProp(B,j,q,Y,!1)}return B}}function checkProp(M,$,I,N,B){if(isDef($)){if(hasOwn$4($,I))return M[I]=$[I],B||delete $[I],!0;if(hasOwn$4($,N))return M[I]=$[N],B||delete $[N],!0}return!1}function simpleNormalizeChildren(M){for(var $=0;$<M.length;$++)if(isArray$9(M[$]))return Array.prototype.concat.apply([],M);return M}function normalizeChildren(M){return isPrimitive(M)?[createTextVNode(M)]:isArray$9(M)?normalizeArrayChildren(M):void 0}function isTextNode(M){return isDef(M)&&isDef(M.text)&&isFalse(M.isComment)}function normalizeArrayChildren(M,$){var I=[],N,B,j,U;for(N=0;N<M.length;N++)B=M[N],!(isUndef(B)||typeof B=="boolean")&&(j=I.length-1,U=I[j],isArray$9(B)?B.length>0&&(B=normalizeArrayChildren(B,"".concat($||"","_").concat(N)),isTextNode(B[0])&&isTextNode(U)&&(I[j]=createTextVNode(U.text+B[0].text),B.shift()),I.push.apply(I,B)):isPrimitive(B)?isTextNode(U)?I[j]=createTextVNode(U.text+B):B!==""&&I.push(createTextVNode(B)):isTextNode(B)&&isTextNode(U)?I[j]=createTextVNode(U.text+B.text):(isTrue(M._isVList)&&isDef(B.tag)&&isUndef(B.key)&&isDef($)&&(B.key="__vlist".concat($,"_").concat(N,"__")),I.push(B)));return I}var SIMPLE_NORMALIZE=1,ALWAYS_NORMALIZE=2;function createElement$1(M,$,I,N,B,j){return(isArray$9(I)||isPrimitive(I))&&(B=N,N=I,I=void 0),isTrue(j)&&(B=ALWAYS_NORMALIZE),_createElement(M,$,I,N,B)}function _createElement(M,$,I,N,B){if(isDef(I)&&isDef(I.__ob__)||(isDef(I)&&isDef(I.is)&&($=I.is),!$))return createEmptyVNode();isArray$9(N)&&isFunction$6(N[0])&&(I=I||{},I.scopedSlots={default:N[0]},N.length=0),B===ALWAYS_NORMALIZE?N=normalizeChildren(N):B===SIMPLE_NORMALIZE&&(N=simpleNormalizeChildren(N));var j,U;if(typeof $=="string"){var q=void 0;U=M.$vnode&&M.$vnode.ns||config$1.getTagNamespace($),config$1.isReservedTag($)?j=new VNode(config$1.parsePlatformTagName($),I,N,void 0,void 0,M):(!I||!I.pre)&&isDef(q=resolveAsset(M.$options,"components",$))?j=createComponent(q,I,M,N,$):j=new VNode($,I,N,void 0,void 0,M)}else j=createComponent($,I,M,N);return isArray$9(j)?j:isDef(j)?(isDef(U)&&applyNS(j,U),isDef(I)&®isterDeepBindings(I),j):createEmptyVNode()}function applyNS(M,$,I){if(M.ns=$,M.tag==="foreignObject"&&($=void 0,I=!0),isDef(M.children))for(var N=0,B=M.children.length;N<B;N++){var j=M.children[N];isDef(j.tag)&&(isUndef(j.ns)||isTrue(I)&&j.tag!=="svg")&&applyNS(j,$,I)}}function registerDeepBindings(M){isObject$6(M.style)&&traverse(M.style),isObject$6(M.class)&&traverse(M.class)}function renderList(M,$){var I=null,N,B,j,U;if(isArray$9(M)||typeof M=="string")for(I=new Array(M.length),N=0,B=M.length;N<B;N++)I[N]=$(M[N],N);else if(typeof M=="number")for(I=new Array(M),N=0;N<M;N++)I[N]=$(N+1,N);else if(isObject$6(M))if(hasSymbol&&M[Symbol.iterator]){I=[];for(var q=M[Symbol.iterator](),Y=q.next();!Y.done;)I.push($(Y.value,I.length)),Y=q.next()}else for(j=Object.keys(M),I=new Array(j.length),N=0,B=j.length;N<B;N++)U=j[N],I[N]=$(M[U],U,N);return isDef(I)||(I=[]),I._isVList=!0,I}function renderSlot(M,$,I,N){var B=this.$scopedSlots[M],j;B?(I=I||{},N&&(I=extend$6(extend$6({},N),I)),j=B(I)||(isFunction$6($)?$():$)):j=this.$slots[M]||(isFunction$6($)?$():$);var U=I&&I.slot;return U?this.$createElement("template",{slot:U},j):j}function resolveFilter(M){return resolveAsset(this.$options,"filters",M)||identity$1}function isKeyNotMatch(M,$){return isArray$9(M)?M.indexOf($)===-1:M!==$}function checkKeyCodes(M,$,I,N,B){var j=config$1.keyCodes[$]||I;return B&&N&&!config$1.keyCodes[$]?isKeyNotMatch(B,N):j?isKeyNotMatch(j,M):N?hyphenate(N)!==$:M===void 0}function bindObjectProps(M,$,I,N,B){if(I&&isObject$6(I)){isArray$9(I)&&(I=toObject$1(I));var j=void 0,U=function(Y){if(Y==="class"||Y==="style"||isReservedAttribute(Y))j=M;else{var K=M.attrs&&M.attrs.type;j=N||config$1.mustUseProp($,K,Y)?M.domProps||(M.domProps={}):M.attrs||(M.attrs={})}var G=camelize(Y),J=hyphenate(Y);if(!(G in j)&&!(J in j)&&(j[Y]=I[Y],B)){var Z=M.on||(M.on={});Z["update:".concat(Y)]=function(ee){I[Y]=ee}}};for(var q in I)U(q)}return M}function renderStatic(M,$){var I=this._staticTrees||(this._staticTrees=[]),N=I[M];return N&&!$||(N=I[M]=this.$options.staticRenderFns[M].call(this._renderProxy,this._c,this),markStatic$1(N,"__static__".concat(M),!1)),N}function markOnce(M,$,I){return markStatic$1(M,"__once__".concat($).concat(I?"_".concat(I):""),!0),M}function markStatic$1(M,$,I){if(isArray$9(M))for(var N=0;N<M.length;N++)M[N]&&typeof M[N]!="string"&&markStaticNode(M[N],"".concat($,"_").concat(N),I);else markStaticNode(M,$,I)}function markStaticNode(M,$,I){M.isStatic=!0,M.key=$,M.isOnce=I}function bindObjectListeners(M,$){if($&&isPlainObject$2($)){var I=M.on=M.on?extend$6({},M.on):{};for(var N in $){var B=I[N],j=$[N];I[N]=B?[].concat(B,j):j}}return M}function resolveScopedSlots(M,$,I,N){$=$||{$stable:!I};for(var B=0;B<M.length;B++){var j=M[B];isArray$9(j)?resolveScopedSlots(j,$,I):j&&(j.proxy&&(j.fn.proxy=!0),$[j.key]=j.fn)}return N&&($.$key=N),$}function bindDynamicKeys(M,$){for(var I=0;I<$.length;I+=2){var N=$[I];typeof N=="string"&&N&&(M[$[I]]=$[I+1])}return M}function prependModifier(M,$){return typeof M=="string"?$+M:M}function installRenderHelpers(M){M._o=markOnce,M._n=toNumber,M._s=toString$4,M._l=renderList,M._t=renderSlot,M._q=looseEqual,M._i=looseIndexOf,M._m=renderStatic,M._f=resolveFilter,M._k=checkKeyCodes,M._b=bindObjectProps,M._v=createTextVNode,M._e=createEmptyVNode,M._u=resolveScopedSlots,M._g=bindObjectListeners,M._d=bindDynamicKeys,M._p=prependModifier}function resolveSlots(M,$){if(!M||!M.length)return{};for(var I={},N=0,B=M.length;N<B;N++){var j=M[N],U=j.data;if(U&&U.attrs&&U.attrs.slot&&delete U.attrs.slot,(j.context===$||j.fnContext===$)&&U&&U.slot!=null){var q=U.slot,Y=I[q]||(I[q]=[]);j.tag==="template"?Y.push.apply(Y,j.children||[]):Y.push(j)}else(I.default||(I.default=[])).push(j)}for(var K in I)I[K].every(isWhitespace$2)&&delete I[K];return I}function isWhitespace$2(M){return M.isComment&&!M.asyncFactory||M.text===" "}function isAsyncPlaceholder(M){return M.isComment&&M.asyncFactory}function normalizeScopedSlots(M,$,I,N){var B,j=Object.keys(I).length>0,U=$?!!$.$stable:!j,q=$&&$.$key;if(!$)B={};else{if($._normalized)return $._normalized;if(U&&N&&N!==emptyObject&&q===N.$key&&!j&&!N.$hasNormal)return N;B={};for(var Y in $)$[Y]&&Y[0]!=="$"&&(B[Y]=normalizeScopedSlot(M,I,Y,$[Y]))}for(var K in I)K in B||(B[K]=proxyNormalSlot(I,K));return $&&Object.isExtensible($)&&($._normalized=B),def(B,"$stable",U),def(B,"$key",q),def(B,"$hasNormal",j),B}function normalizeScopedSlot(M,$,I,N){var B=function(){var j=currentInstance;setCurrentInstance(M);var U=arguments.length?N.apply(null,arguments):N({});U=U&&typeof U=="object"&&!isArray$9(U)?[U]:normalizeChildren(U);var q=U&&U[0];return setCurrentInstance(j),U&&(!q||U.length===1&&q.isComment&&!isAsyncPlaceholder(q))?void 0:U};return N.proxy&&Object.defineProperty($,I,{get:B,enumerable:!0,configurable:!0}),B}function proxyNormalSlot(M,$){return function(){return M[$]}}function initSetup(M){var $=M.$options,I=$.setup;if(I){var N=M._setupContext=createSetupContext(M);setCurrentInstance(M),pushTarget();var B=invokeWithErrorHandling(I,null,[M._props||shallowReactive({}),N],M,"setup");if(popTarget(),setCurrentInstance(),isFunction$6(B))$.render=B;else if(isObject$6(B))if(M._setupState=B,B.__sfc){var U=M._setupProxy={};for(var j in B)j!=="__sfc"&&proxyWithRefUnwrap(U,B,j)}else for(var j in B)isReserved(j)||proxyWithRefUnwrap(M,B,j)}}function createSetupContext(M){return{get attrs(){if(!M._attrsProxy){var $=M._attrsProxy={};def($,"_v_attr_proxy",!0),syncSetupProxy($,M.$attrs,emptyObject,M,"$attrs")}return M._attrsProxy},get listeners(){if(!M._listenersProxy){var $=M._listenersProxy={};syncSetupProxy($,M.$listeners,emptyObject,M,"$listeners")}return M._listenersProxy},get slots(){return initSlotsProxy(M)},emit:bind$1$1(M.$emit,M),expose:function($){$&&Object.keys($).forEach(function(I){return proxyWithRefUnwrap(M,$,I)})}}}function syncSetupProxy(M,$,I,N,B){var j=!1;for(var U in $)U in M?$[U]!==I[U]&&(j=!0):(j=!0,defineProxyAttr(M,U,N,B));for(var U in M)U in $||(j=!0,delete M[U]);return j}function defineProxyAttr(M,$,I,N){Object.defineProperty(M,$,{enumerable:!0,configurable:!0,get:function(){return I[N][$]}})}function initSlotsProxy(M){return M._slotsProxy||syncSetupSlots(M._slotsProxy={},M.$scopedSlots),M._slotsProxy}function syncSetupSlots(M,$){for(var I in $)M[I]=$[I];for(var I in M)I in $||delete M[I]}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function useListeners(){return getContext().listeners}function getContext(){var M=currentInstance;return M._setupContext||(M._setupContext=createSetupContext(M))}function mergeDefaults(M,$){var I=isArray$9(M)?M.reduce(function(j,U){return j[U]={},j},{}):M;for(var N in $){var B=I[N];B?isArray$9(B)||isFunction$6(B)?I[N]={type:B,default:$[N]}:B.default=$[N]:B===null&&(I[N]={default:$[N]})}return I}function initRender(M){M._vnode=null,M._staticTrees=null;var $=M.$options,I=M.$vnode=$._parentVnode,N=I&&I.context;M.$slots=resolveSlots($._renderChildren,N),M.$scopedSlots=I?normalizeScopedSlots(M.$parent,I.data.scopedSlots,M.$slots):emptyObject,M._c=function(j,U,q,Y){return createElement$1(M,j,U,q,Y,!1)},M.$createElement=function(j,U,q,Y){return createElement$1(M,j,U,q,Y,!0)};var B=I&&I.data;defineReactive(M,"$attrs",B&&B.attrs||emptyObject,null,!0),defineReactive(M,"$listeners",$._parentListeners||emptyObject,null,!0)}var currentRenderingInstance=null;function renderMixin(M){installRenderHelpers(M.prototype),M.prototype.$nextTick=function($){return nextTick$1($,this)},M.prototype._render=function(){var $=this,I=$.$options,N=I.render,B=I._parentVnode;B&&$._isMounted&&($.$scopedSlots=normalizeScopedSlots($.$parent,B.data.scopedSlots,$.$slots,$.$scopedSlots),$._slotsProxy&&syncSetupSlots($._slotsProxy,$.$scopedSlots)),$.$vnode=B;var j;try{setCurrentInstance($),currentRenderingInstance=$,j=N.call($._renderProxy,$.$createElement)}catch(U){handleError$1(U,$,"render"),j=$._vnode}finally{currentRenderingInstance=null,setCurrentInstance()}return isArray$9(j)&&j.length===1&&(j=j[0]),j instanceof VNode||(j=createEmptyVNode()),j.parent=B,j}}function ensureCtor(M,$){return(M.__esModule||hasSymbol&&M[Symbol.toStringTag]==="Module")&&(M=M.default),isObject$6(M)?$.extend(M):M}function createAsyncPlaceholder(M,$,I,N,B){var j=createEmptyVNode();return j.asyncFactory=M,j.asyncMeta={data:$,context:I,children:N,tag:B},j}function resolveAsyncComponent(M,$){if(isTrue(M.error)&&isDef(M.errorComp))return M.errorComp;if(isDef(M.resolved))return M.resolved;var I=currentRenderingInstance;if(I&&isDef(M.owners)&&M.owners.indexOf(I)===-1&&M.owners.push(I),isTrue(M.loading)&&isDef(M.loadingComp))return M.loadingComp;if(I&&!isDef(M.owners)){var N=M.owners=[I],B=!0,j=null,U=null;I.$on("hook:destroyed",function(){return remove$2(N,I)});var q=function(J){for(var Z=0,ee=N.length;Z<ee;Z++)N[Z].$forceUpdate();J&&(N.length=0,j!==null&&(clearTimeout(j),j=null),U!==null&&(clearTimeout(U),U=null))},Y=once$2(function(J){M.resolved=ensureCtor(J,$),B?N.length=0:q(!0)}),K=once$2(function(J){isDef(M.errorComp)&&(M.error=!0,q(!0))}),G=M(Y,K);return isObject$6(G)&&(isPromise$1(G)?isUndef(M.resolved)&&G.then(Y,K):isPromise$1(G.component)&&(G.component.then(Y,K),isDef(G.error)&&(M.errorComp=ensureCtor(G.error,$)),isDef(G.loading)&&(M.loadingComp=ensureCtor(G.loading,$),G.delay===0?M.loading=!0:j=setTimeout(function(){j=null,isUndef(M.resolved)&&isUndef(M.error)&&(M.loading=!0,q(!1))},G.delay||200)),isDef(G.timeout)&&(U=setTimeout(function(){U=null,isUndef(M.resolved)&&K(null)},G.timeout)))),B=!1,M.loading?M.loadingComp:M.resolved}}function getFirstComponentChild(M){if(isArray$9(M))for(var $=0;$<M.length;$++){var I=M[$];if(isDef(I)&&(isDef(I.componentOptions)||isAsyncPlaceholder(I)))return I}}function initEvents(M){M._events=Object.create(null),M._hasHookEvent=!1;var $=M.$options._parentListeners;$&&updateComponentListeners(M,$)}var target$1;function add$1$1(M,$){target$1.$on(M,$)}function remove$1(M,$){target$1.$off(M,$)}function createOnceHandler$1(M,$){var I=target$1;return function N(){var B=$.apply(null,arguments);B!==null&&I.$off(M,N)}}function updateComponentListeners(M,$,I){target$1=M,updateListeners($,I||{},add$1$1,remove$1,createOnceHandler$1,M),target$1=void 0}function eventsMixin(M){var $=/^hook:/;M.prototype.$on=function(I,N){var B=this;if(isArray$9(I))for(var j=0,U=I.length;j<U;j++)B.$on(I[j],N);else(B._events[I]||(B._events[I]=[])).push(N),$.test(I)&&(B._hasHookEvent=!0);return B},M.prototype.$once=function(I,N){var B=this;function j(){B.$off(I,j),N.apply(B,arguments)}return j.fn=N,B.$on(I,j),B},M.prototype.$off=function(I,N){var B=this;if(!arguments.length)return B._events=Object.create(null),B;if(isArray$9(I)){for(var j=0,U=I.length;j<U;j++)B.$off(I[j],N);return B}var q=B._events[I];if(!q)return B;if(!N)return B._events[I]=null,B;for(var Y,K=q.length;K--;)if(Y=q[K],Y===N||Y.fn===N){q.splice(K,1);break}return B},M.prototype.$emit=function(I){var N=this,B=N._events[I];if(B){B=B.length>1?toArray$3(B):B;for(var j=toArray$3(arguments,1),U='event handler for "'.concat(I,'"'),q=0,Y=B.length;q<Y;q++)invokeWithErrorHandling(B[q],N,j,N,U)}return N}}var activeInstance=null;function setActiveInstance(M){var $=activeInstance;return activeInstance=M,function(){activeInstance=$}}function initLifecycle(M){var $=M.$options,I=$.parent;if(I&&!$.abstract){for(;I.$options.abstract&&I.$parent;)I=I.$parent;I.$children.push(M)}M.$parent=I,M.$root=I?I.$root:M,M.$children=[],M.$refs={},M._provided=I?I._provided:Object.create(null),M._watcher=null,M._inactive=null,M._directInactive=!1,M._isMounted=!1,M._isDestroyed=!1,M._isBeingDestroyed=!1}function lifecycleMixin(M){M.prototype._update=function($,I){var N=this,B=N.$el,j=N._vnode,U=setActiveInstance(N);N._vnode=$,j?N.$el=N.__patch__(j,$):N.$el=N.__patch__(N.$el,$,I,!1),U(),B&&(B.__vue__=null),N.$el&&(N.$el.__vue__=N);for(var q=N;q&&q.$vnode&&q.$parent&&q.$vnode===q.$parent._vnode;)q.$parent.$el=q.$el,q=q.$parent},M.prototype.$forceUpdate=function(){var $=this;$._watcher&&$._watcher.update()},M.prototype.$destroy=function(){var $=this;if(!$._isBeingDestroyed){callHook$1($,"beforeDestroy"),$._isBeingDestroyed=!0;var I=$.$parent;I&&!I._isBeingDestroyed&&!$.$options.abstract&&remove$2(I.$children,$),$._scope.stop(),$._data.__ob__&&$._data.__ob__.vmCount--,$._isDestroyed=!0,$.__patch__($._vnode,null),callHook$1($,"destroyed"),$.$off(),$.$el&&($.$el.__vue__=null),$.$vnode&&($.$vnode.parent=null)}}}function mountComponent(M,$,I){M.$el=$,M.$options.render||(M.$options.render=createEmptyVNode),callHook$1(M,"beforeMount");var N;N=function(){M._update(M._render(),I)};var B={before:function(){M._isMounted&&!M._isDestroyed&&callHook$1(M,"beforeUpdate")}};new Watcher(M,N,noop$2,B,!0),I=!1;var j=M._preWatchers;if(j)for(var U=0;U<j.length;U++)j[U].run();return M.$vnode==null&&(M._isMounted=!0,callHook$1(M,"mounted")),M}function updateChildComponent(M,$,I,N,B){var j=N.data.scopedSlots,U=M.$scopedSlots,q=!!(j&&!j.$stable||U!==emptyObject&&!U.$stable||j&&M.$scopedSlots.$key!==j.$key||!j&&M.$scopedSlots.$key),Y=!!(B||M.$options._renderChildren||q),K=M.$vnode;M.$options._parentVnode=N,M.$vnode=N,M._vnode&&(M._vnode.parent=N),M.$options._renderChildren=B;var G=N.data.attrs||emptyObject;M._attrsProxy&&syncSetupProxy(M._attrsProxy,G,K.data&&K.data.attrs||emptyObject,M,"$attrs")&&(Y=!0),M.$attrs=G,I=I||emptyObject;var J=M.$options._parentListeners;if(M._listenersProxy&&syncSetupProxy(M._listenersProxy,I,J||emptyObject,M,"$listeners"),M.$listeners=M.$options._parentListeners=I,updateComponentListeners(M,I,J),$&&M.$options.props){toggleObserving(!1);for(var Z=M._props,ee=M.$options._propKeys||[],te=0;te<ee.length;te++){var re=ee[te],se=M.$options.props;Z[re]=validateProp(re,se,$,M)}toggleObserving(!0),M.$options.propsData=$}Y&&(M.$slots=resolveSlots(B,N.context),M.$forceUpdate())}function isInInactiveTree(M){for(;M&&(M=M.$parent);)if(M._inactive)return!0;return!1}function activateChildComponent(M,$){if($){if(M._directInactive=!1,isInInactiveTree(M))return}else if(M._directInactive)return;if(M._inactive||M._inactive===null){M._inactive=!1;for(var I=0;I<M.$children.length;I++)activateChildComponent(M.$children[I]);callHook$1(M,"activated")}}function deactivateChildComponent(M,$){if(!($&&(M._directInactive=!0,isInInactiveTree(M)))&&!M._inactive){M._inactive=!0;for(var I=0;I<M.$children.length;I++)deactivateChildComponent(M.$children[I]);callHook$1(M,"deactivated")}}function callHook$1(M,$,I,N){N===void 0&&(N=!0),pushTarget();var B=currentInstance;N&&setCurrentInstance(M);var j=M.$options[$],U="".concat($," hook");if(j)for(var q=0,Y=j.length;q<Y;q++)invokeWithErrorHandling(j[q],M,I||null,M,U);M._hasHookEvent&&M.$emit("hook:"+$),N&&setCurrentInstance(B),popTarget()}var queue$1=[],activatedChildren=[],has$7={},waiting=!1,flushing$1=!1,index$1$1=0;function resetSchedulerState(){index$1$1=queue$1.length=activatedChildren.length=0,has$7={},waiting=flushing$1=!1}var currentFlushTimestamp=0,getNow=Date.now;if(inBrowser&&!isIE$1){var performance_1=window.performance;performance_1&&typeof performance_1.now=="function"&&getNow()>document.createEvent("Event").timeStamp&&(getNow=function(){return performance_1.now()})}var sortCompareFn=function(M,$){if(M.post){if(!$.post)return 1}else if($.post)return-1;return M.id-$.id};function flushSchedulerQueue(){currentFlushTimestamp=getNow(),flushing$1=!0;var M,$;for(queue$1.sort(sortCompareFn),index$1$1=0;index$1$1<queue$1.length;index$1$1++)M=queue$1[index$1$1],M.before&&M.before(),$=M.id,has$7[$]=null,M.run();var I=activatedChildren.slice(),N=queue$1.slice();resetSchedulerState(),callActivatedHooks(I),callUpdatedHooks(N),cleanupDeps(),devtools&&config$1.devtools&&devtools.emit("flush")}function callUpdatedHooks(M){for(var $=M.length;$--;){var I=M[$],N=I.vm;N&&N._watcher===I&&N._isMounted&&!N._isDestroyed&&callHook$1(N,"updated")}}function queueActivatedComponent(M){M._inactive=!1,activatedChildren.push(M)}function callActivatedHooks(M){for(var $=0;$<M.length;$++)M[$]._inactive=!0,activateChildComponent(M[$],!0)}function queueWatcher(M){var $=M.id;if(has$7[$]==null&&!(M===Dep.target&&M.noRecurse)){if(has$7[$]=!0,!flushing$1)queue$1.push(M);else{for(var I=queue$1.length-1;I>index$1$1&&queue$1[I].id>M.id;)I--;queue$1.splice(I+1,0,M)}waiting||(waiting=!0,nextTick$1(flushSchedulerQueue))}}var WATCHER="watcher",WATCHER_CB="".concat(WATCHER," callback"),WATCHER_GETTER="".concat(WATCHER," getter"),WATCHER_CLEANUP="".concat(WATCHER," cleanup");function watchEffect(M,$){return doWatch(M,null,$)}function watchPostEffect(M,$){return doWatch(M,null,{flush:"post"})}function watchSyncEffect(M,$){return doWatch(M,null,{flush:"sync"})}var INITIAL_WATCHER_VALUE={};function watch(M,$,I){return doWatch(M,$,I)}function doWatch(M,$,I){var N=I===void 0?emptyObject:I,B=N.immediate,j=N.deep,U=N.flush,q=U===void 0?"pre":U;N.onTrack,N.onTrigger;var Y=currentInstance,K=function(le,ge,ue){return ue===void 0&&(ue=null),invokeWithErrorHandling(le,null,ue,Y,ge)},G,J=!1,Z=!1;if(isRef$1(M)?(G=function(){return M.value},J=isShallow(M)):isReactive$1(M)?(G=function(){return M.__ob__.dep.depend(),M},j=!0):isArray$9(M)?(Z=!0,J=M.some(function(le){return isReactive$1(le)||isShallow(le)}),G=function(){return M.map(function(le){if(isRef$1(le))return le.value;if(isReactive$1(le))return traverse(le);if(isFunction$6(le))return K(le,WATCHER_GETTER)})}):isFunction$6(M)?$?G=function(){return K(M,WATCHER_GETTER)}:G=function(){if(!(Y&&Y._isDestroyed))return te&&te(),K(M,WATCHER,[re])}:G=noop$2,$&&j){var ee=G;G=function(){return traverse(ee())}}var te,re=function(le){te=se.onStop=function(){K(le,WATCHER_CLEANUP)}};if(isServerRendering())return re=noop$2,$?B&&K($,WATCHER_CB,[G(),Z?[]:void 0,re]):G(),noop$2;var se=new Watcher(currentInstance,G,noop$2,{lazy:!0});se.noRecurse=!$;var ne=Z?[]:INITIAL_WATCHER_VALUE;return se.run=function(){if(se.active)if($){var le=se.get();(j||J||(Z?le.some(function(ge,ue){return hasChanged$1(ge,ne[ue])}):hasChanged$1(le,ne)))&&(te&&te(),K($,WATCHER_CB,[le,ne===INITIAL_WATCHER_VALUE?void 0:ne,re]),ne=le)}else se.get()},q==="sync"?se.update=se.run:q==="post"?(se.post=!0,se.update=function(){return queueWatcher(se)}):se.update=function(){if(Y&&Y===currentInstance&&!Y._isMounted){var le=Y._preWatchers||(Y._preWatchers=[]);le.indexOf(se)<0&&le.push(se)}else queueWatcher(se)},$?B?se.run():ne=se.get():q==="post"&&Y?Y.$once("hook:mounted",function(){return se.get()}):se.get(),function(){se.teardown()}}var activeEffectScope,EffectScope=function(){function M($){$===void 0&&($=!1),this.detached=$,this.active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!$&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}return M.prototype.run=function($){if(this.active){var I=activeEffectScope;try{return activeEffectScope=this,$()}finally{activeEffectScope=I}}},M.prototype.on=function(){activeEffectScope=this},M.prototype.off=function(){activeEffectScope=this.parent},M.prototype.stop=function($){if(this.active){var I=void 0,N=void 0;for(I=0,N=this.effects.length;I<N;I++)this.effects[I].teardown();for(I=0,N=this.cleanups.length;I<N;I++)this.cleanups[I]();if(this.scopes)for(I=0,N=this.scopes.length;I<N;I++)this.scopes[I].stop(!0);if(!this.detached&&this.parent&&!$){var B=this.parent.scopes.pop();B&&B!==this&&(this.parent.scopes[this.index]=B,B.index=this.index)}this.parent=void 0,this.active=!1}},M}();function effectScope(M){return new EffectScope(M)}function recordEffectScope(M,$){$===void 0&&($=activeEffectScope),$&&$.active&&$.effects.push(M)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(M){activeEffectScope&&activeEffectScope.cleanups.push(M)}function provide(M,$){currentInstance&&(resolveProvided(currentInstance)[M]=$)}function resolveProvided(M){var $=M._provided,I=M.$parent&&M.$parent._provided;return I===$?M._provided=Object.create(I):$}function inject(M,$,I){I===void 0&&(I=!1);var N=currentInstance;if(N){var B=N.$parent&&N.$parent._provided;if(B&&M in B)return B[M];if(arguments.length>1)return I&&isFunction$6($)?$.call(N):$}}function h$2(M,$,I){return createElement$1(currentInstance,M,$,I,2,!0)}function handleError$1(M,$,I){pushTarget();try{if($)for(var N=$;N=N.$parent;){var B=N.$options.errorCaptured;if(B)for(var j=0;j<B.length;j++)try{var U=B[j].call(N,M,$,I)===!1;if(U)return}catch(q){globalHandleError(q,N,"errorCaptured hook")}}globalHandleError(M,$,I)}finally{popTarget()}}function invokeWithErrorHandling(M,$,I,N,B){var j;try{j=I?M.apply($,I):M.call($),j&&!j._isVue&&isPromise$1(j)&&!j._handled&&(j.catch(function(U){return handleError$1(U,N,B+" (Promise/async)")}),j._handled=!0)}catch(U){handleError$1(U,N,B)}return j}function globalHandleError(M,$,I){if(config$1.errorHandler)try{return config$1.errorHandler.call(null,M,$,I)}catch(N){N!==M&&logError(N)}logError(M)}function logError(M,$,I){if(inBrowser&&typeof console<"u")console.error(M);else throw M}var isUsingMicroTask=!1,callbacks$1=[],pending=!1;function flushCallbacks(){pending=!1;var M=callbacks$1.slice(0);callbacks$1.length=0;for(var $=0;$<M.length;$++)M[$]()}var timerFunc;if(typeof Promise<"u"&&isNative(Promise)){var p_1=Promise.resolve();timerFunc=function(){p_1.then(flushCallbacks),isIOS$1&&setTimeout(noop$2)},isUsingMicroTask=!0}else if(!isIE$1&&typeof MutationObserver<"u"&&(isNative(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var counter_1=1,observer$1=new MutationObserver(flushCallbacks),textNode_1=document.createTextNode(String(counter_1));observer$1.observe(textNode_1,{characterData:!0}),timerFunc=function(){counter_1=(counter_1+1)%2,textNode_1.data=String(counter_1)},isUsingMicroTask=!0}else typeof setImmediate<"u"&&isNative(setImmediate)?timerFunc=function(){setImmediate(flushCallbacks)}:timerFunc=function(){setTimeout(flushCallbacks,0)};function nextTick$1(M,$){var I;if(callbacks$1.push(function(){if(M)try{M.call($)}catch(N){handleError$1(N,$,"nextTick")}else I&&I($)}),pending||(pending=!0,timerFunc()),!M&&typeof Promise<"u")return new Promise(function(N){I=N})}function useCssModule(M){M===void 0&&(M="$style");{if(!currentInstance)return emptyObject;var $=currentInstance[M];return $||emptyObject}}function useCssVars(M){if(inBrowser){var $=currentInstance;$&&watchPostEffect(function(){var I=$.$el,N=M($,$._setupProxy);if(I&&I.nodeType===1){var B=I.style;for(var j in N)B.setProperty("--".concat(j),N[j])}})}}function defineAsyncComponent(M){isFunction$6(M)&&(M={loader:M});var $=M.loader,I=M.loadingComponent,N=M.errorComponent,B=M.delay,j=B===void 0?200:B,U=M.timeout;M.suspensible;var q=M.onError,Y=null,K=0,G=function(){return K++,Y=null,J()},J=function(){var Z;return Y||(Z=Y=$().catch(function(ee){if(ee=ee instanceof Error?ee:new Error(String(ee)),q)return new Promise(function(te,re){var se=function(){return te(G())},ne=function(){return re(ee)};q(ee,se,ne,K+1)});throw ee}).then(function(ee){return Z!==Y&&Y?Y:(ee&&(ee.__esModule||ee[Symbol.toStringTag]==="Module")&&(ee=ee.default),ee)}))};return function(){var Z=J();return{component:Z,delay:j,timeout:U,error:N,loading:I}}}function createLifeCycle(M){return function($,I){if(I===void 0&&(I=currentInstance),!!I)return injectHook(I,M,$)}}function injectHook(M,$,I){var N=M.$options;N[$]=mergeLifecycleHook(N[$],I)}var onBeforeMount=createLifeCycle("beforeMount"),onMounted=createLifeCycle("mounted"),onBeforeUpdate=createLifeCycle("beforeUpdate"),onUpdated=createLifeCycle("updated"),onBeforeUnmount=createLifeCycle("beforeDestroy"),onUnmounted=createLifeCycle("destroyed"),onActivated=createLifeCycle("activated"),onDeactivated=createLifeCycle("deactivated"),onServerPrefetch=createLifeCycle("serverPrefetch"),onRenderTracked=createLifeCycle("renderTracked"),onRenderTriggered=createLifeCycle("renderTriggered"),injectErrorCapturedHook=createLifeCycle("errorCaptured");function onErrorCaptured(M,$){$===void 0&&($=currentInstance),injectErrorCapturedHook(M,$)}var version$3="2.7.14";function defineComponent(M){return M}var seenObjects=new _Set;function traverse(M){return _traverse(M,seenObjects),seenObjects.clear(),M}function _traverse(M,$){var I,N,B=isArray$9(M);if(!(!B&&!isObject$6(M)||M.__v_skip||Object.isFrozen(M)||M instanceof VNode)){if(M.__ob__){var j=M.__ob__.dep.id;if($.has(j))return;$.add(j)}if(B)for(I=M.length;I--;)_traverse(M[I],$);else if(isRef$1(M))_traverse(M.value,$);else for(N=Object.keys(M),I=N.length;I--;)_traverse(M[N[I]],$)}}var uid$1=0,Watcher=function(){function M($,I,N,B,j){recordEffectScope(this,activeEffectScope&&!activeEffectScope._vm?activeEffectScope:$?$._scope:void 0),(this.vm=$)&&j&&($._watcher=this),B?(this.deep=!!B.deep,this.user=!!B.user,this.lazy=!!B.lazy,this.sync=!!B.sync,this.before=B.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=N,this.id=++uid$1,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new _Set,this.newDepIds=new _Set,this.expression="",isFunction$6(I)?this.getter=I:(this.getter=parsePath(I),this.getter||(this.getter=noop$2)),this.value=this.lazy?void 0:this.get()}return M.prototype.get=function(){pushTarget(this);var $,I=this.vm;try{$=this.getter.call(I,I)}catch(N){if(this.user)handleError$1(N,I,'getter for watcher "'.concat(this.expression,'"'));else throw N}finally{this.deep&&traverse($),popTarget(),this.cleanupDeps()}return $},M.prototype.addDep=function($){var I=$.id;this.newDepIds.has(I)||(this.newDepIds.add(I),this.newDeps.push($),this.depIds.has(I)||$.addSub(this))},M.prototype.cleanupDeps=function(){for(var $=this.deps.length;$--;){var I=this.deps[$];this.newDepIds.has(I.id)||I.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},M.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():queueWatcher(this)},M.prototype.run=function(){if(this.active){var $=this.get();if($!==this.value||isObject$6($)||this.deep){var I=this.value;if(this.value=$,this.user){var N='callback for watcher "'.concat(this.expression,'"');invokeWithErrorHandling(this.cb,this.vm,[$,I],this.vm,N)}else this.cb.call(this.vm,$,I)}}},M.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},M.prototype.depend=function(){for(var $=this.deps.length;$--;)this.deps[$].depend()},M.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&remove$2(this.vm._scope.effects,this),this.active){for(var $=this.deps.length;$--;)this.deps[$].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},M}(),sharedPropertyDefinition={enumerable:!0,configurable:!0,get:noop$2,set:noop$2};function proxy(M,$,I){sharedPropertyDefinition.get=function(){return this[$][I]},sharedPropertyDefinition.set=function(B){this[$][I]=B},Object.defineProperty(M,I,sharedPropertyDefinition)}function initState(M){var $=M.$options;if($.props&&initProps$1(M,$.props),initSetup(M),$.methods&&initMethods(M,$.methods),$.data)initData(M);else{var I=observe(M._data={});I&&I.vmCount++}$.computed&&initComputed$1(M,$.computed),$.watch&&$.watch!==nativeWatch&&initWatch(M,$.watch)}function initProps$1(M,$){var I=M.$options.propsData||{},N=M._props=shallowReactive({}),B=M.$options._propKeys=[],j=!M.$parent;j||toggleObserving(!1);var U=function(Y){B.push(Y);var K=validateProp(Y,$,I,M);defineReactive(N,Y,K),Y in M||proxy(M,"_props",Y)};for(var q in $)U(q);toggleObserving(!0)}function initData(M){var $=M.$options.data;$=M._data=isFunction$6($)?getData($,M):$||{},isPlainObject$2($)||($={});var I=Object.keys($),N=M.$options.props;M.$options.methods;for(var B=I.length;B--;){var j=I[B];N&&hasOwn$4(N,j)||isReserved(j)||proxy(M,"_data",j)}var U=observe($);U&&U.vmCount++}function getData(M,$){pushTarget();try{return M.call($,$)}catch(I){return handleError$1(I,$,"data()"),{}}finally{popTarget()}}var computedWatcherOptions={lazy:!0};function initComputed$1(M,$){var I=M._computedWatchers=Object.create(null),N=isServerRendering();for(var B in $){var j=$[B],U=isFunction$6(j)?j:j.get;N||(I[B]=new Watcher(M,U||noop$2,noop$2,computedWatcherOptions)),B in M||defineComputed(M,B,j)}}function defineComputed(M,$,I){var N=!isServerRendering();isFunction$6(I)?(sharedPropertyDefinition.get=N?createComputedGetter($):createGetterInvoker(I),sharedPropertyDefinition.set=noop$2):(sharedPropertyDefinition.get=I.get?N&&I.cache!==!1?createComputedGetter($):createGetterInvoker(I.get):noop$2,sharedPropertyDefinition.set=I.set||noop$2),Object.defineProperty(M,$,sharedPropertyDefinition)}function createComputedGetter(M){return function(){var I=this._computedWatchers&&this._computedWatchers[M];if(I)return I.dirty&&I.evaluate(),Dep.target&&I.depend(),I.value}}function createGetterInvoker(M){return function(){return M.call(this,this)}}function initMethods(M,$){M.$options.props;for(var I in $)M[I]=typeof $[I]!="function"?noop$2:bind$1$1($[I],M)}function initWatch(M,$){for(var I in $){var N=$[I];if(isArray$9(N))for(var B=0;B<N.length;B++)createWatcher(M,I,N[B]);else createWatcher(M,I,N)}}function createWatcher(M,$,I,N){return isPlainObject$2(I)&&(N=I,I=I.handler),typeof I=="string"&&(I=M[I]),M.$watch($,I,N)}function stateMixin(M){var $={};$.get=function(){return this._data};var I={};I.get=function(){return this._props},Object.defineProperty(M.prototype,"$data",$),Object.defineProperty(M.prototype,"$props",I),M.prototype.$set=set$3,M.prototype.$delete=del,M.prototype.$watch=function(N,B,j){var U=this;if(isPlainObject$2(B))return createWatcher(U,N,B,j);j=j||{},j.user=!0;var q=new Watcher(U,N,B,j);if(j.immediate){var Y='callback for immediate watcher "'.concat(q.expression,'"');pushTarget(),invokeWithErrorHandling(B,U,[q.value],U,Y),popTarget()}return function(){q.teardown()}}}function initProvide(M){var $=M.$options.provide;if($){var I=isFunction$6($)?$.call(M):$;if(!isObject$6(I))return;for(var N=resolveProvided(M),B=hasSymbol?Reflect.ownKeys(I):Object.keys(I),j=0;j<B.length;j++){var U=B[j];Object.defineProperty(N,U,Object.getOwnPropertyDescriptor(I,U))}}}function initInjections(M){var $=resolveInject(M.$options.inject,M);$&&(toggleObserving(!1),Object.keys($).forEach(function(I){defineReactive(M,I,$[I])}),toggleObserving(!0))}function resolveInject(M,$){if(M){for(var I=Object.create(null),N=hasSymbol?Reflect.ownKeys(M):Object.keys(M),B=0;B<N.length;B++){var j=N[B];if(j!=="__ob__"){var U=M[j].from;if(U in $._provided)I[j]=$._provided[U];else if("default"in M[j]){var q=M[j].default;I[j]=isFunction$6(q)?q.call($):q}}}return I}}var uid$3=0;function initMixin$1(M){M.prototype._init=function($){var I=this;I._uid=uid$3++,I._isVue=!0,I.__v_skip=!0,I._scope=new EffectScope(!0),I._scope._vm=!0,$&&$._isComponent?initInternalComponent(I,$):I.$options=mergeOptions(resolveConstructorOptions(I.constructor),$||{},I),I._renderProxy=I,I._self=I,initLifecycle(I),initEvents(I),initRender(I),callHook$1(I,"beforeCreate",void 0,!1),initInjections(I),initState(I),initProvide(I),callHook$1(I,"created"),I.$options.el&&I.$mount(I.$options.el)}}function initInternalComponent(M,$){var I=M.$options=Object.create(M.constructor.options),N=$._parentVnode;I.parent=$.parent,I._parentVnode=N;var B=N.componentOptions;I.propsData=B.propsData,I._parentListeners=B.listeners,I._renderChildren=B.children,I._componentTag=B.tag,$.render&&(I.render=$.render,I.staticRenderFns=$.staticRenderFns)}function resolveConstructorOptions(M){var $=M.options;if(M.super){var I=resolveConstructorOptions(M.super),N=M.superOptions;if(I!==N){M.superOptions=I;var B=resolveModifiedOptions(M);B&&extend$6(M.extendOptions,B),$=M.options=mergeOptions(I,M.extendOptions),$.name&&($.components[$.name]=M)}}return $}function resolveModifiedOptions(M){var $,I=M.options,N=M.sealedOptions;for(var B in I)I[B]!==N[B]&&($||($={}),$[B]=I[B]);return $}function FunctionalRenderContext(M,$,I,N,B){var j=this,U=B.options,q;hasOwn$4(N,"_uid")?(q=Object.create(N),q._original=N):(q=N,N=N._original);var Y=isTrue(U._compiled),K=!Y;this.data=M,this.props=$,this.children=I,this.parent=N,this.listeners=M.on||emptyObject,this.injections=resolveInject(U.inject,N),this.slots=function(){return j.$slots||normalizeScopedSlots(N,M.scopedSlots,j.$slots=resolveSlots(I,N)),j.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return normalizeScopedSlots(N,M.scopedSlots,this.slots())}}),Y&&(this.$options=U,this.$slots=this.slots(),this.$scopedSlots=normalizeScopedSlots(N,M.scopedSlots,this.$slots)),U._scopeId?this._c=function(G,J,Z,ee){var te=createElement$1(q,G,J,Z,ee,K);return te&&!isArray$9(te)&&(te.fnScopeId=U._scopeId,te.fnContext=N),te}:this._c=function(G,J,Z,ee){return createElement$1(q,G,J,Z,ee,K)}}installRenderHelpers(FunctionalRenderContext.prototype);function createFunctionalComponent(M,$,I,N,B){var j=M.options,U={},q=j.props;if(isDef(q))for(var Y in q)U[Y]=validateProp(Y,q,$||emptyObject);else isDef(I.attrs)&&mergeProps(U,I.attrs),isDef(I.props)&&mergeProps(U,I.props);var K=new FunctionalRenderContext(I,U,B,N,M),G=j.render.call(null,K._c,K);if(G instanceof VNode)return cloneAndMarkFunctionalResult(G,I,K.parent,j);if(isArray$9(G)){for(var J=normalizeChildren(G)||[],Z=new Array(J.length),ee=0;ee<J.length;ee++)Z[ee]=cloneAndMarkFunctionalResult(J[ee],I,K.parent,j);return Z}}function cloneAndMarkFunctionalResult(M,$,I,N,B){var j=cloneVNode(M);return j.fnContext=I,j.fnOptions=N,$.slot&&((j.data||(j.data={})).slot=$.slot),j}function mergeProps(M,$){for(var I in $)M[camelize(I)]=$[I]}function getComponentName(M){return M.name||M.__name||M._componentTag}var componentVNodeHooks={init:function(M,$){if(M.componentInstance&&!M.componentInstance._isDestroyed&&M.data.keepAlive){var I=M;componentVNodeHooks.prepatch(I,I)}else{var N=M.componentInstance=createComponentInstanceForVnode(M,activeInstance);N.$mount($?M.elm:void 0,$)}},prepatch:function(M,$){var I=$.componentOptions,N=$.componentInstance=M.componentInstance;updateChildComponent(N,I.propsData,I.listeners,$,I.children)},insert:function(M){var $=M.context,I=M.componentInstance;I._isMounted||(I._isMounted=!0,callHook$1(I,"mounted")),M.data.keepAlive&&($._isMounted?queueActivatedComponent(I):activateChildComponent(I,!0))},destroy:function(M){var $=M.componentInstance;$._isDestroyed||(M.data.keepAlive?deactivateChildComponent($,!0):$.$destroy())}},hooksToMerge=Object.keys(componentVNodeHooks);function createComponent(M,$,I,N,B){if(!isUndef(M)){var j=I.$options._base;if(isObject$6(M)&&(M=j.extend(M)),typeof M=="function"){var U;if(isUndef(M.cid)&&(U=M,M=resolveAsyncComponent(U,j),M===void 0))return createAsyncPlaceholder(U,$,I,N,B);$=$||{},resolveConstructorOptions(M),isDef($.model)&&transformModel(M.options,$);var q=extractPropsFromVNodeData($,M);if(isTrue(M.options.functional))return createFunctionalComponent(M,q,$,I,N);var Y=$.on;if($.on=$.nativeOn,isTrue(M.options.abstract)){var K=$.slot;$={},K&&($.slot=K)}installComponentHooks($);var G=getComponentName(M.options)||B,J=new VNode("vue-component-".concat(M.cid).concat(G?"-".concat(G):""),$,void 0,void 0,void 0,I,{Ctor:M,propsData:q,listeners:Y,tag:B,children:N},U);return J}}}function createComponentInstanceForVnode(M,$){var I={_isComponent:!0,_parentVnode:M,parent:$},N=M.data.inlineTemplate;return isDef(N)&&(I.render=N.render,I.staticRenderFns=N.staticRenderFns),new M.componentOptions.Ctor(I)}function installComponentHooks(M){for(var $=M.hook||(M.hook={}),I=0;I<hooksToMerge.length;I++){var N=hooksToMerge[I],B=$[N],j=componentVNodeHooks[N];B!==j&&!(B&&B._merged)&&($[N]=B?mergeHook(j,B):j)}}function mergeHook(M,$){var I=function(N,B){M(N,B),$(N,B)};return I._merged=!0,I}function transformModel(M,$){var I=M.model&&M.model.prop||"value",N=M.model&&M.model.event||"input";($.attrs||($.attrs={}))[I]=$.model.value;var B=$.on||($.on={}),j=B[N],U=$.model.callback;isDef(j)?(isArray$9(j)?j.indexOf(U)===-1:j!==U)&&(B[N]=[U].concat(j)):B[N]=U}var warn$2$1=noop$2,strats=config$1.optionMergeStrategies;function mergeData(M,$,I){if(I===void 0&&(I=!0),!$)return M;for(var N,B,j,U=hasSymbol?Reflect.ownKeys($):Object.keys($),q=0;q<U.length;q++)N=U[q],N!=="__ob__"&&(B=M[N],j=$[N],!I||!hasOwn$4(M,N)?set$3(M,N,j):B!==j&&isPlainObject$2(B)&&isPlainObject$2(j)&&mergeData(B,j));return M}function mergeDataOrFn(M,$,I){return I?function(){var B=isFunction$6($)?$.call(I,I):$,j=isFunction$6(M)?M.call(I,I):M;return B?mergeData(B,j):j}:$?M?function(){return mergeData(isFunction$6($)?$.call(this,this):$,isFunction$6(M)?M.call(this,this):M)}:$:M}strats.data=function(M,$,I){return I?mergeDataOrFn(M,$,I):$&&typeof $!="function"?M:mergeDataOrFn(M,$)};function mergeLifecycleHook(M,$){var I=$?M?M.concat($):isArray$9($)?$:[$]:M;return I&&dedupeHooks(I)}function dedupeHooks(M){for(var $=[],I=0;I<M.length;I++)$.indexOf(M[I])===-1&&$.push(M[I]);return $}LIFECYCLE_HOOKS.forEach(function(M){strats[M]=mergeLifecycleHook});function mergeAssets(M,$,I,N){var B=Object.create(M||null);return $?extend$6(B,$):B}ASSET_TYPES.forEach(function(M){strats[M+"s"]=mergeAssets});strats.watch=function(M,$,I,N){if(M===nativeWatch&&(M=void 0),$===nativeWatch&&($=void 0),!$)return Object.create(M||null);if(!M)return $;var B={};extend$6(B,M);for(var j in $){var U=B[j],q=$[j];U&&!isArray$9(U)&&(U=[U]),B[j]=U?U.concat(q):isArray$9(q)?q:[q]}return B};strats.props=strats.methods=strats.inject=strats.computed=function(M,$,I,N){if(!M)return $;var B=Object.create(null);return extend$6(B,M),$&&extend$6(B,$),B};strats.provide=function(M,$){return M?function(){var I=Object.create(null);return mergeData(I,isFunction$6(M)?M.call(this):M),$&&mergeData(I,isFunction$6($)?$.call(this):$,!1),I}:$};var defaultStrat=function(M,$){return $===void 0?M:$};function normalizeProps(M,$){var I=M.props;if(I){var N={},B,j,U;if(isArray$9(I))for(B=I.length;B--;)j=I[B],typeof j=="string"&&(U=camelize(j),N[U]={type:null});else if(isPlainObject$2(I))for(var q in I)j=I[q],U=camelize(q),N[U]=isPlainObject$2(j)?j:{type:j};M.props=N}}function normalizeInject(M,$){var I=M.inject;if(I){var N=M.inject={};if(isArray$9(I))for(var B=0;B<I.length;B++)N[I[B]]={from:I[B]};else if(isPlainObject$2(I))for(var j in I){var U=I[j];N[j]=isPlainObject$2(U)?extend$6({from:j},U):{from:U}}}}function normalizeDirectives$1(M){var $=M.directives;if($)for(var I in $){var N=$[I];isFunction$6(N)&&($[I]={bind:N,update:N})}}function assertObjectType(M,$,I){isPlainObject$2($)||warn$2$1('Invalid value for option "'.concat(M,'": expected an Object, ')+"but got ".concat(toRawType$1($),"."))}function mergeOptions(M,$,I){if(isFunction$6($)&&($=$.options),normalizeProps($),normalizeInject($),normalizeDirectives$1($),!$._base&&($.extends&&(M=mergeOptions(M,$.extends,I)),$.mixins))for(var N=0,B=$.mixins.length;N<B;N++)M=mergeOptions(M,$.mixins[N],I);var j={},U;for(U in M)q(U);for(U in $)hasOwn$4(M,U)||q(U);function q(Y){var K=strats[Y]||defaultStrat;j[Y]=K(M[Y],$[Y],I,Y)}return j}function resolveAsset(M,$,I,N){if(typeof I=="string"){var B=M[$];if(hasOwn$4(B,I))return B[I];var j=camelize(I);if(hasOwn$4(B,j))return B[j];var U=capitalize$1(j);if(hasOwn$4(B,U))return B[U];var q=B[I]||B[j]||B[U];return q}}function validateProp(M,$,I,N){var B=$[M],j=!hasOwn$4(I,M),U=I[M],q=getTypeIndex(Boolean,B.type);if(q>-1){if(j&&!hasOwn$4(B,"default"))U=!1;else if(U===""||U===hyphenate(M)){var Y=getTypeIndex(String,B.type);(Y<0||q<Y)&&(U=!0)}}if(U===void 0){U=getPropDefaultValue(N,B,M);var K=shouldObserve;toggleObserving(!0),observe(U),toggleObserving(K)}return U}function getPropDefaultValue(M,$,I){if(hasOwn$4($,"default")){var N=$.default;return M&&M.$options.propsData&&M.$options.propsData[I]===void 0&&M._props[I]!==void 0?M._props[I]:isFunction$6(N)&&getType$1($.type)!=="Function"?N.call(M):N}}var functionTypeCheckRE=/^\s*function (\w+)/;function getType$1(M){var $=M&&M.toString().match(functionTypeCheckRE);return $?$[1]:""}function isSameType(M,$){return getType$1(M)===getType$1($)}function getTypeIndex(M,$){if(!isArray$9($))return isSameType($,M)?0:-1;for(var I=0,N=$.length;I<N;I++)if(isSameType($[I],M))return I;return-1}function Vue$3(M){this._init(M)}initMixin$1(Vue$3);stateMixin(Vue$3);eventsMixin(Vue$3);lifecycleMixin(Vue$3);renderMixin(Vue$3);function initUse(M){M.use=function($){var I=this._installedPlugins||(this._installedPlugins=[]);if(I.indexOf($)>-1)return this;var N=toArray$3(arguments,1);return N.unshift(this),isFunction$6($.install)?$.install.apply($,N):isFunction$6($)&&$.apply(null,N),I.push($),this}}function initMixin(M){M.mixin=function($){return this.options=mergeOptions(this.options,$),this}}function initExtend(M){M.cid=0;var $=1;M.extend=function(I){I=I||{};var N=this,B=N.cid,j=I._Ctor||(I._Ctor={});if(j[B])return j[B];var U=getComponentName(I)||getComponentName(N.options),q=function(K){this._init(K)};return q.prototype=Object.create(N.prototype),q.prototype.constructor=q,q.cid=$++,q.options=mergeOptions(N.options,I),q.super=N,q.options.props&&initProps(q),q.options.computed&&initComputed(q),q.extend=N.extend,q.mixin=N.mixin,q.use=N.use,ASSET_TYPES.forEach(function(Y){q[Y]=N[Y]}),U&&(q.options.components[U]=q),q.superOptions=N.options,q.extendOptions=I,q.sealedOptions=extend$6({},q.options),j[B]=q,q}}function initProps(M){var $=M.options.props;for(var I in $)proxy(M.prototype,"_props",I)}function initComputed(M){var $=M.options.computed;for(var I in $)defineComputed(M.prototype,I,$[I])}function initAssetRegisters(M){ASSET_TYPES.forEach(function($){M[$]=function(I,N){return N?($==="component"&&isPlainObject$2(N)&&(N.name=N.name||I,N=this.options._base.extend(N)),$==="directive"&&isFunction$6(N)&&(N={bind:N,update:N}),this.options[$+"s"][I]=N,N):this.options[$+"s"][I]}})}function _getComponentName(M){return M&&(getComponentName(M.Ctor.options)||M.tag)}function matches$1(M,$){return isArray$9(M)?M.indexOf($)>-1:typeof M=="string"?M.split(",").indexOf($)>-1:isRegExp$5(M)?M.test($):!1}function pruneCache(M,$){var I=M.cache,N=M.keys,B=M._vnode;for(var j in I){var U=I[j];if(U){var q=U.name;q&&!$(q)&&pruneCacheEntry(I,j,N,B)}}}function pruneCacheEntry(M,$,I,N){var B=M[$];B&&(!N||B.tag!==N.tag)&&B.componentInstance.$destroy(),M[$]=null,remove$2(I,$)}var patternTypes=[String,RegExp,Array],KeepAlive={name:"keep-alive",abstract:!0,props:{include:patternTypes,exclude:patternTypes,max:[String,Number]},methods:{cacheVNode:function(){var M=this,$=M.cache,I=M.keys,N=M.vnodeToCache,B=M.keyToCache;if(N){var j=N.tag,U=N.componentInstance,q=N.componentOptions;$[B]={name:_getComponentName(q),tag:j,componentInstance:U},I.push(B),this.max&&I.length>parseInt(this.max)&&pruneCacheEntry($,I[0],I,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var M in this.cache)pruneCacheEntry(this.cache,M,this.keys)},mounted:function(){var M=this;this.cacheVNode(),this.$watch("include",function($){pruneCache(M,function(I){return matches$1($,I)})}),this.$watch("exclude",function($){pruneCache(M,function(I){return!matches$1($,I)})})},updated:function(){this.cacheVNode()},render:function(){var M=this.$slots.default,$=getFirstComponentChild(M),I=$&&$.componentOptions;if(I){var N=_getComponentName(I),B=this,j=B.include,U=B.exclude;if(j&&(!N||!matches$1(j,N))||U&&N&&matches$1(U,N))return $;var q=this,Y=q.cache,K=q.keys,G=$.key==null?I.Ctor.cid+(I.tag?"::".concat(I.tag):""):$.key;Y[G]?($.componentInstance=Y[G].componentInstance,remove$2(K,G),K.push(G)):(this.vnodeToCache=$,this.keyToCache=G),$.data.keepAlive=!0}return $||M&&M[0]}},builtInComponents={KeepAlive};function initGlobalAPI(M){var $={};$.get=function(){return config$1},Object.defineProperty(M,"config",$),M.util={warn:warn$2$1,extend:extend$6,mergeOptions,defineReactive},M.set=set$3,M.delete=del,M.nextTick=nextTick$1,M.observable=function(I){return observe(I),I},M.options=Object.create(null),ASSET_TYPES.forEach(function(I){M.options[I+"s"]=Object.create(null)}),M.options._base=M,extend$6(M.options.components,builtInComponents),initUse(M),initMixin(M),initExtend(M),initAssetRegisters(M)}initGlobalAPI(Vue$3);Object.defineProperty(Vue$3.prototype,"$isServer",{get:isServerRendering});Object.defineProperty(Vue$3.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(Vue$3,"FunctionalRenderContext",{value:FunctionalRenderContext});Vue$3.version=version$3;var isReservedAttr=makeMap$1("style,class"),acceptValue=makeMap$1("input,textarea,option,select,progress"),mustUseProp=function(M,$,I){return I==="value"&&acceptValue(M)&&$!=="button"||I==="selected"&&M==="option"||I==="checked"&&M==="input"||I==="muted"&&M==="video"},isEnumeratedAttr=makeMap$1("contenteditable,draggable,spellcheck"),isValidContentEditableValue=makeMap$1("events,caret,typing,plaintext-only"),convertEnumeratedValue=function(M,$){return isFalsyAttrValue($)||$==="false"?"false":M==="contenteditable"&&isValidContentEditableValue($)?$:"true"},isBooleanAttr$1=makeMap$1("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"),xlinkNS="http://www.w3.org/1999/xlink",isXlink=function(M){return M.charAt(5)===":"&&M.slice(0,5)==="xlink"},getXlinkProp=function(M){return isXlink(M)?M.slice(6,M.length):""},isFalsyAttrValue=function(M){return M==null||M===!1};function genClassForVnode(M){for(var $=M.data,I=M,N=M;isDef(N.componentInstance);)N=N.componentInstance._vnode,N&&N.data&&($=mergeClassData(N.data,$));for(;isDef(I=I.parent);)I&&I.data&&($=mergeClassData($,I.data));return renderClass($.staticClass,$.class)}function mergeClassData(M,$){return{staticClass:concat$3(M.staticClass,$.staticClass),class:isDef(M.class)?[M.class,$.class]:$.class}}function renderClass(M,$){return isDef(M)||isDef($)?concat$3(M,stringifyClass($)):""}function concat$3(M,$){return M?$?M+" "+$:M:$||""}function stringifyClass(M){return Array.isArray(M)?stringifyArray(M):isObject$6(M)?stringifyObject(M):typeof M=="string"?M:""}function stringifyArray(M){for(var $="",I,N=0,B=M.length;N<B;N++)isDef(I=stringifyClass(M[N]))&&I!==""&&($&&($+=" "),$+=I);return $}function stringifyObject(M){var $="";for(var I in M)M[I]&&($&&($+=" "),$+=I);return $}var namespaceMap={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},isHTMLTag=makeMap$1("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"),isSVG=makeMap$1("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),isPreTag=function(M){return M==="pre"},isReservedTag=function(M){return isHTMLTag(M)||isSVG(M)};function getTagNamespace(M){if(isSVG(M))return"svg";if(M==="math")return"math"}var unknownElementCache=Object.create(null);function isUnknownElement(M){if(!inBrowser)return!0;if(isReservedTag(M))return!1;if(M=M.toLowerCase(),unknownElementCache[M]!=null)return unknownElementCache[M];var $=document.createElement(M);return M.indexOf("-")>-1?unknownElementCache[M]=$.constructor===window.HTMLUnknownElement||$.constructor===window.HTMLElement:unknownElementCache[M]=/HTMLUnknownElement/.test($.toString())}var isTextInputType=makeMap$1("text,number,password,search,email,tel,url");function query(M){if(typeof M=="string"){var $=document.querySelector(M);return $||document.createElement("div")}else return M}function createElement(M,$){var I=document.createElement(M);return M!=="select"||$.data&&$.data.attrs&&$.data.attrs.multiple!==void 0&&I.setAttribute("multiple","multiple"),I}function createElementNS(M,$){return document.createElementNS(namespaceMap[M],$)}function createTextNode(M){return document.createTextNode(M)}function createComment(M){return document.createComment(M)}function insertBefore$1(M,$,I){M.insertBefore($,I)}function removeChild(M,$){M.removeChild($)}function appendChild(M,$){M.appendChild($)}function parentNode$1(M){return M.parentNode}function nextSibling(M){return M.nextSibling}function tagName(M){return M.tagName}function setTextContent(M,$){M.textContent=$}function setStyleScope(M,$){M.setAttribute($,"")}var nodeOps=Object.freeze({__proto__:null,createElement,createElementNS,createTextNode,createComment,insertBefore:insertBefore$1,removeChild,appendChild,parentNode:parentNode$1,nextSibling,tagName,setTextContent,setStyleScope}),ref={create:function(M,$){registerRef($)},update:function(M,$){M.data.ref!==$.data.ref&&(registerRef(M,!0),registerRef($))},destroy:function(M){registerRef(M,!0)}};function registerRef(M,$){var I=M.data.ref;if(isDef(I)){var N=M.context,B=M.componentInstance||M.elm,j=$?null:B,U=$?void 0:B;if(isFunction$6(I)){invokeWithErrorHandling(I,N,[j],N,"template ref function");return}var q=M.data.refInFor,Y=typeof I=="string"||typeof I=="number",K=isRef$1(I),G=N.$refs;if(Y||K){if(q){var J=Y?G[I]:I.value;$?isArray$9(J)&&remove$2(J,B):isArray$9(J)?J.includes(B)||J.push(B):Y?(G[I]=[B],setSetupRef(N,I,G[I])):I.value=[B]}else if(Y){if($&&G[I]!==B)return;G[I]=U,setSetupRef(N,I,j)}else if(K){if($&&I.value!==B)return;I.value=j}}}}function setSetupRef(M,$,I){var N=M._setupState;N&&hasOwn$4(N,$)&&(isRef$1(N[$])?N[$].value=I:N[$]=I)}var emptyNode=new VNode("",{},[]),hooks$2=["create","activate","update","remove","destroy"];function sameVnode(M,$){return M.key===$.key&&M.asyncFactory===$.asyncFactory&&(M.tag===$.tag&&M.isComment===$.isComment&&isDef(M.data)===isDef($.data)&&sameInputType(M,$)||isTrue(M.isAsyncPlaceholder)&&isUndef($.asyncFactory.error))}function sameInputType(M,$){if(M.tag!=="input")return!0;var I,N=isDef(I=M.data)&&isDef(I=I.attrs)&&I.type,B=isDef(I=$.data)&&isDef(I=I.attrs)&&I.type;return N===B||isTextInputType(N)&&isTextInputType(B)}function createKeyToOldIdx(M,$,I){var N,B,j={};for(N=$;N<=I;++N)B=M[N].key,isDef(B)&&(j[B]=N);return j}function createPatchFunction(M){var $,I,N={},B=M.modules,j=M.nodeOps;for($=0;$<hooks$2.length;++$)for(N[hooks$2[$]]=[],I=0;I<B.length;++I)isDef(B[I][hooks$2[$]])&&N[hooks$2[$]].push(B[I][hooks$2[$]]);function U(be){return new VNode(j.tagName(be).toLowerCase(),{},[],void 0,be)}function q(be,we){function Ae(){--Ae.listeners===0&&Y(be)}return Ae.listeners=we,Ae}function Y(be){var we=j.parentNode(be);isDef(we)&&j.removeChild(we,be)}function K(be,we,Ae,ke,Oe,Me,ze){if(isDef(be.elm)&&isDef(Me)&&(be=Me[ze]=cloneVNode(be)),be.isRootInsert=!Oe,!G(be,we,Ae,ke)){var Fe=be.data,Ze=be.children,lt=be.tag;isDef(lt)?(be.elm=be.ns?j.createElementNS(be.ns,lt):j.createElement(lt,be),ne(be),te(be,Ze,we),isDef(Fe)&&se(be,we),ee(Ae,be.elm,ke)):isTrue(be.isComment)?(be.elm=j.createComment(be.text),ee(Ae,be.elm,ke)):(be.elm=j.createTextNode(be.text),ee(Ae,be.elm,ke))}}function G(be,we,Ae,ke){var Oe=be.data;if(isDef(Oe)){var Me=isDef(be.componentInstance)&&Oe.keepAlive;if(isDef(Oe=Oe.hook)&&isDef(Oe=Oe.init)&&Oe(be,!1),isDef(be.componentInstance))return J(be,we),ee(Ae,be.elm,ke),isTrue(Me)&&Z(be,we,Ae,ke),!0}}function J(be,we){isDef(be.data.pendingInsert)&&(we.push.apply(we,be.data.pendingInsert),be.data.pendingInsert=null),be.elm=be.componentInstance.$el,re(be)?(se(be,we),ne(be)):(registerRef(be),we.push(be))}function Z(be,we,Ae,ke){for(var Oe,Me=be;Me.componentInstance;)if(Me=Me.componentInstance._vnode,isDef(Oe=Me.data)&&isDef(Oe=Oe.transition)){for(Oe=0;Oe<N.activate.length;++Oe)N.activate[Oe](emptyNode,Me);we.push(Me);break}ee(Ae,be.elm,ke)}function ee(be,we,Ae){isDef(be)&&(isDef(Ae)?j.parentNode(Ae)===be&&j.insertBefore(be,we,Ae):j.appendChild(be,we))}function te(be,we,Ae){if(isArray$9(we))for(var ke=0;ke<we.length;++ke)K(we[ke],Ae,be.elm,null,!0,we,ke);else isPrimitive(be.text)&&j.appendChild(be.elm,j.createTextNode(String(be.text)))}function re(be){for(;be.componentInstance;)be=be.componentInstance._vnode;return isDef(be.tag)}function se(be,we){for(var Ae=0;Ae<N.create.length;++Ae)N.create[Ae](emptyNode,be);$=be.data.hook,isDef($)&&(isDef($.create)&&$.create(emptyNode,be),isDef($.insert)&&we.push(be))}function ne(be){var we;if(isDef(we=be.fnScopeId))j.setStyleScope(be.elm,we);else for(var Ae=be;Ae;)isDef(we=Ae.context)&&isDef(we=we.$options._scopeId)&&j.setStyleScope(be.elm,we),Ae=Ae.parent;isDef(we=activeInstance)&&we!==be.context&&we!==be.fnContext&&isDef(we=we.$options._scopeId)&&j.setStyleScope(be.elm,we)}function le(be,we,Ae,ke,Oe,Me){for(;ke<=Oe;++ke)K(Ae[ke],Me,be,we,!1,Ae,ke)}function ge(be){var we,Ae,ke=be.data;if(isDef(ke))for(isDef(we=ke.hook)&&isDef(we=we.destroy)&&we(be),we=0;we<N.destroy.length;++we)N.destroy[we](be);if(isDef(we=be.children))for(Ae=0;Ae<be.children.length;++Ae)ge(be.children[Ae])}function ue(be,we,Ae){for(;we<=Ae;++we){var ke=be[we];isDef(ke)&&(isDef(ke.tag)?(_e(ke),ge(ke)):Y(ke.elm))}}function _e(be,we){if(isDef(we)||isDef(be.data)){var Ae,ke=N.remove.length+1;for(isDef(we)?we.listeners+=ke:we=q(be.elm,ke),isDef(Ae=be.componentInstance)&&isDef(Ae=Ae._vnode)&&isDef(Ae.data)&&_e(Ae,we),Ae=0;Ae<N.remove.length;++Ae)N.remove[Ae](be,we);isDef(Ae=be.data.hook)&&isDef(Ae=Ae.remove)?Ae(be,we):we()}else Y(be.elm)}function fe(be,we,Ae,ke,Oe){for(var Me=0,ze=0,Fe=we.length-1,Ze=we[0],lt=we[Fe],qe=Ae.length-1,Ve=Ae[0],At=Ae[qe],Nt,zt,Ht,qt,Qt=!Oe;Me<=Fe&&ze<=qe;)isUndef(Ze)?Ze=we[++Me]:isUndef(lt)?lt=we[--Fe]:sameVnode(Ze,Ve)?(ve(Ze,Ve,ke,Ae,ze),Ze=we[++Me],Ve=Ae[++ze]):sameVnode(lt,At)?(ve(lt,At,ke,Ae,qe),lt=we[--Fe],At=Ae[--qe]):sameVnode(Ze,At)?(ve(Ze,At,ke,Ae,qe),Qt&&j.insertBefore(be,Ze.elm,j.nextSibling(lt.elm)),Ze=we[++Me],At=Ae[--qe]):sameVnode(lt,Ve)?(ve(lt,Ve,ke,Ae,ze),Qt&&j.insertBefore(be,lt.elm,Ze.elm),lt=we[--Fe],Ve=Ae[++ze]):(isUndef(Nt)&&(Nt=createKeyToOldIdx(we,Me,Fe)),zt=isDef(Ve.key)?Nt[Ve.key]:me(Ve,we,Me,Fe),isUndef(zt)?K(Ve,ke,be,Ze.elm,!1,Ae,ze):(Ht=we[zt],sameVnode(Ht,Ve)?(ve(Ht,Ve,ke,Ae,ze),we[zt]=void 0,Qt&&j.insertBefore(be,Ht.elm,Ze.elm)):K(Ve,ke,be,Ze.elm,!1,Ae,ze)),Ve=Ae[++ze]);Me>Fe?(qt=isUndef(Ae[qe+1])?null:Ae[qe+1].elm,le(be,qt,Ae,ze,qe,ke)):ze>qe&&ue(we,Me,Fe)}function me(be,we,Ae,ke){for(var Oe=Ae;Oe<ke;Oe++){var Me=we[Oe];if(isDef(Me)&&sameVnode(be,Me))return Oe}}function ve(be,we,Ae,ke,Oe,Me){if(be!==we){isDef(we.elm)&&isDef(ke)&&(we=ke[Oe]=cloneVNode(we));var ze=we.elm=be.elm;if(isTrue(be.isAsyncPlaceholder)){isDef(we.asyncFactory.resolved)?ye(be.elm,we,Ae):we.isAsyncPlaceholder=!0;return}if(isTrue(we.isStatic)&&isTrue(be.isStatic)&&we.key===be.key&&(isTrue(we.isCloned)||isTrue(we.isOnce))){we.componentInstance=be.componentInstance;return}var Fe,Ze=we.data;isDef(Ze)&&isDef(Fe=Ze.hook)&&isDef(Fe=Fe.prepatch)&&Fe(be,we);var lt=be.children,qe=we.children;if(isDef(Ze)&&re(we)){for(Fe=0;Fe<N.update.length;++Fe)N.update[Fe](be,we);isDef(Fe=Ze.hook)&&isDef(Fe=Fe.update)&&Fe(be,we)}isUndef(we.text)?isDef(lt)&&isDef(qe)?lt!==qe&&fe(ze,lt,qe,Ae,Me):isDef(qe)?(isDef(be.text)&&j.setTextContent(ze,""),le(ze,null,qe,0,qe.length-1,Ae)):isDef(lt)?ue(lt,0,lt.length-1):isDef(be.text)&&j.setTextContent(ze,""):be.text!==we.text&&j.setTextContent(ze,we.text),isDef(Ze)&&isDef(Fe=Ze.hook)&&isDef(Fe=Fe.postpatch)&&Fe(be,we)}}function xe(be,we,Ae){if(isTrue(Ae)&&isDef(be.parent))be.parent.data.pendingInsert=we;else for(var ke=0;ke<we.length;++ke)we[ke].data.hook.insert(we[ke])}var oe=makeMap$1("attrs,class,staticClass,staticStyle,key");function ye(be,we,Ae,ke){var Oe,Me=we.tag,ze=we.data,Fe=we.children;if(ke=ke||ze&&ze.pre,we.elm=be,isTrue(we.isComment)&&isDef(we.asyncFactory))return we.isAsyncPlaceholder=!0,!0;if(isDef(ze)&&(isDef(Oe=ze.hook)&&isDef(Oe=Oe.init)&&Oe(we,!0),isDef(Oe=we.componentInstance)))return J(we,Ae),!0;if(isDef(Me)){if(isDef(Fe))if(!be.hasChildNodes())te(we,Fe,Ae);else if(isDef(Oe=ze)&&isDef(Oe=Oe.domProps)&&isDef(Oe=Oe.innerHTML)){if(Oe!==be.innerHTML)return!1}else{for(var Ze=!0,lt=be.firstChild,qe=0;qe<Fe.length;qe++){if(!lt||!ye(lt,Fe[qe],Ae,ke)){Ze=!1;break}lt=lt.nextSibling}if(!Ze||lt)return!1}if(isDef(ze)){var Ve=!1;for(var At in ze)if(!oe(At)){Ve=!0,se(we,Ae);break}!Ve&&ze.class&&traverse(ze.class)}}else be.data!==we.text&&(be.data=we.text);return!0}return function(we,Ae,ke,Oe){if(isUndef(Ae)){isDef(we)&&ge(we);return}var Me=!1,ze=[];if(isUndef(we))Me=!0,K(Ae,ze);else{var Fe=isDef(we.nodeType);if(!Fe&&sameVnode(we,Ae))ve(we,Ae,ze,null,null,Oe);else{if(Fe){if(we.nodeType===1&&we.hasAttribute(SSR_ATTR)&&(we.removeAttribute(SSR_ATTR),ke=!0),isTrue(ke)&&ye(we,Ae,ze))return xe(Ae,ze,!0),we;we=U(we)}var Ze=we.elm,lt=j.parentNode(Ze);if(K(Ae,ze,Ze._leaveCb?null:lt,j.nextSibling(Ze)),isDef(Ae.parent))for(var qe=Ae.parent,Ve=re(Ae);qe;){for(var At=0;At<N.destroy.length;++At)N.destroy[At](qe);if(qe.elm=Ae.elm,Ve){for(var Nt=0;Nt<N.create.length;++Nt)N.create[Nt](emptyNode,qe);var zt=qe.data.hook.insert;if(zt.merged)for(var Ht=1;Ht<zt.fns.length;Ht++)zt.fns[Ht]()}else registerRef(qe);qe=qe.parent}isDef(lt)?ue([we],0,0):isDef(we.tag)&&ge(we)}}return xe(Ae,ze,Me),Ae.elm}}var directives$1$1={create:updateDirectives,update:updateDirectives,destroy:function($){updateDirectives($,emptyNode)}};function updateDirectives(M,$){(M.data.directives||$.data.directives)&&_update(M,$)}function _update(M,$){var I=M===emptyNode,N=$===emptyNode,B=normalizeDirectives(M.data.directives,M.context),j=normalizeDirectives($.data.directives,$.context),U=[],q=[],Y,K,G;for(Y in j)K=B[Y],G=j[Y],K?(G.oldValue=K.value,G.oldArg=K.arg,callHook(G,"update",$,M),G.def&&G.def.componentUpdated&&q.push(G)):(callHook(G,"bind",$,M),G.def&&G.def.inserted&&U.push(G));if(U.length){var J=function(){for(var Z=0;Z<U.length;Z++)callHook(U[Z],"inserted",$,M)};I?mergeVNodeHook($,"insert",J):J()}if(q.length&&mergeVNodeHook($,"postpatch",function(){for(var Z=0;Z<q.length;Z++)callHook(q[Z],"componentUpdated",$,M)}),!I)for(Y in B)j[Y]||callHook(B[Y],"unbind",M,M,N)}var emptyModifiers=Object.create(null);function normalizeDirectives(M,$){var I=Object.create(null);if(!M)return I;var N,B;for(N=0;N<M.length;N++){if(B=M[N],B.modifiers||(B.modifiers=emptyModifiers),I[getRawDirName(B)]=B,$._setupState&&$._setupState.__sfc){var j=B.def||resolveAsset($,"_setupState","v-"+B.name);typeof j=="function"?B.def={bind:j,update:j}:B.def=j}B.def=B.def||resolveAsset($.$options,"directives",B.name)}return I}function getRawDirName(M){return M.rawName||"".concat(M.name,".").concat(Object.keys(M.modifiers||{}).join("."))}function callHook(M,$,I,N,B){var j=M.def&&M.def[$];if(j)try{j(I.elm,M,I,N,B)}catch(U){handleError$1(U,I.context,"directive ".concat(M.name," ").concat($," hook"))}}var baseModules=[ref,directives$1$1];function updateAttrs(M,$){var I=$.componentOptions;if(!(isDef(I)&&I.Ctor.options.inheritAttrs===!1)&&!(isUndef(M.data.attrs)&&isUndef($.data.attrs))){var N,B,j,U=$.elm,q=M.data.attrs||{},Y=$.data.attrs||{};(isDef(Y.__ob__)||isTrue(Y._v_attr_proxy))&&(Y=$.data.attrs=extend$6({},Y));for(N in Y)B=Y[N],j=q[N],j!==B&&setAttr(U,N,B,$.data.pre);(isIE$1||isEdge)&&Y.value!==q.value&&setAttr(U,"value",Y.value);for(N in q)isUndef(Y[N])&&(isXlink(N)?U.removeAttributeNS(xlinkNS,getXlinkProp(N)):isEnumeratedAttr(N)||U.removeAttribute(N))}}function setAttr(M,$,I,N){N||M.tagName.indexOf("-")>-1?baseSetAttr(M,$,I):isBooleanAttr$1($)?isFalsyAttrValue(I)?M.removeAttribute($):(I=$==="allowfullscreen"&&M.tagName==="EMBED"?"true":$,M.setAttribute($,I)):isEnumeratedAttr($)?M.setAttribute($,convertEnumeratedValue($,I)):isXlink($)?isFalsyAttrValue(I)?M.removeAttributeNS(xlinkNS,getXlinkProp($)):M.setAttributeNS(xlinkNS,$,I):baseSetAttr(M,$,I)}function baseSetAttr(M,$,I){if(isFalsyAttrValue(I))M.removeAttribute($);else{if(isIE$1&&!isIE9&&M.tagName==="TEXTAREA"&&$==="placeholder"&&I!==""&&!M.__ieph){var N=function(B){B.stopImmediatePropagation(),M.removeEventListener("input",N)};M.addEventListener("input",N),M.__ieph=!0}M.setAttribute($,I)}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(M,$){var I=$.elm,N=$.data,B=M.data;if(!(isUndef(N.staticClass)&&isUndef(N.class)&&(isUndef(B)||isUndef(B.staticClass)&&isUndef(B.class)))){var j=genClassForVnode($),U=I._transitionClasses;isDef(U)&&(j=concat$3(j,stringifyClass(U))),j!==I._prevClass&&(I.setAttribute("class",j),I._prevClass=j)}}var klass$1={create:updateClass,update:updateClass},validDivisionCharRE=/[\w).+\-_$\]]/;function parseFilters(M){var $=!1,I=!1,N=!1,B=!1,j=0,U=0,q=0,Y=0,K,G,J,Z,ee;for(J=0;J<M.length;J++)if(G=K,K=M.charCodeAt(J),$)K===39&&G!==92&&($=!1);else if(I)K===34&&G!==92&&(I=!1);else if(N)K===96&&G!==92&&(N=!1);else if(B)K===47&&G!==92&&(B=!1);else if(K===124&&M.charCodeAt(J+1)!==124&&M.charCodeAt(J-1)!==124&&!j&&!U&&!q)Z===void 0?(Y=J+1,Z=M.slice(0,J).trim()):se();else{switch(K){case 34:I=!0;break;case 39:$=!0;break;case 96:N=!0;break;case 40:q++;break;case 41:q--;break;case 91:U++;break;case 93:U--;break;case 123:j++;break;case 125:j--;break}if(K===47){for(var te=J-1,re=void 0;te>=0&&(re=M.charAt(te),re===" ");te--);(!re||!validDivisionCharRE.test(re))&&(B=!0)}}Z===void 0?Z=M.slice(0,J).trim():Y!==0&&se();function se(){(ee||(ee=[])).push(M.slice(Y,J).trim()),Y=J+1}if(ee)for(J=0;J<ee.length;J++)Z=wrapFilter(Z,ee[J]);return Z}function wrapFilter(M,$){var I=$.indexOf("(");if(I<0)return'_f("'.concat($,'")(').concat(M,")");var N=$.slice(0,I),B=$.slice(I+1);return'_f("'.concat(N,'")(').concat(M).concat(B!==")"?","+B:B)}function baseWarn(M,$){console.error("[Vue compiler]: ".concat(M))}function pluckModuleFunction(M,$){return M?M.map(function(I){return I[$]}).filter(function(I){return I}):[]}function addProp(M,$,I,N,B){(M.props||(M.props=[])).push(rangeSetItem({name:$,value:I,dynamic:B},N)),M.plain=!1}function addAttr(M,$,I,N,B){var j=B?M.dynamicAttrs||(M.dynamicAttrs=[]):M.attrs||(M.attrs=[]);j.push(rangeSetItem({name:$,value:I,dynamic:B},N)),M.plain=!1}function addRawAttr(M,$,I,N){M.attrsMap[$]=I,M.attrsList.push(rangeSetItem({name:$,value:I},N))}function addDirective(M,$,I,N,B,j,U,q){(M.directives||(M.directives=[])).push(rangeSetItem({name:$,rawName:I,value:N,arg:B,isDynamicArg:j,modifiers:U},q)),M.plain=!1}function prependModifierMarker(M,$,I){return I?"_p(".concat($,',"').concat(M,'")'):M+$}function addHandler(M,$,I,N,B,j,U,q){N=N||emptyObject,N.right?q?$="(".concat($,")==='click'?'contextmenu':(").concat($,")"):$==="click"&&($="contextmenu",delete N.right):N.middle&&(q?$="(".concat($,")==='click'?'mouseup':(").concat($,")"):$==="click"&&($="mouseup")),N.capture&&(delete N.capture,$=prependModifierMarker("!",$,q)),N.once&&(delete N.once,$=prependModifierMarker("~",$,q)),N.passive&&(delete N.passive,$=prependModifierMarker("&",$,q));var Y;N.native?(delete N.native,Y=M.nativeEvents||(M.nativeEvents={})):Y=M.events||(M.events={});var K=rangeSetItem({value:I.trim(),dynamic:q},U);N!==emptyObject&&(K.modifiers=N);var G=Y[$];Array.isArray(G)?B?G.unshift(K):G.push(K):G?Y[$]=B?[K,G]:[G,K]:Y[$]=K,M.plain=!1}function getRawBindingAttr(M,$){return M.rawAttrsMap[":"+$]||M.rawAttrsMap["v-bind:"+$]||M.rawAttrsMap[$]}function getBindingAttr(M,$,I){var N=getAndRemoveAttr(M,":"+$)||getAndRemoveAttr(M,"v-bind:"+$);if(N!=null)return parseFilters(N);if(I!==!1){var B=getAndRemoveAttr(M,$);if(B!=null)return JSON.stringify(B)}}function getAndRemoveAttr(M,$,I){var N;if((N=M.attrsMap[$])!=null){for(var B=M.attrsList,j=0,U=B.length;j<U;j++)if(B[j].name===$){B.splice(j,1);break}}return I&&delete M.attrsMap[$],N}function getAndRemoveAttrByRegex(M,$){for(var I=M.attrsList,N=0,B=I.length;N<B;N++){var j=I[N];if($.test(j.name))return I.splice(N,1),j}}function rangeSetItem(M,$){return $&&($.start!=null&&(M.start=$.start),$.end!=null&&(M.end=$.end)),M}function genComponentModel(M,$,I){var N=I||{},B=N.number,j=N.trim,U="$$v",q=U;j&&(q="(typeof ".concat(U," === 'string'")+"? ".concat(U,".trim()")+": ".concat(U,")")),B&&(q="_n(".concat(q,")"));var Y=genAssignmentCode($,q);M.model={value:"(".concat($,")"),expression:JSON.stringify($),callback:"function (".concat(U,") {").concat(Y,"}")}}function genAssignmentCode(M,$){var I=parseModel(M);return I.key===null?"".concat(M,"=").concat($):"$set(".concat(I.exp,", ").concat(I.key,", ").concat($,")")}var len,str,chr,index$2,expressionPos,expressionEndPos;function parseModel(M){if(M=M.trim(),len=M.length,M.indexOf("[")<0||M.lastIndexOf("]")<len-1)return index$2=M.lastIndexOf("."),index$2>-1?{exp:M.slice(0,index$2),key:'"'+M.slice(index$2+1)+'"'}:{exp:M,key:null};for(str=M,index$2=expressionPos=expressionEndPos=0;!eof();)chr=next(),isStringStart(chr)?parseString(chr):chr===91&&parseBracket(chr);return{exp:M.slice(0,expressionPos),key:M.slice(expressionPos+1,expressionEndPos)}}function next(){return str.charCodeAt(++index$2)}function eof(){return index$2>=len}function isStringStart(M){return M===34||M===39}function parseBracket(M){var $=1;for(expressionPos=index$2;!eof();){if(M=next(),isStringStart(M)){parseString(M);continue}if(M===91&&$++,M===93&&$--,$===0){expressionEndPos=index$2;break}}}function parseString(M){for(var $=M;!eof()&&(M=next(),M!==$););}var RANGE_TOKEN="__r",CHECKBOX_RADIO_TOKEN="__c";function model$1(M,$,I){var N=$.value,B=$.modifiers,j=M.tag,U=M.attrsMap.type;if(M.component)return genComponentModel(M,N,B),!1;if(j==="select")genSelect(M,N,B);else if(j==="input"&&U==="checkbox")genCheckboxModel(M,N,B);else if(j==="input"&&U==="radio")genRadioModel(M,N,B);else if(j==="input"||j==="textarea")genDefaultModel(M,N,B);else if(!config$1.isReservedTag(j))return genComponentModel(M,N,B),!1;return!0}function genCheckboxModel(M,$,I){var N=I&&I.number,B=getBindingAttr(M,"value")||"null",j=getBindingAttr(M,"true-value")||"true",U=getBindingAttr(M,"false-value")||"false";addProp(M,"checked","Array.isArray(".concat($,")")+"?_i(".concat($,",").concat(B,")>-1")+(j==="true"?":(".concat($,")"):":_q(".concat($,",").concat(j,")"))),addHandler(M,"change","var $$a=".concat($,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(j,"):(").concat(U,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(N?"_n("+B+")":B,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(genAssignmentCode($,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(genAssignmentCode($,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(genAssignmentCode($,"$$c"),"}"),null,!0)}function genRadioModel(M,$,I){var N=I&&I.number,B=getBindingAttr(M,"value")||"null";B=N?"_n(".concat(B,")"):B,addProp(M,"checked","_q(".concat($,",").concat(B,")")),addHandler(M,"change",genAssignmentCode($,B),null,!0)}function genSelect(M,$,I){var N=I&&I.number,B='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(N?"_n(val)":"val","})"),j="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",U="var $$selectedVal = ".concat(B,";");U="".concat(U," ").concat(genAssignmentCode($,j)),addHandler(M,"change",U,null,!0)}function genDefaultModel(M,$,I){var N=M.attrsMap.type,B=I||{},j=B.lazy,U=B.number,q=B.trim,Y=!j&&N!=="range",K=j?"change":N==="range"?RANGE_TOKEN:"input",G="$event.target.value";q&&(G="$event.target.value.trim()"),U&&(G="_n(".concat(G,")"));var J=genAssignmentCode($,G);Y&&(J="if($event.target.composing)return;".concat(J)),addProp(M,"value","(".concat($,")")),addHandler(M,K,J,null,!0),(q||U)&&addHandler(M,"blur","$forceUpdate()")}function normalizeEvents(M){if(isDef(M[RANGE_TOKEN])){var $=isIE$1?"change":"input";M[$]=[].concat(M[RANGE_TOKEN],M[$]||[]),delete M[RANGE_TOKEN]}isDef(M[CHECKBOX_RADIO_TOKEN])&&(M.change=[].concat(M[CHECKBOX_RADIO_TOKEN],M.change||[]),delete M[CHECKBOX_RADIO_TOKEN])}var target$2;function createOnceHandler(M,$,I){var N=target$2;return function B(){var j=$.apply(null,arguments);j!==null&&remove(M,B,I,N)}}var useMicrotaskFix=isUsingMicroTask&&!(isFF&&Number(isFF[1])<=53);function add$3(M,$,I,N){if(useMicrotaskFix){var B=currentFlushTimestamp,j=$;$=j._wrapper=function(U){if(U.target===U.currentTarget||U.timeStamp>=B||U.timeStamp<=0||U.target.ownerDocument!==document)return j.apply(this,arguments)}}target$2.addEventListener(M,$,supportsPassive$1?{capture:I,passive:N}:I)}function remove(M,$,I,N){(N||target$2).removeEventListener(M,$._wrapper||$,I)}function updateDOMListeners(M,$){if(!(isUndef(M.data.on)&&isUndef($.data.on))){var I=$.data.on||{},N=M.data.on||{};target$2=$.elm||M.elm,normalizeEvents(I),updateListeners(I,N,add$3,remove,createOnceHandler,$.context),target$2=void 0}}var events={create:updateDOMListeners,update:updateDOMListeners,destroy:function(M){return updateDOMListeners(M,emptyNode)}},svgContainer;function updateDOMProps(M,$){if(!(isUndef(M.data.domProps)&&isUndef($.data.domProps))){var I,N,B=$.elm,j=M.data.domProps||{},U=$.data.domProps||{};(isDef(U.__ob__)||isTrue(U._v_attr_proxy))&&(U=$.data.domProps=extend$6({},U));for(I in j)I in U||(B[I]="");for(I in U){if(N=U[I],I==="textContent"||I==="innerHTML"){if($.children&&($.children.length=0),N===j[I])continue;B.childNodes.length===1&&B.removeChild(B.childNodes[0])}if(I==="value"&&B.tagName!=="PROGRESS"){B._value=N;var q=isUndef(N)?"":String(N);shouldUpdateValue(B,q)&&(B.value=q)}else if(I==="innerHTML"&&isSVG(B.tagName)&&isUndef(B.innerHTML)){svgContainer=svgContainer||document.createElement("div"),svgContainer.innerHTML="<svg>".concat(N,"</svg>");for(var Y=svgContainer.firstChild;B.firstChild;)B.removeChild(B.firstChild);for(;Y.firstChild;)B.appendChild(Y.firstChild)}else if(N!==j[I])try{B[I]=N}catch{}}}}function shouldUpdateValue(M,$){return!M.composing&&(M.tagName==="OPTION"||isNotInFocusAndDirty(M,$)||isDirtyWithModifiers(M,$))}function isNotInFocusAndDirty(M,$){var I=!0;try{I=document.activeElement!==M}catch{}return I&&M.value!==$}function isDirtyWithModifiers(M,$){var I=M.value,N=M._vModifiers;if(isDef(N)){if(N.number)return toNumber(I)!==toNumber($);if(N.trim)return I.trim()!==$.trim()}return I!==$}var domProps={create:updateDOMProps,update:updateDOMProps},parseStyleText=cached(function(M){var $={},I=/;(?![^(]*\))/g,N=/:(.+)/;return M.split(I).forEach(function(B){if(B){var j=B.split(N);j.length>1&&($[j[0].trim()]=j[1].trim())}}),$});function normalizeStyleData(M){var $=normalizeStyleBinding(M.style);return M.staticStyle?extend$6(M.staticStyle,$):$}function normalizeStyleBinding(M){return Array.isArray(M)?toObject$1(M):typeof M=="string"?parseStyleText(M):M}function getStyle(M,$){var I={},N;if($)for(var B=M;B.componentInstance;)B=B.componentInstance._vnode,B&&B.data&&(N=normalizeStyleData(B.data))&&extend$6(I,N);(N=normalizeStyleData(M.data))&&extend$6(I,N);for(var j=M;j=j.parent;)j.data&&(N=normalizeStyleData(j.data))&&extend$6(I,N);return I}var cssVarRE=/^--/,importantRE=/\s*!important$/,setProp=function(M,$,I){if(cssVarRE.test($))M.style.setProperty($,I);else if(importantRE.test(I))M.style.setProperty(hyphenate($),I.replace(importantRE,""),"important");else{var N=normalize$1($);if(Array.isArray(I))for(var B=0,j=I.length;B<j;B++)M.style[N]=I[B];else M.style[N]=I}},vendorNames=["Webkit","Moz","ms"],emptyStyle,normalize$1=cached(function(M){if(emptyStyle=emptyStyle||document.createElement("div").style,M=camelize(M),M!=="filter"&&M in emptyStyle)return M;for(var $=M.charAt(0).toUpperCase()+M.slice(1),I=0;I<vendorNames.length;I++){var N=vendorNames[I]+$;if(N in emptyStyle)return N}});function updateStyle(M,$){var I=$.data,N=M.data;if(!(isUndef(I.staticStyle)&&isUndef(I.style)&&isUndef(N.staticStyle)&&isUndef(N.style))){var B,j,U=$.elm,q=N.staticStyle,Y=N.normalizedStyle||N.style||{},K=q||Y,G=normalizeStyleBinding($.data.style)||{};$.data.normalizedStyle=isDef(G.__ob__)?extend$6({},G):G;var J=getStyle($,!0);for(j in K)isUndef(J[j])&&setProp(U,j,"");for(j in J)B=J[j],B!==K[j]&&setProp(U,j,B??"")}}var style$1$1={create:updateStyle,update:updateStyle},whitespaceRE$1=/\s+/;function addClass(M,$){if(!(!$||!($=$.trim())))if(M.classList)$.indexOf(" ")>-1?$.split(whitespaceRE$1).forEach(function(N){return M.classList.add(N)}):M.classList.add($);else{var I=" ".concat(M.getAttribute("class")||""," ");I.indexOf(" "+$+" ")<0&&M.setAttribute("class",(I+$).trim())}}function removeClass(M,$){if(!(!$||!($=$.trim())))if(M.classList)$.indexOf(" ")>-1?$.split(whitespaceRE$1).forEach(function(B){return M.classList.remove(B)}):M.classList.remove($),M.classList.length||M.removeAttribute("class");else{for(var I=" ".concat(M.getAttribute("class")||""," "),N=" "+$+" ";I.indexOf(N)>=0;)I=I.replace(N," ");I=I.trim(),I?M.setAttribute("class",I):M.removeAttribute("class")}}function resolveTransition(M){if(M){if(typeof M=="object"){var $={};return M.css!==!1&&extend$6($,autoCssTransition(M.name||"v")),extend$6($,M),$}else if(typeof M=="string")return autoCssTransition(M)}}var autoCssTransition=cached(function(M){return{enterClass:"".concat(M,"-enter"),enterToClass:"".concat(M,"-enter-to"),enterActiveClass:"".concat(M,"-enter-active"),leaveClass:"".concat(M,"-leave"),leaveToClass:"".concat(M,"-leave-to"),leaveActiveClass:"".concat(M,"-leave-active")}}),hasTransition=inBrowser&&!isIE9,TRANSITION="transition",ANIMATION="animation",transitionProp="transition",transitionEndEvent="transitionend",animationProp="animation",animationEndEvent="animationend";hasTransition&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(transitionProp="WebkitTransition",transitionEndEvent="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(animationProp="WebkitAnimation",animationEndEvent="webkitAnimationEnd"));var raf=inBrowser?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(M){return M()};function nextFrame$1(M){raf(function(){raf(M)})}function addTransitionClass(M,$){var I=M._transitionClasses||(M._transitionClasses=[]);I.indexOf($)<0&&(I.push($),addClass(M,$))}function removeTransitionClass(M,$){M._transitionClasses&&remove$2(M._transitionClasses,$),removeClass(M,$)}function whenTransitionEnds(M,$,I){var N=getTransitionInfo(M,$),B=N.type,j=N.timeout,U=N.propCount;if(!B)return I();var q=B===TRANSITION?transitionEndEvent:animationEndEvent,Y=0,K=function(){M.removeEventListener(q,G),I()},G=function(J){J.target===M&&++Y>=U&&K()};setTimeout(function(){Y<U&&K()},j+1),M.addEventListener(q,G)}var transformRE=/\b(transform|all)(,|$)/;function getTransitionInfo(M,$){var I=window.getComputedStyle(M),N=(I[transitionProp+"Delay"]||"").split(", "),B=(I[transitionProp+"Duration"]||"").split(", "),j=getTimeout(N,B),U=(I[animationProp+"Delay"]||"").split(", "),q=(I[animationProp+"Duration"]||"").split(", "),Y=getTimeout(U,q),K,G=0,J=0;$===TRANSITION?j>0&&(K=TRANSITION,G=j,J=B.length):$===ANIMATION?Y>0&&(K=ANIMATION,G=Y,J=q.length):(G=Math.max(j,Y),K=G>0?j>Y?TRANSITION:ANIMATION:null,J=K?K===TRANSITION?B.length:q.length:0);var Z=K===TRANSITION&&transformRE.test(I[transitionProp+"Property"]);return{type:K,timeout:G,propCount:J,hasTransform:Z}}function getTimeout(M,$){for(;M.length<$.length;)M=M.concat(M);return Math.max.apply(null,$.map(function(I,N){return toMs(I)+toMs(M[N])}))}function toMs(M){return Number(M.slice(0,-1).replace(",","."))*1e3}function enter$1(M,$){var I=M.elm;isDef(I._leaveCb)&&(I._leaveCb.cancelled=!0,I._leaveCb());var N=resolveTransition(M.data.transition);if(!isUndef(N)&&!(isDef(I._enterCb)||I.nodeType!==1)){for(var B=N.css,j=N.type,U=N.enterClass,q=N.enterToClass,Y=N.enterActiveClass,K=N.appearClass,G=N.appearToClass,J=N.appearActiveClass,Z=N.beforeEnter,ee=N.enter,te=N.afterEnter,re=N.enterCancelled,se=N.beforeAppear,ne=N.appear,le=N.afterAppear,ge=N.appearCancelled,ue=N.duration,_e=activeInstance,fe=activeInstance.$vnode;fe&&fe.parent;)_e=fe.context,fe=fe.parent;var me=!_e._isMounted||!M.isRootInsert;if(!(me&&!ne&&ne!=="")){var ve=me&&K?K:U,xe=me&&J?J:Y,oe=me&&G?G:q,ye=me&&se||Z,be=me&&isFunction$6(ne)?ne:ee,we=me&&le||te,Ae=me&&ge||re,ke=toNumber(isObject$6(ue)?ue.enter:ue),Oe=B!==!1&&!isIE9,Me=getHookArgumentsLength(be),ze=I._enterCb=once$2(function(){Oe&&(removeTransitionClass(I,oe),removeTransitionClass(I,xe)),ze.cancelled?(Oe&&removeTransitionClass(I,ve),Ae&&Ae(I)):we&&we(I),I._enterCb=null});M.data.show||mergeVNodeHook(M,"insert",function(){var Fe=I.parentNode,Ze=Fe&&Fe._pending&&Fe._pending[M.key];Ze&&Ze.tag===M.tag&&Ze.elm._leaveCb&&Ze.elm._leaveCb(),be&&be(I,ze)}),ye&&ye(I),Oe&&(addTransitionClass(I,ve),addTransitionClass(I,xe),nextFrame$1(function(){removeTransitionClass(I,ve),ze.cancelled||(addTransitionClass(I,oe),Me||(isValidDuration(ke)?setTimeout(ze,ke):whenTransitionEnds(I,j,ze)))})),M.data.show&&($&&$(),be&&be(I,ze)),!Oe&&!Me&&ze()}}}function leave(M,$){var I=M.elm;isDef(I._enterCb)&&(I._enterCb.cancelled=!0,I._enterCb());var N=resolveTransition(M.data.transition);if(isUndef(N)||I.nodeType!==1)return $();if(isDef(I._leaveCb))return;var B=N.css,j=N.type,U=N.leaveClass,q=N.leaveToClass,Y=N.leaveActiveClass,K=N.beforeLeave,G=N.leave,J=N.afterLeave,Z=N.leaveCancelled,ee=N.delayLeave,te=N.duration,re=B!==!1&&!isIE9,se=getHookArgumentsLength(G),ne=toNumber(isObject$6(te)?te.leave:te),le=I._leaveCb=once$2(function(){I.parentNode&&I.parentNode._pending&&(I.parentNode._pending[M.key]=null),re&&(removeTransitionClass(I,q),removeTransitionClass(I,Y)),le.cancelled?(re&&removeTransitionClass(I,U),Z&&Z(I)):($(),J&&J(I)),I._leaveCb=null});ee?ee(ge):ge();function ge(){le.cancelled||(!M.data.show&&I.parentNode&&((I.parentNode._pending||(I.parentNode._pending={}))[M.key]=M),K&&K(I),re&&(addTransitionClass(I,U),addTransitionClass(I,Y),nextFrame$1(function(){removeTransitionClass(I,U),le.cancelled||(addTransitionClass(I,q),se||(isValidDuration(ne)?setTimeout(le,ne):whenTransitionEnds(I,j,le)))})),G&&G(I,le),!re&&!se&&le())}}function isValidDuration(M){return typeof M=="number"&&!isNaN(M)}function getHookArgumentsLength(M){if(isUndef(M))return!1;var $=M.fns;return isDef($)?getHookArgumentsLength(Array.isArray($)?$[0]:$):(M._length||M.length)>1}function _enter(M,$){$.data.show!==!0&&enter$1($)}var transition$1=inBrowser?{create:_enter,activate:_enter,remove:function(M,$){M.data.show!==!0?leave(M,$):$()}}:{},platformModules=[attrs,klass$1,events,domProps,style$1$1,transition$1],modules$1=platformModules.concat(baseModules),patch=createPatchFunction({nodeOps,modules:modules$1});isIE9&&document.addEventListener("selectionchange",function(){var M=document.activeElement;M&&M.vmodel&&trigger$1(M,"input")});var directive$2={inserted:function(M,$,I,N){I.tag==="select"?(N.elm&&!N.elm._vOptions?mergeVNodeHook(I,"postpatch",function(){directive$2.componentUpdated(M,$,I)}):setSelected(M,$,I.context),M._vOptions=[].map.call(M.options,getValue)):(I.tag==="textarea"||isTextInputType(M.type))&&(M._vModifiers=$.modifiers,$.modifiers.lazy||(M.addEventListener("compositionstart",onCompositionStart),M.addEventListener("compositionend",onCompositionEnd),M.addEventListener("change",onCompositionEnd),isIE9&&(M.vmodel=!0)))},componentUpdated:function(M,$,I){if(I.tag==="select"){setSelected(M,$,I.context);var N=M._vOptions,B=M._vOptions=[].map.call(M.options,getValue);if(B.some(function(U,q){return!looseEqual(U,N[q])})){var j=M.multiple?$.value.some(function(U){return hasNoMatchingOption(U,B)}):$.value!==$.oldValue&&hasNoMatchingOption($.value,B);j&&trigger$1(M,"change")}}}};function setSelected(M,$,I){actuallySetSelected(M,$),(isIE$1||isEdge)&&setTimeout(function(){actuallySetSelected(M,$)},0)}function actuallySetSelected(M,$,I){var N=$.value,B=M.multiple;if(!(B&&!Array.isArray(N))){for(var j,U,q=0,Y=M.options.length;q<Y;q++)if(U=M.options[q],B)j=looseIndexOf(N,getValue(U))>-1,U.selected!==j&&(U.selected=j);else if(looseEqual(getValue(U),N)){M.selectedIndex!==q&&(M.selectedIndex=q);return}B||(M.selectedIndex=-1)}}function hasNoMatchingOption(M,$){return $.every(function(I){return!looseEqual(I,M)})}function getValue(M){return"_value"in M?M._value:M.value}function onCompositionStart(M){M.target.composing=!0}function onCompositionEnd(M){M.target.composing&&(M.target.composing=!1,trigger$1(M.target,"input"))}function trigger$1(M,$){var I=document.createEvent("HTMLEvents");I.initEvent($,!0,!0),M.dispatchEvent(I)}function locateNode(M){return M.componentInstance&&(!M.data||!M.data.transition)?locateNode(M.componentInstance._vnode):M}var show={bind:function(M,$,I){var N=$.value;I=locateNode(I);var B=I.data&&I.data.transition,j=M.__vOriginalDisplay=M.style.display==="none"?"":M.style.display;N&&B?(I.data.show=!0,enter$1(I,function(){M.style.display=j})):M.style.display=N?j:"none"},update:function(M,$,I){var N=$.value,B=$.oldValue;if(!N!=!B){I=locateNode(I);var j=I.data&&I.data.transition;j?(I.data.show=!0,N?enter$1(I,function(){M.style.display=M.__vOriginalDisplay}):leave(I,function(){M.style.display="none"})):M.style.display=N?M.__vOriginalDisplay:"none"}},unbind:function(M,$,I,N,B){B||(M.style.display=M.__vOriginalDisplay)}},platformDirectives={model:directive$2,show},transitionProps={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 getRealChild(M){var $=M&&M.componentOptions;return $&&$.Ctor.options.abstract?getRealChild(getFirstComponentChild($.children)):M}function extractTransitionData(M){var $={},I=M.$options;for(var N in I.propsData)$[N]=M[N];var B=I._parentListeners;for(var N in B)$[camelize(N)]=B[N];return $}function placeholder(M,$){if(/\d-keep-alive$/.test($.tag))return M("keep-alive",{props:$.componentOptions.propsData})}function hasParentTransition(M){for(;M=M.parent;)if(M.data.transition)return!0}function isSameChild(M,$){return $.key===M.key&&$.tag===M.tag}var isNotTextNode=function(M){return M.tag||isAsyncPlaceholder(M)},isVShowDirective=function(M){return M.name==="show"},Transition={name:"transition",props:transitionProps,abstract:!0,render:function(M){var $=this,I=this.$slots.default;if(I&&(I=I.filter(isNotTextNode),!!I.length)){var N=this.mode,B=I[0];if(hasParentTransition(this.$vnode))return B;var j=getRealChild(B);if(!j)return B;if(this._leaving)return placeholder(M,B);var U="__transition-".concat(this._uid,"-");j.key=j.key==null?j.isComment?U+"comment":U+j.tag:isPrimitive(j.key)?String(j.key).indexOf(U)===0?j.key:U+j.key:j.key;var q=(j.data||(j.data={})).transition=extractTransitionData(this),Y=this._vnode,K=getRealChild(Y);if(j.data.directives&&j.data.directives.some(isVShowDirective)&&(j.data.show=!0),K&&K.data&&!isSameChild(j,K)&&!isAsyncPlaceholder(K)&&!(K.componentInstance&&K.componentInstance._vnode.isComment)){var G=K.data.transition=extend$6({},q);if(N==="out-in")return this._leaving=!0,mergeVNodeHook(G,"afterLeave",function(){$._leaving=!1,$.$forceUpdate()}),placeholder(M,B);if(N==="in-out"){if(isAsyncPlaceholder(j))return Y;var J,Z=function(){J()};mergeVNodeHook(q,"afterEnter",Z),mergeVNodeHook(q,"enterCancelled",Z),mergeVNodeHook(G,"delayLeave",function(ee){J=ee})}}return B}}},props=extend$6({tag:String,moveClass:String},transitionProps);delete props.mode;var TransitionGroup={props,beforeMount:function(){var M=this,$=this._update;this._update=function(I,N){var B=setActiveInstance(M);M.__patch__(M._vnode,M.kept,!1,!0),M._vnode=M.kept,B(),$.call(M,I,N)}},render:function(M){for(var $=this.tag||this.$vnode.data.tag||"span",I=Object.create(null),N=this.prevChildren=this.children,B=this.$slots.default||[],j=this.children=[],U=extractTransitionData(this),q=0;q<B.length;q++){var Y=B[q];Y.tag&&Y.key!=null&&String(Y.key).indexOf("__vlist")!==0&&(j.push(Y),I[Y.key]=Y,(Y.data||(Y.data={})).transition=U)}if(N){for(var K=[],G=[],q=0;q<N.length;q++){var Y=N[q];Y.data.transition=U,Y.data.pos=Y.elm.getBoundingClientRect(),I[Y.key]?K.push(Y):G.push(Y)}this.kept=M($,null,K),this.removed=G}return M($,null,j)},updated:function(){var M=this.prevChildren,$=this.moveClass||(this.name||"v")+"-move";!M.length||!this.hasMove(M[0].elm,$)||(M.forEach(callPendingCbs),M.forEach(recordPosition),M.forEach(applyTranslation),this._reflow=document.body.offsetHeight,M.forEach(function(I){if(I.data.moved){var N=I.elm,B=N.style;addTransitionClass(N,$),B.transform=B.WebkitTransform=B.transitionDuration="",N.addEventListener(transitionEndEvent,N._moveCb=function j(U){U&&U.target!==N||(!U||/transform$/.test(U.propertyName))&&(N.removeEventListener(transitionEndEvent,j),N._moveCb=null,removeTransitionClass(N,$))})}}))},methods:{hasMove:function(M,$){if(!hasTransition)return!1;if(this._hasMove)return this._hasMove;var I=M.cloneNode();M._transitionClasses&&M._transitionClasses.forEach(function(B){removeClass(I,B)}),addClass(I,$),I.style.display="none",this.$el.appendChild(I);var N=getTransitionInfo(I);return this.$el.removeChild(I),this._hasMove=N.hasTransform}}};function callPendingCbs(M){M.elm._moveCb&&M.elm._moveCb(),M.elm._enterCb&&M.elm._enterCb()}function recordPosition(M){M.data.newPos=M.elm.getBoundingClientRect()}function applyTranslation(M){var $=M.data.pos,I=M.data.newPos,N=$.left-I.left,B=$.top-I.top;if(N||B){M.data.moved=!0;var j=M.elm.style;j.transform=j.WebkitTransform="translate(".concat(N,"px,").concat(B,"px)"),j.transitionDuration="0s"}}var platformComponents={Transition,TransitionGroup};Vue$3.config.mustUseProp=mustUseProp;Vue$3.config.isReservedTag=isReservedTag;Vue$3.config.isReservedAttr=isReservedAttr;Vue$3.config.getTagNamespace=getTagNamespace;Vue$3.config.isUnknownElement=isUnknownElement;extend$6(Vue$3.options.directives,platformDirectives);extend$6(Vue$3.options.components,platformComponents);Vue$3.prototype.__patch__=inBrowser?patch:noop$2;Vue$3.prototype.$mount=function(M,$){return M=M&&inBrowser?query(M):void 0,mountComponent(this,M,$)};inBrowser&&setTimeout(function(){config$1.devtools&&devtools&&devtools.emit("init",Vue$3)},0);var defaultTagRE=/\{\{((?:.|\r?\n)+?)\}\}/g,regexEscapeRE=/[-.*+?^${}()|[\]\/\\]/g,buildRegex=cached(function(M){var $=M[0].replace(regexEscapeRE,"\\$&"),I=M[1].replace(regexEscapeRE,"\\$&");return new RegExp($+"((?:.|\\n)+?)"+I,"g")});function parseText(M,$){var I=$?buildRegex($):defaultTagRE;if(I.test(M)){for(var N=[],B=[],j=I.lastIndex=0,U,q,Y;U=I.exec(M);){q=U.index,q>j&&(B.push(Y=M.slice(j,q)),N.push(JSON.stringify(Y)));var K=parseFilters(U[1].trim());N.push("_s(".concat(K,")")),B.push({"@binding":K}),j=q+U[0].length}return j<M.length&&(B.push(Y=M.slice(j)),N.push(JSON.stringify(Y))),{expression:N.join("+"),tokens:B}}}function transformNode$1(M,$){$.warn;var I=getAndRemoveAttr(M,"class");I&&(M.staticClass=JSON.stringify(I.replace(/\s+/g," ").trim()));var N=getBindingAttr(M,"class",!1);N&&(M.classBinding=N)}function genData$2(M){var $="";return M.staticClass&&($+="staticClass:".concat(M.staticClass,",")),M.classBinding&&($+="class:".concat(M.classBinding,",")),$}var klass={staticKeys:["staticClass"],transformNode:transformNode$1,genData:genData$2};function transformNode(M,$){$.warn;var I=getAndRemoveAttr(M,"style");I&&(M.staticStyle=JSON.stringify(parseStyleText(I)));var N=getBindingAttr(M,"style",!1);N&&(M.styleBinding=N)}function genData$1(M){var $="";return M.staticStyle&&($+="staticStyle:".concat(M.staticStyle,",")),M.styleBinding&&($+="style:(".concat(M.styleBinding,"),")),$}var style$2={staticKeys:["staticStyle"],transformNode,genData:genData$1},decoder,he={decode:function(M){return decoder=decoder||document.createElement("div"),decoder.innerHTML=M,decoder.textContent}},isUnaryTag=makeMap$1("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),canBeLeftOpenTag=makeMap$1("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),isNonPhrasingTag=makeMap$1("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"),attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ncname="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(unicodeRegExp.source,"]*"),qnameCapture="((?:".concat(ncname,"\\:)?").concat(ncname,")"),startTagOpen=new RegExp("^<".concat(qnameCapture)),startTagClose=/^\s*(\/?)>/,endTag=new RegExp("^<\\/".concat(qnameCapture,"[^>]*>")),doctype=/^<!DOCTYPE [^>]+>/i,comment=/^<!\--/,conditionalComment=/^<!\[/,isPlainTextElement=makeMap$1("script,style,textarea",!0),reCache={},decodingMap={"<":"<",">":">",""":'"',"&":"&"," ":`
- `,"	":" ","'":"'"},encodedAttr=/&(?:lt|gt|quot|amp|#39);/g,encodedAttrWithNewLines=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,isIgnoreNewlineTag=makeMap$1("pre,textarea",!0),shouldIgnoreFirstNewline=function(M,$){return M&&isIgnoreNewlineTag(M)&&$[0]===`
- `};function decodeAttr(M,$){var I=$?encodedAttrWithNewLines:encodedAttr;return M.replace(I,function(N){return decodingMap[N]})}function parseHTML(M,$){for(var I=[],N=$.expectHTML,B=$.isUnaryTag||no,j=$.canBeLeftOpenTag||no,U=0,q,Y,K=function(){if(q=M,!Y||!isPlainTextElement(Y)){var re=M.indexOf("<");if(re===0){if(comment.test(M)){var se=M.indexOf("-->");if(se>=0)return $.shouldKeepComment&&$.comment&&$.comment(M.substring(4,se),U,U+se+3),J(se+3),"continue"}if(conditionalComment.test(M)){var ne=M.indexOf("]>");if(ne>=0)return J(ne+2),"continue"}var le=M.match(doctype);if(le)return J(le[0].length),"continue";var ge=M.match(endTag);if(ge){var ue=U;return J(ge[0].length),te(ge[1],ue,U),"continue"}var _e=Z();if(_e)return ee(_e),shouldIgnoreFirstNewline(_e.tagName,M)&&J(1),"continue"}var fe=void 0,me=void 0,ve=void 0;if(re>=0){for(me=M.slice(re);!endTag.test(me)&&!startTagOpen.test(me)&&!comment.test(me)&&!conditionalComment.test(me)&&(ve=me.indexOf("<",1),!(ve<0));)re+=ve,me=M.slice(re);fe=M.substring(0,re)}re<0&&(fe=M),fe&&J(fe.length),$.chars&&fe&&$.chars(fe,U-fe.length,U)}else{var xe=0,oe=Y.toLowerCase(),ye=reCache[oe]||(reCache[oe]=new RegExp("([\\s\\S]*?)(</"+oe+"[^>]*>)","i")),me=M.replace(ye,function(we,Ae,ke){return xe=ke.length,!isPlainTextElement(oe)&&oe!=="noscript"&&(Ae=Ae.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),shouldIgnoreFirstNewline(oe,Ae)&&(Ae=Ae.slice(1)),$.chars&&$.chars(Ae),""});U+=M.length-me.length,M=me,te(oe,U-xe,U)}if(M===q)return $.chars&&$.chars(M),"break"};M;){var G=K();if(G==="break")break}te();function J(re){U+=re,M=M.substring(re)}function Z(){var re=M.match(startTagOpen);if(re){var se={tagName:re[1],attrs:[],start:U};J(re[0].length);for(var ne=void 0,le=void 0;!(ne=M.match(startTagClose))&&(le=M.match(dynamicArgAttribute)||M.match(attribute));)le.start=U,J(le[0].length),le.end=U,se.attrs.push(le);if(ne)return se.unarySlash=ne[1],J(ne[0].length),se.end=U,se}}function ee(re){var se=re.tagName,ne=re.unarySlash;N&&(Y==="p"&&isNonPhrasingTag(se)&&te(Y),j(se)&&Y===se&&te(se));for(var le=B(se)||!!ne,ge=re.attrs.length,ue=new Array(ge),_e=0;_e<ge;_e++){var fe=re.attrs[_e],me=fe[3]||fe[4]||fe[5]||"",ve=se==="a"&&fe[1]==="href"?$.shouldDecodeNewlinesForHref:$.shouldDecodeNewlines;ue[_e]={name:fe[1],value:decodeAttr(me,ve)}}le||(I.push({tag:se,lowerCasedTag:se.toLowerCase(),attrs:ue,start:re.start,end:re.end}),Y=se),$.start&&$.start(se,ue,le,re.start,re.end)}function te(re,se,ne){var le,ge;if(se==null&&(se=U),ne==null&&(ne=U),re)for(ge=re.toLowerCase(),le=I.length-1;le>=0&&I[le].lowerCasedTag!==ge;le--);else le=0;if(le>=0){for(var ue=I.length-1;ue>=le;ue--)$.end&&$.end(I[ue].tag,se,ne);I.length=le,Y=le&&I[le-1].tag}else ge==="br"?$.start&&$.start(re,[],!0,se,ne):ge==="p"&&($.start&&$.start(re,[],!1,se,ne),$.end&&$.end(re,se,ne))}}var onRE=/^@|^v-on:/,dirRE=/^v-|^@|^:|^#/,forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g,dynamicArgRE=/^\[.*\]$/,argRE=/:(.*)$/,bindRE=/^:|^\.|^v-bind:/,modifierRE=/\.[^.\]]+(?=[^\]]*$)/g,slotRE=/^v-slot(:|$)|^#/,lineBreakRE=/[\r\n]/,whitespaceRE=/[ \f\t\r\n]+/g,decodeHTMLCached=cached(he.decode),emptySlotScopeToken="_empty_",warn$4,delimiters,transforms,preTransforms,postTransforms,platformIsPreTag,platformMustUseProp,platformGetTagNamespace;function createASTElement(M,$,I){return{type:1,tag:M,attrsList:$,attrsMap:makeAttrsMap($),rawAttrsMap:{},parent:I,children:[]}}function parse$3(M,$){warn$4=$.warn||baseWarn,platformIsPreTag=$.isPreTag||no,platformMustUseProp=$.mustUseProp||no,platformGetTagNamespace=$.getTagNamespace||no,$.isReservedTag,transforms=pluckModuleFunction($.modules,"transformNode"),preTransforms=pluckModuleFunction($.modules,"preTransformNode"),postTransforms=pluckModuleFunction($.modules,"postTransformNode"),delimiters=$.delimiters;var I=[],N=$.preserveWhitespace!==!1,B=$.whitespace,j,U,q=!1,Y=!1;function K(J){if(G(J),!q&&!J.processed&&(J=processElement(J,$)),!I.length&&J!==j&&j.if&&(J.elseif||J.else)&&addIfCondition(j,{exp:J.elseif,block:J}),U&&!J.forbidden)if(J.elseif||J.else)processIfConditions(J,U);else{if(J.slotScope){var Z=J.slotTarget||'"default"';(U.scopedSlots||(U.scopedSlots={}))[Z]=J}U.children.push(J),J.parent=U}J.children=J.children.filter(function(te){return!te.slotScope}),G(J),J.pre&&(q=!1),platformIsPreTag(J.tag)&&(Y=!1);for(var ee=0;ee<postTransforms.length;ee++)postTransforms[ee](J,$)}function G(J){if(!Y)for(var Z=void 0;(Z=J.children[J.children.length-1])&&Z.type===3&&Z.text===" ";)J.children.pop()}return parseHTML(M,{warn:warn$4,expectHTML:$.expectHTML,isUnaryTag:$.isUnaryTag,canBeLeftOpenTag:$.canBeLeftOpenTag,shouldDecodeNewlines:$.shouldDecodeNewlines,shouldDecodeNewlinesForHref:$.shouldDecodeNewlinesForHref,shouldKeepComment:$.comments,outputSourceRange:$.outputSourceRange,start:function(J,Z,ee,te,re){var se=U&&U.ns||platformGetTagNamespace(J);isIE$1&&se==="svg"&&(Z=guardIESVGBug(Z));var ne=createASTElement(J,Z,U);se&&(ne.ns=se),isForbiddenTag(ne)&&!isServerRendering()&&(ne.forbidden=!0);for(var le=0;le<preTransforms.length;le++)ne=preTransforms[le](ne,$)||ne;q||(processPre(ne),ne.pre&&(q=!0)),platformIsPreTag(ne.tag)&&(Y=!0),q?processRawAttrs(ne):ne.processed||(processFor(ne),processIf(ne),processOnce(ne)),j||(j=ne),ee?K(ne):(U=ne,I.push(ne))},end:function(J,Z,ee){var te=I[I.length-1];I.length-=1,U=I[I.length-1],K(te)},chars:function(J,Z,ee){if(U&&!(isIE$1&&U.tag==="textarea"&&U.attrsMap.placeholder===J)){var te=U.children;if(Y||J.trim()?J=isTextTag(U)?J:decodeHTMLCached(J):te.length?B?B==="condense"?J=lineBreakRE.test(J)?"":" ":J=" ":J=N?" ":"":J="",J){!Y&&B==="condense"&&(J=J.replace(whitespaceRE," "));var re=void 0,se=void 0;!q&&J!==" "&&(re=parseText(J,delimiters))?se={type:2,expression:re.expression,tokens:re.tokens,text:J}:(J!==" "||!te.length||te[te.length-1].text!==" ")&&(se={type:3,text:J}),se&&te.push(se)}}},comment:function(J,Z,ee){if(U){var te={type:3,text:J,isComment:!0};U.children.push(te)}}}),j}function processPre(M){getAndRemoveAttr(M,"v-pre")!=null&&(M.pre=!0)}function processRawAttrs(M){var $=M.attrsList,I=$.length;if(I)for(var N=M.attrs=new Array(I),B=0;B<I;B++)N[B]={name:$[B].name,value:JSON.stringify($[B].value)},$[B].start!=null&&(N[B].start=$[B].start,N[B].end=$[B].end);else M.pre||(M.plain=!0)}function processElement(M,$){processKey(M),M.plain=!M.key&&!M.scopedSlots&&!M.attrsList.length,processRef(M),processSlotContent(M),processSlotOutlet(M),processComponent(M);for(var I=0;I<transforms.length;I++)M=transforms[I](M,$)||M;return processAttrs(M),M}function processKey(M){var $=getBindingAttr(M,"key");$&&(M.key=$)}function processRef(M){var $=getBindingAttr(M,"ref");$&&(M.ref=$,M.refInFor=checkInFor(M))}function processFor(M){var $;if($=getAndRemoveAttr(M,"v-for")){var I=parseFor($);I&&extend$6(M,I)}}function parseFor(M){var $=M.match(forAliasRE);if($){var I={};I.for=$[2].trim();var N=$[1].trim().replace(stripParensRE,""),B=N.match(forIteratorRE);return B?(I.alias=N.replace(forIteratorRE,"").trim(),I.iterator1=B[1].trim(),B[2]&&(I.iterator2=B[2].trim())):I.alias=N,I}}function processIf(M){var $=getAndRemoveAttr(M,"v-if");if($)M.if=$,addIfCondition(M,{exp:$,block:M});else{getAndRemoveAttr(M,"v-else")!=null&&(M.else=!0);var I=getAndRemoveAttr(M,"v-else-if");I&&(M.elseif=I)}}function processIfConditions(M,$){var I=findPrevElement($.children);I&&I.if&&addIfCondition(I,{exp:M.elseif,block:M})}function findPrevElement(M){for(var $=M.length;$--;){if(M[$].type===1)return M[$];M.pop()}}function addIfCondition(M,$){M.ifConditions||(M.ifConditions=[]),M.ifConditions.push($)}function processOnce(M){var $=getAndRemoveAttr(M,"v-once");$!=null&&(M.once=!0)}function processSlotContent(M){var $;M.tag==="template"?($=getAndRemoveAttr(M,"scope"),M.slotScope=$||getAndRemoveAttr(M,"slot-scope")):($=getAndRemoveAttr(M,"slot-scope"))&&(M.slotScope=$);var I=getBindingAttr(M,"slot");if(I&&(M.slotTarget=I==='""'?'"default"':I,M.slotTargetDynamic=!!(M.attrsMap[":slot"]||M.attrsMap["v-bind:slot"]),M.tag!=="template"&&!M.slotScope&&addAttr(M,"slot",I,getRawBindingAttr(M,"slot"))),M.tag==="template"){var N=getAndRemoveAttrByRegex(M,slotRE);if(N){var B=getSlotName(N),j=B.name,U=B.dynamic;M.slotTarget=j,M.slotTargetDynamic=U,M.slotScope=N.value||emptySlotScopeToken}}else{var N=getAndRemoveAttrByRegex(M,slotRE);if(N){var q=M.scopedSlots||(M.scopedSlots={}),Y=getSlotName(N),K=Y.name,U=Y.dynamic,G=q[K]=createASTElement("template",[],M);G.slotTarget=K,G.slotTargetDynamic=U,G.children=M.children.filter(function(ee){if(!ee.slotScope)return ee.parent=G,!0}),G.slotScope=N.value||emptySlotScopeToken,M.children=[],M.plain=!1}}}function getSlotName(M){var $=M.name.replace(slotRE,"");return $||M.name[0]!=="#"&&($="default"),dynamicArgRE.test($)?{name:$.slice(1,-1),dynamic:!0}:{name:'"'.concat($,'"'),dynamic:!1}}function processSlotOutlet(M){M.tag==="slot"&&(M.slotName=getBindingAttr(M,"name"))}function processComponent(M){var $;($=getBindingAttr(M,"is"))&&(M.component=$),getAndRemoveAttr(M,"inline-template")!=null&&(M.inlineTemplate=!0)}function processAttrs(M){var $=M.attrsList,I,N,B,j,U,q,Y,K;for(I=0,N=$.length;I<N;I++)if(B=j=$[I].name,U=$[I].value,dirRE.test(B))if(M.hasBindings=!0,q=parseModifiers(B.replace(dirRE,"")),q&&(B=B.replace(modifierRE,"")),bindRE.test(B))B=B.replace(bindRE,""),U=parseFilters(U),K=dynamicArgRE.test(B),K&&(B=B.slice(1,-1)),q&&(q.prop&&!K&&(B=camelize(B),B==="innerHtml"&&(B="innerHTML")),q.camel&&!K&&(B=camelize(B)),q.sync&&(Y=genAssignmentCode(U,"$event"),K?addHandler(M,'"update:"+('.concat(B,")"),Y,null,!1,warn$4,$[I],!0):(addHandler(M,"update:".concat(camelize(B)),Y,null,!1,warn$4,$[I]),hyphenate(B)!==camelize(B)&&addHandler(M,"update:".concat(hyphenate(B)),Y,null,!1,warn$4,$[I])))),q&&q.prop||!M.component&&platformMustUseProp(M.tag,M.attrsMap.type,B)?addProp(M,B,U,$[I],K):addAttr(M,B,U,$[I],K);else if(onRE.test(B))B=B.replace(onRE,""),K=dynamicArgRE.test(B),K&&(B=B.slice(1,-1)),addHandler(M,B,U,q,!1,warn$4,$[I],K);else{B=B.replace(dirRE,"");var G=B.match(argRE),J=G&&G[1];K=!1,J&&(B=B.slice(0,-(J.length+1)),dynamicArgRE.test(J)&&(J=J.slice(1,-1),K=!0)),addDirective(M,B,j,U,J,K,q,$[I])}else addAttr(M,B,JSON.stringify(U),$[I]),!M.component&&B==="muted"&&platformMustUseProp(M.tag,M.attrsMap.type,B)&&addProp(M,B,"true",$[I])}function checkInFor(M){for(var $=M;$;){if($.for!==void 0)return!0;$=$.parent}return!1}function parseModifiers(M){var $=M.match(modifierRE);if($){var I={};return $.forEach(function(N){I[N.slice(1)]=!0}),I}}function makeAttrsMap(M){for(var $={},I=0,N=M.length;I<N;I++)$[M[I].name]=M[I].value;return $}function isTextTag(M){return M.tag==="script"||M.tag==="style"}function isForbiddenTag(M){return M.tag==="style"||M.tag==="script"&&(!M.attrsMap.type||M.attrsMap.type==="text/javascript")}var ieNSBug=/^xmlns:NS\d+/,ieNSPrefix=/^NS\d+:/;function guardIESVGBug(M){for(var $=[],I=0;I<M.length;I++){var N=M[I];ieNSBug.test(N.name)||(N.name=N.name.replace(ieNSPrefix,""),$.push(N))}return $}function preTransformNode(M,$){if(M.tag==="input"){var I=M.attrsMap;if(!I["v-model"])return;var N=void 0;if((I[":type"]||I["v-bind:type"])&&(N=getBindingAttr(M,"type")),!I.type&&!N&&I["v-bind"]&&(N="(".concat(I["v-bind"],").type")),N){var B=getAndRemoveAttr(M,"v-if",!0),j=B?"&&(".concat(B,")"):"",U=getAndRemoveAttr(M,"v-else",!0)!=null,q=getAndRemoveAttr(M,"v-else-if",!0),Y=cloneASTElement(M);processFor(Y),addRawAttr(Y,"type","checkbox"),processElement(Y,$),Y.processed=!0,Y.if="(".concat(N,")==='checkbox'")+j,addIfCondition(Y,{exp:Y.if,block:Y});var K=cloneASTElement(M);getAndRemoveAttr(K,"v-for",!0),addRawAttr(K,"type","radio"),processElement(K,$),addIfCondition(Y,{exp:"(".concat(N,")==='radio'")+j,block:K});var G=cloneASTElement(M);return getAndRemoveAttr(G,"v-for",!0),addRawAttr(G,":type",N),processElement(G,$),addIfCondition(Y,{exp:B,block:G}),U?Y.else=!0:q&&(Y.elseif=q),Y}}}function cloneASTElement(M){return createASTElement(M.tag,M.attrsList.slice(),M.parent)}var model$2={preTransformNode},modules=[klass,style$2,model$2];function text(M,$){$.value&&addProp(M,"textContent","_s(".concat($.value,")"),$)}function html$1(M,$){$.value&&addProp(M,"innerHTML","_s(".concat($.value,")"),$)}var directives$2={model:model$1,text,html:html$1},baseOptions={expectHTML:!0,modules,directives:directives$2,isPreTag,isUnaryTag,mustUseProp,canBeLeftOpenTag,isReservedTag,getTagNamespace,staticKeys:genStaticKeys$1(modules)},isStaticKey,isPlatformReservedTag,genStaticKeysCached=cached(genStaticKeys);function optimize(M,$){M&&(isStaticKey=genStaticKeysCached($.staticKeys||""),isPlatformReservedTag=$.isReservedTag||no,markStatic(M),markStaticRoots(M,!1))}function genStaticKeys(M){return makeMap$1("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(M?","+M:""))}function markStatic(M){if(M.static=isStatic(M),M.type===1){if(!isPlatformReservedTag(M.tag)&&M.tag!=="slot"&&M.attrsMap["inline-template"]==null)return;for(var $=0,I=M.children.length;$<I;$++){var N=M.children[$];markStatic(N),N.static||(M.static=!1)}if(M.ifConditions)for(var $=1,I=M.ifConditions.length;$<I;$++){var B=M.ifConditions[$].block;markStatic(B),B.static||(M.static=!1)}}}function markStaticRoots(M,$){if(M.type===1){if((M.static||M.once)&&(M.staticInFor=$),M.static&&M.children.length&&!(M.children.length===1&&M.children[0].type===3)){M.staticRoot=!0;return}else M.staticRoot=!1;if(M.children)for(var I=0,N=M.children.length;I<N;I++)markStaticRoots(M.children[I],$||!!M.for);if(M.ifConditions)for(var I=1,N=M.ifConditions.length;I<N;I++)markStaticRoots(M.ifConditions[I].block,$)}}function isStatic(M){return M.type===2?!1:M.type===3?!0:!!(M.pre||!M.hasBindings&&!M.if&&!M.for&&!isBuiltInTag(M.tag)&&isPlatformReservedTag(M.tag)&&!isDirectChildOfTemplateFor(M)&&Object.keys(M).every(isStaticKey))}function isDirectChildOfTemplateFor(M){for(;M.parent;){if(M=M.parent,M.tag!=="template")return!1;if(M.for)return!0}return!1}var fnExpRE=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,fnInvokeRE=/\([^)]*?\);*$/,simplePathRE=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,keyCodes={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyNames={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"]},genGuard=function(M){return"if(".concat(M,")return null;")},modifierCode={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:genGuard("$event.target !== $event.currentTarget"),ctrl:genGuard("!$event.ctrlKey"),shift:genGuard("!$event.shiftKey"),alt:genGuard("!$event.altKey"),meta:genGuard("!$event.metaKey"),left:genGuard("'button' in $event && $event.button !== 0"),middle:genGuard("'button' in $event && $event.button !== 1"),right:genGuard("'button' in $event && $event.button !== 2")};function genHandlers(M,$){var I=$?"nativeOn:":"on:",N="",B="";for(var j in M){var U=genHandler(M[j]);M[j]&&M[j].dynamic?B+="".concat(j,",").concat(U,","):N+='"'.concat(j,'":').concat(U,",")}return N="{".concat(N.slice(0,-1),"}"),B?I+"_d(".concat(N,",[").concat(B.slice(0,-1),"])"):I+N}function genHandler(M){if(!M)return"function(){}";if(Array.isArray(M))return"[".concat(M.map(function(G){return genHandler(G)}).join(","),"]");var $=simplePathRE.test(M.value),I=fnExpRE.test(M.value),N=simplePathRE.test(M.value.replace(fnInvokeRE,""));if(M.modifiers){var B="",j="",U=[],q=function(G){if(modifierCode[G])j+=modifierCode[G],keyCodes[G]&&U.push(G);else if(G==="exact"){var J=M.modifiers;j+=genGuard(["ctrl","shift","alt","meta"].filter(function(Z){return!J[Z]}).map(function(Z){return"$event.".concat(Z,"Key")}).join("||"))}else U.push(G)};for(var Y in M.modifiers)q(Y);U.length&&(B+=genKeyFilter(U)),j&&(B+=j);var K=$?"return ".concat(M.value,".apply(null, arguments)"):I?"return (".concat(M.value,").apply(null, arguments)"):N?"return ".concat(M.value):M.value;return"function($event){".concat(B).concat(K,"}")}else return $||I?M.value:"function($event){".concat(N?"return ".concat(M.value):M.value,"}")}function genKeyFilter(M){return"if(!$event.type.indexOf('key')&&"+"".concat(M.map(genFilterCode).join("&&"),")return null;")}function genFilterCode(M){var $=parseInt(M,10);if($)return"$event.keyCode!==".concat($);var I=keyCodes[M],N=keyNames[M];return"_k($event.keyCode,"+"".concat(JSON.stringify(M),",")+"".concat(JSON.stringify(I),",")+"$event.key,"+"".concat(JSON.stringify(N))+")"}function on$1(M,$){M.wrapListeners=function(I){return"_g(".concat(I,",").concat($.value,")")}}function bind$8(M,$){M.wrapData=function(I){return"_b(".concat(I,",'").concat(M.tag,"',").concat($.value,",").concat($.modifiers&&$.modifiers.prop?"true":"false").concat($.modifiers&&$.modifiers.sync?",true":"",")")}}var baseDirectives={on:on$1,bind:bind$8,cloak:noop$2},CodegenState=function(){function M($){this.options=$,this.warn=$.warn||baseWarn,this.transforms=pluckModuleFunction($.modules,"transformCode"),this.dataGenFns=pluckModuleFunction($.modules,"genData"),this.directives=extend$6(extend$6({},baseDirectives),$.directives);var I=$.isReservedTag||no;this.maybeComponent=function(N){return!!N.component||!I(N.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}return M}();function generate(M,$){var I=new CodegenState($),N=M?M.tag==="script"?"null":genElement(M,I):'_c("div")';return{render:"with(this){return ".concat(N,"}"),staticRenderFns:I.staticRenderFns}}function genElement(M,$){if(M.parent&&(M.pre=M.pre||M.parent.pre),M.staticRoot&&!M.staticProcessed)return genStatic(M,$);if(M.once&&!M.onceProcessed)return genOnce(M,$);if(M.for&&!M.forProcessed)return genFor(M,$);if(M.if&&!M.ifProcessed)return genIf(M,$);if(M.tag==="template"&&!M.slotTarget&&!$.pre)return genChildren(M,$)||"void 0";if(M.tag==="slot")return genSlot(M,$);var I=void 0;if(M.component)I=genComponent(M.component,M,$);else{var N=void 0,B=$.maybeComponent(M);(!M.plain||M.pre&&B)&&(N=genData(M,$));var j=void 0,U=$.options.bindings;B&&U&&U.__isScriptSetup!==!1&&(j=checkBindingType(U,M.tag)),j||(j="'".concat(M.tag,"'"));var q=M.inlineTemplate?null:genChildren(M,$,!0);I="_c(".concat(j).concat(N?",".concat(N):"").concat(q?",".concat(q):"",")")}for(var Y=0;Y<$.transforms.length;Y++)I=$.transforms[Y](M,I);return I}function checkBindingType(M,$){var I=camelize($),N=capitalize$1(I),B=function(q){if(M[$]===q)return $;if(M[I]===q)return I;if(M[N]===q)return N},j=B("setup-const")||B("setup-reactive-const");if(j)return j;var U=B("setup-let")||B("setup-ref")||B("setup-maybe-ref");if(U)return U}function genStatic(M,$){M.staticProcessed=!0;var I=$.pre;return M.pre&&($.pre=M.pre),$.staticRenderFns.push("with(this){return ".concat(genElement(M,$),"}")),$.pre=I,"_m(".concat($.staticRenderFns.length-1).concat(M.staticInFor?",true":"",")")}function genOnce(M,$){if(M.onceProcessed=!0,M.if&&!M.ifProcessed)return genIf(M,$);if(M.staticInFor){for(var I="",N=M.parent;N;){if(N.for){I=N.key;break}N=N.parent}return I?"_o(".concat(genElement(M,$),",").concat($.onceId++,",").concat(I,")"):genElement(M,$)}else return genStatic(M,$)}function genIf(M,$,I,N){return M.ifProcessed=!0,genIfConditions(M.ifConditions.slice(),$,I,N)}function genIfConditions(M,$,I,N){if(!M.length)return N||"_e()";var B=M.shift();if(B.exp)return"(".concat(B.exp,")?").concat(j(B.block),":").concat(genIfConditions(M,$,I,N));return"".concat(j(B.block));function j(U){return I?I(U,$):U.once?genOnce(U,$):genElement(U,$)}}function genFor(M,$,I,N){var B=M.for,j=M.alias,U=M.iterator1?",".concat(M.iterator1):"",q=M.iterator2?",".concat(M.iterator2):"";return M.forProcessed=!0,"".concat(N||"_l","((").concat(B,"),")+"function(".concat(j).concat(U).concat(q,"){")+"return ".concat((I||genElement)(M,$))+"})"}function genData(M,$){var I="{",N=genDirectives(M,$);N&&(I+=N+","),M.key&&(I+="key:".concat(M.key,",")),M.ref&&(I+="ref:".concat(M.ref,",")),M.refInFor&&(I+="refInFor:true,"),M.pre&&(I+="pre:true,"),M.component&&(I+='tag:"'.concat(M.tag,'",'));for(var B=0;B<$.dataGenFns.length;B++)I+=$.dataGenFns[B](M);if(M.attrs&&(I+="attrs:".concat(genProps(M.attrs),",")),M.props&&(I+="domProps:".concat(genProps(M.props),",")),M.events&&(I+="".concat(genHandlers(M.events,!1),",")),M.nativeEvents&&(I+="".concat(genHandlers(M.nativeEvents,!0),",")),M.slotTarget&&!M.slotScope&&(I+="slot:".concat(M.slotTarget,",")),M.scopedSlots&&(I+="".concat(genScopedSlots(M,M.scopedSlots,$),",")),M.model&&(I+="model:{value:".concat(M.model.value,",callback:").concat(M.model.callback,",expression:").concat(M.model.expression,"},")),M.inlineTemplate){var j=genInlineTemplate(M,$);j&&(I+="".concat(j,","))}return I=I.replace(/,$/,"")+"}",M.dynamicAttrs&&(I="_b(".concat(I,',"').concat(M.tag,'",').concat(genProps(M.dynamicAttrs),")")),M.wrapData&&(I=M.wrapData(I)),M.wrapListeners&&(I=M.wrapListeners(I)),I}function genDirectives(M,$){var I=M.directives;if(I){var N="directives:[",B=!1,j,U,q,Y;for(j=0,U=I.length;j<U;j++){q=I[j],Y=!0;var K=$.directives[q.name];K&&(Y=!!K(M,q,$.warn)),Y&&(B=!0,N+='{name:"'.concat(q.name,'",rawName:"').concat(q.rawName,'"').concat(q.value?",value:(".concat(q.value,"),expression:").concat(JSON.stringify(q.value)):"").concat(q.arg?",arg:".concat(q.isDynamicArg?q.arg:'"'.concat(q.arg,'"')):"").concat(q.modifiers?",modifiers:".concat(JSON.stringify(q.modifiers)):"","},"))}if(B)return N.slice(0,-1)+"]"}}function genInlineTemplate(M,$){var I=M.children[0];if(I&&I.type===1){var N=generate(I,$.options);return"inlineTemplate:{render:function(){".concat(N.render,"},staticRenderFns:[").concat(N.staticRenderFns.map(function(B){return"function(){".concat(B,"}")}).join(","),"]}")}}function genScopedSlots(M,$,I){var N=M.for||Object.keys($).some(function(q){var Y=$[q];return Y.slotTargetDynamic||Y.if||Y.for||containsSlotChild(Y)}),B=!!M.if;if(!N)for(var j=M.parent;j;){if(j.slotScope&&j.slotScope!==emptySlotScopeToken||j.for){N=!0;break}j.if&&(B=!0),j=j.parent}var U=Object.keys($).map(function(q){return genScopedSlot($[q],I)}).join(",");return"scopedSlots:_u([".concat(U,"]").concat(N?",null,true":"").concat(!N&&B?",null,false,".concat(hash$4(U)):"",")")}function hash$4(M){for(var $=5381,I=M.length;I;)$=$*33^M.charCodeAt(--I);return $>>>0}function containsSlotChild(M){return M.type===1?M.tag==="slot"?!0:M.children.some(containsSlotChild):!1}function genScopedSlot(M,$){var I=M.attrsMap["slot-scope"];if(M.if&&!M.ifProcessed&&!I)return genIf(M,$,genScopedSlot,"null");if(M.for&&!M.forProcessed)return genFor(M,$,genScopedSlot);var N=M.slotScope===emptySlotScopeToken?"":String(M.slotScope),B="function(".concat(N,"){")+"return ".concat(M.tag==="template"?M.if&&I?"(".concat(M.if,")?").concat(genChildren(M,$)||"undefined",":undefined"):genChildren(M,$)||"undefined":genElement(M,$),"}"),j=N?"":",proxy:true";return"{key:".concat(M.slotTarget||'"default"',",fn:").concat(B).concat(j,"}")}function genChildren(M,$,I,N,B){var j=M.children;if(j.length){var U=j[0];if(j.length===1&&U.for&&U.tag!=="template"&&U.tag!=="slot"){var q=I?$.maybeComponent(U)?",1":",0":"";return"".concat((N||genElement)(U,$)).concat(q)}var Y=I?getNormalizationType(j,$.maybeComponent):0,K=B||genNode;return"[".concat(j.map(function(G){return K(G,$)}).join(","),"]").concat(Y?",".concat(Y):"")}}function getNormalizationType(M,$){for(var I=0,N=0;N<M.length;N++){var B=M[N];if(B.type===1){if(needsNormalization(B)||B.ifConditions&&B.ifConditions.some(function(j){return needsNormalization(j.block)})){I=2;break}($(B)||B.ifConditions&&B.ifConditions.some(function(j){return $(j.block)}))&&(I=1)}}return I}function needsNormalization(M){return M.for!==void 0||M.tag==="template"||M.tag==="slot"}function genNode(M,$){return M.type===1?genElement(M,$):M.type===3&&M.isComment?genComment(M):genText(M)}function genText(M){return"_v(".concat(M.type===2?M.expression:transformSpecialNewlines(JSON.stringify(M.text)),")")}function genComment(M){return"_e(".concat(JSON.stringify(M.text),")")}function genSlot(M,$){var I=M.slotName||'"default"',N=genChildren(M,$),B="_t(".concat(I).concat(N?",function(){return ".concat(N,"}"):""),j=M.attrs||M.dynamicAttrs?genProps((M.attrs||[]).concat(M.dynamicAttrs||[]).map(function(q){return{name:camelize(q.name),value:q.value,dynamic:q.dynamic}})):null,U=M.attrsMap["v-bind"];return(j||U)&&!N&&(B+=",null"),j&&(B+=",".concat(j)),U&&(B+="".concat(j?"":",null",",").concat(U)),B+")"}function genComponent(M,$,I){var N=$.inlineTemplate?null:genChildren($,I,!0);return"_c(".concat(M,",").concat(genData($,I)).concat(N?",".concat(N):"",")")}function genProps(M){for(var $="",I="",N=0;N<M.length;N++){var B=M[N],j=transformSpecialNewlines(B.value);B.dynamic?I+="".concat(B.name,",").concat(j,","):$+='"'.concat(B.name,'":').concat(j,",")}return $="{".concat($.slice(0,-1),"}"),I?"_d(".concat($,",[").concat(I.slice(0,-1),"])"):$}function transformSpecialNewlines(M){return M.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}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");new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function createFunction(M,$){try{return new Function(M)}catch(I){return $.push({err:I,code:M}),noop$2}}function createCompileToFunctionFn(M){var $=Object.create(null);return function(N,B,j){B=extend$6({},B),B.warn,delete B.warn;var U=B.delimiters?String(B.delimiters)+N:N;if($[U])return $[U];var q=M(N,B),Y={},K=[];return Y.render=createFunction(q.render,K),Y.staticRenderFns=q.staticRenderFns.map(function(G){return createFunction(G,K)}),$[U]=Y}}function createCompilerCreator(M){return function(I){function N(B,j){var U=Object.create(I),q=[],Y=[],K=function(Z,ee,te){(te?Y:q).push(Z)};if(j){j.modules&&(U.modules=(I.modules||[]).concat(j.modules)),j.directives&&(U.directives=extend$6(Object.create(I.directives||null),j.directives));for(var G in j)G!=="modules"&&G!=="directives"&&(U[G]=j[G])}U.warn=K;var J=M(B.trim(),U);return J.errors=q,J.tips=Y,J}return{compile:N,compileToFunctions:createCompileToFunctionFn(N)}}}var createCompiler=createCompilerCreator(function($,I){var N=parse$3($.trim(),I);I.optimize!==!1&&optimize(N,I);var B=generate(N,I);return{ast:N,render:B.render,staticRenderFns:B.staticRenderFns}}),_a=createCompiler(baseOptions),compileToFunctions=_a.compileToFunctions,div$1;function getShouldDecode(M){return div$1=div$1||document.createElement("div"),div$1.innerHTML=M?`<a href="
- "/>`:`<div a="
- "/>`,div$1.innerHTML.indexOf(" ")>0}var shouldDecodeNewlines=inBrowser?getShouldDecode(!1):!1,shouldDecodeNewlinesForHref=inBrowser?getShouldDecode(!0):!1,idToTemplate=cached(function(M){var $=query(M);return $&&$.innerHTML}),mount=Vue$3.prototype.$mount;Vue$3.prototype.$mount=function(M,$){if(M=M&&query(M),M===document.body||M===document.documentElement)return this;var I=this.$options;if(!I.render){var N=I.template;if(N)if(typeof N=="string")N.charAt(0)==="#"&&(N=idToTemplate(N));else if(N.nodeType)N=N.innerHTML;else return this;else M&&(N=getOuterHTML(M));if(N){var B=compileToFunctions(N,{outputSourceRange:!1,shouldDecodeNewlines,shouldDecodeNewlinesForHref,delimiters:I.delimiters,comments:I.comments},this),j=B.render,U=B.staticRenderFns;I.render=j,I.staticRenderFns=U}}return mount.call(this,M,$)};function getOuterHTML(M){if(M.outerHTML)return M.outerHTML;var $=document.createElement("div");return $.appendChild(M.cloneNode(!0)),$.innerHTML}Vue$3.compile=compileToFunctions;const vue_esm=Object.freeze(Object.defineProperty({__proto__:null,EffectScope,computed,customRef,default:Vue$3,defineAsyncComponent,defineComponent,del,effectScope,getCurrentInstance,getCurrentScope,h:h$2,inject,isProxy,isReactive:isReactive$1,isReadonly,isRef:isRef$1,isShallow,markRaw,mergeDefaults,nextTick:nextTick$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,provide,proxyRefs,reactive:reactive$1,readonly:readonly$1,ref:ref$1,set:set$3,shallowReactive,shallowReadonly,shallowRef,toRaw:toRaw$1,toRef,toRefs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useListeners,useSlots,version:version$3,watch,watchEffect,watchPostEffect,watchSyncEffect},Symbol.toStringTag,{value:"Module"}));var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(M){return M&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M}function getAugmentedNamespace(M){if(M.__esModule)return M;var $=M.default;if(typeof $=="function"){var I=function N(){return this instanceof N?Reflect.construct($,arguments,this.constructor):$.apply(this,arguments)};I.prototype=$.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(M).forEach(function(N){var B=Object.getOwnPropertyDescriptor(M,N);Object.defineProperty(I,N,B.get?B:{enumerable:!0,get:function(){return M[N]}})}),I}var vueToasted_min={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){return function(I){function N(j){if(B[j])return B[j].exports;var U=B[j]={i:j,l:!1,exports:{}};return I[j].call(U.exports,U,U.exports,N),U.l=!0,U.exports}var B={};return N.m=I,N.c=B,N.i=function(j){return j},N.d=function(j,U,q){N.o(j,U)||Object.defineProperty(j,U,{configurable:!1,enumerable:!0,get:q})},N.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return N.d(U,"a",U),U},N.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},N.p="/dist/",N(N.s=6)}([function(I,N,B){function j(){re=!1}function U(le){if(!le)return void(ee!==ne&&(ee=ne,j()));if(le!==ee){if(le.length!==ne.length)throw new Error("Custom alphabet for shortid must be "+ne.length+" unique characters. You submitted "+le.length+" characters: "+le);var ge=le.split("").filter(function(ue,_e,fe){return _e!==fe.lastIndexOf(ue)});if(ge.length)throw new Error("Custom alphabet for shortid must be "+ne.length+" unique characters. These characters were not unique: "+ge.join(", "));ee=le,j()}}function q(le){return U(le),ee}function Y(le){se.seed(le),te!==le&&(j(),te=le)}function K(){ee||U(ne);for(var le,ge=ee.split(""),ue=[],_e=se.nextValue();ge.length>0;)_e=se.nextValue(),le=Math.floor(_e*ge.length),ue.push(ge.splice(le,1)[0]);return ue.join("")}function G(){return re||(re=K())}function J(le){return G()[le]}function Z(){return ee||ne}var ee,te,re,se=B(19),ne="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";I.exports={get:Z,characters:q,seed:Y,lookup:J,shuffled:G}},function(I,N,B){var j=B(5),U=B.n(j);N.a={animateIn:function(q){U()({targets:q,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(q,Y){U()({targets:q,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:Y})},animateOutBottom:function(q,Y){U()({targets:q,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:Y})},animateReset:function(q){U()({targets:q,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(q,Y,K){U()({targets:q,duration:10,easing:"easeOutQuad",left:Y,opacity:K})},animatePanEnd:function(q,Y){U()({targets:q,opacity:0,duration:300,easing:"easeOutExpo",complete:Y})},clearAnimation:function(q){var Y=U.a.timeline();q.forEach(function(K){Y.add({targets:K.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){K.remove()}})})}}},function(I,N,B){I.exports=B(16)},function(I,N,B){B.d(N,"a",function(){return K});var j=B(8),U=B(1),q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},Y=B(2);B(11).polyfill();var K=function te(re){var se=this;return this.id=Y.generate(),this.options=re,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,Z(this),J(this),this.group=function(ne){ne||(ne={}),ne.globalToasts||(ne.globalToasts={}),Object.assign(ne.globalToasts,se.global);var le=new te(ne);return se.groups.push(le),le},this.register=function(ne,le,ge){return ge=ge||{},ee(se,ne,le,ge)},this.show=function(ne,le){return G(se,ne,le)},this.success=function(ne,le){return le=le||{},le.type="success",G(se,ne,le)},this.info=function(ne,le){return le=le||{},le.type="info",G(se,ne,le)},this.error=function(ne,le){return le=le||{},le.type="error",G(se,ne,le)},this.remove=function(ne){se.toasts=se.toasts.filter(function(le){return le.el.hash!==ne.hash}),ne.parentNode&&ne.parentNode.removeChild(ne)},this.clear=function(ne){return U.a.clearAnimation(se.toasts,function(){ne&&ne()}),se.toasts=[],!0},this},G=function(te,re,se){se=se||{};var ne=null;if((se===void 0?"undefined":q(se))!=="object")return console.error("Options should be a type of object. given : "+se),null;te.options.singleton&&te.toasts.length>0&&(te.cached_options=se,te.toasts[te.toasts.length-1].goAway(0));var le=Object.assign({},te.options);return Object.assign(le,se),ne=B.i(j.a)(te,re,le),te.toasts.push(ne),ne},J=function(te){var re=te.options.globalToasts,se=function(ne,le){return typeof le=="string"&&te[le]?te[le].apply(te,[ne,{}]):G(te,ne,le)};re&&(te.global={},Object.keys(re).forEach(function(ne){te.global[ne]=function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return re[ne].apply(null,[le,se])}}))},Z=function(te){var re=document.createElement("div");re.id=te.id,re.setAttribute("role","status"),re.setAttribute("aria-live","polite"),re.setAttribute("aria-atomic","false"),document.body.appendChild(re),te.container=re},ee=function(te,re,se,ne){te.options.globalToasts||(te.options.globalToasts={}),te.options.globalToasts[re]=function(le,ge){var ue=null;return typeof se=="string"&&(ue=se),typeof se=="function"&&(ue=se(le)),ge(ue,ne)},J(te)}},function(I,N,B){B(22);var j=B(21)(null,null,null,null);I.exports=j.exports},function(I,N,B){(function(j){var U,q,Y,K={scope:{}};K.defineProperty=typeof Object.defineProperties=="function"?Object.defineProperty:function(J,Z,ee){if(ee.get||ee.set)throw new TypeError("ES3 does not support getters and setters.");J!=Array.prototype&&J!=Object.prototype&&(J[Z]=ee.value)},K.getGlobal=function(J){return typeof window<"u"&&window===J?J:j!==void 0&&j!=null?j:J},K.global=K.getGlobal(this),K.SYMBOL_PREFIX="jscomp_symbol_",K.initSymbol=function(){K.initSymbol=function(){},K.global.Symbol||(K.global.Symbol=K.Symbol)},K.symbolCounter_=0,K.Symbol=function(J){return K.SYMBOL_PREFIX+(J||"")+K.symbolCounter_++},K.initSymbolIterator=function(){K.initSymbol();var J=K.global.Symbol.iterator;J||(J=K.global.Symbol.iterator=K.global.Symbol("iterator")),typeof Array.prototype[J]!="function"&&K.defineProperty(Array.prototype,J,{configurable:!0,writable:!0,value:function(){return K.arrayIterator(this)}}),K.initSymbolIterator=function(){}},K.arrayIterator=function(J){var Z=0;return K.iteratorPrototype(function(){return Z<J.length?{done:!1,value:J[Z++]}:{done:!0}})},K.iteratorPrototype=function(J){return K.initSymbolIterator(),J={next:J},J[K.global.Symbol.iterator]=function(){return this},J},K.array=K.array||{},K.iteratorFromArray=function(J,Z){K.initSymbolIterator(),J instanceof String&&(J+="");var ee=0,te={next:function(){if(ee<J.length){var re=ee++;return{value:Z(re,J[re]),done:!1}}return te.next=function(){return{done:!0,value:void 0}},te.next()}};return te[Symbol.iterator]=function(){return te},te},K.polyfill=function(J,Z,ee,te){if(Z){for(ee=K.global,J=J.split("."),te=0;te<J.length-1;te++){var re=J[te];re in ee||(ee[re]={}),ee=ee[re]}J=J[J.length-1],te=ee[J],Z=Z(te),Z!=te&&Z!=null&&K.defineProperty(ee,J,{configurable:!0,writable:!0,value:Z})}},K.polyfill("Array.prototype.keys",function(J){return J||function(){return K.iteratorFromArray(this,function(Z){return Z})}},"es6-impl","es3");var G=this;(function(J,Z){q=[],U=Z,(Y=typeof U=="function"?U.apply(N,q):U)!==void 0&&(I.exports=Y)})(0,function(){function J(Ye){if(!_n.col(Ye))try{return document.querySelectorAll(Ye)}catch{}}function Z(Ye,_t){for(var We=Ye.length,Pe=2<=arguments.length?arguments[1]:void 0,Se=[],$e=0;$e<We;$e++)if($e in Ye){var Ue=Ye[$e];_t.call(Pe,Ue,$e,Ye)&&Se.push(Ue)}return Se}function ee(Ye){return Ye.reduce(function(_t,We){return _t.concat(_n.arr(We)?ee(We):We)},[])}function te(Ye){return _n.arr(Ye)?Ye:(_n.str(Ye)&&(Ye=J(Ye)||Ye),Ye instanceof NodeList||Ye instanceof HTMLCollection?[].slice.call(Ye):[Ye])}function re(Ye,_t){return Ye.some(function(We){return We===_t})}function se(Ye){var _t,We={};for(_t in Ye)We[_t]=Ye[_t];return We}function ne(Ye,_t){var We,Pe=se(Ye);for(We in Ye)Pe[We]=_t.hasOwnProperty(We)?_t[We]:Ye[We];return Pe}function le(Ye,_t){var We,Pe=se(Ye);for(We in _t)Pe[We]=_n.und(Ye[We])?_t[We]:Ye[We];return Pe}function ge(Ye){Ye=Ye.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(Pe,Se,$e,Ue){return Se+Se+$e+$e+Ue+Ue});var We=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Ye);Ye=parseInt(We[1],16);var _t=parseInt(We[2],16),We=parseInt(We[3],16);return"rgba("+Ye+","+_t+","+We+",1)"}function ue(Ye){function _t(Qe,mt,ht){return 0>ht&&(ht+=1),1<ht&&--ht,ht<1/6?Qe+6*(mt-Qe)*ht:.5>ht?mt:ht<2/3?Qe+(mt-Qe)*(2/3-ht)*6:Qe}var Se=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(Ye)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(Ye);Ye=parseInt(Se[1])/360;var We=parseInt(Se[2])/100,Pe=parseInt(Se[3])/100,Se=Se[4]||1;if(We==0)Pe=We=Ye=Pe;else{var $e=.5>Pe?Pe*(1+We):Pe+We-Pe*We,Ue=2*Pe-$e,Pe=_t(Ue,$e,Ye+1/3),We=_t(Ue,$e,Ye);Ye=_t(Ue,$e,Ye-1/3)}return"rgba("+255*Pe+","+255*We+","+255*Ye+","+Se+")"}function _e(Ye){if(Ye=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(Ye))return Ye[2]}function fe(Ye){return-1<Ye.indexOf("translate")||Ye==="perspective"?"px":-1<Ye.indexOf("rotate")||-1<Ye.indexOf("skew")?"deg":void 0}function me(Ye,_t){return _n.fnc(Ye)?Ye(_t.target,_t.id,_t.total):Ye}function ve(Ye,_t){if(_t in Ye.style)return getComputedStyle(Ye).getPropertyValue(_t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function xe(Ye,_t){return _n.dom(Ye)&&re(yn,_t)?"transform":_n.dom(Ye)&&(Ye.getAttribute(_t)||_n.svg(Ye)&&Ye[_t])?"attribute":_n.dom(Ye)&&_t!=="transform"&&ve(Ye,_t)?"css":Ye[_t]!=null?"object":void 0}function oe(Ye,_t){var We=fe(_t),We=-1<_t.indexOf("scale")?1:0+We;if(!(Ye=Ye.style.transform))return We;for(var Pe=[],Se=[],$e=[],Ue=/(\w+)\((.+?)\)/g;Pe=Ue.exec(Ye);)Se.push(Pe[1]),$e.push(Pe[2]);return Ye=Z($e,function(Qe,mt){return Se[mt]===_t}),Ye.length?Ye[0]:We}function ye(Ye,_t){switch(xe(Ye,_t)){case"transform":return oe(Ye,_t);case"css":return ve(Ye,_t);case"attribute":return Ye.getAttribute(_t)}return Ye[_t]||0}function be(Ye,_t){var We=/^(\*=|\+=|-=)/.exec(Ye);if(!We)return Ye;var Pe=_e(Ye)||0;switch(_t=parseFloat(_t),Ye=parseFloat(Ye.replace(We[0],"")),We[0][0]){case"+":return _t+Ye+Pe;case"-":return _t-Ye+Pe;case"*":return _t*Ye+Pe}}function we(Ye,_t){return Math.sqrt(Math.pow(_t.x-Ye.x,2)+Math.pow(_t.y-Ye.y,2))}function Ae(Ye){Ye=Ye.points;for(var _t,We=0,Pe=0;Pe<Ye.numberOfItems;Pe++){var Se=Ye.getItem(Pe);0<Pe&&(We+=we(_t,Se)),_t=Se}return We}function ke(Ye){if(Ye.getTotalLength)return Ye.getTotalLength();switch(Ye.tagName.toLowerCase()){case"circle":return 2*Math.PI*Ye.getAttribute("r");case"rect":return 2*Ye.getAttribute("width")+2*Ye.getAttribute("height");case"line":return we({x:Ye.getAttribute("x1"),y:Ye.getAttribute("y1")},{x:Ye.getAttribute("x2"),y:Ye.getAttribute("y2")});case"polyline":return Ae(Ye);case"polygon":var _t=Ye.points;return Ae(Ye)+we(_t.getItem(_t.numberOfItems-1),_t.getItem(0))}}function Oe(Ye,_t){function We(Ue){return Ue=Ue===void 0?0:Ue,Ye.el.getPointAtLength(1<=_t+Ue?_t+Ue:0)}var Pe=We(),Se=We(-1),$e=We(1);switch(Ye.property){case"x":return Pe.x;case"y":return Pe.y;case"angle":return 180*Math.atan2($e.y-Se.y,$e.x-Se.x)/Math.PI}}function Me(Ye,_t){var We,Pe=/-?\d*\.?\d+/g;if(We=_n.pth(Ye)?Ye.totalLength:Ye,_n.col(We))if(_n.rgb(We)){var Se=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(We);We=Se?"rgba("+Se[1]+",1)":We}else We=_n.hex(We)?ge(We):_n.hsl(We)?ue(We):void 0;else Se=(Se=_e(We))?We.substr(0,We.length-Se.length):We,We=_t&&!/\s/g.test(We)?Se+_t:Se;return We+="",{original:We,numbers:We.match(Pe)?We.match(Pe).map(Number):[0],strings:_n.str(Ye)||_t?We.split(Pe):[]}}function ze(Ye){return Ye=Ye?ee(_n.arr(Ye)?Ye.map(te):te(Ye)):[],Z(Ye,function(_t,We,Pe){return Pe.indexOf(_t)===We})}function Fe(Ye){var _t=ze(Ye);return _t.map(function(We,Pe){return{target:We,id:Pe,total:_t.length}})}function Ze(Ye,_t){var We=se(_t);if(_n.arr(Ye)){var Pe=Ye.length;Pe!==2||_n.obj(Ye[0])?_n.fnc(_t.duration)||(We.duration=_t.duration/Pe):Ye={value:Ye}}return te(Ye).map(function(Se,$e){return $e=$e?0:_t.delay,Se=_n.obj(Se)&&!_n.pth(Se)?Se:{value:Se},_n.und(Se.delay)&&(Se.delay=$e),Se}).map(function(Se){return le(Se,We)})}function lt(Ye,_t){var We,Pe={};for(We in Ye){var Se=me(Ye[We],_t);_n.arr(Se)&&(Se=Se.map(function($e){return me($e,_t)}),Se.length===1&&(Se=Se[0])),Pe[We]=Se}return Pe.duration=parseFloat(Pe.duration),Pe.delay=parseFloat(Pe.delay),Pe}function qe(Ye){return _n.arr(Ye)?Hn.apply(this,Ye):On[Ye]}function Ve(Ye,_t){var We;return Ye.tweens.map(function(Pe){Pe=lt(Pe,_t);var Se=Pe.value,Qe=ye(_t.target,Ye.name),$e=We?We.to.original:Qe,$e=_n.arr(Se)?Se[0]:$e,Ue=be(_n.arr(Se)?Se[1]:Se,$e),Qe=_e(Ue)||_e($e)||_e(Qe);return Pe.from=Me($e,Qe),Pe.to=Me(Ue,Qe),Pe.start=We?We.end:Ye.offset,Pe.end=Pe.start+Pe.delay+Pe.duration,Pe.easing=qe(Pe.easing),Pe.elasticity=(1e3-Math.min(Math.max(Pe.elasticity,1),999))/1e3,Pe.isPath=_n.pth(Se),Pe.isColor=_n.col(Pe.from.original),Pe.isColor&&(Pe.round=1),We=Pe})}function At(Ye,_t){return Z(ee(Ye.map(function(We){return _t.map(function(Pe){var Se=xe(We.target,Pe.name);if(Se){var $e=Ve(Pe,We);Pe={type:Se,property:Pe.name,animatable:We,tweens:$e,duration:$e[$e.length-1].end,delay:$e[0].delay}}else Pe=void 0;return Pe})})),function(We){return!_n.und(We)})}function Nt(Ye,_t,We,Pe){var Se=Ye==="delay";return _t.length?(Se?Math.min:Math.max).apply(Math,_t.map(function($e){return $e[Ye]})):Se?Pe.delay:We.offset+Pe.delay+Pe.duration}function zt(Ye){var _t,We=ne(Qt,Ye),Pe=ne(Jt,Ye),Se=Fe(Ye.targets),$e=[],Ue=le(We,Pe);for(_t in Ye)Ue.hasOwnProperty(_t)||_t==="targets"||$e.push({name:_t,offset:Ue.offset,tweens:Ze(Ye[_t],Pe)});return Ye=At(Se,$e),le(We,{children:[],animatables:Se,animations:Ye,duration:Nt("duration",Ye,We,Pe),delay:Nt("delay",Ye,We,Pe)})}function Ht(Ye){function _t(){return window.Promise&&new Promise(function(fn){return at=fn})}function We(fn){return Rt.reversed?Rt.duration-fn:fn}function Pe(fn){for(var Bn=0,en={},xn=Rt.animations,ot=xn.length;Bn<ot;){var dt=xn[Bn],Ot=dt.animatable,Yt=dt.tweens,Wt=Yt.length-1,gn=Yt[Wt];Wt&&(gn=Z(Yt,function(mn){return fn<mn.end})[0]||gn);for(var Yt=Math.min(Math.max(fn-gn.start-gn.delay,0),gn.duration)/gn.duration,Kn=isNaN(Yt)?1:gn.easing(Yt,gn.elasticity),Yt=gn.to.strings,Ct=gn.round,Wt=[],ft=void 0,ft=gn.to.numbers.length,Tt=0;Tt<ft;Tt++){var pn=void 0,pn=gn.to.numbers[Tt],Lt=gn.from.numbers[Tt],pn=gn.isPath?Oe(gn.value,Kn*pn):Lt+Kn*(pn-Lt);Ct&&(gn.isColor&&2<Tt||(pn=Math.round(pn*Ct)/Ct)),Wt.push(pn)}if(gn=Yt.length)for(ft=Yt[0],Kn=0;Kn<gn;Kn++)Ct=Yt[Kn+1],Tt=Wt[Kn],isNaN(Tt)||(ft=Ct?ft+(Tt+Ct):ft+(Tt+" "));else ft=Wt[0];Fn[dt.type](Ot.target,dt.property,ft,en,Ot.id),dt.currentValue=ft,Bn++}if(Bn=Object.keys(en).length)for(xn=0;xn<Bn;xn++)qt||(qt=ve(document.body,"transform")?"transform":"-webkit-transform"),Rt.animatables[xn].target.style[qt]=en[xn].join(" ");Rt.currentTime=fn,Rt.progress=fn/Rt.duration*100}function Se(fn){Rt[fn]&&Rt[fn](Rt)}function $e(){Rt.remaining&&Rt.remaining!==!0&&Rt.remaining--}function Ue(fn){var Bn=Rt.duration,en=Rt.offset,xn=en+Rt.delay,ot=Rt.currentTime,dt=Rt.reversed,Ot=We(fn);if(Rt.children.length){var Yt=Rt.children,Wt=Yt.length;if(Ot>=Rt.currentTime)for(var gn=0;gn<Wt;gn++)Yt[gn].seek(Ot);else for(;Wt--;)Yt[Wt].seek(Ot)}(Ot>=xn||!Bn)&&(Rt.began||(Rt.began=!0,Se("begin")),Se("run")),Ot>en&&Ot<Bn?Pe(Ot):(Ot<=en&&ot!==0&&(Pe(0),dt&&$e()),(Ot>=Bn&&ot!==Bn||!Bn)&&(Pe(Bn),dt||$e())),Se("update"),fn>=Bn&&(Rt.remaining?(mt=Qe,Rt.direction==="alternate"&&(Rt.reversed=!Rt.reversed)):(Rt.pause(),Rt.completed||(Rt.completed=!0,Se("complete"),"Promise"in window&&(at(),ut=_t()))),ht=0)}Ye=Ye===void 0?{}:Ye;var Qe,mt,ht=0,at=null,ut=_t(),Rt=zt(Ye);return Rt.reset=function(){var fn=Rt.direction,Bn=Rt.loop;for(Rt.currentTime=0,Rt.progress=0,Rt.paused=!0,Rt.began=!1,Rt.completed=!1,Rt.reversed=fn==="reverse",Rt.remaining=fn==="alternate"&&Bn===1?2:Bn,Pe(0),fn=Rt.children.length;fn--;)Rt.children[fn].reset()},Rt.tick=function(fn){Qe=fn,mt||(mt=Qe),Ue((ht+Qe-mt)*Ht.speed)},Rt.seek=function(fn){Ue(We(fn))},Rt.pause=function(){var fn=In.indexOf(Rt);-1<fn&&In.splice(fn,1),Rt.paused=!0},Rt.play=function(){Rt.paused&&(Rt.paused=!1,mt=0,ht=We(Rt.currentTime),In.push(Rt),dn||kt())},Rt.reverse=function(){Rt.reversed=!Rt.reversed,mt=0,ht=We(Rt.currentTime)},Rt.restart=function(){Rt.pause(),Rt.reset(),Rt.play()},Rt.finished=ut,Rt.reset(),Rt.autoplay&&Rt.play(),Rt}var qt,Qt={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},Jt={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},yn="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),_n={arr:function(Ye){return Array.isArray(Ye)},obj:function(Ye){return-1<Object.prototype.toString.call(Ye).indexOf("Object")},pth:function(Ye){return _n.obj(Ye)&&Ye.hasOwnProperty("totalLength")},svg:function(Ye){return Ye instanceof SVGElement},dom:function(Ye){return Ye.nodeType||_n.svg(Ye)},str:function(Ye){return typeof Ye=="string"},fnc:function(Ye){return typeof Ye=="function"},und:function(Ye){return Ye===void 0},hex:function(Ye){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(Ye)},rgb:function(Ye){return/^rgb/.test(Ye)},hsl:function(Ye){return/^hsl/.test(Ye)},col:function(Ye){return _n.hex(Ye)||_n.rgb(Ye)||_n.hsl(Ye)}},Hn=function(){function Ye(_t,We,Pe){return(((1-3*Pe+3*We)*_t+(3*Pe-6*We))*_t+3*We)*_t}return function(_t,We,Pe,Se){if(0<=_t&&1>=_t&&0<=Pe&&1>=Pe){var $e=new Float32Array(11);if(_t!==We||Pe!==Se)for(var Ue=0;11>Ue;++Ue)$e[Ue]=Ye(.1*Ue,_t,Pe);return function(Qe){if(_t===We&&Pe===Se)return Qe;if(Qe===0)return 0;if(Qe===1)return 1;for(var mt=0,ht=1;ht!==10&&$e[ht]<=Qe;++ht)mt+=.1;--ht;var ht=mt+(Qe-$e[ht])/($e[ht+1]-$e[ht])*.1,at=3*(1-3*Pe+3*_t)*ht*ht+2*(3*Pe-6*_t)*ht+3*_t;if(.001<=at){for(mt=0;4>mt&&(at=3*(1-3*Pe+3*_t)*ht*ht+2*(3*Pe-6*_t)*ht+3*_t)!==0;++mt)var ut=Ye(ht,_t,Pe)-Qe,ht=ht-ut/at;Qe=ht}else if(at===0)Qe=ht;else{var ht=mt,mt=mt+.1,Rt=0;do ut=ht+(mt-ht)/2,at=Ye(ut,_t,Pe)-Qe,0<at?mt=ut:ht=ut;while(1e-7<Math.abs(at)&&10>++Rt);Qe=ut}return Ye(Qe,We,Se)}}}}(),On=function(){function Ye(Ue,Qe){return Ue===0||Ue===1?Ue:-Math.pow(2,10*(Ue-1))*Math.sin(2*(Ue-1-Qe/(2*Math.PI)*Math.asin(1))*Math.PI/Qe)}var _t,We="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),Pe={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],Ye],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(Ue,Qe){return 1-Ye(1-Ue,Qe)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(Ue,Qe){return .5>Ue?Ye(2*Ue,Qe)/2:1-Ye(-2*Ue+2,Qe)/2}]},Se={linear:Hn(.25,.25,.75,.75)},$e={};for(_t in Pe)$e.type=_t,Pe[$e.type].forEach(function(Ue){return function(Qe,mt){Se["ease"+Ue.type+We[mt]]=_n.fnc(Qe)?Qe:Hn.apply(G,Qe)}}($e)),$e={type:$e.type};return Se}(),Fn={css:function(Ye,_t,We){return Ye.style[_t]=We},attribute:function(Ye,_t,We){return Ye.setAttribute(_t,We)},object:function(Ye,_t,We){return Ye[_t]=We},transform:function(Ye,_t,We,Pe,Se){Pe[Se]||(Pe[Se]=[]),Pe[Se].push(_t+"("+We+")")}},In=[],dn=0,kt=function(){function Ye(){dn=requestAnimationFrame(_t)}function _t(We){var Pe=In.length;if(Pe){for(var Se=0;Se<Pe;)In[Se]&&In[Se].tick(We),Se++;Ye()}else cancelAnimationFrame(dn),dn=0}return Ye}();return Ht.version="2.2.0",Ht.speed=1,Ht.running=In,Ht.remove=function(Ye){Ye=ze(Ye);for(var _t=In.length;_t--;)for(var We=In[_t],Pe=We.animations,Se=Pe.length;Se--;)re(Ye,Pe[Se].animatable.target)&&(Pe.splice(Se,1),Pe.length||We.pause())},Ht.getValue=ye,Ht.path=function(Ye,_t){var We=_n.str(Ye)?J(Ye)[0]:Ye,Pe=_t||100;return function(Se){return{el:We,property:Se,totalLength:ke(We)*(Pe/100)}}},Ht.setDashoffset=function(Ye){var _t=ke(Ye);return Ye.setAttribute("stroke-dasharray",_t),_t},Ht.bezier=Hn,Ht.easings=On,Ht.timeline=function(Ye){var _t=Ht(Ye);return _t.pause(),_t.duration=0,_t.add=function(We){return _t.children.forEach(function(Pe){Pe.began=!0,Pe.completed=!0}),te(We).forEach(function(Pe){var Se=le(Pe,ne(Jt,Ye||{}));Se.targets=Se.targets||Ye.targets,Pe=_t.duration;var $e=Se.offset;Se.autoplay=!1,Se.direction=_t.direction,Se.offset=_n.und($e)?Pe:be($e,Pe),_t.began=!0,_t.completed=!0,_t.seek(Se.offset),Se=Ht(Se),Se.began=!0,Se.completed=!0,Se.duration>Pe&&(_t.duration=Se.duration),_t.children.push(Se)}),_t.seek(0),_t.reset(),_t.autoplay&&_t.restart(),_t},_t},Ht.random=function(Ye,_t){return Math.floor(Math.random()*(_t-Ye+1))+Ye},Ht})}).call(N,B(25))},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(3),U=B(4),q=B.n(U),Y={install:function(K,G){G||(G={});var J=new j.a(G);K.component("toasted",q.a),K.toasted=K.prototype.$toasted=J}};typeof window<"u"&&window.Vue&&(window.Toasted=Y),N.default=Y},function(I,N,B){B.d(N,"a",function(){return G});var j=B(1),U=this,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Y=function(J,Z,ee){return setTimeout(function(){if(ee.cached_options.position&&ee.cached_options.position.includes("bottom"))return void j.a.animateOutBottom(J,function(){ee.remove(J)});j.a.animateOut(J,function(){ee.remove(J)})},Z),!0},K=function(J,Z){return((typeof HTMLElement>"u"?"undefined":q(HTMLElement))==="object"?Z instanceof HTMLElement:Z&&(Z===void 0?"undefined":q(Z))==="object"&&Z!==null&&Z.nodeType===1&&typeof Z.nodeName=="string")?J.appendChild(Z):J.innerHTML=Z,U},G=function(J,Z){var ee=!1;return{el:J,text:function(te){return K(J,te),this},goAway:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:800;return ee=!0,Y(J,te,Z)},remove:function(){Z.remove(J)},disposed:function(){return ee}}}},function(I,N,B){var j=B(12),U=B.n(j),q=B(1),Y=B(7),K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},G=B(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(le,ge){return typeof ge!="number"&&(ge=0),!(ge+le.length>this.length)&&this.indexOf(le,ge)!==-1}});var J={},Z=null,ee=function(le){return le.className=le.className||null,le.onComplete=le.onComplete||null,le.position=le.position||"top-right",le.duration=le.duration||null,le.keepOnHover=le.keepOnHover||!1,le.theme=le.theme||"toasted-primary",le.type=le.type||"default",le.containerClass=le.containerClass||null,le.fullWidth=le.fullWidth||!1,le.icon=le.icon||null,le.action=le.action||null,le.fitToScreen=le.fitToScreen||null,le.closeOnSwipe=le.closeOnSwipe===void 0||le.closeOnSwipe,le.iconPack=le.iconPack||"material",le.className&&typeof le.className=="string"&&(le.className=le.className.split(" ")),le.className||(le.className=[]),le.theme&&le.className.push(le.theme.trim()),le.type&&le.className.push(le.type),le.containerClass&&typeof le.containerClass=="string"&&(le.containerClass=le.containerClass.split(" ")),le.containerClass||(le.containerClass=[]),le.position&&le.containerClass.push(le.position.trim()),le.fullWidth&&le.containerClass.push("full-width"),le.fitToScreen&&le.containerClass.push("fit-to-screen"),J=le,le},te=function(le,ge){var ue=document.createElement("div");if(ue.classList.add("toasted"),ue.hash=G.generate(),ge.className&&ge.className.forEach(function(me){ue.classList.add(me)}),((typeof HTMLElement>"u"?"undefined":K(HTMLElement))==="object"?le instanceof HTMLElement:le&&(le===void 0?"undefined":K(le))==="object"&&le!==null&&le.nodeType===1&&typeof le.nodeName=="string")?ue.appendChild(le):ue.innerHTML=le,re(ge,ue),ge.closeOnSwipe){var _e=new U.a(ue,{prevent_default:!1});_e.on("pan",function(me){var ve=me.deltaX;ue.classList.contains("panning")||ue.classList.add("panning");var xe=1-Math.abs(ve/80);xe<0&&(xe=0),q.a.animatePanning(ue,ve,xe)}),_e.on("panend",function(me){var ve=me.deltaX;Math.abs(ve)>80?q.a.animatePanEnd(ue,function(){typeof ge.onComplete=="function"&&ge.onComplete(),ue.parentNode&&Z.remove(ue)}):(ue.classList.remove("panning"),q.a.animateReset(ue))})}if(Array.isArray(ge.action))ge.action.forEach(function(me){var ve=ne(me,B.i(Y.a)(ue,Z));ve&&ue.appendChild(ve)});else if(K(ge.action)==="object"){var fe=ne(ge.action,B.i(Y.a)(ue,Z));fe&&ue.appendChild(fe)}return ue},re=function(le,ge){if(le.icon){var ue=document.createElement("i");switch(ue.setAttribute("aria-hidden","true"),le.iconPack){case"fontawesome":ue.classList.add("fa");var _e=le.icon.name?le.icon.name:le.icon;_e.includes("fa-")?ue.classList.add(_e.trim()):ue.classList.add("fa-"+_e.trim());break;case"mdi":ue.classList.add("mdi");var fe=le.icon.name?le.icon.name:le.icon;fe.includes("mdi-")?ue.classList.add(fe.trim()):ue.classList.add("mdi-"+fe.trim());break;case"custom-class":var me=le.icon.name?le.icon.name:le.icon;typeof me=="string"?me.split(" ").forEach(function(xe){ue.classList.add(xe)}):Array.isArray(me)&&me.forEach(function(xe){ue.classList.add(xe.trim())});break;case"callback":var ve=le.icon&&le.icon instanceof Function?le.icon:null;ve&&(ue=ve(ue));break;default:ue.classList.add("material-icons"),ue.textContent=le.icon.name?le.icon.name:le.icon}le.icon.after&&ue.classList.add("after"),se(le,ue,ge)}},se=function(le,ge,ue){le.icon&&(le.icon.after&&le.icon.name?ue.appendChild(ge):(le.icon.name,ue.insertBefore(ge,ue.firstChild)))},ne=function(le,ge){if(!le)return null;var ue=document.createElement("a");if(ue.classList.add("action"),ue.classList.add("ripple"),le.text&&(ue.text=le.text),le.href&&(ue.href=le.href),le.target&&(ue.target=le.target),le.icon){ue.classList.add("icon");var _e=document.createElement("i");switch(J.iconPack){case"fontawesome":_e.classList.add("fa"),le.icon.includes("fa-")?_e.classList.add(le.icon.trim()):_e.classList.add("fa-"+le.icon.trim());break;case"mdi":_e.classList.add("mdi"),le.icon.includes("mdi-")?_e.classList.add(le.icon.trim()):_e.classList.add("mdi-"+le.icon.trim());break;case"custom-class":typeof le.icon=="string"?le.icon.split(" ").forEach(function(fe){ue.classList.add(fe)}):Array.isArray(le.icon)&&le.icon.forEach(function(fe){ue.classList.add(fe.trim())});break;default:_e.classList.add("material-icons"),_e.textContent=le.icon}ue.appendChild(_e)}return le.class&&(typeof le.class=="string"?le.class.split(" ").forEach(function(fe){ue.classList.add(fe)}):Array.isArray(le.class)&&le.class.forEach(function(fe){ue.classList.add(fe.trim())})),le.push&&ue.addEventListener("click",function(fe){if(fe.preventDefault(),!J.router)return void console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs");J.router.push(le.push),le.push.dontClose||ge.goAway(0)}),le.onClick&&typeof le.onClick=="function"&&ue.addEventListener("click",function(fe){le.onClick&&(fe.preventDefault(),le.onClick(fe,ge))}),ue};N.a=function(le,ge,ue){Z=le,ue=ee(ue);var _e=Z.container;ue.containerClass.unshift("toasted-container"),_e.className!==ue.containerClass.join(" ")&&(_e.className="",ue.containerClass.forEach(function(oe){_e.classList.add(oe)}));var fe=te(ge,ue);ge&&_e.appendChild(fe),fe.style.opacity=0,q.a.animateIn(fe);var me=ue.duration,ve=void 0;if(me!==null){var xe=function(){return setInterval(function(){fe.parentNode===null&&window.clearInterval(ve),fe.classList.contains("panning")||(me-=20),me<=0&&(q.a.animateOut(fe,function(){typeof ue.onComplete=="function"&&ue.onComplete(),fe.parentNode&&Z.remove(fe)}),window.clearInterval(ve))},20)};ve=xe(),ue.keepOnHover&&(fe.addEventListener("mouseover",function(){window.clearInterval(ve)}),fe.addEventListener("mouseout",function(){ve=xe()}))}return B.i(Y.a)(fe,Z)}},function(I,N,B){N=I.exports=B(10)(),N.push([I.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(I,N){I.exports=function(){var B=[];return B.toString=function(){for(var j=[],U=0;U<this.length;U++){var q=this[U];q[2]?j.push("@media "+q[2]+"{"+q[1]+"}"):j.push(q[1])}return j.join("")},B.i=function(j,U){typeof j=="string"&&(j=[[null,j,""]]);for(var q={},Y=0;Y<this.length;Y++){var K=this[Y][0];typeof K=="number"&&(q[K]=!0)}for(Y=0;Y<j.length;Y++){var G=j[Y];typeof G[0]=="number"&&q[G[0]]||(U&&!G[2]?G[2]=U:U&&(G[2]="("+G[2]+") and ("+U+")"),B.push(G))}},B}},function(I,N,B){function j(q,Y){if(q==null)throw new TypeError("Cannot convert first argument to object");for(var K=Object(q),G=1;G<arguments.length;G++){var J=arguments[G];if(J!=null)for(var Z=Object.keys(Object(J)),ee=0,te=Z.length;ee<te;ee++){var re=Z[ee],se=Object.getOwnPropertyDescriptor(J,re);se!==void 0&&se.enumerable&&(K[re]=J[re])}}return K}function U(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:j})}I.exports={assign:j,polyfill:U}},function(I,N,B){var j;(function(U,q,Y,K){function G(rt,gt,tt){return setTimeout(re(rt,tt),gt)}function J(rt,gt,tt){return!!Array.isArray(rt)&&(Z(rt,tt[gt],tt),!0)}function Z(rt,gt,tt){var nn;if(rt)if(rt.forEach)rt.forEach(gt,tt);else if(rt.length!==K)for(nn=0;nn<rt.length;)gt.call(tt,rt[nn],nn,rt),nn++;else for(nn in rt)rt.hasOwnProperty(nn)&>.call(tt,rt[nn],nn,rt)}function ee(rt,gt,tt){var nn="DEPRECATED METHOD: "+gt+`
- `+tt+` AT
- `;return function(){var kn=new Error("get-stack-trace"),Un=kn&&kn.stack?kn.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Jn=U.console&&(U.console.warn||U.console.log);return Jn&&Jn.call(U.console,nn,Un),rt.apply(this,arguments)}}function te(rt,gt,tt){var nn,kn=gt.prototype;nn=rt.prototype=Object.create(kn),nn.constructor=rt,nn._super=kn,tt&&en(nn,tt)}function re(rt,gt){return function(){return rt.apply(gt,arguments)}}function se(rt,gt){return typeof rt==dt?rt.apply(gt&>[0]||K,gt):rt}function ne(rt,gt){return rt===K?gt:rt}function le(rt,gt,tt){Z(fe(gt),function(nn){rt.addEventListener(nn,tt,!1)})}function ge(rt,gt,tt){Z(fe(gt),function(nn){rt.removeEventListener(nn,tt,!1)})}function ue(rt,gt){for(;rt;){if(rt==gt)return!0;rt=rt.parentNode}return!1}function _e(rt,gt){return rt.indexOf(gt)>-1}function fe(rt){return rt.trim().split(/\s+/g)}function me(rt,gt,tt){if(rt.indexOf&&!tt)return rt.indexOf(gt);for(var nn=0;nn<rt.length;){if(tt&&rt[nn][tt]==gt||!tt&&rt[nn]===gt)return nn;nn++}return-1}function ve(rt){return Array.prototype.slice.call(rt,0)}function xe(rt,gt,tt){for(var nn=[],kn=[],Un=0;Un<rt.length;){var Jn=gt?rt[Un][gt]:rt[Un];me(kn,Jn)<0&&nn.push(rt[Un]),kn[Un]=Jn,Un++}return tt&&(nn=gt?nn.sort(function(_r,xr){return _r[gt]>xr[gt]}):nn.sort()),nn}function oe(rt,gt){for(var tt,nn,kn=gt[0].toUpperCase()+gt.slice(1),Un=0;Un<xn.length;){if(tt=xn[Un],(nn=tt?tt+kn:gt)in rt)return nn;Un++}return K}function ye(){return Ct++}function be(rt){var gt=rt.ownerDocument||rt;return gt.defaultView||gt.parentWindow||U}function we(rt,gt){var tt=this;this.manager=rt,this.callback=gt,this.element=rt.element,this.target=rt.options.inputTarget,this.domHandler=function(nn){se(rt.options.enable,[rt])&&tt.handler(nn)},this.init()}function Ae(rt){var gt=rt.options.inputClass;return new(gt||(Lt?qt:pn?yn:Tt?Hn:Ht))(rt,ke)}function ke(rt,gt,tt){var nn=tt.pointers.length,kn=tt.changedPointers.length,Un=gt&En&&nn-kn==0,Jn=gt&(jn|ir)&&nn-kn==0;tt.isFirst=!!Un,tt.isFinal=!!Jn,Un&&(rt.session={}),tt.eventType=gt,Oe(rt,tt),rt.emit("hammer.input",tt),rt.recognize(tt),rt.session.prevInput=tt}function Oe(rt,gt){var tt=rt.session,nn=gt.pointers,kn=nn.length;tt.firstInput||(tt.firstInput=Fe(gt)),kn>1&&!tt.firstMultiple?tt.firstMultiple=Fe(gt):kn===1&&(tt.firstMultiple=!1);var Un=tt.firstInput,Jn=tt.firstMultiple,_r=Jn?Jn.center:Un.center,xr=gt.center=Ze(nn);gt.timeStamp=Wt(),gt.deltaTime=gt.timeStamp-Un.timeStamp,gt.angle=At(_r,xr),gt.distance=Ve(_r,xr),Me(tt,gt),gt.offsetDirection=qe(gt.deltaX,gt.deltaY);var Nr=lt(gt.deltaTime,gt.deltaX,gt.deltaY);gt.overallVelocityX=Nr.x,gt.overallVelocityY=Nr.y,gt.overallVelocity=Yt(Nr.x)>Yt(Nr.y)?Nr.x:Nr.y,gt.scale=Jn?zt(Jn.pointers,nn):1,gt.rotation=Jn?Nt(Jn.pointers,nn):0,gt.maxPointers=tt.prevInput?gt.pointers.length>tt.prevInput.maxPointers?gt.pointers.length:tt.prevInput.maxPointers:gt.pointers.length,ze(tt,gt);var Mr=rt.element;ue(gt.srcEvent.target,Mr)&&(Mr=gt.srcEvent.target),gt.target=Mr}function Me(rt,gt){var tt=gt.center,nn=rt.offsetDelta||{},kn=rt.prevDelta||{},Un=rt.prevInput||{};gt.eventType!==En&&Un.eventType!==jn||(kn=rt.prevDelta={x:Un.deltaX||0,y:Un.deltaY||0},nn=rt.offsetDelta={x:tt.x,y:tt.y}),gt.deltaX=kn.x+(tt.x-nn.x),gt.deltaY=kn.y+(tt.y-nn.y)}function ze(rt,gt){var tt,nn,kn,Un,Jn=rt.lastInterval||gt,_r=gt.timeStamp-Jn.timeStamp;if(gt.eventType!=ir&&(_r>mn||Jn.velocity===K)){var xr=gt.deltaX-Jn.deltaX,Nr=gt.deltaY-Jn.deltaY,Mr=lt(_r,xr,Nr);nn=Mr.x,kn=Mr.y,tt=Yt(Mr.x)>Yt(Mr.y)?Mr.x:Mr.y,Un=qe(xr,Nr),rt.lastInterval=gt}else tt=Jn.velocity,nn=Jn.velocityX,kn=Jn.velocityY,Un=Jn.direction;gt.velocity=tt,gt.velocityX=nn,gt.velocityY=kn,gt.direction=Un}function Fe(rt){for(var gt=[],tt=0;tt<rt.pointers.length;)gt[tt]={clientX:Ot(rt.pointers[tt].clientX),clientY:Ot(rt.pointers[tt].clientY)},tt++;return{timeStamp:Wt(),pointers:gt,center:Ze(gt),deltaX:rt.deltaX,deltaY:rt.deltaY}}function Ze(rt){var gt=rt.length;if(gt===1)return{x:Ot(rt[0].clientX),y:Ot(rt[0].clientY)};for(var tt=0,nn=0,kn=0;kn<gt;)tt+=rt[kn].clientX,nn+=rt[kn].clientY,kn++;return{x:Ot(tt/gt),y:Ot(nn/gt)}}function lt(rt,gt,tt){return{x:gt/rt||0,y:tt/rt||0}}function qe(rt,gt){return rt===gt?Ir:Yt(rt)>=Yt(gt)?rt<0?Er:Dr:gt<0?Vr:Ge}function Ve(rt,gt,tt){tt||(tt=vt);var nn=gt[tt[0]]-rt[tt[0]],kn=gt[tt[1]]-rt[tt[1]];return Math.sqrt(nn*nn+kn*kn)}function At(rt,gt,tt){tt||(tt=vt);var nn=gt[tt[0]]-rt[tt[0]],kn=gt[tt[1]]-rt[tt[1]];return 180*Math.atan2(kn,nn)/Math.PI}function Nt(rt,gt){return At(gt[1],gt[0],Xt)+At(rt[1],rt[0],Xt)}function zt(rt,gt){return Ve(gt[0],gt[1],Xt)/Ve(rt[0],rt[1],Xt)}function Ht(){this.evEl=Pn,this.evWin=Nn,this.pressed=!1,we.apply(this,arguments)}function qt(){this.evEl=Rr,this.evWin=tr,we.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Qt(){this.evTarget=Sr,this.evWin=sr,this.started=!1,we.apply(this,arguments)}function Jt(rt,gt){var tt=ve(rt.touches),nn=ve(rt.changedTouches);return gt&(jn|ir)&&(tt=xe(tt.concat(nn),"identifier",!0)),[tt,nn]}function yn(){this.evTarget=mr,this.targetIds={},we.apply(this,arguments)}function _n(rt,gt){var tt=ve(rt.touches),nn=this.targetIds;if(gt&(En|cr)&&tt.length===1)return nn[tt[0].identifier]=!0,[tt,tt];var kn,Un,Jn=ve(rt.changedTouches),_r=[],xr=this.target;if(Un=tt.filter(function(Nr){return ue(Nr.target,xr)}),gt===En)for(kn=0;kn<Un.length;)nn[Un[kn].identifier]=!0,kn++;for(kn=0;kn<Jn.length;)nn[Jn[kn].identifier]&&_r.push(Jn[kn]),gt&(jn|ir)&&delete nn[Jn[kn].identifier],kn++;return _r.length?[xe(Un.concat(_r),"identifier",!0),_r]:void 0}function Hn(){we.apply(this,arguments);var rt=re(this.handler,this);this.touch=new yn(this.manager,rt),this.mouse=new Ht(this.manager,rt),this.primaryTouch=null,this.lastTouches=[]}function On(rt,gt){rt&En?(this.primaryTouch=gt.changedPointers[0].identifier,Fn.call(this,gt)):rt&(jn|ir)&&Fn.call(this,gt)}function Fn(rt){var gt=rt.changedPointers[0];if(gt.identifier===this.primaryTouch){var tt={x:gt.clientX,y:gt.clientY};this.lastTouches.push(tt);var nn=this.lastTouches,kn=function(){var Un=nn.indexOf(tt);Un>-1&&nn.splice(Un,1)};setTimeout(kn,br)}}function In(rt){for(var gt=rt.srcEvent.clientX,tt=rt.srcEvent.clientY,nn=0;nn<this.lastTouches.length;nn++){var kn=this.lastTouches[nn],Un=Math.abs(gt-kn.x),Jn=Math.abs(tt-kn.y);if(Un<=hr&&Jn<=hr)return!0}return!1}function dn(rt,gt){this.manager=rt,this.set(gt)}function kt(rt){if(_e(rt,wt))return wt;var gt=_e(rt,Bt),tt=_e(rt,Kt);return gt&&tt?wt:gt||tt?gt?Bt:Kt:_e(rt,yt)?yt:et}function Ye(rt){this.options=en({},this.defaults,rt||{}),this.id=ye(),this.manager=null,this.options.enable=ne(this.options.enable,!0),this.state=tn,this.simultaneous={},this.requireFail=[]}function _t(rt){return rt&or?"cancel":rt&cn?"end":rt&Cn?"move":rt&hn?"start":""}function We(rt){return rt==Ge?"down":rt==Vr?"up":rt==Er?"left":rt==Dr?"right":""}function Pe(rt,gt){var tt=gt.manager;return tt?tt.get(rt):rt}function Se(){Ye.apply(this,arguments)}function $e(){Se.apply(this,arguments),this.pX=null,this.pY=null}function Ue(){Se.apply(this,arguments)}function Qe(){Ye.apply(this,arguments),this._timer=null,this._input=null}function mt(){Se.apply(this,arguments)}function ht(){Se.apply(this,arguments)}function at(){Ye.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ut(rt,gt){return gt=gt||{},gt.recognizers=ne(gt.recognizers,ut.defaults.preset),new Rt(rt,gt)}function Rt(rt,gt){this.options=en({},ut.defaults,gt||{}),this.options.inputTarget=this.options.inputTarget||rt,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=rt,this.input=Ae(this),this.touchAction=new dn(this,this.options.touchAction),fn(this,!0),Z(this.options.recognizers,function(tt){var nn=this.add(new tt[0](tt[1]));tt[2]&&nn.recognizeWith(tt[2]),tt[3]&&nn.requireFailure(tt[3])},this)}function fn(rt,gt){var tt=rt.element;if(tt.style){var nn;Z(rt.options.cssProps,function(kn,Un){nn=oe(tt.style,Un),gt?(rt.oldCssProps[nn]=tt.style[nn],tt.style[nn]=kn):tt.style[nn]=rt.oldCssProps[nn]||""}),gt||(rt.oldCssProps={})}}function Bn(rt,gt){var tt=q.createEvent("Event");tt.initEvent(rt,!0,!0),tt.gesture=gt,gt.target.dispatchEvent(tt)}var en,xn=["","webkit","Moz","MS","ms","o"],ot=q.createElement("div"),dt="function",Ot=Math.round,Yt=Math.abs,Wt=Date.now;en=typeof Object.assign!="function"?function(rt){if(rt===K||rt===null)throw new TypeError("Cannot convert undefined or null to object");for(var gt=Object(rt),tt=1;tt<arguments.length;tt++){var nn=arguments[tt];if(nn!==K&&nn!==null)for(var kn in nn)nn.hasOwnProperty(kn)&&(gt[kn]=nn[kn])}return gt}:Object.assign;var gn=ee(function(rt,gt,tt){for(var nn=Object.keys(gt),kn=0;kn<nn.length;)(!tt||tt&&rt[nn[kn]]===K)&&(rt[nn[kn]]=gt[nn[kn]]),kn++;return rt},"extend","Use `assign`."),Kn=ee(function(rt,gt){return gn(rt,gt,!0)},"merge","Use `assign`."),Ct=1,ft=/mobile|tablet|ip(ad|hone|od)|android/i,Tt="ontouchstart"in U,Lt=oe(U,"PointerEvent")!==K,pn=Tt&&ft.test(navigator.userAgent),mn=25,En=1,cr=2,jn=4,ir=8,Ir=1,Er=2,Dr=4,Vr=8,Ge=16,pt=Er|Dr,ct=Vr|Ge,Ne=pt|ct,vt=["x","y"],Xt=["clientX","clientY"];we.prototype={handler:function(){},init:function(){this.evEl&&le(this.element,this.evEl,this.domHandler),this.evTarget&&le(this.target,this.evTarget,this.domHandler),this.evWin&&le(be(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&ge(this.element,this.evEl,this.domHandler),this.evTarget&&ge(this.target,this.evTarget,this.domHandler),this.evWin&&ge(be(this.element),this.evWin,this.domHandler)}};var sn={mousedown:En,mousemove:cr,mouseup:jn},Pn="mousedown",Nn="mousemove mouseup";te(Ht,we,{handler:function(rt){var gt=sn[rt.type];gt&En&&rt.button===0&&(this.pressed=!0),gt&cr&&rt.which!==1&&(gt=jn),this.pressed&&(gt&jn&&(this.pressed=!1),this.callback(this.manager,gt,{pointers:[rt],changedPointers:[rt],pointerType:"mouse",srcEvent:rt}))}});var Qn={pointerdown:En,pointermove:cr,pointerup:jn,pointercancel:ir,pointerout:ir},Xn={2:"touch",3:"pen",4:"mouse",5:"kinect"},Rr="pointerdown",tr="pointermove pointerup pointercancel";U.MSPointerEvent&&!U.PointerEvent&&(Rr="MSPointerDown",tr="MSPointerMove MSPointerUp MSPointerCancel"),te(qt,we,{handler:function(rt){var gt=this.store,tt=!1,nn=rt.type.toLowerCase().replace("ms",""),kn=Qn[nn],Un=Xn[rt.pointerType]||rt.pointerType,Jn=Un=="touch",_r=me(gt,rt.pointerId,"pointerId");kn&En&&(rt.button===0||Jn)?_r<0&&(gt.push(rt),_r=gt.length-1):kn&(jn|ir)&&(tt=!0),_r<0||(gt[_r]=rt,this.callback(this.manager,kn,{pointers:gt,changedPointers:[rt],pointerType:Un,srcEvent:rt}),tt&>.splice(_r,1))}});var fr={touchstart:En,touchmove:cr,touchend:jn,touchcancel:ir},Sr="touchstart",sr="touchstart touchmove touchend touchcancel";te(Qt,we,{handler:function(rt){var gt=fr[rt.type];if(gt===En&&(this.started=!0),this.started){var tt=Jt.call(this,rt,gt);gt&(jn|ir)&&tt[0].length-tt[1].length==0&&(this.started=!1),this.callback(this.manager,gt,{pointers:tt[0],changedPointers:tt[1],pointerType:"touch",srcEvent:rt})}}});var Rn={touchstart:En,touchmove:cr,touchend:jn,touchcancel:ir},mr="touchstart touchmove touchend touchcancel";te(yn,we,{handler:function(rt){var gt=Rn[rt.type],tt=_n.call(this,rt,gt);tt&&this.callback(this.manager,gt,{pointers:tt[0],changedPointers:tt[1],pointerType:"touch",srcEvent:rt})}});var br=2500,hr=25;te(Hn,we,{handler:function(rt,gt,tt){var nn=tt.pointerType=="touch",kn=tt.pointerType=="mouse";if(!(kn&&tt.sourceCapabilities&&tt.sourceCapabilities.firesTouchEvents)){if(nn)On.call(this,gt,tt);else if(kn&&In.call(this,tt))return;this.callback(rt,gt,tt)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zn=oe(ot.style,"touchAction"),er=zn!==K,et="auto",yt="manipulation",wt="none",Bt="pan-x",Kt="pan-y",Mt=function(){if(!er)return!1;var rt={},gt=U.CSS&&U.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(tt){rt[tt]=!gt||U.CSS.supports("touch-action",tt)}),rt}();dn.prototype={set:function(rt){rt=="compute"&&(rt=this.compute()),er&&this.manager.element.style&&Mt[rt]&&(this.manager.element.style[zn]=rt),this.actions=rt.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var rt=[];return Z(this.manager.recognizers,function(gt){se(gt.options.enable,[gt])&&(rt=rt.concat(gt.getTouchAction()))}),kt(rt.join(" "))},preventDefaults:function(rt){var gt=rt.srcEvent,tt=rt.offsetDirection;if(this.manager.session.prevented)return void gt.preventDefault();var nn=this.actions,kn=_e(nn,wt)&&!Mt[wt],Un=_e(nn,Kt)&&!Mt[Kt],Jn=_e(nn,Bt)&&!Mt[Bt];if(kn){var _r=rt.pointers.length===1,xr=rt.distance<2,Nr=rt.deltaTime<250;if(_r&&xr&&Nr)return}return Jn&&Un?void 0:kn||Un&&tt&pt||Jn&&tt&ct?this.preventSrc(gt):void 0},preventSrc:function(rt){this.manager.session.prevented=!0,rt.preventDefault()}};var tn=1,hn=2,Cn=4,cn=8,ur=cn,or=16;Ye.prototype={defaults:{},set:function(rt){return en(this.options,rt),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(rt){if(J(rt,"recognizeWith",this))return this;var gt=this.simultaneous;return rt=Pe(rt,this),gt[rt.id]||(gt[rt.id]=rt,rt.recognizeWith(this)),this},dropRecognizeWith:function(rt){return J(rt,"dropRecognizeWith",this)?this:(rt=Pe(rt,this),delete this.simultaneous[rt.id],this)},requireFailure:function(rt){if(J(rt,"requireFailure",this))return this;var gt=this.requireFail;return rt=Pe(rt,this),me(gt,rt)===-1&&(gt.push(rt),rt.requireFailure(this)),this},dropRequireFailure:function(rt){if(J(rt,"dropRequireFailure",this))return this;rt=Pe(rt,this);var gt=me(this.requireFail,rt);return gt>-1&&this.requireFail.splice(gt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(rt){return!!this.simultaneous[rt.id]},emit:function(rt){function gt(kn){tt.manager.emit(kn,rt)}var tt=this,nn=this.state;nn<cn&>(tt.options.event+_t(nn)),gt(tt.options.event),rt.additionalEvent&>(rt.additionalEvent),nn>=cn&>(tt.options.event+_t(nn))},tryEmit:function(rt){if(this.canEmit())return this.emit(rt);this.state=32},canEmit:function(){for(var rt=0;rt<this.requireFail.length;){if(!(this.requireFail[rt].state&(32|tn)))return!1;rt++}return!0},recognize:function(rt){var gt=en({},rt);if(!se(this.options.enable,[this,gt]))return this.reset(),void(this.state=32);this.state&(ur|or|32)&&(this.state=tn),this.state=this.process(gt),this.state&(hn|Cn|cn|or)&&this.tryEmit(gt)},process:function(rt){},getTouchAction:function(){},reset:function(){}},te(Se,Ye,{defaults:{pointers:1},attrTest:function(rt){var gt=this.options.pointers;return gt===0||rt.pointers.length===gt},process:function(rt){var gt=this.state,tt=rt.eventType,nn=gt&(hn|Cn),kn=this.attrTest(rt);return nn&&(tt&ir||!kn)?gt|or:nn||kn?tt&jn?gt|cn:gt&hn?gt|Cn:hn:32}}),te($e,Se,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ne},getTouchAction:function(){var rt=this.options.direction,gt=[];return rt&pt&>.push(Kt),rt&ct&>.push(Bt),gt},directionTest:function(rt){var gt=this.options,tt=!0,nn=rt.distance,kn=rt.direction,Un=rt.deltaX,Jn=rt.deltaY;return kn>.direction||(gt.direction&pt?(kn=Un===0?Ir:Un<0?Er:Dr,tt=Un!=this.pX,nn=Math.abs(rt.deltaX)):(kn=Jn===0?Ir:Jn<0?Vr:Ge,tt=Jn!=this.pY,nn=Math.abs(rt.deltaY))),rt.direction=kn,tt&&nn>gt.threshold&&kn>.direction},attrTest:function(rt){return Se.prototype.attrTest.call(this,rt)&&(this.state&hn||!(this.state&hn)&&this.directionTest(rt))},emit:function(rt){this.pX=rt.deltaX,this.pY=rt.deltaY;var gt=We(rt.direction);gt&&(rt.additionalEvent=this.options.event+gt),this._super.emit.call(this,rt)}}),te(Ue,Se,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(rt){return this._super.attrTest.call(this,rt)&&(Math.abs(rt.scale-1)>this.options.threshold||this.state&hn)},emit:function(rt){if(rt.scale!==1){var gt=rt.scale<1?"in":"out";rt.additionalEvent=this.options.event+gt}this._super.emit.call(this,rt)}}),te(Qe,Ye,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[et]},process:function(rt){var gt=this.options,tt=rt.pointers.length===gt.pointers,nn=rt.distance<gt.threshold,kn=rt.deltaTime>gt.time;if(this._input=rt,!nn||!tt||rt.eventType&(jn|ir)&&!kn)this.reset();else if(rt.eventType&En)this.reset(),this._timer=G(function(){this.state=ur,this.tryEmit()},gt.time,this);else if(rt.eventType&jn)return ur;return 32},reset:function(){clearTimeout(this._timer)},emit:function(rt){this.state===ur&&(rt&&rt.eventType&jn?this.manager.emit(this.options.event+"up",rt):(this._input.timeStamp=Wt(),this.manager.emit(this.options.event,this._input)))}}),te(mt,Se,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(rt){return this._super.attrTest.call(this,rt)&&(Math.abs(rt.rotation)>this.options.threshold||this.state&hn)}}),te(ht,Se,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:pt|ct,pointers:1},getTouchAction:function(){return $e.prototype.getTouchAction.call(this)},attrTest:function(rt){var gt,tt=this.options.direction;return tt&(pt|ct)?gt=rt.overallVelocity:tt&pt?gt=rt.overallVelocityX:tt&ct&&(gt=rt.overallVelocityY),this._super.attrTest.call(this,rt)&&tt&rt.offsetDirection&&rt.distance>this.options.threshold&&rt.maxPointers==this.options.pointers&&Yt(gt)>this.options.velocity&&rt.eventType&jn},emit:function(rt){var gt=We(rt.offsetDirection);gt&&this.manager.emit(this.options.event+gt,rt),this.manager.emit(this.options.event,rt)}}),te(at,Ye,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[yt]},process:function(rt){var gt=this.options,tt=rt.pointers.length===gt.pointers,nn=rt.distance<gt.threshold,kn=rt.deltaTime<gt.time;if(this.reset(),rt.eventType&En&&this.count===0)return this.failTimeout();if(nn&&kn&&tt){if(rt.eventType!=jn)return this.failTimeout();var Un=!this.pTime||rt.timeStamp-this.pTime<gt.interval,Jn=!this.pCenter||Ve(this.pCenter,rt.center)<gt.posThreshold;if(this.pTime=rt.timeStamp,this.pCenter=rt.center,Jn&&Un?this.count+=1:this.count=1,this._input=rt,this.count%gt.taps===0)return this.hasRequireFailures()?(this._timer=G(function(){this.state=ur,this.tryEmit()},gt.interval,this),hn):ur}return 32},failTimeout:function(){return this._timer=G(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ur&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ut.VERSION="2.0.7",ut.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[mt,{enable:!1}],[Ue,{enable:!1},["rotate"]],[ht,{direction:pt}],[$e,{direction:pt},["swipe"]],[at],[at,{event:"doubletap",taps:2},["tap"]],[Qe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Rt.prototype={set:function(rt){return en(this.options,rt),rt.touchAction&&this.touchAction.update(),rt.inputTarget&&(this.input.destroy(),this.input.target=rt.inputTarget,this.input.init()),this},stop:function(rt){this.session.stopped=rt?2:1},recognize:function(rt){var gt=this.session;if(!gt.stopped){this.touchAction.preventDefaults(rt);var tt,nn=this.recognizers,kn=gt.curRecognizer;(!kn||kn&&kn.state&ur)&&(kn=gt.curRecognizer=null);for(var Un=0;Un<nn.length;)tt=nn[Un],gt.stopped===2||kn&&tt!=kn&&!tt.canRecognizeWith(kn)?tt.reset():tt.recognize(rt),!kn&&tt.state&(hn|Cn|cn)&&(kn=gt.curRecognizer=tt),Un++}},get:function(rt){if(rt instanceof Ye)return rt;for(var gt=this.recognizers,tt=0;tt<gt.length;tt++)if(gt[tt].options.event==rt)return gt[tt];return null},add:function(rt){if(J(rt,"add",this))return this;var gt=this.get(rt.options.event);return gt&&this.remove(gt),this.recognizers.push(rt),rt.manager=this,this.touchAction.update(),rt},remove:function(rt){if(J(rt,"remove",this))return this;if(rt=this.get(rt)){var gt=this.recognizers,tt=me(gt,rt);tt!==-1&&(gt.splice(tt,1),this.touchAction.update())}return this},on:function(rt,gt){if(rt!==K&>!==K){var tt=this.handlers;return Z(fe(rt),function(nn){tt[nn]=tt[nn]||[],tt[nn].push(gt)}),this}},off:function(rt,gt){if(rt!==K){var tt=this.handlers;return Z(fe(rt),function(nn){gt?tt[nn]&&tt[nn].splice(me(tt[nn],gt),1):delete tt[nn]}),this}},emit:function(rt,gt){this.options.domEvents&&Bn(rt,gt);var tt=this.handlers[rt]&&this.handlers[rt].slice();if(tt&&tt.length){gt.type=rt,gt.preventDefault=function(){gt.srcEvent.preventDefault()};for(var nn=0;nn<tt.length;)tt[nn](gt),nn++}},destroy:function(){this.element&&fn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},en(ut,{INPUT_START:En,INPUT_MOVE:cr,INPUT_END:jn,INPUT_CANCEL:ir,STATE_POSSIBLE:tn,STATE_BEGAN:hn,STATE_CHANGED:Cn,STATE_ENDED:cn,STATE_RECOGNIZED:ur,STATE_CANCELLED:or,STATE_FAILED:32,DIRECTION_NONE:Ir,DIRECTION_LEFT:Er,DIRECTION_RIGHT:Dr,DIRECTION_UP:Vr,DIRECTION_DOWN:Ge,DIRECTION_HORIZONTAL:pt,DIRECTION_VERTICAL:ct,DIRECTION_ALL:Ne,Manager:Rt,Input:we,TouchAction:dn,TouchInput:yn,MouseInput:Ht,PointerEventInput:qt,TouchMouseInput:Hn,SingleTouchInput:Qt,Recognizer:Ye,AttrRecognizer:Se,Tap:at,Pan:$e,Swipe:ht,Pinch:Ue,Rotate:mt,Press:Qe,on:le,off:ge,each:Z,merge:Kn,extend:gn,assign:en,inherit:te,bindFn:re,prefixed:oe}),(U!==void 0?U:typeof self<"u"?self:{}).Hammer=ut,(j=(function(){return ut}).call(N,B,N,I))!==K&&(I.exports=j)})(window,document)},function(I,N){I.exports=function(B,j,U){for(var q=(2<<Math.log(j.length-1)/Math.LN2)-1,Y=-~(1.6*q*U/j.length),K="";;)for(var G=B(Y),J=Y;J--;)if(K+=j[G[J]&q]||"",K.length===+U)return K}},function(I,N,B){function j(J){var Z="",ee=Math.floor(.001*(Date.now()-K));return ee===q?U++:(U=0,q=ee),Z+=Y(G),Z+=Y(J),U>0&&(Z+=Y(U)),Z+=Y(ee)}var U,q,Y=B(15),K=(B(0),1567752802062),G=7;I.exports=j},function(I,N,B){function j(K){for(var G,J=0,Z="";!G;)Z+=Y(q,U.get(),1),G=K<Math.pow(16,J+1),J++;return Z}var U=B(0),q=B(18),Y=B(13);I.exports=j},function(I,N,B){function j(ee){return K.seed(ee),I.exports}function U(ee){return Z=ee,I.exports}function q(ee){return ee!==void 0&&K.characters(ee),K.shuffled()}function Y(){return G(Z)}var K=B(0),G=B(14),J=B(17),Z=B(20)||0;I.exports=Y,I.exports.generate=Y,I.exports.seed=j,I.exports.worker=U,I.exports.characters=q,I.exports.isValid=J},function(I,N,B){function j(q){return!(!q||typeof q!="string"||q.length<6)&&!new RegExp("[^"+U.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(q)}var U=B(0);I.exports=j},function(I,N,B){var j,U=typeof window=="object"&&(window.crypto||window.msCrypto);j=U&&U.getRandomValues?function(q){return U.getRandomValues(new Uint8Array(q))}:function(q){for(var Y=[],K=0;K<q;K++)Y.push(Math.floor(256*Math.random()));return Y},I.exports=j},function(I,N,B){function j(){return(q=(9301*q+49297)%233280)/233280}function U(Y){q=Y}var q=1;I.exports={nextValue:j,seed:U}},function(I,N,B){I.exports=0},function(I,N){I.exports=function(B,j,U,q){var Y,K=B=B||{},G=typeof B.default;G!=="object"&&G!=="function"||(Y=B,K=B.default);var J=typeof K=="function"?K.options:K;if(j&&(J.render=j.render,J.staticRenderFns=j.staticRenderFns),U&&(J._scopeId=U),q){var Z=Object.create(J.computed||null);Object.keys(q).forEach(function(ee){var te=q[ee];Z[ee]=function(){return te}}),J.computed=Z}return{esModule:Y,exports:K,options:J}}},function(I,N,B){var j=B(9);typeof j=="string"&&(j=[[I.i,j,""]]),j.locals&&(I.exports=j.locals),B(23)("df0682cc",j,!0,{})},function(I,N,B){function j(fe){for(var me=0;me<fe.length;me++){var ve=fe[me],xe=Z[ve.id];if(xe){xe.refs++;for(var oe=0;oe<xe.parts.length;oe++)xe.parts[oe](ve.parts[oe]);for(;oe<ve.parts.length;oe++)xe.parts.push(q(ve.parts[oe]));xe.parts.length>ve.parts.length&&(xe.parts.length=ve.parts.length)}else{for(var ye=[],oe=0;oe<ve.parts.length;oe++)ye.push(q(ve.parts[oe]));Z[ve.id]={id:ve.id,refs:1,parts:ye}}}}function U(){var fe=document.createElement("style");return fe.type="text/css",ee.appendChild(fe),fe}function q(fe){var me,ve,xe=document.querySelector("style["+ge+'~="'+fe.id+'"]');if(xe){if(se)return ne;xe.parentNode.removeChild(xe)}if(ue){var oe=re++;xe=te||(te=U()),me=Y.bind(null,xe,oe,!1),ve=Y.bind(null,xe,oe,!0)}else xe=U(),me=K.bind(null,xe),ve=function(){xe.parentNode.removeChild(xe)};return me(fe),function(ye){if(ye){if(ye.css===fe.css&&ye.media===fe.media&&ye.sourceMap===fe.sourceMap)return;me(fe=ye)}else ve()}}function Y(fe,me,ve,xe){var oe=ve?"":xe.css;if(fe.styleSheet)fe.styleSheet.cssText=_e(me,oe);else{var ye=document.createTextNode(oe),be=fe.childNodes;be[me]&&fe.removeChild(be[me]),be.length?fe.insertBefore(ye,be[me]):fe.appendChild(ye)}}function K(fe,me){var ve=me.css,xe=me.media,oe=me.sourceMap;if(xe&&fe.setAttribute("media",xe),le.ssrId&&fe.setAttribute(ge,me.id),oe&&(ve+=`
- /*# sourceURL=`+oe.sources[0]+" */",ve+=`
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(oe))))+" */"),fe.styleSheet)fe.styleSheet.cssText=ve;else{for(;fe.firstChild;)fe.removeChild(fe.firstChild);fe.appendChild(document.createTextNode(ve))}}var G=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!G)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 J=B(24),Z={},ee=G&&(document.head||document.getElementsByTagName("head")[0]),te=null,re=0,se=!1,ne=function(){},le=null,ge="data-vue-ssr-id",ue=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());I.exports=function(fe,me,ve,xe){se=ve,le=xe||{};var oe=J(fe,me);return j(oe),function(ye){for(var be=[],we=0;we<oe.length;we++){var Ae=oe[we],ke=Z[Ae.id];ke.refs--,be.push(ke)}ye?(oe=J(fe,ye),j(oe)):oe=[];for(var we=0;we<be.length;we++){var ke=be[we];if(ke.refs===0){for(var Oe=0;Oe<ke.parts.length;Oe++)ke.parts[Oe]();delete Z[ke.id]}}}};var _e=function(){var fe=[];return function(me,ve){return fe[me]=ve,fe.filter(Boolean).join(`
- `)}}()},function(I,N){I.exports=function(B,j){for(var U=[],q={},Y=0;Y<j.length;Y++){var K=j[Y],G=K[0],J=K[1],Z=K[2],ee=K[3],te={id:B+":"+Y,css:J,media:Z,sourceMap:ee};q[G]?q[G].parts.push(te):U.push(q[G]={id:G,parts:[te]})}return U}},function(I,N){var B;B=function(){return this}();try{B=B||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(B=window)}I.exports=B}])})})(vueToasted_min);var vueToasted_minExports=vueToasted_min.exports;const Toasted=getDefaultExportFromCjs(vueToasted_minExports);Vue$3.use(Toasted,{position:"bottom-left",duration:3500,theme:"statamic",action:{text:"×",onClick:(M,$)=>{$.goAway(0)}}});const Toast={data:{toast:null,flash:null,initialToasts:null},created(){this.flash=Statamic.$config.get("flash"),this.initialToasts=Statamic.$config.get("toasts"),this.$events.$on("toast.success",this.setFlashSuccess),this.$events.$on("toast.error",this.setFlashError),this.$events.$on("toast.info",this.setFlashInfo)},mounted(){this.flashMessages(this.flash),this.flashMessages(this.initialToasts)},methods:{flashMessages(M){M.forEach(({type:$,message:I,duration:N})=>{const B={duration:N};switch($){case"error":this.$toast.error(I,B);break;case"success":this.$toast.success(I,B);break;default:this.$toast.info(I,B)}})},setFlashInfo(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" width="24" height="24"><g transform="matrix(1,0,0,1,0,0)"><path d="M 14.25,16.5H13.5c-0.828,0-1.5-0.672-1.5-1.5v-3.75c0-0.414-0.336-0.75-0.75-0.75H10.5 " stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M 11.625,6.75 c-0.207,0-0.375,0.168-0.375,0.375S11.418,7.5,11.625,7.5S12,7.332,12,7.125S11.832,6.75,11.625,6.75L11.625,6.75 " stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M 12,0.75 c6.213,0,11.25,5.037,11.25,11.25S18.213,23.25,12,23.25S0.75,18.213,0.75,12S5.787,0.75,12,0.75z" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.show(M,this.normalizeToastOptions($))},setFlashSuccess(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" height="12" width="12"><g transform="matrix(1,0,0,1,0,0)"><path d="M23.146,5.4l-2.792-2.8c-0.195-0.196-0.512-0.196-0.707-0.001c0,0-0.001,0.001-0.001,0.001L7.854,14.4 c-0.195,0.196-0.512,0.196-0.707,0.001c0,0-0.001-0.001-0.001-0.001l-2.792-2.8c-0.195-0.196-0.512-0.196-0.707-0.001 c0,0-0.001,0.001-0.001,0.001l-2.792,2.8c-0.195,0.195-0.195,0.512,0,0.707L7.146,21.4c0.195,0.196,0.512,0.196,0.707,0.001 c0,0,0.001-0.001,0.001-0.001L23.146,6.1C23.337,5.906,23.337,5.594,23.146,5.4z" stroke="none" fill="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.success(M,this.normalizeToastOptions($))},setFlashError(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" height="18" width="18"><g transform="matrix(1,0,0,1,0,0)"><path d="M11.983,0C8.777,0.052,5.72,1.365,3.473,3.653C1.202,5.914-0.052,9.002,0,12.207C-0.008,18.712,5.26,23.992,11.765,24 c0.012,0,0.023,0,0.035,0h0.214c6.678-0.069,12.04-5.531,11.986-12.209l0,0c0.015-6.498-5.24-11.778-11.738-11.794 C12.169-0.003,12.076-0.002,11.983,0z M10.5,16.542c-0.03-0.815,0.606-1.499,1.421-1.529c0.009,0,0.019-0.001,0.028-0.001h0.027 c0.82,0.002,1.492,0.651,1.523,1.47c0.03,0.814-0.605,1.499-1.419,1.529c-0.01,0-0.02,0.001-0.03,0.001h-0.027 C11.203,18.009,10.532,17.361,10.5,16.542z M11,12.5v-6c0-0.552,0.448-1,1-1s1,0.448,1,1v6c0,0.552-0.448,1-1,1S11,13.052,11,12.5z" stroke="none" fill="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.error(M,this.normalizeToastOptions($))},normalizeToastOptions(M){return M.duration||delete M.duration,M}}};function _typeof$2(M){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$2(M)}function _classCallCheck(M,$){if(!(M instanceof $))throw new TypeError("Cannot call a class as a function")}function _defineProperties(M,$){for(var I=0;I<$.length;I++){var N=$[I];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function _createClass(M,$,I){return $&&_defineProperties(M.prototype,$),I&&_defineProperties(M,I),Object.defineProperty(M,"prototype",{writable:!1}),M}function _extends(){return _extends=Object.assign||function(M){for(var $=1;$<arguments.length;$++){var I=arguments[$];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(M[N]=I[N])}return M},_extends.apply(this,arguments)}function _inherits(M,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create($&&$.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),$&&_setPrototypeOf(M,$)}function _getPrototypeOf(M){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},_getPrototypeOf(M)}function _setPrototypeOf(M,$){return _setPrototypeOf=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},_setPrototypeOf(M,$)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _assertThisInitialized(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function _possibleConstructorReturn(M,$){if($&&(typeof $=="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(M)}function _createSuper(M){var $=_isNativeReflectConstruct();return function(){var N=_getPrototypeOf(M),B;if($){var j=_getPrototypeOf(this).constructor;B=Reflect.construct(N,arguments,j)}else B=N.apply(this,arguments);return _possibleConstructorReturn(this,B)}}var Channel=function(){function M(){_classCallCheck(this,M)}return _createClass(M,[{key:"listenForWhisper",value:function(I,N){return this.listen(".client-"+I,N)}},{key:"notification",value:function(I){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",I)}},{key:"stopListeningForWhisper",value:function(I,N){return this.stopListening(".client-"+I,N)}}]),M}(),EventFormatter=function(){function M($){_classCallCheck(this,M),this.setNamespace($)}return _createClass(M,[{key:"format",value:function(I){return I.charAt(0)==="."||I.charAt(0)==="\\"?I.substr(1):(this.namespace&&(I=this.namespace+"."+I),I.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(I){this.namespace=I}}]),M}(),PusherChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(N,B,j){var U;return _classCallCheck(this,I),U=$.call(this),U.name=B,U.pusher=N,U.options=j,U.eventFormatter=new EventFormatter(U.options.namespace),U.subscribe(),U}return _createClass(I,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(B,j){return this.on(this.eventFormatter.format(B),j),this}},{key:"listenToAll",value:function(B){var j=this;return this.subscription.bind_global(function(U,q){if(!U.startsWith("pusher:")){var Y=j.options.namespace.replace(/\./g,"\\"),K=U.startsWith(Y)?U.substring(Y.length+1):"."+U;B(K,q)}}),this}},{key:"stopListening",value:function(B,j){return j?this.subscription.unbind(this.eventFormatter.format(B),j):this.subscription.unbind(this.eventFormatter.format(B)),this}},{key:"stopListeningToAll",value:function(B){return B?this.subscription.unbind_global(B):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(B){return this.on("pusher:subscription_succeeded",function(){B()}),this}},{key:"error",value:function(B){return this.on("pusher:subscription_error",function(j){B(j)}),this}},{key:"on",value:function(B,j){return this.subscription.bind(B,j),this}}]),I}(Channel),PusherPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}}]),I}(PusherChannel),PusherEncryptedPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}}]),I}(PusherChannel),PusherPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this.on("pusher:subscription_succeeded",function(j){B(Object.keys(j.members).map(function(U){return j.members[U]}))}),this}},{key:"joining",value:function(B){return this.on("pusher:member_added",function(j){B(j.info)}),this}},{key:"leaving",value:function(B){return this.on("pusher:member_removed",function(j){B(j.info)}),this}},{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}}]),I}(PusherChannel),SocketIoChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(N,B,j){var U;return _classCallCheck(this,I),U=$.call(this),U.events={},U.listeners={},U.name=B,U.socket=N,U.options=j,U.eventFormatter=new EventFormatter(U.options.namespace),U.subscribe(),U}return _createClass(I,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(B,j){return this.on(this.eventFormatter.format(B),j),this}},{key:"stopListening",value:function(B,j){return this.unbindEvent(this.eventFormatter.format(B),j),this}},{key:"subscribed",value:function(B){return this.on("connect",function(j){B(j)}),this}},{key:"error",value:function(B){return this}},{key:"on",value:function(B,j){var U=this;return this.listeners[B]=this.listeners[B]||[],this.events[B]||(this.events[B]=function(q,Y){U.name===q&&U.listeners[B]&&U.listeners[B].forEach(function(K){return K(Y)})},this.socket.on(B,this.events[B])),this.listeners[B].push(j),this}},{key:"unbind",value:function(){var B=this;Object.keys(this.events).forEach(function(j){B.unbindEvent(j)})}},{key:"unbindEvent",value:function(B,j){this.listeners[B]=this.listeners[B]||[],j&&(this.listeners[B]=this.listeners[B].filter(function(U){return U!==j})),(!j||this.listeners[B].length===0)&&(this.events[B]&&(this.socket.removeListener(B,this.events[B]),delete this.events[B]),delete this.listeners[B])}}]),I}(Channel),SocketIoPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(B),data:j}),this}}]),I}(SocketIoChannel),SocketIoPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this.on("presence:subscribed",function(j){B(j.map(function(U){return U.user_info}))}),this}},{key:"joining",value:function(B){return this.on("presence:joining",function(j){return B(j.user_info)}),this}},{key:"leaving",value:function(B){return this.on("presence:leaving",function(j){return B(j.user_info)}),this}}]),I}(SocketIoPrivateChannel),NullChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(B,j){return this}},{key:"listenToAll",value:function(B){return this}},{key:"stopListening",value:function(B,j){return this}},{key:"subscribed",value:function(B){return this}},{key:"error",value:function(B){return this}},{key:"on",value:function(B,j){return this}}]),I}(Channel),NullPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this}}]),I}(NullChannel),NullPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this}},{key:"joining",value:function(B){return this}},{key:"leaving",value:function(B){return this}},{key:"whisper",value:function(B,j){return this}}]),I}(NullChannel),Connector=function(){function M($){_classCallCheck(this,M),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions($),this.connect()}return _createClass(M,[{key:"setOptions",value:function(I){this.options=_extends(this._defaultOptions,I);var N=this.csrfToken();return N&&(this.options.auth.headers["X-CSRF-TOKEN"]=N,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=N),N=this.options.bearerToken,N&&(this.options.auth.headers.Authorization="Bearer "+N,this.options.userAuthentication.headers.Authorization="Bearer "+N),I}},{key:"csrfToken",value:function(){var I;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(I=document.querySelector('meta[name="csrf-token"]'))?I.getAttribute("content"):null}}]),M}(),PusherConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(B,j,U){return this.channel(B).listen(j,U)}},{key:"channel",value:function(B){return this.channels[B]||(this.channels[B]=new PusherChannel(this.pusher,B,this.options)),this.channels[B]}},{key:"privateChannel",value:function(B){return this.channels["private-"+B]||(this.channels["private-"+B]=new PusherPrivateChannel(this.pusher,"private-"+B,this.options)),this.channels["private-"+B]}},{key:"encryptedPrivateChannel",value:function(B){return this.channels["private-encrypted-"+B]||(this.channels["private-encrypted-"+B]=new PusherEncryptedPrivateChannel(this.pusher,"private-encrypted-"+B,this.options)),this.channels["private-encrypted-"+B]}},{key:"presenceChannel",value:function(B){return this.channels["presence-"+B]||(this.channels["presence-"+B]=new PusherPresenceChannel(this.pusher,"presence-"+B,this.options)),this.channels["presence-"+B]}},{key:"leave",value:function(B){var j=this,U=[B,"private-"+B,"private-encrypted-"+B,"presence-"+B];U.forEach(function(q,Y){j.leaveChannel(q)})}},{key:"leaveChannel",value:function(B){this.channels[B]&&(this.channels[B].unsubscribe(),delete this.channels[B])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),I}(Connector),SocketIoConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){var B=this,j=this.getSocketIO();return this.socket=j(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(B.channels).forEach(function(U){U.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(B,j,U){return this.channel(B).listen(j,U)}},{key:"channel",value:function(B){return this.channels[B]||(this.channels[B]=new SocketIoChannel(this.socket,B,this.options)),this.channels[B]}},{key:"privateChannel",value:function(B){return this.channels["private-"+B]||(this.channels["private-"+B]=new SocketIoPrivateChannel(this.socket,"private-"+B,this.options)),this.channels["private-"+B]}},{key:"presenceChannel",value:function(B){return this.channels["presence-"+B]||(this.channels["presence-"+B]=new SocketIoPresenceChannel(this.socket,"presence-"+B,this.options)),this.channels["presence-"+B]}},{key:"leave",value:function(B){var j=this,U=[B,"private-"+B,"presence-"+B];U.forEach(function(q){j.leaveChannel(q)})}},{key:"leaveChannel",value:function(B){this.channels[B]&&(this.channels[B].unsubscribe(),delete this.channels[B])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),I}(Connector),NullConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){}},{key:"listen",value:function(B,j,U){return new NullChannel}},{key:"channel",value:function(B){return new NullChannel}},{key:"privateChannel",value:function(B){return new NullPrivateChannel}},{key:"encryptedPrivateChannel",value:function(B){return new NullPrivateChannel}},{key:"presenceChannel",value:function(B){return new NullPresenceChannel}},{key:"leave",value:function(B){}},{key:"leaveChannel",value:function(B){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),I}(Connector),Echo$1=function(){function M($){_classCallCheck(this,M),this.options=$,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return _createClass(M,[{key:"channel",value:function(I){return this.connector.channel(I)}},{key:"connect",value:function(){this.options.broadcaster=="pusher"?this.connector=new PusherConnector(this.options):this.options.broadcaster=="socket.io"?this.connector=new SocketIoConnector(this.options):this.options.broadcaster=="null"?this.connector=new NullConnector(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(I){return this.connector.presenceChannel(I)}},{key:"leave",value:function(I){this.connector.leave(I)}},{key:"leaveChannel",value:function(I){this.connector.leaveChannel(I)}},{key:"leaveAllChannels",value:function(){for(var I in this.connector.channels)this.leaveChannel(I)}},{key:"listen",value:function(I,N,B){return this.connector.listen(I,N,B)}},{key:"private",value:function(I){return this.connector.privateChannel(I)}},{key:"encryptedPrivate",value:function(I){return this.connector.encryptedPrivateChannel(I)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":_typeof$2(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var I=this;Vue.http.interceptors.push(function(N,B){I.socketId()&&N.headers.set("X-Socket-ID",I.socketId()),B()})}},{key:"registerAxiosRequestInterceptor",value:function(){var I=this;axios.interceptors.request.use(function(N){return I.socketId()&&(N.headers["X-Socket-Id"]=I.socketId()),N})}},{key:"registerjQueryAjaxSetup",value:function(){var I=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(N,B,j){I.socketId()&&j.setRequestHeader("X-Socket-Id",I.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var I=this;document.addEventListener("turbo:before-fetch-request",function(N){N.detail.fetchOptions.headers["X-Socket-Id"]=I.socketId()})}}]),M}(),pusher={exports:{}};/*!
- * Pusher JavaScript Library v4.4.0
- * https://pusher.com/
- *
- * Copyright 2017, Pusher
- * Released under the MIT licence.
- */(function(M,$){(function(N,B){M.exports=B()})(commonjsGlobal,function(){return function(I){var N={};function B(j){if(N[j])return N[j].exports;var U=N[j]={exports:{},id:j,loaded:!1};return I[j].call(U.exports,U,U.exports,B),U.loaded=!0,U.exports}return B.m=I,B.c=N,B.p="",B(0)}([function(I,N,B){var j=B(1);I.exports=j.default},function(I,N,B){var j=B(2),U=B(9),q=B(24),Y=B(39),K=B(40),G=B(41),J=B(12),Z=B(5),ee=B(71),te=B(8),re=B(43),se=B(14),ne=function(){function ge(ue,_e){var fe=this;if(le(ue),_e=_e||{},!_e.cluster&&!(_e.wsHost||_e.httpHost)){var me=se.default.buildLogSuffix("javascriptQuickStart");te.default.warn("You should always specify a cluster when connecting. "+me)}this.key=ue,this.config=U.extend(ee.getGlobalConfig(),_e.cluster?ee.getClusterConfig(_e.cluster):{},_e),this.channels=re.default.createChannels(),this.global_emitter=new q.default,this.sessionID=Math.floor(Math.random()*1e9),this.timeline=new Y.default(this.key,this.sessionID,{cluster:this.config.cluster,features:ge.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:K.default.INFO,version:Z.default.VERSION}),this.config.disableStats||(this.timelineSender=re.default.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+j.default.TimelineTransport.name}));var ve=function(xe){var oe=U.extend({},fe.config,xe);return G.build(j.default.getDefaultStrategy(oe),oe)};this.connection=re.default.createConnectionManager(this.key,U.extend({getStrategy:ve,timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",function(){fe.subscribeAll(),fe.timelineSender&&fe.timelineSender.send(fe.connection.isUsingTLS())}),this.connection.bind("message",function(xe){var oe=xe.event,ye=oe.indexOf("pusher_internal:")===0;if(xe.channel){var be=fe.channel(xe.channel);be&&be.handleEvent(xe)}ye||fe.global_emitter.emit(xe.event,xe.data)}),this.connection.bind("connecting",function(){fe.channels.disconnect()}),this.connection.bind("disconnected",function(){fe.channels.disconnect()}),this.connection.bind("error",function(xe){te.default.warn("Error",xe)}),ge.instances.push(this),this.timeline.info({instances:ge.instances.length}),ge.isReady&&this.connect()}return ge.ready=function(){ge.isReady=!0;for(var ue=0,_e=ge.instances.length;ue<_e;ue++)ge.instances[ue].connect()},ge.log=function(ue){ge.logToConsole&&window.console&&window.console.log&&window.console.log(ue)},ge.getClientFeatures=function(){return U.keys(U.filterObject({ws:j.default.Transports.ws},function(ue){return ue.isSupported({})}))},ge.prototype.channel=function(ue){return this.channels.find(ue)},ge.prototype.allChannels=function(){return this.channels.all()},ge.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var ue=this.connection.isUsingTLS(),_e=this.timelineSender;this.timelineSenderTimer=new J.PeriodicTimer(6e4,function(){_e.send(ue)})}},ge.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},ge.prototype.bind=function(ue,_e,fe){return this.global_emitter.bind(ue,_e,fe),this},ge.prototype.unbind=function(ue,_e,fe){return this.global_emitter.unbind(ue,_e,fe),this},ge.prototype.bind_global=function(ue){return this.global_emitter.bind_global(ue),this},ge.prototype.unbind_global=function(ue){return this.global_emitter.unbind_global(ue),this},ge.prototype.unbind_all=function(ue){return this.global_emitter.unbind_all(),this},ge.prototype.subscribeAll=function(){var ue;for(ue in this.channels.channels)this.channels.channels.hasOwnProperty(ue)&&this.subscribe(ue)},ge.prototype.subscribe=function(ue){var _e=this.channels.add(ue,this);return _e.subscriptionPending&&_e.subscriptionCancelled?_e.reinstateSubscription():!_e.subscriptionPending&&this.connection.state==="connected"&&_e.subscribe(),_e},ge.prototype.unsubscribe=function(ue){var _e=this.channels.find(ue);_e&&_e.subscriptionPending?_e.cancelSubscription():(_e=this.channels.remove(ue),_e&&this.connection.state==="connected"&&_e.unsubscribe())},ge.prototype.send_event=function(ue,_e,fe){return this.connection.send_event(ue,_e,fe)},ge.prototype.shouldUseTLS=function(){return j.default.getProtocol()==="https:"||this.config.forceTLS===!0?!0:!!this.config.encrypted},ge.instances=[],ge.isReady=!1,ge.logToConsole=!1,ge.Runtime=j.default,ge.ScriptReceivers=j.default.ScriptReceivers,ge.DependenciesReceivers=j.default.DependenciesReceivers,ge.auth_callbacks=j.default.auth_callbacks,ge}();N.__esModule=!0,N.default=ne;function le(ge){if(ge==null)throw"You must pass your app key when you instantiate Pusher."}j.default.setup(ne)},function(I,N,B){var j=B(3),U=B(7),q=B(15),Y=B(16),K=B(17),G=B(4),J=B(18),Z=B(19),ee=B(26),te=B(27),re=B(28),se=B(29),ne={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:G.ScriptReceivers,DependenciesReceivers:j.DependenciesReceivers,getDefaultStrategy:te.default,Transports:Z.default,transportConnectionInitializer:re.default,HTTPFactory:se.default,TimelineTransport:J.default,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(le){var ge=this;window.Pusher=le;var ue=function(){ge.onDocumentBody(le.ready)};window.JSON?ue():j.Dependencies.load("json2",{},ue)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:U.default,jsonp:q.default}},onDocumentBody:function(le){var ge=this;document.body?le():setTimeout(function(){ge.onDocumentBody(le)},0)},createJSONPRequest:function(le,ge){return new K.default(le,ge)},createScriptRequest:function(le){return new Y.default(le)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var le=this.getXHRAPI();return new le},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ee.Network},createWebSocket:function(le){var ge=this.getWebSocketAPI();return new ge(le)},createSocketRequest:function(le,ge){if(this.isXHRSupported())return this.HTTPFactory.createXHR(le,ge);if(this.isXDRSupported(ge.indexOf("https:")===0))return this.HTTPFactory.createXDR(le,ge);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var le=this.getXHRAPI();return!!le&&new le().withCredentials!==void 0},isXDRSupported:function(le){var ge=le?"https:":"http:",ue=this.getProtocol();return!!window.XDomainRequest&&ue===ge},addUnloadListener:function(le){window.addEventListener!==void 0?window.addEventListener("unload",le,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",le)},removeUnloadListener:function(le){window.addEventListener!==void 0?window.removeEventListener("unload",le,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",le)}};N.__esModule=!0,N.default=ne},function(I,N,B){var j=B(4),U=B(5),q=B(6);N.DependenciesReceivers=new j.ScriptReceiverFactory("_pusher_dependencies","Pusher.DependenciesReceivers"),N.Dependencies=new q.default({cdn_http:U.default.cdn_http,cdn_https:U.default.cdn_https,version:U.default.VERSION,suffix:U.default.dependency_suffix,receivers:N.DependenciesReceivers})},function(I,N){var B=function(){function j(U,q){this.lastId=0,this.prefix=U,this.name=q}return j.prototype.create=function(U){this.lastId++;var q=this.lastId,Y=this.prefix+q,K=this.name+"["+q+"]",G=!1,J=function(){G||(U.apply(null,arguments),G=!0)};return this[q]=J,{number:q,id:Y,name:K,callback:J}},j.prototype.remove=function(U){delete this[U.number]},j}();N.ScriptReceiverFactory=B,N.ScriptReceivers=new B("_pusher_script_","Pusher.ScriptReceivers")},function(I,N){var B={VERSION:"4.4.0",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(4),U=B(2),q=function(){function Y(K){this.options=K,this.receivers=K.receivers||j.ScriptReceivers,this.loading={}}return Y.prototype.load=function(K,G,J){var Z=this;if(Z.loading[K]&&Z.loading[K].length>0)Z.loading[K].push(J);else{Z.loading[K]=[J];var ee=U.default.createScriptRequest(Z.getPath(K,G)),te=Z.receivers.create(function(re){if(Z.receivers.remove(te),Z.loading[K]){var se=Z.loading[K];delete Z.loading[K];for(var ne=function(ge){ge||ee.cleanup()},le=0;le<se.length;le++)se[le](re,ne)}});ee.send(te)}},Y.prototype.getRoot=function(K){var G,J=U.default.getDocument().location.protocol;return K&&K.useTLS||J==="https:"?G=this.options.cdn_https:G=this.options.cdn_http,G.replace(/\/*$/,"")+"/"+this.options.version},Y.prototype.getPath=function(K,G){return this.getRoot(G)+"/"+K+this.options.suffix+".js"},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(8),U=B(2),q=B(14),Y=function(K,G,J){var Z=this,ee;ee=U.default.createXHR(),ee.open("POST",Z.options.authEndpoint,!0),ee.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var te in this.authOptions.headers)ee.setRequestHeader(te,this.authOptions.headers[te]);return ee.onreadystatechange=function(){if(ee.readyState===4)if(ee.status===200){var re,se=!1;try{re=JSON.parse(ee.responseText),se=!0}catch{J(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+ee.responseText)}se&&J(!1,re)}else{var ne=q.default.buildLogSuffix("authenticationEndpoint");j.default.warn("Couldn't retrieve authentication info. "+ee.status+("Clients must be authenticated to join private or presence channels. "+ne)),J(!0,ee.status)}},ee.send(this.composeQuery(G)),ee};N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(9),U=B(1),q={debug:function(){U.default.log&&U.default.log(j.stringify.apply(this,arguments))},warn:function(){var Y=j.stringify.apply(this,arguments);U.default.log?U.default.log(Y):window.console&&(window.console.warn?window.console.warn(Y):window.console.log&&window.console.log(Y))}};N.__esModule=!0,N.default=q},function(I,N,B){var j=B(10),U=B(11);function q(xe){for(var oe=[],ye=1;ye<arguments.length;ye++)oe[ye-1]=arguments[ye];for(var be=0;be<oe.length;be++){var we=oe[be];for(var Ae in we)we[Ae]&&we[Ae].constructor&&we[Ae].constructor===Object?xe[Ae]=q(xe[Ae]||{},we[Ae]):xe[Ae]=we[Ae]}return xe}N.extend=q;function Y(){for(var xe=["Pusher"],oe=0;oe<arguments.length;oe++)typeof arguments[oe]=="string"?xe.push(arguments[oe]):xe.push(ve(arguments[oe]));return xe.join(" : ")}N.stringify=Y;function K(xe,oe){var ye=Array.prototype.indexOf;if(xe===null)return-1;if(ye&&xe.indexOf===ye)return xe.indexOf(oe);for(var be=0,we=xe.length;be<we;be++)if(xe[be]===oe)return be;return-1}N.arrayIndexOf=K;function G(xe,oe){for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&oe(xe[ye],ye,xe)}N.objectApply=G;function J(xe){var oe=[];return G(xe,function(ye,be){oe.push(be)}),oe}N.keys=J;function Z(xe){var oe=[];return G(xe,function(ye){oe.push(ye)}),oe}N.values=Z;function ee(xe,oe,ye){for(var be=0;be<xe.length;be++)oe.call(ye||window,xe[be],be,xe)}N.apply=ee;function te(xe,oe){for(var ye=[],be=0;be<xe.length;be++)ye.push(oe(xe[be],be,xe,ye));return ye}N.map=te;function re(xe,oe){var ye={};return G(xe,function(be,we){ye[we]=oe(be)}),ye}N.mapObject=re;function se(xe,oe){oe=oe||function(we){return!!we};for(var ye=[],be=0;be<xe.length;be++)oe(xe[be],be,xe,ye)&&ye.push(xe[be]);return ye}N.filter=se;function ne(xe,oe){var ye={};return G(xe,function(be,we){(oe&&oe(be,we,xe,ye)||be)&&(ye[we]=be)}),ye}N.filterObject=ne;function le(xe){var oe=[];return G(xe,function(ye,be){oe.push([be,ye])}),oe}N.flatten=le;function ge(xe,oe){for(var ye=0;ye<xe.length;ye++)if(oe(xe[ye],ye,xe))return!0;return!1}N.any=ge;function ue(xe,oe){for(var ye=0;ye<xe.length;ye++)if(!oe(xe[ye],ye,xe))return!1;return!0}N.all=ue;function _e(xe){return re(xe,function(oe){return typeof oe=="object"&&(oe=ve(oe)),encodeURIComponent(j.default(oe.toString()))})}N.encodeParamsObject=_e;function fe(xe){var oe=ne(xe,function(be){return be!==void 0}),ye=te(le(_e(oe)),U.default.method("join","=")).join("&");return ye}N.buildQueryString=fe;function me(xe){var oe=[],ye=[];return function be(we,Ae){var ke,Oe,Me;switch(typeof we){case"object":if(!we)return null;for(ke=0;ke<oe.length;ke+=1)if(oe[ke]===we)return{$ref:ye[ke]};if(oe.push(we),ye.push(Ae),Object.prototype.toString.apply(we)==="[object Array]")for(Me=[],ke=0;ke<we.length;ke+=1)Me[ke]=be(we[ke],Ae+"["+ke+"]");else{Me={};for(Oe in we)Object.prototype.hasOwnProperty.call(we,Oe)&&(Me[Oe]=be(we[Oe],Ae+"["+JSON.stringify(Oe)+"]"))}return Me;case"number":case"string":case"boolean":return we}}(xe,"$")}N.decycleObject=me;function ve(xe){try{return JSON.stringify(xe)}catch{return JSON.stringify(me(xe))}}N.safeJSONStringify=ve},function(I,N,B){function j(Z){return J(K(Z))}N.__esModule=!0,N.default=j;var U=String.fromCharCode,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=function(Z){var ee=Z.charCodeAt(0);return ee<128?Z:ee<2048?U(192|ee>>>6)+U(128|ee&63):U(224|ee>>>12&15)+U(128|ee>>>6&63)+U(128|ee&63)},K=function(Z){return Z.replace(/[^\x00-\x7F]/g,Y)},G=function(Z){var ee=[0,2,1][Z.length%3],te=Z.charCodeAt(0)<<16|(Z.length>1?Z.charCodeAt(1):0)<<8|(Z.length>2?Z.charCodeAt(2):0),re=[q.charAt(te>>>18),q.charAt(te>>>12&63),ee>=2?"=":q.charAt(te>>>6&63),ee>=1?"=":q.charAt(te&63)];return re.join("")},J=window.btoa||function(Z){return Z.replace(/[\s\S]{1,3}/g,G)}},function(I,N,B){var j=B(12),U={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(q){return new j.OneOffTimer(0,q)},method:function(q){var Y=Array.prototype.slice.call(arguments,1);return function(K){return K[q].apply(K,Y.concat(arguments))}}};N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(13);function q(J){window.clearTimeout(J)}function Y(J){window.clearInterval(J)}var K=function(J){j(Z,J);function Z(ee,te){J.call(this,setTimeout,q,ee,function(re){return te(),null})}return Z}(U.default);N.OneOffTimer=K;var G=function(J){j(Z,J);function Z(ee,te){J.call(this,setInterval,Y,ee,function(re){return te(),re})}return Z}(U.default);N.PeriodicTimer=G},function(I,N){var B=function(){function j(U,q,Y,K){var G=this;this.clear=q,this.timer=U(function(){G.timer&&(G.timer=K(G.timer))},Y)}return j.prototype.isRunning=function(){return this.timer!==null},j.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},j}();N.__esModule=!0,N.default=B},function(I,N){var B={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},j=function(U){var q="See:",Y=B.urls[U];if(!Y)return"";var K;return Y.fullUrl?K=Y.fullUrl:Y.path&&(K=B.baseUrl+Y.path),K?q+" "+K:""};N.__esModule=!0,N.default={buildLogSuffix:j}},function(I,N,B){var j=B(8),U=function(q,Y,K){this.authOptions.headers!==void 0&&j.default.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var G=q.nextAuthCallbackID.toString();q.nextAuthCallbackID++;var J=q.getDocument(),Z=J.createElement("script");q.auth_callbacks[G]=function(re){K(!1,re)};var ee="Pusher.auth_callbacks['"+G+"']";Z.src=this.options.authEndpoint+"?callback="+encodeURIComponent(ee)+"&"+this.composeQuery(Y);var te=J.getElementsByTagName("head")[0]||J.documentElement;te.insertBefore(Z,te.firstChild)};N.__esModule=!0,N.default=U},function(I,N){var B=function(){function j(U){this.src=U}return j.prototype.send=function(U){var q=this,Y="Error loading "+q.src;q.script=document.createElement("script"),q.script.id=U.id,q.script.src=q.src,q.script.type="text/javascript",q.script.charset="UTF-8",q.script.addEventListener?(q.script.onerror=function(){U.callback(Y)},q.script.onload=function(){U.callback(null)}):q.script.onreadystatechange=function(){(q.script.readyState==="loaded"||q.script.readyState==="complete")&&U.callback(null)},q.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(q.errorScript=document.createElement("script"),q.errorScript.id=U.id+"_error",q.errorScript.text=U.name+"('"+Y+"');",q.script.async=q.errorScript.async=!1):q.script.async=!0;var K=document.getElementsByTagName("head")[0];K.insertBefore(q.script,K.firstChild),q.errorScript&&K.insertBefore(q.errorScript,q.script.nextSibling)},j.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},j}();N.__esModule=!0,N.default=B},function(I,N,B){var j=B(9),U=B(2),q=function(){function Y(K,G){this.url=K,this.data=G}return Y.prototype.send=function(K){if(!this.request){var G=j.buildQueryString(this.data),J=this.url+"/"+K.number+"?"+G;this.request=U.default.createScriptRequest(J),this.request.send(K)}},Y.prototype.cleanup=function(){this.request&&this.request.cleanup()},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(2),U=B(4),q=function(K,G){return function(J,Z){var ee="http"+(G?"s":"")+"://",te=ee+(K.host||K.options.host)+K.options.path,re=j.default.createJSONPRequest(te,J),se=j.default.ScriptReceivers.create(function(ne,le){U.ScriptReceivers.remove(se),re.cleanup(),le&&le.host&&(K.host=le.host),Z&&Z(ne,le)});re.send(se)}},Y={name:"jsonp",getAgent:q};N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(20),U=B(22),q=B(21),Y=B(2),K=B(3),G=B(9),J=new U.default({file:"sockjs",urls:q.sockjs,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(re,se){return new window.SockJS(re,null,{js_path:K.Dependencies.getPath("sockjs",{useTLS:se.useTLS}),ignore_null_origin:se.ignoreNullOrigin})},beforeOpen:function(re,se){re.send(JSON.stringify({path:se}))}}),Z={isSupported:function(re){var se=Y.default.isXDRSupported(re.useTLS);return se}},ee=new U.default(G.extend({},j.streamingConfiguration,Z)),te=new U.default(G.extend({},j.pollingConfiguration,Z));j.default.xdr_streaming=ee,j.default.xdr_polling=te,j.default.sockjs=J,N.__esModule=!0,N.default=j.default},function(I,N,B){var j=B(21),U=B(22),q=B(9),Y=B(2),K=new U.default({urls:j.ws,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Y.default.getWebSocketAPI()},isSupported:function(){return!!Y.default.getWebSocketAPI()},getSocket:function(re){return Y.default.createWebSocket(re)}}),G={urls:j.http,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}};N.streamingConfiguration=q.extend({getSocket:function(re){return Y.default.HTTPFactory.createStreamingSocket(re)}},G),N.pollingConfiguration=q.extend({getSocket:function(re){return Y.default.HTTPFactory.createPollingSocket(re)}},G);var J={isSupported:function(){return Y.default.isXHRSupported()}},Z=new U.default(q.extend({},N.streamingConfiguration,J)),ee=new U.default(q.extend({},N.pollingConfiguration,J)),te={ws:K,xhr_streaming:Z,xhr_polling:ee};N.__esModule=!0,N.default=te},function(I,N,B){var j=B(5);function U(Y,K,G){var J=Y+(K.useTLS?"s":""),Z=K.useTLS?K.hostTLS:K.hostNonTLS;return J+"://"+Z+G}function q(Y,K){var G="/app/"+Y,J="?protocol="+j.default.PROTOCOL+"&client=js&version="+j.default.VERSION+(K?"&"+K:"");return G+J}N.ws={getInitial:function(Y,K){var G=(K.httpPath||"")+q(Y,"flash=false");return U("ws",K,G)}},N.http={getInitial:function(Y,K){var G=(K.httpPath||"/pusher")+q(Y);return U("http",K,G)}},N.sockjs={getInitial:function(Y,K){return U("http",K,K.httpPath||"/pusher")},getPath:function(Y,K){return q(Y)}}},function(I,N,B){var j=B(23),U=function(){function q(Y){this.hooks=Y}return q.prototype.isSupported=function(Y){return this.hooks.isSupported(Y)},q.prototype.createConnection=function(Y,K,G,J){return new j.default(this.hooks,Y,K,G,J)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function re(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(re.prototype=ee.prototype,new re)},U=B(11),q=B(9),Y=B(24),K=B(8),G=B(2),J=function(Z){j(ee,Z);function ee(te,re,se,ne,le){Z.call(this),this.initialize=G.default.transportConnectionInitializer,this.hooks=te,this.name=re,this.priority=se,this.key=ne,this.options=le,this.state="new",this.timeline=le.timeline,this.activityTimeout=le.activityTimeout,this.id=this.timeline.generateUniqueID()}return ee.prototype.handlesActivityChecks=function(){return!!this.hooks.handlesActivityChecks},ee.prototype.supportsPing=function(){return!!this.hooks.supportsPing},ee.prototype.connect=function(){var te=this;if(this.socket||this.state!=="initialized")return!1;var re=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(re,this.options)}catch(se){return U.default.defer(function(){te.onError(se),te.changeState("closed")}),!1}return this.bindListeners(),K.default.debug("Connecting",{transport:this.name,url:re}),this.changeState("connecting"),!0},ee.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},ee.prototype.send=function(te){var re=this;return this.state==="open"?(U.default.defer(function(){re.socket&&re.socket.send(te)}),!0):!1},ee.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},ee.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},ee.prototype.onError=function(te){this.emit("error",{type:"WebSocketError",error:te}),this.timeline.error(this.buildTimelineMessage({error:te.toString()}))},ee.prototype.onClose=function(te){te?this.changeState("closed",{code:te.code,reason:te.reason,wasClean:te.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},ee.prototype.onMessage=function(te){this.emit("message",te)},ee.prototype.onActivity=function(){this.emit("activity")},ee.prototype.bindListeners=function(){var te=this;this.socket.onopen=function(){te.onOpen()},this.socket.onerror=function(re){te.onError(re)},this.socket.onclose=function(re){te.onClose(re)},this.socket.onmessage=function(re){te.onMessage(re)},this.supportsPing()&&(this.socket.onactivity=function(){te.onActivity()})},ee.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},ee.prototype.changeState=function(te,re){this.state=te,this.timeline.info(this.buildTimelineMessage({state:te,params:re})),this.emit(te,re)},ee.prototype.buildTimelineMessage=function(te){return q.extend({cid:this.id},te)},ee}(Y.default);N.__esModule=!0,N.default=J},function(I,N,B){var j=B(9),U=B(25),q=function(){function Y(K){this.callbacks=new U.default,this.global_callbacks=[],this.failThrough=K}return Y.prototype.bind=function(K,G,J){return this.callbacks.add(K,G,J),this},Y.prototype.bind_global=function(K){return this.global_callbacks.push(K),this},Y.prototype.unbind=function(K,G,J){return this.callbacks.remove(K,G,J),this},Y.prototype.unbind_global=function(K){return K?(this.global_callbacks=j.filter(this.global_callbacks||[],function(G){return G!==K}),this):(this.global_callbacks=[],this)},Y.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},Y.prototype.emit=function(K,G,J){for(var Z=0;Z<this.global_callbacks.length;Z++)this.global_callbacks[Z](K,G);var ee=this.callbacks.get(K),te=[];if(J?te.push(G,J):G&&te.push(G),ee&&ee.length>0)for(var Z=0;Z<ee.length;Z++)ee[Z].fn.apply(ee[Z].context||window,te);else this.failThrough&&this.failThrough(K,G);return this},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(9),U=function(){function Y(){this._callbacks={}}return Y.prototype.get=function(K){return this._callbacks[q(K)]},Y.prototype.add=function(K,G,J){var Z=q(K);this._callbacks[Z]=this._callbacks[Z]||[],this._callbacks[Z].push({fn:G,context:J})},Y.prototype.remove=function(K,G,J){if(!K&&!G&&!J){this._callbacks={};return}var Z=K?[q(K)]:j.keys(this._callbacks);G||J?this.removeCallback(Z,G,J):this.removeAllCallbacks(Z)},Y.prototype.removeCallback=function(K,G,J){j.apply(K,function(Z){this._callbacks[Z]=j.filter(this._callbacks[Z]||[],function(ee){return G&&G!==ee.fn||J&&J!==ee.context}),this._callbacks[Z].length===0&&delete this._callbacks[Z]},this)},Y.prototype.removeAllCallbacks=function(K){j.apply(K,function(G){delete this._callbacks[G]},this)},Y}();N.__esModule=!0,N.default=U;function q(Y){return"_"+Y}},function(I,N,B){var j=this&&this.__extends||function(Y,K){for(var G in K)K.hasOwnProperty(G)&&(Y[G]=K[G]);function J(){this.constructor=Y}Y.prototype=K===null?Object.create(K):(J.prototype=K.prototype,new J)},U=B(24),q=function(Y){j(K,Y);function K(){Y.call(this);var G=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){G.emit("online")},!1),window.addEventListener("offline",function(){G.emit("offline")},!1))}return K.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},K}(U.default);N.NetInfo=q,N.Network=new q},function(I,N){var B=function(j){var U;return j.useTLS?U=[":best_connected_ever",":ws_loop",[":delayed",2e3,[":http_fallback_loop"]]]:U=[":best_connected_ever",":ws_loop",[":delayed",2e3,[":wss_loop"]],[":delayed",5e3,[":http_fallback_loop"]]],[[":def","ws_options",{hostNonTLS:j.wsHost+":"+j.wsPort,hostTLS:j.wsHost+":"+j.wssPort,httpPath:j.wsPath}],[":def","wss_options",[":extend",":ws_options",{useTLS:!0}]],[":def","sockjs_options",{hostNonTLS:j.httpHost+":"+j.httpPort,hostTLS:j.httpHost+":"+j.httpsPort,httpPath:j.httpPath}],[":def","timeouts",{loop:!0,timeout:15e3,timeoutLimit:6e4}],[":def","ws_manager",[":transport_manager",{lives:2,minPingDelay:1e4,maxPingDelay:j.activity_timeout}]],[":def","streaming_manager",[":transport_manager",{lives:2,minPingDelay:1e4,maxPingDelay:j.activity_timeout}]],[":def_transport","ws","ws",3,":ws_options",":ws_manager"],[":def_transport","wss","ws",3,":wss_options",":ws_manager"],[":def_transport","sockjs","sockjs",1,":sockjs_options"],[":def_transport","xhr_streaming","xhr_streaming",1,":sockjs_options",":streaming_manager"],[":def_transport","xdr_streaming","xdr_streaming",1,":sockjs_options",":streaming_manager"],[":def_transport","xhr_polling","xhr_polling",1,":sockjs_options"],[":def_transport","xdr_polling","xdr_polling",1,":sockjs_options"],[":def","ws_loop",[":sequential",":timeouts",":ws"]],[":def","wss_loop",[":sequential",":timeouts",":wss"]],[":def","sockjs_loop",[":sequential",":timeouts",":sockjs"]],[":def","streaming_loop",[":sequential",":timeouts",[":if",[":is_supported",":xhr_streaming"],":xhr_streaming",":xdr_streaming"]]],[":def","polling_loop",[":sequential",":timeouts",[":if",[":is_supported",":xhr_polling"],":xhr_polling",":xdr_polling"]]],[":def","http_loop",[":if",[":is_supported",":streaming_loop"],[":best_connected_ever",":streaming_loop",[":delayed",4e3,[":polling_loop"]]],[":polling_loop"]]],[":def","http_fallback_loop",[":if",[":is_supported",":http_loop"],[":http_loop"],[":sockjs_loop"]]],[":def","strategy",[":cached",18e5,[":first_connected",[":if",[":is_supported",":ws"],U,":http_fallback_loop"]]]]]};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(3);function U(){var q=this;q.timeline.info(q.buildTimelineMessage({transport:q.name+(q.options.useTLS?"s":"")})),q.hooks.isInitialized()?q.changeState("initialized"):q.hooks.file?(q.changeState("initializing"),j.Dependencies.load(q.hooks.file,{useTLS:q.options.useTLS},function(Y,K){q.hooks.isInitialized()?(q.changeState("initialized"),K(!0)):(Y&&q.onError(Y),q.onClose(),K(!1))})):q.onClose()}N.__esModule=!0,N.default=U},function(I,N,B){var j=B(30),U=B(32);U.default.createXDR=function(q,Y){return this.createRequest(j.default,q,Y)},N.__esModule=!0,N.default=U.default},function(I,N,B){var j=B(31),U={getRequest:function(q){var Y=new window.XDomainRequest;return Y.ontimeout=function(){q.emit("error",new j.RequestTimedOut),q.close()},Y.onerror=function(K){q.emit("error",K),q.close()},Y.onprogress=function(){Y.responseText&&Y.responseText.length>0&&q.onChunk(200,Y.responseText)},Y.onload=function(){Y.responseText&&Y.responseText.length>0&&q.onChunk(200,Y.responseText),q.emit("finished",200),q.close()},Y},abortRequest:function(q){q.ontimeout=q.onerror=q.onprogress=q.onload=null,q.abort()}};N.__esModule=!0,N.default=U},function(I,N){var B=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function re(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(re.prototype=ee.prototype,new re)},j=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.BadEventName=j;var U=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.RequestTimedOut=U;var q=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.TransportPriorityTooLow=q;var Y=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.TransportClosed=Y;var K=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedFeature=K;var G=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedTransport=G;var J=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedStrategy=J},function(I,N,B){var j=B(33),U=B(34),q=B(36),Y=B(37),K=B(38),G={createStreamingSocket:function(J){return this.createSocket(q.default,J)},createPollingSocket:function(J){return this.createSocket(Y.default,J)},createSocket:function(J,Z){return new U.default(J,Z)},createXHR:function(J,Z){return this.createRequest(K.default,J,Z)},createRequest:function(J,Z,ee){return new j.default(J,Z,ee)}};N.__esModule=!0,N.default=G},function(I,N,B){var j=this&&this.__extends||function(G,J){for(var Z in J)J.hasOwnProperty(Z)&&(G[Z]=J[Z]);function ee(){this.constructor=G}G.prototype=J===null?Object.create(J):(ee.prototype=J.prototype,new ee)},U=B(2),q=B(24),Y=256*1024,K=function(G){j(J,G);function J(Z,ee,te){G.call(this),this.hooks=Z,this.method=ee,this.url=te}return J.prototype.start=function(Z){var ee=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){ee.close()},U.default.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(Z)},J.prototype.close=function(){this.unloader&&(U.default.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},J.prototype.onChunk=function(Z,ee){for(;;){var te=this.advanceBuffer(ee);if(te)this.emit("chunk",{status:Z,data:te});else break}this.isBufferTooLong(ee)&&this.emit("buffer_too_long")},J.prototype.advanceBuffer=function(Z){var ee=Z.slice(this.position),te=ee.indexOf(`
- `);return te!==-1?(this.position+=te+1,ee.slice(0,te)):null},J.prototype.isBufferTooLong=function(Z){return this.position===Z.length&&Z.length>Y},J}(q.default);N.__esModule=!0,N.default=K},function(I,N,B){var j=B(35),U=B(11),q=B(2),Y=1,K=function(){function se(ne,le){this.hooks=ne,this.session=te(1e3)+"/"+re(8),this.location=G(le),this.readyState=j.default.CONNECTING,this.openStream()}return se.prototype.send=function(ne){return this.sendRaw(JSON.stringify([ne]))},se.prototype.ping=function(){this.hooks.sendHeartbeat(this)},se.prototype.close=function(ne,le){this.onClose(ne,le,!0)},se.prototype.sendRaw=function(ne){if(this.readyState===j.default.OPEN)try{return q.default.createSocketRequest("POST",Z(J(this.location,this.session))).start(ne),!0}catch{return!1}else return!1},se.prototype.reconnect=function(){this.closeStream(),this.openStream()},se.prototype.onClose=function(ne,le,ge){this.closeStream(),this.readyState=j.default.CLOSED,this.onclose&&this.onclose({code:ne,reason:le,wasClean:ge})},se.prototype.onChunk=function(ne){if(ne.status===200){this.readyState===j.default.OPEN&&this.onActivity();var le,ge=ne.data.slice(0,1);switch(ge){case"o":le=JSON.parse(ne.data.slice(1)||"{}"),this.onOpen(le);break;case"a":le=JSON.parse(ne.data.slice(1)||"[]");for(var ue=0;ue<le.length;ue++)this.onEvent(le[ue]);break;case"m":le=JSON.parse(ne.data.slice(1)||"null"),this.onEvent(le);break;case"h":this.hooks.onHeartbeat(this);break;case"c":le=JSON.parse(ne.data.slice(1)||"[]"),this.onClose(le[0],le[1],!0);break}}},se.prototype.onOpen=function(ne){this.readyState===j.default.CONNECTING?(ne&&ne.hostname&&(this.location.base=ee(this.location.base,ne.hostname)),this.readyState=j.default.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},se.prototype.onEvent=function(ne){this.readyState===j.default.OPEN&&this.onmessage&&this.onmessage({data:ne})},se.prototype.onActivity=function(){this.onactivity&&this.onactivity()},se.prototype.onError=function(ne){this.onerror&&this.onerror(ne)},se.prototype.openStream=function(){var ne=this;this.stream=q.default.createSocketRequest("POST",Z(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",function(le){ne.onChunk(le)}),this.stream.bind("finished",function(le){ne.hooks.onFinished(ne,le)}),this.stream.bind("buffer_too_long",function(){ne.reconnect()});try{this.stream.start()}catch(le){U.default.defer(function(){ne.onError(le),ne.onClose(1006,"Could not start streaming",!1)})}},se.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},se}();function G(se){var ne=/([^\?]*)\/*(\??.*)/.exec(se);return{base:ne[1],queryString:ne[2]}}function J(se,ne){return se.base+"/"+ne+"/xhr_send"}function Z(se){var ne=se.indexOf("?")===-1?"?":"&";return se+ne+"t="+ +new Date+"&n="+Y++}function ee(se,ne){var le=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(se);return le[1]+ne+le[3]}function te(se){return Math.floor(Math.random()*se)}function re(se){for(var ne=[],le=0;le<se;le++)ne.push(te(32).toString(32));return ne.join("")}N.__esModule=!0,N.default=K},function(I,N){var B;(function(j){j[j.CONNECTING=0]="CONNECTING",j[j.OPEN=1]="OPEN",j[j.CLOSED=3]="CLOSED"})(B||(B={})),N.__esModule=!0,N.default=B},function(I,N){var B={getReceiveURL:function(j,U){return j.base+"/"+U+"/xhr_streaming"+j.queryString},onHeartbeat:function(j){j.sendRaw("[]")},sendHeartbeat:function(j){j.sendRaw("[]")},onFinished:function(j,U){j.onClose(1006,"Connection interrupted ("+U+")",!1)}};N.__esModule=!0,N.default=B},function(I,N){var B={getReceiveURL:function(j,U){return j.base+"/"+U+"/xhr"+j.queryString},onHeartbeat:function(){},sendHeartbeat:function(j){j.sendRaw("[]")},onFinished:function(j,U){U===200?j.reconnect():j.onClose(1006,"Connection interrupted ("+U+")",!1)}};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(2),U={getRequest:function(q){var Y=j.default.getXHRAPI(),K=new Y;return K.onreadystatechange=K.onprogress=function(){switch(K.readyState){case 3:K.responseText&&K.responseText.length>0&&q.onChunk(K.status,K.responseText);break;case 4:K.responseText&&K.responseText.length>0&&q.onChunk(K.status,K.responseText),q.emit("finished",K.status),q.close();break}},K},abortRequest:function(q){q.onreadystatechange=null,q.abort()}};N.__esModule=!0,N.default=U},function(I,N,B){var j=B(9),U=B(11),q=B(40),Y=function(){function K(G,J,Z){this.key=G,this.session=J,this.events=[],this.options=Z||{},this.sent=0,this.uniqueID=0}return K.prototype.log=function(G,J){G<=this.options.level&&(this.events.push(j.extend({},J,{timestamp:U.default.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},K.prototype.error=function(G){this.log(q.default.ERROR,G)},K.prototype.info=function(G){this.log(q.default.INFO,G)},K.prototype.debug=function(G){this.log(q.default.DEBUG,G)},K.prototype.isEmpty=function(){return this.events.length===0},K.prototype.send=function(G,J){var Z=this,ee=j.extend({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],G(ee,function(te,re){te||Z.sent++,J&&J(te,re)}),!0},K.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},K}();N.__esModule=!0,N.default=Y},function(I,N){var B;(function(j){j[j.ERROR=3]="ERROR",j[j.INFO=6]="INFO",j[j.DEBUG=7]="DEBUG"})(B||(B={})),N.__esModule=!0,N.default=B},function(I,N,B){var j=B(9),U=B(11),q=B(42),Y=B(31),K=B(64),G=B(65),J=B(66),Z=B(67),ee=B(68),te=B(69),re=B(70),se=B(2),ne=se.default.Transports;N.build=function(ye,be){var we=j.extend({},ue,be);return oe(ye,we)[1].strategy};var le={isSupported:function(){return!1},connect:function(ye,be){var we=U.default.defer(function(){be(new Y.UnsupportedStrategy)});return{abort:function(){we.ensureAborted()},forceMinPriority:function(){}}}};function ge(ye){return function(be){return[ye.apply(this,arguments),be]}}var ue={extend:function(ye,be,we){return[j.extend({},be,we),ye]},def:function(ye,be,we){if(ye[be]!==void 0)throw"Redefining symbol "+be;return ye[be]=we,[void 0,ye]},def_transport:function(ye,be,we,Ae,ke,Oe){var Me=ne[we];if(!Me)throw new Y.UnsupportedTransport(we);var ze=(!ye.enabledTransports||j.arrayIndexOf(ye.enabledTransports,be)!==-1)&&(!ye.disabledTransports||j.arrayIndexOf(ye.disabledTransports,be)===-1),Fe;ze?Fe=new K.default(be,Ae,Oe?Oe.getAssistant(Me):Me,j.extend({key:ye.key,useTLS:ye.useTLS,timeline:ye.timeline,ignoreNullOrigin:ye.ignoreNullOrigin},ke)):Fe=le;var Ze=ye.def(ye,be,Fe)[1];return Ze.Transports=ye.Transports||{},Ze.Transports[be]=Fe,[void 0,Ze]},transport_manager:ge(function(ye,be){return new q.default(be)}),sequential:ge(function(ye,be){var we=Array.prototype.slice.call(arguments,2);return new G.default(we,be)}),cached:ge(function(ye,be,we){return new Z.default(we,ye.Transports,{ttl:be,timeline:ye.timeline,useTLS:ye.useTLS})}),first_connected:ge(function(ye,be){return new re.default(be)}),best_connected_ever:ge(function(){var ye=Array.prototype.slice.call(arguments,1);return new J.default(ye)}),delayed:ge(function(ye,be,we){return new ee.default(we,{delay:be})}),if:ge(function(ye,be,we,Ae){return new te.default(be,we,Ae)}),is_supported:ge(function(ye,be){return function(){return be.isSupported()}})};function _e(ye){return typeof ye=="string"&&ye.charAt(0)===":"}function fe(ye,be){return be[ye.slice(1)]}function me(ye,be){if(ye.length===0)return[[],be];var we=oe(ye[0],be),Ae=me(ye.slice(1),we[1]);return[[we[0]].concat(Ae[0]),Ae[1]]}function ve(ye,be){if(!_e(ye))return[ye,be];var we=fe(ye,be);if(we===void 0)throw"Undefined symbol "+ye;return[we,be]}function xe(ye,be){if(_e(ye[0])){var we=fe(ye[0],be);if(ye.length>1){if(typeof we!="function")throw"Calling non-function "+ye[0];var Ae=[j.extend({},be)].concat(j.map(ye.slice(1),function(ke){return oe(ke,j.extend({},be))[0]}));return we.apply(this,Ae)}else return[we,be]}else return me(ye,be)}function oe(ye,be){return typeof ye=="string"?ve(ye,be):typeof ye=="object"&&ye instanceof Array&&ye.length>0?xe(ye,be):[ye,be]}},function(I,N,B){var j=B(43),U=function(){function q(Y){this.options=Y||{},this.livesLeft=this.options.lives||1/0}return q.prototype.getAssistant=function(Y){return j.default.createAssistantToTheTransportManager(this,Y,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},q.prototype.isAlive=function(){return this.livesLeft>0},q.prototype.reportDeath=function(){this.livesLeft-=1},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=B(44),U=B(45),q=B(48),Y=B(49),K=B(50),G=B(51),J=B(54),Z=B(52),ee=B(62),te=B(63),re={createChannels:function(){return new te.default},createConnectionManager:function(se,ne){return new ee.default(se,ne)},createChannel:function(se,ne){return new Z.default(se,ne)},createPrivateChannel:function(se,ne){return new G.default(se,ne)},createPresenceChannel:function(se,ne){return new K.default(se,ne)},createEncryptedChannel:function(se,ne){return new J.default(se,ne)},createTimelineSender:function(se,ne){return new Y.default(se,ne)},createAuthorizer:function(se,ne){return ne.authorizer?ne.authorizer(se,ne):new q.default(se,ne)},createHandshake:function(se,ne){return new U.default(se,ne)},createAssistantToTheTransportManager:function(se,ne,le){return new j.default(se,ne,le)}};N.__esModule=!0,N.default=re},function(I,N,B){var j=B(11),U=B(9),q=function(){function Y(K,G,J){this.manager=K,this.transport=G,this.minPingDelay=J.minPingDelay,this.maxPingDelay=J.maxPingDelay,this.pingDelay=void 0}return Y.prototype.createConnection=function(K,G,J,Z){var ee=this;Z=U.extend({},Z,{activityTimeout:this.pingDelay});var te=this.transport.createConnection(K,G,J,Z),re=null,se=function(){te.unbind("open",se),te.bind("closed",ne),re=j.default.now()},ne=function(le){if(te.unbind("closed",ne),le.code===1002||le.code===1003)ee.manager.reportDeath();else if(!le.wasClean&&re){var ge=j.default.now()-re;ge<2*ee.maxPingDelay&&(ee.manager.reportDeath(),ee.pingDelay=Math.max(ge/2,ee.minPingDelay))}};return te.bind("open",se),te},Y.prototype.isSupported=function(K){return this.manager.isAlive()&&this.transport.isSupported(K)},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(9),U=B(46),q=B(47),Y=function(){function K(G,J){this.transport=G,this.callback=J,this.bindListeners()}return K.prototype.close=function(){this.unbindListeners(),this.transport.close()},K.prototype.bindListeners=function(){var G=this;this.onMessage=function(J){G.unbindListeners();var Z;try{Z=U.processHandshake(J)}catch(ee){G.finish("error",{error:ee}),G.transport.close();return}Z.action==="connected"?G.finish("connected",{connection:new q.default(Z.id,G.transport),activityTimeout:Z.activityTimeout}):(G.finish(Z.action,{error:Z.error}),G.transport.close())},this.onClosed=function(J){G.unbindListeners();var Z=U.getCloseAction(J)||"backoff",ee=U.getCloseError(J);G.finish(Z,{error:ee})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},K.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},K.prototype.finish=function(G,J){this.callback(j.extend({transport:this.transport,action:G},J))},K}();N.__esModule=!0,N.default=Y},function(I,N){N.decodeMessage=function(B){try{var j=JSON.parse(B.data),U=j.data;if(typeof U=="string")try{U=JSON.parse(j.data)}catch{}var q={event:j.event,channel:j.channel,data:U};return j.user_id&&(q.user_id=j.user_id),q}catch(Y){throw{type:"MessageParseError",error:Y,data:B.data}}},N.encodeMessage=function(B){return JSON.stringify(B)},N.processHandshake=function(B){var j=N.decodeMessage(B);if(j.event==="pusher:connection_established"){if(!j.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:j.data.socket_id,activityTimeout:j.data.activity_timeout*1e3}}else{if(j.event==="pusher:error")return{action:this.getCloseAction(j.data),error:this.getCloseError(j.data)};throw"Invalid handshake"}},N.getCloseAction=function(B){return B.code<4e3?B.code>=1002&&B.code<=1004?"backoff":null:B.code===4e3?"tls_only":B.code<4100?"refused":B.code<4200?"backoff":B.code<4300?"retry":"refused"},N.getCloseError=function(B){return B.code!==1e3&&B.code!==1001?{type:"PusherError",data:{code:B.code,message:B.reason||B.message}}:null}},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(9),q=B(24),Y=B(46),K=B(8),G=function(J){j(Z,J);function Z(ee,te){J.call(this),this.id=ee,this.transport=te,this.activityTimeout=te.activityTimeout,this.bindListeners()}return Z.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},Z.prototype.send=function(ee){return this.transport.send(ee)},Z.prototype.send_event=function(ee,te,re){var se={event:ee,data:te};return re&&(se.channel=re),K.default.debug("Event sent",se),this.send(Y.encodeMessage(se))},Z.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},Z.prototype.close=function(){this.transport.close()},Z.prototype.bindListeners=function(){var ee=this,te={message:function(se){var ne;try{ne=Y.decodeMessage(se)}catch(le){ee.emit("error",{type:"MessageParseError",error:le,data:se.data})}if(ne!==void 0){switch(K.default.debug("Event recd",ne),ne.event){case"pusher:error":ee.emit("error",{type:"PusherError",data:ne.data});break;case"pusher:ping":ee.emit("ping");break;case"pusher:pong":ee.emit("pong");break}ee.emit("message",ne)}},activity:function(){ee.emit("activity")},error:function(se){ee.emit("error",{type:"WebSocketError",error:se})},closed:function(se){re(),se&&se.code&&ee.handleCloseEvent(se),ee.transport=null,ee.emit("closed")}},re=function(){U.objectApply(te,function(se,ne){ee.transport.unbind(ne,se)})};U.objectApply(te,function(se,ne){ee.transport.bind(ne,se)})},Z.prototype.handleCloseEvent=function(ee){var te=Y.getCloseAction(ee),re=Y.getCloseError(ee);re&&this.emit("error",re),te&&this.emit(te,{action:te,error:re})},Z}(q.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=B(2),U=function(){function q(Y,K){this.channel=Y;var G=K.authTransport;if(typeof j.default.getAuthorizers()[G]>"u")throw"'"+G+"' is not a recognized auth transport";this.type=G,this.options=K,this.authOptions=(K||{}).auth||{}}return q.prototype.composeQuery=function(Y){var K="socket_id="+encodeURIComponent(Y)+"&channel_name="+encodeURIComponent(this.channel.name);for(var G in this.authOptions.params)K+="&"+encodeURIComponent(G)+"="+encodeURIComponent(this.authOptions.params[G]);return K},q.prototype.authorize=function(Y,K){return q.authorizers=q.authorizers||j.default.getAuthorizers(),q.authorizers[this.type].call(this,j.default,Y,K)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=B(2),U=function(){function q(Y,K){this.timeline=Y,this.options=K||{}}return q.prototype.send=function(Y,K){this.timeline.isEmpty()||this.timeline.send(j.default.TimelineTransport.getAgent(this,Y),K)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(51),q=B(8),Y=B(53),K=B(14),G=function(J){j(Z,J);function Z(ee,te){J.call(this,ee,te),this.members=new Y.default}return Z.prototype.authorize=function(ee,te){var re=this;J.prototype.authorize.call(this,ee,function(se,ne){if(!se){if(ne.channel_data===void 0){var le=K.default.buildLogSuffix("authenticationEndpoint");q.default.warn("Invalid auth response for channel '"+re.name+"',"+("expected 'channel_data' field. "+le)),te("Invalid auth response");return}var ge=JSON.parse(ne.channel_data);re.members.setMyID(ge.user_id)}te(se,ne)})},Z.prototype.handleEvent=function(ee){var te=ee.event;if(te.indexOf("pusher_internal:")===0)this.handleInternalEvent(ee);else{var re=ee.data,se={};ee.user_id&&(se.user_id=ee.user_id),this.emit(te,re,se)}},Z.prototype.handleInternalEvent=function(ee){var te=ee.event,re=ee.data;switch(te){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(ee);break;case"pusher_internal:member_added":var se=this.members.addMember(re);this.emit("pusher:member_added",se);break;case"pusher_internal:member_removed":var ne=this.members.removeMember(re);ne&&this.emit("pusher:member_removed",ne);break}},Z.prototype.handleSubscriptionSucceededEvent=function(ee){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(ee.data),this.emit("pusher:subscription_succeeded",this.members))},Z.prototype.disconnect=function(){this.members.reset(),J.prototype.disconnect.call(this)},Z}(U.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=this&&this.__extends||function(K,G){for(var J in G)G.hasOwnProperty(J)&&(K[J]=G[J]);function Z(){this.constructor=K}K.prototype=G===null?Object.create(G):(Z.prototype=G.prototype,new Z)},U=B(43),q=B(52),Y=function(K){j(G,K);function G(){K.apply(this,arguments)}return G.prototype.authorize=function(J,Z){var ee=U.default.createAuthorizer(this,this.pusher.config);return ee.authorize(J,Z)},G}(q.default);N.__esModule=!0,N.default=Y},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(24),q=B(31),Y=B(8),K=B(14),G=function(J){j(Z,J);function Z(ee,te){J.call(this,function(re,se){Y.default.debug("No callbacks on "+ee+" for "+re)}),this.name=ee,this.pusher=te,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}return Z.prototype.authorize=function(ee,te){return te(!1,{})},Z.prototype.trigger=function(ee,te){if(ee.indexOf("client-")!==0)throw new q.BadEventName("Event '"+ee+"' does not start with 'client-'");if(!this.subscribed){var re=K.default.buildLogSuffix("triggeringClientEvents");Y.default.warn("Client event triggered before channel 'subscription_succeeded' event . "+re)}return this.pusher.send_event(ee,te,this.name)},Z.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},Z.prototype.handleEvent=function(ee){var te=ee.event,re=ee.data;if(te==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(ee);else if(te.indexOf("pusher_internal:")!==0){var se={};this.emit(te,re,se)}},Z.prototype.handleSubscriptionSucceededEvent=function(ee){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",ee.data)},Z.prototype.subscribe=function(){var ee=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(te,re){te?ee.emit("pusher:subscription_error",re):ee.pusher.send_event("pusher:subscribe",{auth:re.auth,channel_data:re.channel_data,channel:ee.name})}))},Z.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},Z.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},Z.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},Z}(U.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=B(9),U=function(){function q(){this.reset()}return q.prototype.get=function(Y){return Object.prototype.hasOwnProperty.call(this.members,Y)?{id:Y,info:this.members[Y]}:null},q.prototype.each=function(Y){var K=this;j.objectApply(this.members,function(G,J){Y(K.get(J))})},q.prototype.setMyID=function(Y){this.myID=Y},q.prototype.onSubscription=function(Y){this.members=Y.presence.hash,this.count=Y.presence.count,this.me=this.get(this.myID)},q.prototype.addMember=function(Y){return this.get(Y.user_id)===null&&this.count++,this.members[Y.user_id]=Y.user_info,this.get(Y.user_id)},q.prototype.removeMember=function(Y){var K=this.get(Y.user_id);return K&&(delete this.members[Y.user_id],this.count--),K},q.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function re(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(re.prototype=ee.prototype,new re)},U=B(51),q=B(31),Y=B(8),K=B(55),G=B(57),J=function(Z){j(ee,Z);function ee(){Z.apply(this,arguments),this.key=null}return ee.prototype.authorize=function(te,re){var se=this;Z.prototype.authorize.call(this,te,function(ne,le){if(ne){re(!0,le);return}var ge=le.shared_secret;if(!ge){var ue="No shared_secret key in auth payload for encrypted channel: "+se.name;re(!0,ue),Y.default.warn("Error: "+ue);return}se.key=G.decodeBase64(ge),delete le.shared_secret,re(!1,le)})},ee.prototype.trigger=function(te,re){throw new q.UnsupportedFeature("Client events are not currently supported for encrypted channels")},ee.prototype.handleEvent=function(te){var re=te.event,se=te.data;if(re.indexOf("pusher_internal:")===0||re.indexOf("pusher:")===0){Z.prototype.handleEvent.call(this,te);return}this.handleEncryptedEvent(re,se)},ee.prototype.handleEncryptedEvent=function(te,re){var se=this;if(!this.key){Y.default.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!re.ciphertext||!re.nonce){Y.default.warn("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+re);return}var ne=G.decodeBase64(re.ciphertext);if(ne.length<K.secretbox.overheadLength){Y.default.warn("Expected encrypted event ciphertext length to be "+K.secretbox.overheadLength+", got: "+ne.length);return}var le=G.decodeBase64(re.nonce);if(le.length<K.secretbox.nonceLength){Y.default.warn("Expected encrypted event nonce length to be "+K.secretbox.nonceLength+", got: "+le.length);return}var ge=K.secretbox.open(ne,le,this.key);if(ge===null){Y.default.debug("Failed to decrypted an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,function(ue,_e){if(ue){Y.default.warn("Failed to make a request to the authEndpoint: "+_e+". Unable to fetch new key, so dropping encrypted event");return}if(ge=K.secretbox.open(ne,le,se.key),ge===null){Y.default.warn("Failed to decrypt event with new key. Dropping encrypted event");return}se.emitJSON(te,G.encodeUTF8(ge))});return}this.emitJSON(te,G.encodeUTF8(ge))},ee.prototype.emitJSON=function(te,re){try{this.emit(te,JSON.parse(re))}catch{this.emit(te,re)}return this},ee}(U.default);N.__esModule=!0,N.default=J},function(I,N,B){(function(j){var U=function(Ge){var pt,ct=new Float64Array(16);if(Ge)for(pt=0;pt<Ge.length;pt++)ct[pt]=Ge[pt];return ct},q=function(){throw new Error("no PRNG")},Y=new Uint8Array(16),K=new Uint8Array(32);K[0]=9;var G=U(),J=U([1]),Z=U([56129,1]),ee=U([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),te=U([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),re=U([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),se=U([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),ne=U([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function le(Ge,pt,ct,Ne){Ge[pt]=ct>>24&255,Ge[pt+1]=ct>>16&255,Ge[pt+2]=ct>>8&255,Ge[pt+3]=ct&255,Ge[pt+4]=Ne>>24&255,Ge[pt+5]=Ne>>16&255,Ge[pt+6]=Ne>>8&255,Ge[pt+7]=Ne&255}function ge(Ge,pt,ct,Ne,vt){var Xt,sn=0;for(Xt=0;Xt<vt;Xt++)sn|=Ge[pt+Xt]^ct[Ne+Xt];return(1&sn-1>>>8)-1}function ue(Ge,pt,ct,Ne){return ge(Ge,pt,ct,Ne,16)}function _e(Ge,pt,ct,Ne){return ge(Ge,pt,ct,Ne,32)}function fe(Ge,pt,ct,Ne){for(var vt=Ne[0]&255|(Ne[1]&255)<<8|(Ne[2]&255)<<16|(Ne[3]&255)<<24,Xt=ct[0]&255|(ct[1]&255)<<8|(ct[2]&255)<<16|(ct[3]&255)<<24,sn=ct[4]&255|(ct[5]&255)<<8|(ct[6]&255)<<16|(ct[7]&255)<<24,Pn=ct[8]&255|(ct[9]&255)<<8|(ct[10]&255)<<16|(ct[11]&255)<<24,Nn=ct[12]&255|(ct[13]&255)<<8|(ct[14]&255)<<16|(ct[15]&255)<<24,Qn=Ne[4]&255|(Ne[5]&255)<<8|(Ne[6]&255)<<16|(Ne[7]&255)<<24,Xn=pt[0]&255|(pt[1]&255)<<8|(pt[2]&255)<<16|(pt[3]&255)<<24,Rr=pt[4]&255|(pt[5]&255)<<8|(pt[6]&255)<<16|(pt[7]&255)<<24,tr=pt[8]&255|(pt[9]&255)<<8|(pt[10]&255)<<16|(pt[11]&255)<<24,fr=pt[12]&255|(pt[13]&255)<<8|(pt[14]&255)<<16|(pt[15]&255)<<24,Sr=Ne[8]&255|(Ne[9]&255)<<8|(Ne[10]&255)<<16|(Ne[11]&255)<<24,sr=ct[16]&255|(ct[17]&255)<<8|(ct[18]&255)<<16|(ct[19]&255)<<24,Rn=ct[20]&255|(ct[21]&255)<<8|(ct[22]&255)<<16|(ct[23]&255)<<24,mr=ct[24]&255|(ct[25]&255)<<8|(ct[26]&255)<<16|(ct[27]&255)<<24,br=ct[28]&255|(ct[29]&255)<<8|(ct[30]&255)<<16|(ct[31]&255)<<24,hr=Ne[12]&255|(Ne[13]&255)<<8|(Ne[14]&255)<<16|(Ne[15]&255)<<24,zn=vt,er=Xt,et=sn,yt=Pn,wt=Nn,Bt=Qn,Kt=Xn,Mt=Rr,tn=tr,hn=fr,Cn=Sr,cn=sr,ur=Rn,or=mr,rt=br,gt=hr,tt,nn=0;nn<20;nn+=2)tt=zn+ur|0,wt^=tt<<7|tt>>>32-7,tt=wt+zn|0,tn^=tt<<9|tt>>>32-9,tt=tn+wt|0,ur^=tt<<13|tt>>>32-13,tt=ur+tn|0,zn^=tt<<18|tt>>>32-18,tt=Bt+er|0,hn^=tt<<7|tt>>>32-7,tt=hn+Bt|0,or^=tt<<9|tt>>>32-9,tt=or+hn|0,er^=tt<<13|tt>>>32-13,tt=er+or|0,Bt^=tt<<18|tt>>>32-18,tt=Cn+Kt|0,rt^=tt<<7|tt>>>32-7,tt=rt+Cn|0,et^=tt<<9|tt>>>32-9,tt=et+rt|0,Kt^=tt<<13|tt>>>32-13,tt=Kt+et|0,Cn^=tt<<18|tt>>>32-18,tt=gt+cn|0,yt^=tt<<7|tt>>>32-7,tt=yt+gt|0,Mt^=tt<<9|tt>>>32-9,tt=Mt+yt|0,cn^=tt<<13|tt>>>32-13,tt=cn+Mt|0,gt^=tt<<18|tt>>>32-18,tt=zn+yt|0,er^=tt<<7|tt>>>32-7,tt=er+zn|0,et^=tt<<9|tt>>>32-9,tt=et+er|0,yt^=tt<<13|tt>>>32-13,tt=yt+et|0,zn^=tt<<18|tt>>>32-18,tt=Bt+wt|0,Kt^=tt<<7|tt>>>32-7,tt=Kt+Bt|0,Mt^=tt<<9|tt>>>32-9,tt=Mt+Kt|0,wt^=tt<<13|tt>>>32-13,tt=wt+Mt|0,Bt^=tt<<18|tt>>>32-18,tt=Cn+hn|0,cn^=tt<<7|tt>>>32-7,tt=cn+Cn|0,tn^=tt<<9|tt>>>32-9,tt=tn+cn|0,hn^=tt<<13|tt>>>32-13,tt=hn+tn|0,Cn^=tt<<18|tt>>>32-18,tt=gt+rt|0,ur^=tt<<7|tt>>>32-7,tt=ur+gt|0,or^=tt<<9|tt>>>32-9,tt=or+ur|0,rt^=tt<<13|tt>>>32-13,tt=rt+or|0,gt^=tt<<18|tt>>>32-18;zn=zn+vt|0,er=er+Xt|0,et=et+sn|0,yt=yt+Pn|0,wt=wt+Nn|0,Bt=Bt+Qn|0,Kt=Kt+Xn|0,Mt=Mt+Rr|0,tn=tn+tr|0,hn=hn+fr|0,Cn=Cn+Sr|0,cn=cn+sr|0,ur=ur+Rn|0,or=or+mr|0,rt=rt+br|0,gt=gt+hr|0,Ge[0]=zn>>>0&255,Ge[1]=zn>>>8&255,Ge[2]=zn>>>16&255,Ge[3]=zn>>>24&255,Ge[4]=er>>>0&255,Ge[5]=er>>>8&255,Ge[6]=er>>>16&255,Ge[7]=er>>>24&255,Ge[8]=et>>>0&255,Ge[9]=et>>>8&255,Ge[10]=et>>>16&255,Ge[11]=et>>>24&255,Ge[12]=yt>>>0&255,Ge[13]=yt>>>8&255,Ge[14]=yt>>>16&255,Ge[15]=yt>>>24&255,Ge[16]=wt>>>0&255,Ge[17]=wt>>>8&255,Ge[18]=wt>>>16&255,Ge[19]=wt>>>24&255,Ge[20]=Bt>>>0&255,Ge[21]=Bt>>>8&255,Ge[22]=Bt>>>16&255,Ge[23]=Bt>>>24&255,Ge[24]=Kt>>>0&255,Ge[25]=Kt>>>8&255,Ge[26]=Kt>>>16&255,Ge[27]=Kt>>>24&255,Ge[28]=Mt>>>0&255,Ge[29]=Mt>>>8&255,Ge[30]=Mt>>>16&255,Ge[31]=Mt>>>24&255,Ge[32]=tn>>>0&255,Ge[33]=tn>>>8&255,Ge[34]=tn>>>16&255,Ge[35]=tn>>>24&255,Ge[36]=hn>>>0&255,Ge[37]=hn>>>8&255,Ge[38]=hn>>>16&255,Ge[39]=hn>>>24&255,Ge[40]=Cn>>>0&255,Ge[41]=Cn>>>8&255,Ge[42]=Cn>>>16&255,Ge[43]=Cn>>>24&255,Ge[44]=cn>>>0&255,Ge[45]=cn>>>8&255,Ge[46]=cn>>>16&255,Ge[47]=cn>>>24&255,Ge[48]=ur>>>0&255,Ge[49]=ur>>>8&255,Ge[50]=ur>>>16&255,Ge[51]=ur>>>24&255,Ge[52]=or>>>0&255,Ge[53]=or>>>8&255,Ge[54]=or>>>16&255,Ge[55]=or>>>24&255,Ge[56]=rt>>>0&255,Ge[57]=rt>>>8&255,Ge[58]=rt>>>16&255,Ge[59]=rt>>>24&255,Ge[60]=gt>>>0&255,Ge[61]=gt>>>8&255,Ge[62]=gt>>>16&255,Ge[63]=gt>>>24&255}function me(Ge,pt,ct,Ne){for(var vt=Ne[0]&255|(Ne[1]&255)<<8|(Ne[2]&255)<<16|(Ne[3]&255)<<24,Xt=ct[0]&255|(ct[1]&255)<<8|(ct[2]&255)<<16|(ct[3]&255)<<24,sn=ct[4]&255|(ct[5]&255)<<8|(ct[6]&255)<<16|(ct[7]&255)<<24,Pn=ct[8]&255|(ct[9]&255)<<8|(ct[10]&255)<<16|(ct[11]&255)<<24,Nn=ct[12]&255|(ct[13]&255)<<8|(ct[14]&255)<<16|(ct[15]&255)<<24,Qn=Ne[4]&255|(Ne[5]&255)<<8|(Ne[6]&255)<<16|(Ne[7]&255)<<24,Xn=pt[0]&255|(pt[1]&255)<<8|(pt[2]&255)<<16|(pt[3]&255)<<24,Rr=pt[4]&255|(pt[5]&255)<<8|(pt[6]&255)<<16|(pt[7]&255)<<24,tr=pt[8]&255|(pt[9]&255)<<8|(pt[10]&255)<<16|(pt[11]&255)<<24,fr=pt[12]&255|(pt[13]&255)<<8|(pt[14]&255)<<16|(pt[15]&255)<<24,Sr=Ne[8]&255|(Ne[9]&255)<<8|(Ne[10]&255)<<16|(Ne[11]&255)<<24,sr=ct[16]&255|(ct[17]&255)<<8|(ct[18]&255)<<16|(ct[19]&255)<<24,Rn=ct[20]&255|(ct[21]&255)<<8|(ct[22]&255)<<16|(ct[23]&255)<<24,mr=ct[24]&255|(ct[25]&255)<<8|(ct[26]&255)<<16|(ct[27]&255)<<24,br=ct[28]&255|(ct[29]&255)<<8|(ct[30]&255)<<16|(ct[31]&255)<<24,hr=Ne[12]&255|(Ne[13]&255)<<8|(Ne[14]&255)<<16|(Ne[15]&255)<<24,zn=vt,er=Xt,et=sn,yt=Pn,wt=Nn,Bt=Qn,Kt=Xn,Mt=Rr,tn=tr,hn=fr,Cn=Sr,cn=sr,ur=Rn,or=mr,rt=br,gt=hr,tt,nn=0;nn<20;nn+=2)tt=zn+ur|0,wt^=tt<<7|tt>>>32-7,tt=wt+zn|0,tn^=tt<<9|tt>>>32-9,tt=tn+wt|0,ur^=tt<<13|tt>>>32-13,tt=ur+tn|0,zn^=tt<<18|tt>>>32-18,tt=Bt+er|0,hn^=tt<<7|tt>>>32-7,tt=hn+Bt|0,or^=tt<<9|tt>>>32-9,tt=or+hn|0,er^=tt<<13|tt>>>32-13,tt=er+or|0,Bt^=tt<<18|tt>>>32-18,tt=Cn+Kt|0,rt^=tt<<7|tt>>>32-7,tt=rt+Cn|0,et^=tt<<9|tt>>>32-9,tt=et+rt|0,Kt^=tt<<13|tt>>>32-13,tt=Kt+et|0,Cn^=tt<<18|tt>>>32-18,tt=gt+cn|0,yt^=tt<<7|tt>>>32-7,tt=yt+gt|0,Mt^=tt<<9|tt>>>32-9,tt=Mt+yt|0,cn^=tt<<13|tt>>>32-13,tt=cn+Mt|0,gt^=tt<<18|tt>>>32-18,tt=zn+yt|0,er^=tt<<7|tt>>>32-7,tt=er+zn|0,et^=tt<<9|tt>>>32-9,tt=et+er|0,yt^=tt<<13|tt>>>32-13,tt=yt+et|0,zn^=tt<<18|tt>>>32-18,tt=Bt+wt|0,Kt^=tt<<7|tt>>>32-7,tt=Kt+Bt|0,Mt^=tt<<9|tt>>>32-9,tt=Mt+Kt|0,wt^=tt<<13|tt>>>32-13,tt=wt+Mt|0,Bt^=tt<<18|tt>>>32-18,tt=Cn+hn|0,cn^=tt<<7|tt>>>32-7,tt=cn+Cn|0,tn^=tt<<9|tt>>>32-9,tt=tn+cn|0,hn^=tt<<13|tt>>>32-13,tt=hn+tn|0,Cn^=tt<<18|tt>>>32-18,tt=gt+rt|0,ur^=tt<<7|tt>>>32-7,tt=ur+gt|0,or^=tt<<9|tt>>>32-9,tt=or+ur|0,rt^=tt<<13|tt>>>32-13,tt=rt+or|0,gt^=tt<<18|tt>>>32-18;Ge[0]=zn>>>0&255,Ge[1]=zn>>>8&255,Ge[2]=zn>>>16&255,Ge[3]=zn>>>24&255,Ge[4]=Bt>>>0&255,Ge[5]=Bt>>>8&255,Ge[6]=Bt>>>16&255,Ge[7]=Bt>>>24&255,Ge[8]=Cn>>>0&255,Ge[9]=Cn>>>8&255,Ge[10]=Cn>>>16&255,Ge[11]=Cn>>>24&255,Ge[12]=gt>>>0&255,Ge[13]=gt>>>8&255,Ge[14]=gt>>>16&255,Ge[15]=gt>>>24&255,Ge[16]=Kt>>>0&255,Ge[17]=Kt>>>8&255,Ge[18]=Kt>>>16&255,Ge[19]=Kt>>>24&255,Ge[20]=Mt>>>0&255,Ge[21]=Mt>>>8&255,Ge[22]=Mt>>>16&255,Ge[23]=Mt>>>24&255,Ge[24]=tn>>>0&255,Ge[25]=tn>>>8&255,Ge[26]=tn>>>16&255,Ge[27]=tn>>>24&255,Ge[28]=hn>>>0&255,Ge[29]=hn>>>8&255,Ge[30]=hn>>>16&255,Ge[31]=hn>>>24&255}function ve(Ge,pt,ct,Ne){fe(Ge,pt,ct,Ne)}function xe(Ge,pt,ct,Ne){me(Ge,pt,ct,Ne)}var oe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ye(Ge,pt,ct,Ne,vt,Xt,sn){var Pn=new Uint8Array(16),Nn=new Uint8Array(64),Qn,Xn;for(Xn=0;Xn<16;Xn++)Pn[Xn]=0;for(Xn=0;Xn<8;Xn++)Pn[Xn]=Xt[Xn];for(;vt>=64;){for(ve(Nn,Pn,sn,oe),Xn=0;Xn<64;Xn++)Ge[pt+Xn]=ct[Ne+Xn]^Nn[Xn];for(Qn=1,Xn=8;Xn<16;Xn++)Qn=Qn+(Pn[Xn]&255)|0,Pn[Xn]=Qn&255,Qn>>>=8;vt-=64,pt+=64,Ne+=64}if(vt>0)for(ve(Nn,Pn,sn,oe),Xn=0;Xn<vt;Xn++)Ge[pt+Xn]=ct[Ne+Xn]^Nn[Xn];return 0}function be(Ge,pt,ct,Ne,vt){var Xt=new Uint8Array(16),sn=new Uint8Array(64),Pn,Nn;for(Nn=0;Nn<16;Nn++)Xt[Nn]=0;for(Nn=0;Nn<8;Nn++)Xt[Nn]=Ne[Nn];for(;ct>=64;){for(ve(sn,Xt,vt,oe),Nn=0;Nn<64;Nn++)Ge[pt+Nn]=sn[Nn];for(Pn=1,Nn=8;Nn<16;Nn++)Pn=Pn+(Xt[Nn]&255)|0,Xt[Nn]=Pn&255,Pn>>>=8;ct-=64,pt+=64}if(ct>0)for(ve(sn,Xt,vt,oe),Nn=0;Nn<ct;Nn++)Ge[pt+Nn]=sn[Nn];return 0}function we(Ge,pt,ct,Ne,vt){var Xt=new Uint8Array(32);xe(Xt,Ne,vt,oe);for(var sn=new Uint8Array(8),Pn=0;Pn<8;Pn++)sn[Pn]=Ne[Pn+16];return be(Ge,pt,ct,sn,Xt)}function Ae(Ge,pt,ct,Ne,vt,Xt,sn){var Pn=new Uint8Array(32);xe(Pn,Xt,sn,oe);for(var Nn=new Uint8Array(8),Qn=0;Qn<8;Qn++)Nn[Qn]=Xt[Qn+16];return ye(Ge,pt,ct,Ne,vt,Nn,Pn)}var ke=function(Ge){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var pt,ct,Ne,vt,Xt,sn,Pn,Nn;pt=Ge[0]&255|(Ge[1]&255)<<8,this.r[0]=pt&8191,ct=Ge[2]&255|(Ge[3]&255)<<8,this.r[1]=(pt>>>13|ct<<3)&8191,Ne=Ge[4]&255|(Ge[5]&255)<<8,this.r[2]=(ct>>>10|Ne<<6)&7939,vt=Ge[6]&255|(Ge[7]&255)<<8,this.r[3]=(Ne>>>7|vt<<9)&8191,Xt=Ge[8]&255|(Ge[9]&255)<<8,this.r[4]=(vt>>>4|Xt<<12)&255,this.r[5]=Xt>>>1&8190,sn=Ge[10]&255|(Ge[11]&255)<<8,this.r[6]=(Xt>>>14|sn<<2)&8191,Pn=Ge[12]&255|(Ge[13]&255)<<8,this.r[7]=(sn>>>11|Pn<<5)&8065,Nn=Ge[14]&255|(Ge[15]&255)<<8,this.r[8]=(Pn>>>8|Nn<<8)&8191,this.r[9]=Nn>>>5&127,this.pad[0]=Ge[16]&255|(Ge[17]&255)<<8,this.pad[1]=Ge[18]&255|(Ge[19]&255)<<8,this.pad[2]=Ge[20]&255|(Ge[21]&255)<<8,this.pad[3]=Ge[22]&255|(Ge[23]&255)<<8,this.pad[4]=Ge[24]&255|(Ge[25]&255)<<8,this.pad[5]=Ge[26]&255|(Ge[27]&255)<<8,this.pad[6]=Ge[28]&255|(Ge[29]&255)<<8,this.pad[7]=Ge[30]&255|(Ge[31]&255)<<8};ke.prototype.blocks=function(Ge,pt,ct){for(var Ne=this.fin?0:2048,vt,Xt,sn,Pn,Nn,Qn,Xn,Rr,tr,fr,Sr,sr,Rn,mr,br,hr,zn,er,et,yt=this.h[0],wt=this.h[1],Bt=this.h[2],Kt=this.h[3],Mt=this.h[4],tn=this.h[5],hn=this.h[6],Cn=this.h[7],cn=this.h[8],ur=this.h[9],or=this.r[0],rt=this.r[1],gt=this.r[2],tt=this.r[3],nn=this.r[4],kn=this.r[5],Un=this.r[6],Jn=this.r[7],_r=this.r[8],xr=this.r[9];ct>=16;)vt=Ge[pt+0]&255|(Ge[pt+1]&255)<<8,yt+=vt&8191,Xt=Ge[pt+2]&255|(Ge[pt+3]&255)<<8,wt+=(vt>>>13|Xt<<3)&8191,sn=Ge[pt+4]&255|(Ge[pt+5]&255)<<8,Bt+=(Xt>>>10|sn<<6)&8191,Pn=Ge[pt+6]&255|(Ge[pt+7]&255)<<8,Kt+=(sn>>>7|Pn<<9)&8191,Nn=Ge[pt+8]&255|(Ge[pt+9]&255)<<8,Mt+=(Pn>>>4|Nn<<12)&8191,tn+=Nn>>>1&8191,Qn=Ge[pt+10]&255|(Ge[pt+11]&255)<<8,hn+=(Nn>>>14|Qn<<2)&8191,Xn=Ge[pt+12]&255|(Ge[pt+13]&255)<<8,Cn+=(Qn>>>11|Xn<<5)&8191,Rr=Ge[pt+14]&255|(Ge[pt+15]&255)<<8,cn+=(Xn>>>8|Rr<<8)&8191,ur+=Rr>>>5|Ne,tr=0,fr=tr,fr+=yt*or,fr+=wt*(5*xr),fr+=Bt*(5*_r),fr+=Kt*(5*Jn),fr+=Mt*(5*Un),tr=fr>>>13,fr&=8191,fr+=tn*(5*kn),fr+=hn*(5*nn),fr+=Cn*(5*tt),fr+=cn*(5*gt),fr+=ur*(5*rt),tr+=fr>>>13,fr&=8191,Sr=tr,Sr+=yt*rt,Sr+=wt*or,Sr+=Bt*(5*xr),Sr+=Kt*(5*_r),Sr+=Mt*(5*Jn),tr=Sr>>>13,Sr&=8191,Sr+=tn*(5*Un),Sr+=hn*(5*kn),Sr+=Cn*(5*nn),Sr+=cn*(5*tt),Sr+=ur*(5*gt),tr+=Sr>>>13,Sr&=8191,sr=tr,sr+=yt*gt,sr+=wt*rt,sr+=Bt*or,sr+=Kt*(5*xr),sr+=Mt*(5*_r),tr=sr>>>13,sr&=8191,sr+=tn*(5*Jn),sr+=hn*(5*Un),sr+=Cn*(5*kn),sr+=cn*(5*nn),sr+=ur*(5*tt),tr+=sr>>>13,sr&=8191,Rn=tr,Rn+=yt*tt,Rn+=wt*gt,Rn+=Bt*rt,Rn+=Kt*or,Rn+=Mt*(5*xr),tr=Rn>>>13,Rn&=8191,Rn+=tn*(5*_r),Rn+=hn*(5*Jn),Rn+=Cn*(5*Un),Rn+=cn*(5*kn),Rn+=ur*(5*nn),tr+=Rn>>>13,Rn&=8191,mr=tr,mr+=yt*nn,mr+=wt*tt,mr+=Bt*gt,mr+=Kt*rt,mr+=Mt*or,tr=mr>>>13,mr&=8191,mr+=tn*(5*xr),mr+=hn*(5*_r),mr+=Cn*(5*Jn),mr+=cn*(5*Un),mr+=ur*(5*kn),tr+=mr>>>13,mr&=8191,br=tr,br+=yt*kn,br+=wt*nn,br+=Bt*tt,br+=Kt*gt,br+=Mt*rt,tr=br>>>13,br&=8191,br+=tn*or,br+=hn*(5*xr),br+=Cn*(5*_r),br+=cn*(5*Jn),br+=ur*(5*Un),tr+=br>>>13,br&=8191,hr=tr,hr+=yt*Un,hr+=wt*kn,hr+=Bt*nn,hr+=Kt*tt,hr+=Mt*gt,tr=hr>>>13,hr&=8191,hr+=tn*rt,hr+=hn*or,hr+=Cn*(5*xr),hr+=cn*(5*_r),hr+=ur*(5*Jn),tr+=hr>>>13,hr&=8191,zn=tr,zn+=yt*Jn,zn+=wt*Un,zn+=Bt*kn,zn+=Kt*nn,zn+=Mt*tt,tr=zn>>>13,zn&=8191,zn+=tn*gt,zn+=hn*rt,zn+=Cn*or,zn+=cn*(5*xr),zn+=ur*(5*_r),tr+=zn>>>13,zn&=8191,er=tr,er+=yt*_r,er+=wt*Jn,er+=Bt*Un,er+=Kt*kn,er+=Mt*nn,tr=er>>>13,er&=8191,er+=tn*tt,er+=hn*gt,er+=Cn*rt,er+=cn*or,er+=ur*(5*xr),tr+=er>>>13,er&=8191,et=tr,et+=yt*xr,et+=wt*_r,et+=Bt*Jn,et+=Kt*Un,et+=Mt*kn,tr=et>>>13,et&=8191,et+=tn*nn,et+=hn*tt,et+=Cn*gt,et+=cn*rt,et+=ur*or,tr+=et>>>13,et&=8191,tr=(tr<<2)+tr|0,tr=tr+fr|0,fr=tr&8191,tr=tr>>>13,Sr+=tr,yt=fr,wt=Sr,Bt=sr,Kt=Rn,Mt=mr,tn=br,hn=hr,Cn=zn,cn=er,ur=et,pt+=16,ct-=16;this.h[0]=yt,this.h[1]=wt,this.h[2]=Bt,this.h[3]=Kt,this.h[4]=Mt,this.h[5]=tn,this.h[6]=hn,this.h[7]=Cn,this.h[8]=cn,this.h[9]=ur},ke.prototype.finish=function(Ge,pt){var ct=new Uint16Array(10),Ne,vt,Xt,sn;if(this.leftover){for(sn=this.leftover,this.buffer[sn++]=1;sn<16;sn++)this.buffer[sn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(Ne=this.h[1]>>>13,this.h[1]&=8191,sn=2;sn<10;sn++)this.h[sn]+=Ne,Ne=this.h[sn]>>>13,this.h[sn]&=8191;for(this.h[0]+=Ne*5,Ne=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=Ne,Ne=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=Ne,ct[0]=this.h[0]+5,Ne=ct[0]>>>13,ct[0]&=8191,sn=1;sn<10;sn++)ct[sn]=this.h[sn]+Ne,Ne=ct[sn]>>>13,ct[sn]&=8191;for(ct[9]-=8192,vt=(Ne^1)-1,sn=0;sn<10;sn++)ct[sn]&=vt;for(vt=~vt,sn=0;sn<10;sn++)this.h[sn]=this.h[sn]&vt|ct[sn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Xt=this.h[0]+this.pad[0],this.h[0]=Xt&65535,sn=1;sn<8;sn++)Xt=(this.h[sn]+this.pad[sn]|0)+(Xt>>>16)|0,this.h[sn]=Xt&65535;Ge[pt+0]=this.h[0]>>>0&255,Ge[pt+1]=this.h[0]>>>8&255,Ge[pt+2]=this.h[1]>>>0&255,Ge[pt+3]=this.h[1]>>>8&255,Ge[pt+4]=this.h[2]>>>0&255,Ge[pt+5]=this.h[2]>>>8&255,Ge[pt+6]=this.h[3]>>>0&255,Ge[pt+7]=this.h[3]>>>8&255,Ge[pt+8]=this.h[4]>>>0&255,Ge[pt+9]=this.h[4]>>>8&255,Ge[pt+10]=this.h[5]>>>0&255,Ge[pt+11]=this.h[5]>>>8&255,Ge[pt+12]=this.h[6]>>>0&255,Ge[pt+13]=this.h[6]>>>8&255,Ge[pt+14]=this.h[7]>>>0&255,Ge[pt+15]=this.h[7]>>>8&255},ke.prototype.update=function(Ge,pt,ct){var Ne,vt;if(this.leftover){for(vt=16-this.leftover,vt>ct&&(vt=ct),Ne=0;Ne<vt;Ne++)this.buffer[this.leftover+Ne]=Ge[pt+Ne];if(ct-=vt,pt+=vt,this.leftover+=vt,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(ct>=16&&(vt=ct-ct%16,this.blocks(Ge,pt,vt),pt+=vt,ct-=vt),ct){for(Ne=0;Ne<ct;Ne++)this.buffer[this.leftover+Ne]=Ge[pt+Ne];this.leftover+=ct}};function Oe(Ge,pt,ct,Ne,vt,Xt){var sn=new ke(Xt);return sn.update(ct,Ne,vt),sn.finish(Ge,pt),0}function Me(Ge,pt,ct,Ne,vt,Xt){var sn=new Uint8Array(16);return Oe(sn,0,ct,Ne,vt,Xt),ue(Ge,pt,sn,0)}function ze(Ge,pt,ct,Ne,vt){var Xt;if(ct<32)return-1;for(Ae(Ge,0,pt,0,ct,Ne,vt),Oe(Ge,16,Ge,32,ct-32,Ge),Xt=0;Xt<16;Xt++)Ge[Xt]=0;return 0}function Fe(Ge,pt,ct,Ne,vt){var Xt,sn=new Uint8Array(32);if(ct<32||(we(sn,0,32,Ne,vt),Me(pt,16,pt,32,ct-32,sn)!==0))return-1;for(Ae(Ge,0,pt,0,ct,Ne,vt),Xt=0;Xt<32;Xt++)Ge[Xt]=0;return 0}function Ze(Ge,pt){var ct;for(ct=0;ct<16;ct++)Ge[ct]=pt[ct]|0}function lt(Ge){var pt,ct,Ne=1;for(pt=0;pt<16;pt++)ct=Ge[pt]+Ne+65535,Ne=Math.floor(ct/65536),Ge[pt]=ct-Ne*65536;Ge[0]+=Ne-1+37*(Ne-1)}function qe(Ge,pt,ct){for(var Ne,vt=~(ct-1),Xt=0;Xt<16;Xt++)Ne=vt&(Ge[Xt]^pt[Xt]),Ge[Xt]^=Ne,pt[Xt]^=Ne}function Ve(Ge,pt){var ct,Ne,vt,Xt=U(),sn=U();for(ct=0;ct<16;ct++)sn[ct]=pt[ct];for(lt(sn),lt(sn),lt(sn),Ne=0;Ne<2;Ne++){for(Xt[0]=sn[0]-65517,ct=1;ct<15;ct++)Xt[ct]=sn[ct]-65535-(Xt[ct-1]>>16&1),Xt[ct-1]&=65535;Xt[15]=sn[15]-32767-(Xt[14]>>16&1),vt=Xt[15]>>16&1,Xt[14]&=65535,qe(sn,Xt,1-vt)}for(ct=0;ct<16;ct++)Ge[2*ct]=sn[ct]&255,Ge[2*ct+1]=sn[ct]>>8}function At(Ge,pt){var ct=new Uint8Array(32),Ne=new Uint8Array(32);return Ve(ct,Ge),Ve(Ne,pt),_e(ct,0,Ne,0)}function Nt(Ge){var pt=new Uint8Array(32);return Ve(pt,Ge),pt[0]&1}function zt(Ge,pt){var ct;for(ct=0;ct<16;ct++)Ge[ct]=pt[2*ct]+(pt[2*ct+1]<<8);Ge[15]&=32767}function Ht(Ge,pt,ct){for(var Ne=0;Ne<16;Ne++)Ge[Ne]=pt[Ne]+ct[Ne]}function qt(Ge,pt,ct){for(var Ne=0;Ne<16;Ne++)Ge[Ne]=pt[Ne]-ct[Ne]}function Qt(Ge,pt,ct){var Ne,vt,Xt=0,sn=0,Pn=0,Nn=0,Qn=0,Xn=0,Rr=0,tr=0,fr=0,Sr=0,sr=0,Rn=0,mr=0,br=0,hr=0,zn=0,er=0,et=0,yt=0,wt=0,Bt=0,Kt=0,Mt=0,tn=0,hn=0,Cn=0,cn=0,ur=0,or=0,rt=0,gt=0,tt=ct[0],nn=ct[1],kn=ct[2],Un=ct[3],Jn=ct[4],_r=ct[5],xr=ct[6],Nr=ct[7],Mr=ct[8],Zr=ct[9],ti=ct[10],Xr=ct[11],ni=ct[12],qr=ct[13],ei=ct[14],mi=ct[15];Ne=pt[0],Xt+=Ne*tt,sn+=Ne*nn,Pn+=Ne*kn,Nn+=Ne*Un,Qn+=Ne*Jn,Xn+=Ne*_r,Rr+=Ne*xr,tr+=Ne*Nr,fr+=Ne*Mr,Sr+=Ne*Zr,sr+=Ne*ti,Rn+=Ne*Xr,mr+=Ne*ni,br+=Ne*qr,hr+=Ne*ei,zn+=Ne*mi,Ne=pt[1],sn+=Ne*tt,Pn+=Ne*nn,Nn+=Ne*kn,Qn+=Ne*Un,Xn+=Ne*Jn,Rr+=Ne*_r,tr+=Ne*xr,fr+=Ne*Nr,Sr+=Ne*Mr,sr+=Ne*Zr,Rn+=Ne*ti,mr+=Ne*Xr,br+=Ne*ni,hr+=Ne*qr,zn+=Ne*ei,er+=Ne*mi,Ne=pt[2],Pn+=Ne*tt,Nn+=Ne*nn,Qn+=Ne*kn,Xn+=Ne*Un,Rr+=Ne*Jn,tr+=Ne*_r,fr+=Ne*xr,Sr+=Ne*Nr,sr+=Ne*Mr,Rn+=Ne*Zr,mr+=Ne*ti,br+=Ne*Xr,hr+=Ne*ni,zn+=Ne*qr,er+=Ne*ei,et+=Ne*mi,Ne=pt[3],Nn+=Ne*tt,Qn+=Ne*nn,Xn+=Ne*kn,Rr+=Ne*Un,tr+=Ne*Jn,fr+=Ne*_r,Sr+=Ne*xr,sr+=Ne*Nr,Rn+=Ne*Mr,mr+=Ne*Zr,br+=Ne*ti,hr+=Ne*Xr,zn+=Ne*ni,er+=Ne*qr,et+=Ne*ei,yt+=Ne*mi,Ne=pt[4],Qn+=Ne*tt,Xn+=Ne*nn,Rr+=Ne*kn,tr+=Ne*Un,fr+=Ne*Jn,Sr+=Ne*_r,sr+=Ne*xr,Rn+=Ne*Nr,mr+=Ne*Mr,br+=Ne*Zr,hr+=Ne*ti,zn+=Ne*Xr,er+=Ne*ni,et+=Ne*qr,yt+=Ne*ei,wt+=Ne*mi,Ne=pt[5],Xn+=Ne*tt,Rr+=Ne*nn,tr+=Ne*kn,fr+=Ne*Un,Sr+=Ne*Jn,sr+=Ne*_r,Rn+=Ne*xr,mr+=Ne*Nr,br+=Ne*Mr,hr+=Ne*Zr,zn+=Ne*ti,er+=Ne*Xr,et+=Ne*ni,yt+=Ne*qr,wt+=Ne*ei,Bt+=Ne*mi,Ne=pt[6],Rr+=Ne*tt,tr+=Ne*nn,fr+=Ne*kn,Sr+=Ne*Un,sr+=Ne*Jn,Rn+=Ne*_r,mr+=Ne*xr,br+=Ne*Nr,hr+=Ne*Mr,zn+=Ne*Zr,er+=Ne*ti,et+=Ne*Xr,yt+=Ne*ni,wt+=Ne*qr,Bt+=Ne*ei,Kt+=Ne*mi,Ne=pt[7],tr+=Ne*tt,fr+=Ne*nn,Sr+=Ne*kn,sr+=Ne*Un,Rn+=Ne*Jn,mr+=Ne*_r,br+=Ne*xr,hr+=Ne*Nr,zn+=Ne*Mr,er+=Ne*Zr,et+=Ne*ti,yt+=Ne*Xr,wt+=Ne*ni,Bt+=Ne*qr,Kt+=Ne*ei,Mt+=Ne*mi,Ne=pt[8],fr+=Ne*tt,Sr+=Ne*nn,sr+=Ne*kn,Rn+=Ne*Un,mr+=Ne*Jn,br+=Ne*_r,hr+=Ne*xr,zn+=Ne*Nr,er+=Ne*Mr,et+=Ne*Zr,yt+=Ne*ti,wt+=Ne*Xr,Bt+=Ne*ni,Kt+=Ne*qr,Mt+=Ne*ei,tn+=Ne*mi,Ne=pt[9],Sr+=Ne*tt,sr+=Ne*nn,Rn+=Ne*kn,mr+=Ne*Un,br+=Ne*Jn,hr+=Ne*_r,zn+=Ne*xr,er+=Ne*Nr,et+=Ne*Mr,yt+=Ne*Zr,wt+=Ne*ti,Bt+=Ne*Xr,Kt+=Ne*ni,Mt+=Ne*qr,tn+=Ne*ei,hn+=Ne*mi,Ne=pt[10],sr+=Ne*tt,Rn+=Ne*nn,mr+=Ne*kn,br+=Ne*Un,hr+=Ne*Jn,zn+=Ne*_r,er+=Ne*xr,et+=Ne*Nr,yt+=Ne*Mr,wt+=Ne*Zr,Bt+=Ne*ti,Kt+=Ne*Xr,Mt+=Ne*ni,tn+=Ne*qr,hn+=Ne*ei,Cn+=Ne*mi,Ne=pt[11],Rn+=Ne*tt,mr+=Ne*nn,br+=Ne*kn,hr+=Ne*Un,zn+=Ne*Jn,er+=Ne*_r,et+=Ne*xr,yt+=Ne*Nr,wt+=Ne*Mr,Bt+=Ne*Zr,Kt+=Ne*ti,Mt+=Ne*Xr,tn+=Ne*ni,hn+=Ne*qr,Cn+=Ne*ei,cn+=Ne*mi,Ne=pt[12],mr+=Ne*tt,br+=Ne*nn,hr+=Ne*kn,zn+=Ne*Un,er+=Ne*Jn,et+=Ne*_r,yt+=Ne*xr,wt+=Ne*Nr,Bt+=Ne*Mr,Kt+=Ne*Zr,Mt+=Ne*ti,tn+=Ne*Xr,hn+=Ne*ni,Cn+=Ne*qr,cn+=Ne*ei,ur+=Ne*mi,Ne=pt[13],br+=Ne*tt,hr+=Ne*nn,zn+=Ne*kn,er+=Ne*Un,et+=Ne*Jn,yt+=Ne*_r,wt+=Ne*xr,Bt+=Ne*Nr,Kt+=Ne*Mr,Mt+=Ne*Zr,tn+=Ne*ti,hn+=Ne*Xr,Cn+=Ne*ni,cn+=Ne*qr,ur+=Ne*ei,or+=Ne*mi,Ne=pt[14],hr+=Ne*tt,zn+=Ne*nn,er+=Ne*kn,et+=Ne*Un,yt+=Ne*Jn,wt+=Ne*_r,Bt+=Ne*xr,Kt+=Ne*Nr,Mt+=Ne*Mr,tn+=Ne*Zr,hn+=Ne*ti,Cn+=Ne*Xr,cn+=Ne*ni,ur+=Ne*qr,or+=Ne*ei,rt+=Ne*mi,Ne=pt[15],zn+=Ne*tt,er+=Ne*nn,et+=Ne*kn,yt+=Ne*Un,wt+=Ne*Jn,Bt+=Ne*_r,Kt+=Ne*xr,Mt+=Ne*Nr,tn+=Ne*Mr,hn+=Ne*Zr,Cn+=Ne*ti,cn+=Ne*Xr,ur+=Ne*ni,or+=Ne*qr,rt+=Ne*ei,gt+=Ne*mi,Xt+=38*er,sn+=38*et,Pn+=38*yt,Nn+=38*wt,Qn+=38*Bt,Xn+=38*Kt,Rr+=38*Mt,tr+=38*tn,fr+=38*hn,Sr+=38*Cn,sr+=38*cn,Rn+=38*ur,mr+=38*or,br+=38*rt,hr+=38*gt,vt=1,Ne=Xt+vt+65535,vt=Math.floor(Ne/65536),Xt=Ne-vt*65536,Ne=sn+vt+65535,vt=Math.floor(Ne/65536),sn=Ne-vt*65536,Ne=Pn+vt+65535,vt=Math.floor(Ne/65536),Pn=Ne-vt*65536,Ne=Nn+vt+65535,vt=Math.floor(Ne/65536),Nn=Ne-vt*65536,Ne=Qn+vt+65535,vt=Math.floor(Ne/65536),Qn=Ne-vt*65536,Ne=Xn+vt+65535,vt=Math.floor(Ne/65536),Xn=Ne-vt*65536,Ne=Rr+vt+65535,vt=Math.floor(Ne/65536),Rr=Ne-vt*65536,Ne=tr+vt+65535,vt=Math.floor(Ne/65536),tr=Ne-vt*65536,Ne=fr+vt+65535,vt=Math.floor(Ne/65536),fr=Ne-vt*65536,Ne=Sr+vt+65535,vt=Math.floor(Ne/65536),Sr=Ne-vt*65536,Ne=sr+vt+65535,vt=Math.floor(Ne/65536),sr=Ne-vt*65536,Ne=Rn+vt+65535,vt=Math.floor(Ne/65536),Rn=Ne-vt*65536,Ne=mr+vt+65535,vt=Math.floor(Ne/65536),mr=Ne-vt*65536,Ne=br+vt+65535,vt=Math.floor(Ne/65536),br=Ne-vt*65536,Ne=hr+vt+65535,vt=Math.floor(Ne/65536),hr=Ne-vt*65536,Ne=zn+vt+65535,vt=Math.floor(Ne/65536),zn=Ne-vt*65536,Xt+=vt-1+37*(vt-1),vt=1,Ne=Xt+vt+65535,vt=Math.floor(Ne/65536),Xt=Ne-vt*65536,Ne=sn+vt+65535,vt=Math.floor(Ne/65536),sn=Ne-vt*65536,Ne=Pn+vt+65535,vt=Math.floor(Ne/65536),Pn=Ne-vt*65536,Ne=Nn+vt+65535,vt=Math.floor(Ne/65536),Nn=Ne-vt*65536,Ne=Qn+vt+65535,vt=Math.floor(Ne/65536),Qn=Ne-vt*65536,Ne=Xn+vt+65535,vt=Math.floor(Ne/65536),Xn=Ne-vt*65536,Ne=Rr+vt+65535,vt=Math.floor(Ne/65536),Rr=Ne-vt*65536,Ne=tr+vt+65535,vt=Math.floor(Ne/65536),tr=Ne-vt*65536,Ne=fr+vt+65535,vt=Math.floor(Ne/65536),fr=Ne-vt*65536,Ne=Sr+vt+65535,vt=Math.floor(Ne/65536),Sr=Ne-vt*65536,Ne=sr+vt+65535,vt=Math.floor(Ne/65536),sr=Ne-vt*65536,Ne=Rn+vt+65535,vt=Math.floor(Ne/65536),Rn=Ne-vt*65536,Ne=mr+vt+65535,vt=Math.floor(Ne/65536),mr=Ne-vt*65536,Ne=br+vt+65535,vt=Math.floor(Ne/65536),br=Ne-vt*65536,Ne=hr+vt+65535,vt=Math.floor(Ne/65536),hr=Ne-vt*65536,Ne=zn+vt+65535,vt=Math.floor(Ne/65536),zn=Ne-vt*65536,Xt+=vt-1+37*(vt-1),Ge[0]=Xt,Ge[1]=sn,Ge[2]=Pn,Ge[3]=Nn,Ge[4]=Qn,Ge[5]=Xn,Ge[6]=Rr,Ge[7]=tr,Ge[8]=fr,Ge[9]=Sr,Ge[10]=sr,Ge[11]=Rn,Ge[12]=mr,Ge[13]=br,Ge[14]=hr,Ge[15]=zn}function Jt(Ge,pt){Qt(Ge,pt,pt)}function yn(Ge,pt){var ct=U(),Ne;for(Ne=0;Ne<16;Ne++)ct[Ne]=pt[Ne];for(Ne=253;Ne>=0;Ne--)Jt(ct,ct),Ne!==2&&Ne!==4&&Qt(ct,ct,pt);for(Ne=0;Ne<16;Ne++)Ge[Ne]=ct[Ne]}function _n(Ge,pt){var ct=U(),Ne;for(Ne=0;Ne<16;Ne++)ct[Ne]=pt[Ne];for(Ne=250;Ne>=0;Ne--)Jt(ct,ct),Ne!==1&&Qt(ct,ct,pt);for(Ne=0;Ne<16;Ne++)Ge[Ne]=ct[Ne]}function Hn(Ge,pt,ct){var Ne=new Uint8Array(32),vt=new Float64Array(80),Xt,sn,Pn=U(),Nn=U(),Qn=U(),Xn=U(),Rr=U(),tr=U();for(sn=0;sn<31;sn++)Ne[sn]=pt[sn];for(Ne[31]=pt[31]&127|64,Ne[0]&=248,zt(vt,ct),sn=0;sn<16;sn++)Nn[sn]=vt[sn],Xn[sn]=Pn[sn]=Qn[sn]=0;for(Pn[0]=Xn[0]=1,sn=254;sn>=0;--sn)Xt=Ne[sn>>>3]>>>(sn&7)&1,qe(Pn,Nn,Xt),qe(Qn,Xn,Xt),Ht(Rr,Pn,Qn),qt(Pn,Pn,Qn),Ht(Qn,Nn,Xn),qt(Nn,Nn,Xn),Jt(Xn,Rr),Jt(tr,Pn),Qt(Pn,Qn,Pn),Qt(Qn,Nn,Rr),Ht(Rr,Pn,Qn),qt(Pn,Pn,Qn),Jt(Nn,Pn),qt(Qn,Xn,tr),Qt(Pn,Qn,Z),Ht(Pn,Pn,Xn),Qt(Qn,Qn,Pn),Qt(Pn,Xn,tr),Qt(Xn,Nn,vt),Jt(Nn,Rr),qe(Pn,Nn,Xt),qe(Qn,Xn,Xt);for(sn=0;sn<16;sn++)vt[sn+16]=Pn[sn],vt[sn+32]=Qn[sn],vt[sn+48]=Nn[sn],vt[sn+64]=Xn[sn];var fr=vt.subarray(32),Sr=vt.subarray(16);return yn(fr,fr),Qt(Sr,Sr,fr),Ve(Ge,Sr),0}function On(Ge,pt){return Hn(Ge,pt,K)}function Fn(Ge,pt){return q(pt,32),On(Ge,pt)}function In(Ge,pt,ct){var Ne=new Uint8Array(32);return Hn(Ne,ct,pt),xe(Ge,Y,Ne,oe)}var dn=ze,kt=Fe;function Ye(Ge,pt,ct,Ne,vt,Xt){var sn=new Uint8Array(32);return In(sn,vt,Xt),dn(Ge,pt,ct,Ne,sn)}function _t(Ge,pt,ct,Ne,vt,Xt){var sn=new Uint8Array(32);return In(sn,vt,Xt),kt(Ge,pt,ct,Ne,sn)}var We=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Pe(Ge,pt,ct,Ne){for(var vt=new Int32Array(16),Xt=new Int32Array(16),sn,Pn,Nn,Qn,Xn,Rr,tr,fr,Sr,sr,Rn,mr,br,hr,zn,er,et,yt,wt,Bt,Kt,Mt,tn,hn,Cn,cn,ur=Ge[0],or=Ge[1],rt=Ge[2],gt=Ge[3],tt=Ge[4],nn=Ge[5],kn=Ge[6],Un=Ge[7],Jn=pt[0],_r=pt[1],xr=pt[2],Nr=pt[3],Mr=pt[4],Zr=pt[5],ti=pt[6],Xr=pt[7],ni=0;Ne>=128;){for(wt=0;wt<16;wt++)Bt=8*wt+ni,vt[wt]=ct[Bt+0]<<24|ct[Bt+1]<<16|ct[Bt+2]<<8|ct[Bt+3],Xt[wt]=ct[Bt+4]<<24|ct[Bt+5]<<16|ct[Bt+6]<<8|ct[Bt+7];for(wt=0;wt<80;wt++)if(sn=ur,Pn=or,Nn=rt,Qn=gt,Xn=tt,Rr=nn,tr=kn,fr=Un,Sr=Jn,sr=_r,Rn=xr,mr=Nr,br=Mr,hr=Zr,zn=ti,er=Xr,Kt=Un,Mt=Xr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=(tt>>>14|Mr<<32-14)^(tt>>>18|Mr<<32-18)^(Mr>>>41-32|tt<<32-(41-32)),Mt=(Mr>>>14|tt<<32-14)^(Mr>>>18|tt<<32-18)^(tt>>>41-32|Mr<<32-(41-32)),tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,Kt=tt&nn^~tt&kn,Mt=Mr&Zr^~Mr&ti,tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,Kt=We[wt*2],Mt=We[wt*2+1],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,Kt=vt[wt%16],Mt=Xt[wt%16],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,et=Cn&65535|cn<<16,yt=tn&65535|hn<<16,Kt=et,Mt=yt,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=(ur>>>28|Jn<<32-28)^(Jn>>>34-32|ur<<32-(34-32))^(Jn>>>39-32|ur<<32-(39-32)),Mt=(Jn>>>28|ur<<32-28)^(ur>>>34-32|Jn<<32-(34-32))^(ur>>>39-32|Jn<<32-(39-32)),tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,Kt=ur&or^ur&rt^or&rt,Mt=Jn&_r^Jn&xr^_r&xr,tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,fr=Cn&65535|cn<<16,er=tn&65535|hn<<16,Kt=Qn,Mt=mr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=et,Mt=yt,tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Qn=Cn&65535|cn<<16,mr=tn&65535|hn<<16,or=sn,rt=Pn,gt=Nn,tt=Qn,nn=Xn,kn=Rr,Un=tr,ur=fr,_r=Sr,xr=sr,Nr=Rn,Mr=mr,Zr=br,ti=hr,Xr=zn,Jn=er,wt%16===15)for(Bt=0;Bt<16;Bt++)Kt=vt[Bt],Mt=Xt[Bt],tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=vt[(Bt+9)%16],Mt=Xt[(Bt+9)%16],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,et=vt[(Bt+1)%16],yt=Xt[(Bt+1)%16],Kt=(et>>>1|yt<<32-1)^(et>>>8|yt<<32-8)^et>>>7,Mt=(yt>>>1|et<<32-1)^(yt>>>8|et<<32-8)^(yt>>>7|et<<32-7),tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,et=vt[(Bt+14)%16],yt=Xt[(Bt+14)%16],Kt=(et>>>19|yt<<32-19)^(yt>>>61-32|et<<32-(61-32))^et>>>6,Mt=(yt>>>19|et<<32-19)^(et>>>61-32|yt<<32-(61-32))^(yt>>>6|et<<32-6),tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,vt[Bt]=Cn&65535|cn<<16,Xt[Bt]=tn&65535|hn<<16;Kt=ur,Mt=Jn,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[0],Mt=pt[0],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[0]=ur=Cn&65535|cn<<16,pt[0]=Jn=tn&65535|hn<<16,Kt=or,Mt=_r,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[1],Mt=pt[1],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[1]=or=Cn&65535|cn<<16,pt[1]=_r=tn&65535|hn<<16,Kt=rt,Mt=xr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[2],Mt=pt[2],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[2]=rt=Cn&65535|cn<<16,pt[2]=xr=tn&65535|hn<<16,Kt=gt,Mt=Nr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[3],Mt=pt[3],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[3]=gt=Cn&65535|cn<<16,pt[3]=Nr=tn&65535|hn<<16,Kt=tt,Mt=Mr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[4],Mt=pt[4],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[4]=tt=Cn&65535|cn<<16,pt[4]=Mr=tn&65535|hn<<16,Kt=nn,Mt=Zr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[5],Mt=pt[5],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[5]=nn=Cn&65535|cn<<16,pt[5]=Zr=tn&65535|hn<<16,Kt=kn,Mt=ti,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[6],Mt=pt[6],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[6]=kn=Cn&65535|cn<<16,pt[6]=ti=tn&65535|hn<<16,Kt=Un,Mt=Xr,tn=Mt&65535,hn=Mt>>>16,Cn=Kt&65535,cn=Kt>>>16,Kt=Ge[7],Mt=pt[7],tn+=Mt&65535,hn+=Mt>>>16,Cn+=Kt&65535,cn+=Kt>>>16,hn+=tn>>>16,Cn+=hn>>>16,cn+=Cn>>>16,Ge[7]=Un=Cn&65535|cn<<16,pt[7]=Xr=tn&65535|hn<<16,ni+=128,Ne-=128}return Ne}function Se(Ge,pt,ct){var Ne=new Int32Array(8),vt=new Int32Array(8),Xt=new Uint8Array(256),sn,Pn=ct;for(Ne[0]=1779033703,Ne[1]=3144134277,Ne[2]=1013904242,Ne[3]=2773480762,Ne[4]=1359893119,Ne[5]=2600822924,Ne[6]=528734635,Ne[7]=1541459225,vt[0]=4089235720,vt[1]=2227873595,vt[2]=4271175723,vt[3]=1595750129,vt[4]=2917565137,vt[5]=725511199,vt[6]=4215389547,vt[7]=327033209,Pe(Ne,vt,pt,ct),ct%=128,sn=0;sn<ct;sn++)Xt[sn]=pt[Pn-ct+sn];for(Xt[ct]=128,ct=256-128*(ct<112?1:0),Xt[ct-9]=0,le(Xt,ct-8,Pn/536870912|0,Pn<<3),Pe(Ne,vt,Xt,ct),sn=0;sn<8;sn++)le(Ge,8*sn,Ne[sn],vt[sn]);return 0}function $e(Ge,pt){var ct=U(),Ne=U(),vt=U(),Xt=U(),sn=U(),Pn=U(),Nn=U(),Qn=U(),Xn=U();qt(ct,Ge[1],Ge[0]),qt(Xn,pt[1],pt[0]),Qt(ct,ct,Xn),Ht(Ne,Ge[0],Ge[1]),Ht(Xn,pt[0],pt[1]),Qt(Ne,Ne,Xn),Qt(vt,Ge[3],pt[3]),Qt(vt,vt,te),Qt(Xt,Ge[2],pt[2]),Ht(Xt,Xt,Xt),qt(sn,Ne,ct),qt(Pn,Xt,vt),Ht(Nn,Xt,vt),Ht(Qn,Ne,ct),Qt(Ge[0],sn,Pn),Qt(Ge[1],Qn,Nn),Qt(Ge[2],Nn,Pn),Qt(Ge[3],sn,Qn)}function Ue(Ge,pt,ct){var Ne;for(Ne=0;Ne<4;Ne++)qe(Ge[Ne],pt[Ne],ct)}function Qe(Ge,pt){var ct=U(),Ne=U(),vt=U();yn(vt,pt[2]),Qt(ct,pt[0],vt),Qt(Ne,pt[1],vt),Ve(Ge,Ne),Ge[31]^=Nt(ct)<<7}function mt(Ge,pt,ct){var Ne,vt;for(Ze(Ge[0],G),Ze(Ge[1],J),Ze(Ge[2],J),Ze(Ge[3],G),vt=255;vt>=0;--vt)Ne=ct[vt/8|0]>>(vt&7)&1,Ue(Ge,pt,Ne),$e(pt,Ge),$e(Ge,Ge),Ue(Ge,pt,Ne)}function ht(Ge,pt){var ct=[U(),U(),U(),U()];Ze(ct[0],re),Ze(ct[1],se),Ze(ct[2],J),Qt(ct[3],re,se),mt(Ge,ct,pt)}function at(Ge,pt,ct){var Ne=new Uint8Array(64),vt=[U(),U(),U(),U()],Xt;for(ct||q(pt,32),Se(Ne,pt,32),Ne[0]&=248,Ne[31]&=127,Ne[31]|=64,ht(vt,Ne),Qe(Ge,vt),Xt=0;Xt<32;Xt++)pt[Xt+32]=Ge[Xt];return 0}var ut=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Rt(Ge,pt){var ct,Ne,vt,Xt;for(Ne=63;Ne>=32;--Ne){for(ct=0,vt=Ne-32,Xt=Ne-12;vt<Xt;++vt)pt[vt]+=ct-16*pt[Ne]*ut[vt-(Ne-32)],ct=pt[vt]+128>>8,pt[vt]-=ct*256;pt[vt]+=ct,pt[Ne]=0}for(ct=0,vt=0;vt<32;vt++)pt[vt]+=ct-(pt[31]>>4)*ut[vt],ct=pt[vt]>>8,pt[vt]&=255;for(vt=0;vt<32;vt++)pt[vt]-=ct*ut[vt];for(Ne=0;Ne<32;Ne++)pt[Ne+1]+=pt[Ne]>>8,Ge[Ne]=pt[Ne]&255}function fn(Ge){var pt=new Float64Array(64),ct;for(ct=0;ct<64;ct++)pt[ct]=Ge[ct];for(ct=0;ct<64;ct++)Ge[ct]=0;Rt(Ge,pt)}function Bn(Ge,pt,ct,Ne){var vt=new Uint8Array(64),Xt=new Uint8Array(64),sn=new Uint8Array(64),Pn,Nn,Qn=new Float64Array(64),Xn=[U(),U(),U(),U()];Se(vt,Ne,32),vt[0]&=248,vt[31]&=127,vt[31]|=64;var Rr=ct+64;for(Pn=0;Pn<ct;Pn++)Ge[64+Pn]=pt[Pn];for(Pn=0;Pn<32;Pn++)Ge[32+Pn]=vt[32+Pn];for(Se(sn,Ge.subarray(32),ct+32),fn(sn),ht(Xn,sn),Qe(Ge,Xn),Pn=32;Pn<64;Pn++)Ge[Pn]=Ne[Pn];for(Se(Xt,Ge,ct+64),fn(Xt),Pn=0;Pn<64;Pn++)Qn[Pn]=0;for(Pn=0;Pn<32;Pn++)Qn[Pn]=sn[Pn];for(Pn=0;Pn<32;Pn++)for(Nn=0;Nn<32;Nn++)Qn[Pn+Nn]+=Xt[Pn]*vt[Nn];return Rt(Ge.subarray(32),Qn),Rr}function en(Ge,pt){var ct=U(),Ne=U(),vt=U(),Xt=U(),sn=U(),Pn=U(),Nn=U();return Ze(Ge[2],J),zt(Ge[1],pt),Jt(vt,Ge[1]),Qt(Xt,vt,ee),qt(vt,vt,Ge[2]),Ht(Xt,Ge[2],Xt),Jt(sn,Xt),Jt(Pn,sn),Qt(Nn,Pn,sn),Qt(ct,Nn,vt),Qt(ct,ct,Xt),_n(ct,ct),Qt(ct,ct,vt),Qt(ct,ct,Xt),Qt(ct,ct,Xt),Qt(Ge[0],ct,Xt),Jt(Ne,Ge[0]),Qt(Ne,Ne,Xt),At(Ne,vt)&&Qt(Ge[0],Ge[0],ne),Jt(Ne,Ge[0]),Qt(Ne,Ne,Xt),At(Ne,vt)?-1:(Nt(Ge[0])===pt[31]>>7&&qt(Ge[0],G,Ge[0]),Qt(Ge[3],Ge[0],Ge[1]),0)}function xn(Ge,pt,ct,Ne){var vt,Xt,sn=new Uint8Array(32),Pn=new Uint8Array(64),Nn=[U(),U(),U(),U()],Qn=[U(),U(),U(),U()];if(Xt=-1,ct<64||en(Qn,Ne))return-1;for(vt=0;vt<ct;vt++)Ge[vt]=pt[vt];for(vt=0;vt<32;vt++)Ge[vt+32]=Ne[vt];if(Se(Pn,Ge,ct),fn(Pn),mt(Nn,Qn,Pn),ht(Qn,pt.subarray(32)),$e(Nn,Qn),Qe(sn,Nn),ct-=64,_e(pt,0,sn,0)){for(vt=0;vt<ct;vt++)Ge[vt]=0;return-1}for(vt=0;vt<ct;vt++)Ge[vt]=pt[vt+64];return Xt=ct,Xt}var ot=32,dt=24,Ot=32,Yt=16,Wt=32,gn=32,Kn=32,Ct=32,ft=32,Tt=dt,Lt=Ot,pn=Yt,mn=64,En=32,cr=64,jn=32,ir=64;j.lowlevel={crypto_core_hsalsa20:xe,crypto_stream_xor:Ae,crypto_stream:we,crypto_stream_salsa20_xor:ye,crypto_stream_salsa20:be,crypto_onetimeauth:Oe,crypto_onetimeauth_verify:Me,crypto_verify_16:ue,crypto_verify_32:_e,crypto_secretbox:ze,crypto_secretbox_open:Fe,crypto_scalarmult:Hn,crypto_scalarmult_base:On,crypto_box_beforenm:In,crypto_box_afternm:dn,crypto_box:Ye,crypto_box_open:_t,crypto_box_keypair:Fn,crypto_hash:Se,crypto_sign:Bn,crypto_sign_keypair:at,crypto_sign_open:xn,crypto_secretbox_KEYBYTES:ot,crypto_secretbox_NONCEBYTES:dt,crypto_secretbox_ZEROBYTES:Ot,crypto_secretbox_BOXZEROBYTES:Yt,crypto_scalarmult_BYTES:Wt,crypto_scalarmult_SCALARBYTES:gn,crypto_box_PUBLICKEYBYTES:Kn,crypto_box_SECRETKEYBYTES:Ct,crypto_box_BEFORENMBYTES:ft,crypto_box_NONCEBYTES:Tt,crypto_box_ZEROBYTES:Lt,crypto_box_BOXZEROBYTES:pn,crypto_sign_BYTES:mn,crypto_sign_PUBLICKEYBYTES:En,crypto_sign_SECRETKEYBYTES:cr,crypto_sign_SEEDBYTES:jn,crypto_hash_BYTES:ir};function Ir(Ge,pt){if(Ge.length!==ot)throw new Error("bad key size");if(pt.length!==dt)throw new Error("bad nonce size")}function Er(Ge,pt){if(Ge.length!==Kn)throw new Error("bad public key size");if(pt.length!==Ct)throw new Error("bad secret key size")}function Dr(){for(var Ge=0;Ge<arguments.length;Ge++)if(!(arguments[Ge]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Vr(Ge){for(var pt=0;pt<Ge.length;pt++)Ge[pt]=0}j.randomBytes=function(Ge){var pt=new Uint8Array(Ge);return q(pt,Ge),pt},j.secretbox=function(Ge,pt,ct){Dr(Ge,pt,ct),Ir(ct,pt);for(var Ne=new Uint8Array(Ot+Ge.length),vt=new Uint8Array(Ne.length),Xt=0;Xt<Ge.length;Xt++)Ne[Xt+Ot]=Ge[Xt];return ze(vt,Ne,Ne.length,pt,ct),vt.subarray(Yt)},j.secretbox.open=function(Ge,pt,ct){Dr(Ge,pt,ct),Ir(ct,pt);for(var Ne=new Uint8Array(Yt+Ge.length),vt=new Uint8Array(Ne.length),Xt=0;Xt<Ge.length;Xt++)Ne[Xt+Yt]=Ge[Xt];return Ne.length<32||Fe(vt,Ne,Ne.length,pt,ct)!==0?null:vt.subarray(Ot)},j.secretbox.keyLength=ot,j.secretbox.nonceLength=dt,j.secretbox.overheadLength=Yt,j.scalarMult=function(Ge,pt){if(Dr(Ge,pt),Ge.length!==gn)throw new Error("bad n size");if(pt.length!==Wt)throw new Error("bad p size");var ct=new Uint8Array(Wt);return Hn(ct,Ge,pt),ct},j.scalarMult.base=function(Ge){if(Dr(Ge),Ge.length!==gn)throw new Error("bad n size");var pt=new Uint8Array(Wt);return On(pt,Ge),pt},j.scalarMult.scalarLength=gn,j.scalarMult.groupElementLength=Wt,j.box=function(Ge,pt,ct,Ne){var vt=j.box.before(ct,Ne);return j.secretbox(Ge,pt,vt)},j.box.before=function(Ge,pt){Dr(Ge,pt),Er(Ge,pt);var ct=new Uint8Array(ft);return In(ct,Ge,pt),ct},j.box.after=j.secretbox,j.box.open=function(Ge,pt,ct,Ne){var vt=j.box.before(ct,Ne);return j.secretbox.open(Ge,pt,vt)},j.box.open.after=j.secretbox.open,j.box.keyPair=function(){var Ge=new Uint8Array(Kn),pt=new Uint8Array(Ct);return Fn(Ge,pt),{publicKey:Ge,secretKey:pt}},j.box.keyPair.fromSecretKey=function(Ge){if(Dr(Ge),Ge.length!==Ct)throw new Error("bad secret key size");var pt=new Uint8Array(Kn);return On(pt,Ge),{publicKey:pt,secretKey:new Uint8Array(Ge)}},j.box.publicKeyLength=Kn,j.box.secretKeyLength=Ct,j.box.sharedKeyLength=ft,j.box.nonceLength=Tt,j.box.overheadLength=j.secretbox.overheadLength,j.sign=function(Ge,pt){if(Dr(Ge,pt),pt.length!==cr)throw new Error("bad secret key size");var ct=new Uint8Array(mn+Ge.length);return Bn(ct,Ge,Ge.length,pt),ct},j.sign.open=function(Ge,pt){if(Dr(Ge,pt),pt.length!==En)throw new Error("bad public key size");var ct=new Uint8Array(Ge.length),Ne=xn(ct,Ge,Ge.length,pt);if(Ne<0)return null;for(var vt=new Uint8Array(Ne),Xt=0;Xt<vt.length;Xt++)vt[Xt]=ct[Xt];return vt},j.sign.detached=function(Ge,pt){for(var ct=j.sign(Ge,pt),Ne=new Uint8Array(mn),vt=0;vt<Ne.length;vt++)Ne[vt]=ct[vt];return Ne},j.sign.detached.verify=function(Ge,pt,ct){if(Dr(Ge,pt,ct),pt.length!==mn)throw new Error("bad signature size");if(ct.length!==En)throw new Error("bad public key size");var Ne=new Uint8Array(mn+Ge.length),vt=new Uint8Array(mn+Ge.length),Xt;for(Xt=0;Xt<mn;Xt++)Ne[Xt]=pt[Xt];for(Xt=0;Xt<Ge.length;Xt++)Ne[Xt+mn]=Ge[Xt];return xn(vt,Ne,Ne.length,ct)>=0},j.sign.keyPair=function(){var Ge=new Uint8Array(En),pt=new Uint8Array(cr);return at(Ge,pt),{publicKey:Ge,secretKey:pt}},j.sign.keyPair.fromSecretKey=function(Ge){if(Dr(Ge),Ge.length!==cr)throw new Error("bad secret key size");for(var pt=new Uint8Array(En),ct=0;ct<pt.length;ct++)pt[ct]=Ge[32+ct];return{publicKey:pt,secretKey:new Uint8Array(Ge)}},j.sign.keyPair.fromSeed=function(Ge){if(Dr(Ge),Ge.length!==jn)throw new Error("bad seed size");for(var pt=new Uint8Array(En),ct=new Uint8Array(cr),Ne=0;Ne<32;Ne++)ct[Ne]=Ge[Ne];return at(pt,ct,!0),{publicKey:pt,secretKey:ct}},j.sign.publicKeyLength=En,j.sign.secretKeyLength=cr,j.sign.seedLength=jn,j.sign.signatureLength=mn,j.hash=function(Ge){Dr(Ge);var pt=new Uint8Array(ir);return Se(pt,Ge,Ge.length),pt},j.hash.hashLength=ir,j.verify=function(Ge,pt){return Dr(Ge,pt),Ge.length===0||pt.length===0||Ge.length!==pt.length?!1:ge(Ge,0,pt,0,Ge.length)===0},j.setPRNG=function(Ge){q=Ge},function(){var Ge=typeof self<"u"?self.crypto||self.msCrypto:null;if(Ge&&Ge.getRandomValues){var pt=65536;j.setPRNG(function(ct,Ne){var vt,Xt=new Uint8Array(Ne);for(vt=0;vt<Ne;vt+=pt)Ge.getRandomValues(Xt.subarray(vt,vt+Math.min(Ne-vt,pt)));for(vt=0;vt<Ne;vt++)ct[vt]=Xt[vt];Vr(Xt)})}else Ge=B(56),Ge&&Ge.randomBytes&&j.setPRNG(function(ct,Ne){var vt,Xt=Ge.randomBytes(Ne);for(vt=0;vt<Ne;vt++)ct[vt]=Xt[vt];Vr(Xt)})}()})(typeof I<"u"&&I.exports?I.exports:self.nacl=self.nacl||{})},function(I,N){},function(I,N,B){(function(j){(function(U,q){typeof I<"u"&&I.exports?I.exports=q():(U.nacl||(U.nacl={}),U.nacl.util=q())})(this,function(){var U={};function q(Y){if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Y))throw new TypeError("invalid encoding")}return U.decodeUTF8=function(Y){if(typeof Y!="string")throw new TypeError("expected string");var K,G=unescape(encodeURIComponent(Y)),J=new Uint8Array(G.length);for(K=0;K<G.length;K++)J[K]=G.charCodeAt(K);return J},U.encodeUTF8=function(Y){var K,G=[];for(K=0;K<Y.length;K++)G.push(String.fromCharCode(Y[K]));return decodeURIComponent(escape(G.join("")))},typeof atob>"u"?typeof j.from<"u"?(U.encodeBase64=function(Y){return j.from(Y).toString("base64")},U.decodeBase64=function(Y){return q(Y),new Uint8Array(Array.prototype.slice.call(j.from(Y,"base64"),0))}):(U.encodeBase64=function(Y){return new j(Y).toString("base64")},U.decodeBase64=function(Y){return q(Y),new Uint8Array(Array.prototype.slice.call(new j(Y,"base64"),0))}):(U.encodeBase64=function(Y){var K,G=[],J=Y.length;for(K=0;K<J;K++)G.push(String.fromCharCode(Y[K]));return btoa(G.join(""))},U.decodeBase64=function(Y){q(Y);var K,G=atob(Y),J=new Uint8Array(G.length);for(K=0;K<G.length;K++)J[K]=G.charCodeAt(K);return J}),U})}).call(N,B(58).Buffer)},function(I,N,B){var j=B(59),U=B(60),q=B(61);N.Buffer=J,N.SlowBuffer=_e,N.INSPECT_MAX_BYTES=50,J.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:Y(),N.kMaxLength=K();function Y(){try{var Pe=new Uint8Array(1);return Pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Pe.foo()===42&&typeof Pe.subarray=="function"&&Pe.subarray(1,1).byteLength===0}catch{return!1}}function K(){return J.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function G(Pe,Se){if(K()<Se)throw new RangeError("Invalid typed array length");return J.TYPED_ARRAY_SUPPORT?(Pe=new Uint8Array(Se),Pe.__proto__=J.prototype):(Pe===null&&(Pe=new J(Se)),Pe.length=Se),Pe}function J(Pe,Se,$e){if(!J.TYPED_ARRAY_SUPPORT&&!(this instanceof J))return new J(Pe,Se,$e);if(typeof Pe=="number"){if(typeof Se=="string")throw new Error("If encoding is specified then the first argument must be a string");return re(this,Pe)}return Z(this,Pe,Se,$e)}J.poolSize=8192,J._augment=function(Pe){return Pe.__proto__=J.prototype,Pe};function Z(Pe,Se,$e,Ue){if(typeof Se=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&Se instanceof ArrayBuffer?le(Pe,Se,$e,Ue):typeof Se=="string"?se(Pe,Se,$e):ge(Pe,Se)}J.from=function(Pe,Se,$e){return Z(null,Pe,Se,$e)},J.TYPED_ARRAY_SUPPORT&&(J.prototype.__proto__=Uint8Array.prototype,J.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&J[Symbol.species]===J&&Object.defineProperty(J,Symbol.species,{value:null,configurable:!0}));function ee(Pe){if(typeof Pe!="number")throw new TypeError('"size" argument must be a number');if(Pe<0)throw new RangeError('"size" argument must not be negative')}function te(Pe,Se,$e,Ue){return ee(Se),Se<=0?G(Pe,Se):$e!==void 0?typeof Ue=="string"?G(Pe,Se).fill($e,Ue):G(Pe,Se).fill($e):G(Pe,Se)}J.alloc=function(Pe,Se,$e){return te(null,Pe,Se,$e)};function re(Pe,Se){if(ee(Se),Pe=G(Pe,Se<0?0:ue(Se)|0),!J.TYPED_ARRAY_SUPPORT)for(var $e=0;$e<Se;++$e)Pe[$e]=0;return Pe}J.allocUnsafe=function(Pe){return re(null,Pe)},J.allocUnsafeSlow=function(Pe){return re(null,Pe)};function se(Pe,Se,$e){if((typeof $e!="string"||$e==="")&&($e="utf8"),!J.isEncoding($e))throw new TypeError('"encoding" must be a valid string encoding');var Ue=fe(Se,$e)|0;Pe=G(Pe,Ue);var Qe=Pe.write(Se,$e);return Qe!==Ue&&(Pe=Pe.slice(0,Qe)),Pe}function ne(Pe,Se){var $e=Se.length<0?0:ue(Se.length)|0;Pe=G(Pe,$e);for(var Ue=0;Ue<$e;Ue+=1)Pe[Ue]=Se[Ue]&255;return Pe}function le(Pe,Se,$e,Ue){if(Se.byteLength,$e<0||Se.byteLength<$e)throw new RangeError("'offset' is out of bounds");if(Se.byteLength<$e+(Ue||0))throw new RangeError("'length' is out of bounds");return $e===void 0&&Ue===void 0?Se=new Uint8Array(Se):Ue===void 0?Se=new Uint8Array(Se,$e):Se=new Uint8Array(Se,$e,Ue),J.TYPED_ARRAY_SUPPORT?(Pe=Se,Pe.__proto__=J.prototype):Pe=ne(Pe,Se),Pe}function ge(Pe,Se){if(J.isBuffer(Se)){var $e=ue(Se.length)|0;return Pe=G(Pe,$e),Pe.length===0||Se.copy(Pe,0,0,$e),Pe}if(Se){if(typeof ArrayBuffer<"u"&&Se.buffer instanceof ArrayBuffer||"length"in Se)return typeof Se.length!="number"||We(Se.length)?G(Pe,0):ne(Pe,Se);if(Se.type==="Buffer"&&q(Se.data))return ne(Pe,Se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ue(Pe){if(Pe>=K())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K().toString(16)+" bytes");return Pe|0}function _e(Pe){return+Pe!=Pe&&(Pe=0),J.alloc(+Pe)}J.isBuffer=function(Se){return!!(Se!=null&&Se._isBuffer)},J.compare=function(Se,$e){if(!J.isBuffer(Se)||!J.isBuffer($e))throw new TypeError("Arguments must be Buffers");if(Se===$e)return 0;for(var Ue=Se.length,Qe=$e.length,mt=0,ht=Math.min(Ue,Qe);mt<ht;++mt)if(Se[mt]!==$e[mt]){Ue=Se[mt],Qe=$e[mt];break}return Ue<Qe?-1:Qe<Ue?1:0},J.isEncoding=function(Se){switch(String(Se).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},J.concat=function(Se,$e){if(!q(Se))throw new TypeError('"list" argument must be an Array of Buffers');if(Se.length===0)return J.alloc(0);var Ue;if($e===void 0)for($e=0,Ue=0;Ue<Se.length;++Ue)$e+=Se[Ue].length;var Qe=J.allocUnsafe($e),mt=0;for(Ue=0;Ue<Se.length;++Ue){var ht=Se[Ue];if(!J.isBuffer(ht))throw new TypeError('"list" argument must be an Array of Buffers');ht.copy(Qe,mt),mt+=ht.length}return Qe};function fe(Pe,Se){if(J.isBuffer(Pe))return Pe.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Pe)||Pe instanceof ArrayBuffer))return Pe.byteLength;typeof Pe!="string"&&(Pe=""+Pe);var $e=Pe.length;if($e===0)return 0;for(var Ue=!1;;)switch(Se){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":case void 0:return In(Pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return Ye(Pe).length;default:if(Ue)return In(Pe).length;Se=(""+Se).toLowerCase(),Ue=!0}}J.byteLength=fe;function me(Pe,Se,$e){var Ue=!1;if((Se===void 0||Se<0)&&(Se=0),Se>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,Se>>>=0,$e<=Se))return"";for(Pe||(Pe="utf8");;)switch(Pe){case"hex":return Ve(this,Se,$e);case"utf8":case"utf-8":return ze(this,Se,$e);case"ascii":return lt(this,Se,$e);case"latin1":case"binary":return qe(this,Se,$e);case"base64":return Me(this,Se,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Se,$e);default:if(Ue)throw new TypeError("Unknown encoding: "+Pe);Pe=(Pe+"").toLowerCase(),Ue=!0}}J.prototype._isBuffer=!0;function ve(Pe,Se,$e){var Ue=Pe[Se];Pe[Se]=Pe[$e],Pe[$e]=Ue}J.prototype.swap16=function(){var Se=this.length;if(Se%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<Se;$e+=2)ve(this,$e,$e+1);return this},J.prototype.swap32=function(){var Se=this.length;if(Se%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<Se;$e+=4)ve(this,$e,$e+3),ve(this,$e+1,$e+2);return this},J.prototype.swap64=function(){var Se=this.length;if(Se%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<Se;$e+=8)ve(this,$e,$e+7),ve(this,$e+1,$e+6),ve(this,$e+2,$e+5),ve(this,$e+3,$e+4);return this},J.prototype.toString=function(){var Se=this.length|0;return Se===0?"":arguments.length===0?ze(this,0,Se):me.apply(this,arguments)},J.prototype.equals=function(Se){if(!J.isBuffer(Se))throw new TypeError("Argument must be a Buffer");return this===Se?!0:J.compare(this,Se)===0},J.prototype.inspect=function(){var Se="",$e=N.INSPECT_MAX_BYTES;return this.length>0&&(Se=this.toString("hex",0,$e).match(/.{2}/g).join(" "),this.length>$e&&(Se+=" ... ")),"<Buffer "+Se+">"},J.prototype.compare=function(Se,$e,Ue,Qe,mt){if(!J.isBuffer(Se))throw new TypeError("Argument must be a Buffer");if($e===void 0&&($e=0),Ue===void 0&&(Ue=Se?Se.length:0),Qe===void 0&&(Qe=0),mt===void 0&&(mt=this.length),$e<0||Ue>Se.length||Qe<0||mt>this.length)throw new RangeError("out of range index");if(Qe>=mt&&$e>=Ue)return 0;if(Qe>=mt)return-1;if($e>=Ue)return 1;if($e>>>=0,Ue>>>=0,Qe>>>=0,mt>>>=0,this===Se)return 0;for(var ht=mt-Qe,at=Ue-$e,ut=Math.min(ht,at),Rt=this.slice(Qe,mt),fn=Se.slice($e,Ue),Bn=0;Bn<ut;++Bn)if(Rt[Bn]!==fn[Bn]){ht=Rt[Bn],at=fn[Bn];break}return ht<at?-1:at<ht?1:0};function xe(Pe,Se,$e,Ue,Qe){if(Pe.length===0)return-1;if(typeof $e=="string"?(Ue=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,isNaN($e)&&($e=Qe?0:Pe.length-1),$e<0&&($e=Pe.length+$e),$e>=Pe.length){if(Qe)return-1;$e=Pe.length-1}else if($e<0)if(Qe)$e=0;else return-1;if(typeof Se=="string"&&(Se=J.from(Se,Ue)),J.isBuffer(Se))return Se.length===0?-1:oe(Pe,Se,$e,Ue,Qe);if(typeof Se=="number")return Se=Se&255,J.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Qe?Uint8Array.prototype.indexOf.call(Pe,Se,$e):Uint8Array.prototype.lastIndexOf.call(Pe,Se,$e):oe(Pe,[Se],$e,Ue,Qe);throw new TypeError("val must be string, number or Buffer")}function oe(Pe,Se,$e,Ue,Qe){var mt=1,ht=Pe.length,at=Se.length;if(Ue!==void 0&&(Ue=String(Ue).toLowerCase(),Ue==="ucs2"||Ue==="ucs-2"||Ue==="utf16le"||Ue==="utf-16le")){if(Pe.length<2||Se.length<2)return-1;mt=2,ht/=2,at/=2,$e/=2}function ut(xn,ot){return mt===1?xn[ot]:xn.readUInt16BE(ot*mt)}var Rt;if(Qe){var fn=-1;for(Rt=$e;Rt<ht;Rt++)if(ut(Pe,Rt)===ut(Se,fn===-1?0:Rt-fn)){if(fn===-1&&(fn=Rt),Rt-fn+1===at)return fn*mt}else fn!==-1&&(Rt-=Rt-fn),fn=-1}else for($e+at>ht&&($e=ht-at),Rt=$e;Rt>=0;Rt--){for(var Bn=!0,en=0;en<at;en++)if(ut(Pe,Rt+en)!==ut(Se,en)){Bn=!1;break}if(Bn)return Rt}return-1}J.prototype.includes=function(Se,$e,Ue){return this.indexOf(Se,$e,Ue)!==-1},J.prototype.indexOf=function(Se,$e,Ue){return xe(this,Se,$e,Ue,!0)},J.prototype.lastIndexOf=function(Se,$e,Ue){return xe(this,Se,$e,Ue,!1)};function ye(Pe,Se,$e,Ue){$e=Number($e)||0;var Qe=Pe.length-$e;Ue?(Ue=Number(Ue),Ue>Qe&&(Ue=Qe)):Ue=Qe;var mt=Se.length;if(mt%2!==0)throw new TypeError("Invalid hex string");Ue>mt/2&&(Ue=mt/2);for(var ht=0;ht<Ue;++ht){var at=parseInt(Se.substr(ht*2,2),16);if(isNaN(at))return ht;Pe[$e+ht]=at}return ht}function be(Pe,Se,$e,Ue){return _t(In(Se,Pe.length-$e),Pe,$e,Ue)}function we(Pe,Se,$e,Ue){return _t(dn(Se),Pe,$e,Ue)}function Ae(Pe,Se,$e,Ue){return we(Pe,Se,$e,Ue)}function ke(Pe,Se,$e,Ue){return _t(Ye(Se),Pe,$e,Ue)}function Oe(Pe,Se,$e,Ue){return _t(kt(Se,Pe.length-$e),Pe,$e,Ue)}J.prototype.write=function(Se,$e,Ue,Qe){if($e===void 0)Qe="utf8",Ue=this.length,$e=0;else if(Ue===void 0&&typeof $e=="string")Qe=$e,Ue=this.length,$e=0;else if(isFinite($e))$e=$e|0,isFinite(Ue)?(Ue=Ue|0,Qe===void 0&&(Qe="utf8")):(Qe=Ue,Ue=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var mt=this.length-$e;if((Ue===void 0||Ue>mt)&&(Ue=mt),Se.length>0&&(Ue<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qe||(Qe="utf8");for(var ht=!1;;)switch(Qe){case"hex":return ye(this,Se,$e,Ue);case"utf8":case"utf-8":return be(this,Se,$e,Ue);case"ascii":return we(this,Se,$e,Ue);case"latin1":case"binary":return Ae(this,Se,$e,Ue);case"base64":return ke(this,Se,$e,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,Se,$e,Ue);default:if(ht)throw new TypeError("Unknown encoding: "+Qe);Qe=(""+Qe).toLowerCase(),ht=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Me(Pe,Se,$e){return Se===0&&$e===Pe.length?j.fromByteArray(Pe):j.fromByteArray(Pe.slice(Se,$e))}function ze(Pe,Se,$e){$e=Math.min(Pe.length,$e);for(var Ue=[],Qe=Se;Qe<$e;){var mt=Pe[Qe],ht=null,at=mt>239?4:mt>223?3:mt>191?2:1;if(Qe+at<=$e){var ut,Rt,fn,Bn;switch(at){case 1:mt<128&&(ht=mt);break;case 2:ut=Pe[Qe+1],(ut&192)===128&&(Bn=(mt&31)<<6|ut&63,Bn>127&&(ht=Bn));break;case 3:ut=Pe[Qe+1],Rt=Pe[Qe+2],(ut&192)===128&&(Rt&192)===128&&(Bn=(mt&15)<<12|(ut&63)<<6|Rt&63,Bn>2047&&(Bn<55296||Bn>57343)&&(ht=Bn));break;case 4:ut=Pe[Qe+1],Rt=Pe[Qe+2],fn=Pe[Qe+3],(ut&192)===128&&(Rt&192)===128&&(fn&192)===128&&(Bn=(mt&15)<<18|(ut&63)<<12|(Rt&63)<<6|fn&63,Bn>65535&&Bn<1114112&&(ht=Bn))}}ht===null?(ht=65533,at=1):ht>65535&&(ht-=65536,Ue.push(ht>>>10&1023|55296),ht=56320|ht&1023),Ue.push(ht),Qe+=at}return Ze(Ue)}var Fe=4096;function Ze(Pe){var Se=Pe.length;if(Se<=Fe)return String.fromCharCode.apply(String,Pe);for(var $e="",Ue=0;Ue<Se;)$e+=String.fromCharCode.apply(String,Pe.slice(Ue,Ue+=Fe));return $e}function lt(Pe,Se,$e){var Ue="";$e=Math.min(Pe.length,$e);for(var Qe=Se;Qe<$e;++Qe)Ue+=String.fromCharCode(Pe[Qe]&127);return Ue}function qe(Pe,Se,$e){var Ue="";$e=Math.min(Pe.length,$e);for(var Qe=Se;Qe<$e;++Qe)Ue+=String.fromCharCode(Pe[Qe]);return Ue}function Ve(Pe,Se,$e){var Ue=Pe.length;(!Se||Se<0)&&(Se=0),(!$e||$e<0||$e>Ue)&&($e=Ue);for(var Qe="",mt=Se;mt<$e;++mt)Qe+=Fn(Pe[mt]);return Qe}function At(Pe,Se,$e){for(var Ue=Pe.slice(Se,$e),Qe="",mt=0;mt<Ue.length;mt+=2)Qe+=String.fromCharCode(Ue[mt]+Ue[mt+1]*256);return Qe}J.prototype.slice=function(Se,$e){var Ue=this.length;Se=~~Se,$e=$e===void 0?Ue:~~$e,Se<0?(Se+=Ue,Se<0&&(Se=0)):Se>Ue&&(Se=Ue),$e<0?($e+=Ue,$e<0&&($e=0)):$e>Ue&&($e=Ue),$e<Se&&($e=Se);var Qe;if(J.TYPED_ARRAY_SUPPORT)Qe=this.subarray(Se,$e),Qe.__proto__=J.prototype;else{var mt=$e-Se;Qe=new J(mt,void 0);for(var ht=0;ht<mt;++ht)Qe[ht]=this[ht+Se]}return Qe};function Nt(Pe,Se,$e){if(Pe%1!==0||Pe<0)throw new RangeError("offset is not uint");if(Pe+Se>$e)throw new RangeError("Trying to access beyond buffer length")}J.prototype.readUIntLE=function(Se,$e,Ue){Se=Se|0,$e=$e|0,Ue||Nt(Se,$e,this.length);for(var Qe=this[Se],mt=1,ht=0;++ht<$e&&(mt*=256);)Qe+=this[Se+ht]*mt;return Qe},J.prototype.readUIntBE=function(Se,$e,Ue){Se=Se|0,$e=$e|0,Ue||Nt(Se,$e,this.length);for(var Qe=this[Se+--$e],mt=1;$e>0&&(mt*=256);)Qe+=this[Se+--$e]*mt;return Qe},J.prototype.readUInt8=function(Se,$e){return $e||Nt(Se,1,this.length),this[Se]},J.prototype.readUInt16LE=function(Se,$e){return $e||Nt(Se,2,this.length),this[Se]|this[Se+1]<<8},J.prototype.readUInt16BE=function(Se,$e){return $e||Nt(Se,2,this.length),this[Se]<<8|this[Se+1]},J.prototype.readUInt32LE=function(Se,$e){return $e||Nt(Se,4,this.length),(this[Se]|this[Se+1]<<8|this[Se+2]<<16)+this[Se+3]*16777216},J.prototype.readUInt32BE=function(Se,$e){return $e||Nt(Se,4,this.length),this[Se]*16777216+(this[Se+1]<<16|this[Se+2]<<8|this[Se+3])},J.prototype.readIntLE=function(Se,$e,Ue){Se=Se|0,$e=$e|0,Ue||Nt(Se,$e,this.length);for(var Qe=this[Se],mt=1,ht=0;++ht<$e&&(mt*=256);)Qe+=this[Se+ht]*mt;return mt*=128,Qe>=mt&&(Qe-=Math.pow(2,8*$e)),Qe},J.prototype.readIntBE=function(Se,$e,Ue){Se=Se|0,$e=$e|0,Ue||Nt(Se,$e,this.length);for(var Qe=$e,mt=1,ht=this[Se+--Qe];Qe>0&&(mt*=256);)ht+=this[Se+--Qe]*mt;return mt*=128,ht>=mt&&(ht-=Math.pow(2,8*$e)),ht},J.prototype.readInt8=function(Se,$e){return $e||Nt(Se,1,this.length),this[Se]&128?(255-this[Se]+1)*-1:this[Se]},J.prototype.readInt16LE=function(Se,$e){$e||Nt(Se,2,this.length);var Ue=this[Se]|this[Se+1]<<8;return Ue&32768?Ue|4294901760:Ue},J.prototype.readInt16BE=function(Se,$e){$e||Nt(Se,2,this.length);var Ue=this[Se+1]|this[Se]<<8;return Ue&32768?Ue|4294901760:Ue},J.prototype.readInt32LE=function(Se,$e){return $e||Nt(Se,4,this.length),this[Se]|this[Se+1]<<8|this[Se+2]<<16|this[Se+3]<<24},J.prototype.readInt32BE=function(Se,$e){return $e||Nt(Se,4,this.length),this[Se]<<24|this[Se+1]<<16|this[Se+2]<<8|this[Se+3]},J.prototype.readFloatLE=function(Se,$e){return $e||Nt(Se,4,this.length),U.read(this,Se,!0,23,4)},J.prototype.readFloatBE=function(Se,$e){return $e||Nt(Se,4,this.length),U.read(this,Se,!1,23,4)},J.prototype.readDoubleLE=function(Se,$e){return $e||Nt(Se,8,this.length),U.read(this,Se,!0,52,8)},J.prototype.readDoubleBE=function(Se,$e){return $e||Nt(Se,8,this.length),U.read(this,Se,!1,52,8)};function zt(Pe,Se,$e,Ue,Qe,mt){if(!J.isBuffer(Pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Se>Qe||Se<mt)throw new RangeError('"value" argument is out of bounds');if($e+Ue>Pe.length)throw new RangeError("Index out of range")}J.prototype.writeUIntLE=function(Se,$e,Ue,Qe){if(Se=+Se,$e=$e|0,Ue=Ue|0,!Qe){var mt=Math.pow(2,8*Ue)-1;zt(this,Se,$e,Ue,mt,0)}var ht=1,at=0;for(this[$e]=Se&255;++at<Ue&&(ht*=256);)this[$e+at]=Se/ht&255;return $e+Ue},J.prototype.writeUIntBE=function(Se,$e,Ue,Qe){if(Se=+Se,$e=$e|0,Ue=Ue|0,!Qe){var mt=Math.pow(2,8*Ue)-1;zt(this,Se,$e,Ue,mt,0)}var ht=Ue-1,at=1;for(this[$e+ht]=Se&255;--ht>=0&&(at*=256);)this[$e+ht]=Se/at&255;return $e+Ue},J.prototype.writeUInt8=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,1,255,0),J.TYPED_ARRAY_SUPPORT||(Se=Math.floor(Se)),this[$e]=Se&255,$e+1};function Ht(Pe,Se,$e,Ue){Se<0&&(Se=65535+Se+1);for(var Qe=0,mt=Math.min(Pe.length-$e,2);Qe<mt;++Qe)Pe[$e+Qe]=(Se&255<<8*(Ue?Qe:1-Qe))>>>(Ue?Qe:1-Qe)*8}J.prototype.writeUInt16LE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se&255,this[$e+1]=Se>>>8):Ht(this,Se,$e,!0),$e+2},J.prototype.writeUInt16BE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se>>>8,this[$e+1]=Se&255):Ht(this,Se,$e,!1),$e+2};function qt(Pe,Se,$e,Ue){Se<0&&(Se=4294967295+Se+1);for(var Qe=0,mt=Math.min(Pe.length-$e,4);Qe<mt;++Qe)Pe[$e+Qe]=Se>>>(Ue?Qe:3-Qe)*8&255}J.prototype.writeUInt32LE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[$e+3]=Se>>>24,this[$e+2]=Se>>>16,this[$e+1]=Se>>>8,this[$e]=Se&255):qt(this,Se,$e,!0),$e+4},J.prototype.writeUInt32BE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se>>>24,this[$e+1]=Se>>>16,this[$e+2]=Se>>>8,this[$e+3]=Se&255):qt(this,Se,$e,!1),$e+4},J.prototype.writeIntLE=function(Se,$e,Ue,Qe){if(Se=+Se,$e=$e|0,!Qe){var mt=Math.pow(2,8*Ue-1);zt(this,Se,$e,Ue,mt-1,-mt)}var ht=0,at=1,ut=0;for(this[$e]=Se&255;++ht<Ue&&(at*=256);)Se<0&&ut===0&&this[$e+ht-1]!==0&&(ut=1),this[$e+ht]=(Se/at>>0)-ut&255;return $e+Ue},J.prototype.writeIntBE=function(Se,$e,Ue,Qe){if(Se=+Se,$e=$e|0,!Qe){var mt=Math.pow(2,8*Ue-1);zt(this,Se,$e,Ue,mt-1,-mt)}var ht=Ue-1,at=1,ut=0;for(this[$e+ht]=Se&255;--ht>=0&&(at*=256);)Se<0&&ut===0&&this[$e+ht+1]!==0&&(ut=1),this[$e+ht]=(Se/at>>0)-ut&255;return $e+Ue},J.prototype.writeInt8=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,1,127,-128),J.TYPED_ARRAY_SUPPORT||(Se=Math.floor(Se)),Se<0&&(Se=255+Se+1),this[$e]=Se&255,$e+1},J.prototype.writeInt16LE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se&255,this[$e+1]=Se>>>8):Ht(this,Se,$e,!0),$e+2},J.prototype.writeInt16BE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se>>>8,this[$e+1]=Se&255):Ht(this,Se,$e,!1),$e+2},J.prototype.writeInt32LE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,4,2147483647,-2147483648),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se&255,this[$e+1]=Se>>>8,this[$e+2]=Se>>>16,this[$e+3]=Se>>>24):qt(this,Se,$e,!0),$e+4},J.prototype.writeInt32BE=function(Se,$e,Ue){return Se=+Se,$e=$e|0,Ue||zt(this,Se,$e,4,2147483647,-2147483648),Se<0&&(Se=4294967295+Se+1),J.TYPED_ARRAY_SUPPORT?(this[$e]=Se>>>24,this[$e+1]=Se>>>16,this[$e+2]=Se>>>8,this[$e+3]=Se&255):qt(this,Se,$e,!1),$e+4};function Qt(Pe,Se,$e,Ue,Qe,mt){if($e+Ue>Pe.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function Jt(Pe,Se,$e,Ue,Qe){return Qe||Qt(Pe,Se,$e,4),U.write(Pe,Se,$e,Ue,23,4),$e+4}J.prototype.writeFloatLE=function(Se,$e,Ue){return Jt(this,Se,$e,!0,Ue)},J.prototype.writeFloatBE=function(Se,$e,Ue){return Jt(this,Se,$e,!1,Ue)};function yn(Pe,Se,$e,Ue,Qe){return Qe||Qt(Pe,Se,$e,8),U.write(Pe,Se,$e,Ue,52,8),$e+8}J.prototype.writeDoubleLE=function(Se,$e,Ue){return yn(this,Se,$e,!0,Ue)},J.prototype.writeDoubleBE=function(Se,$e,Ue){return yn(this,Se,$e,!1,Ue)},J.prototype.copy=function(Se,$e,Ue,Qe){if(Ue||(Ue=0),!Qe&&Qe!==0&&(Qe=this.length),$e>=Se.length&&($e=Se.length),$e||($e=0),Qe>0&&Qe<Ue&&(Qe=Ue),Qe===Ue||Se.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(Ue<0||Ue>=this.length)throw new RangeError("sourceStart out of bounds");if(Qe<0)throw new RangeError("sourceEnd out of bounds");Qe>this.length&&(Qe=this.length),Se.length-$e<Qe-Ue&&(Qe=Se.length-$e+Ue);var mt=Qe-Ue,ht;if(this===Se&&Ue<$e&&$e<Qe)for(ht=mt-1;ht>=0;--ht)Se[ht+$e]=this[ht+Ue];else if(mt<1e3||!J.TYPED_ARRAY_SUPPORT)for(ht=0;ht<mt;++ht)Se[ht+$e]=this[ht+Ue];else Uint8Array.prototype.set.call(Se,this.subarray(Ue,Ue+mt),$e);return mt},J.prototype.fill=function(Se,$e,Ue,Qe){if(typeof Se=="string"){if(typeof $e=="string"?(Qe=$e,$e=0,Ue=this.length):typeof Ue=="string"&&(Qe=Ue,Ue=this.length),Se.length===1){var mt=Se.charCodeAt(0);mt<256&&(Se=mt)}if(Qe!==void 0&&typeof Qe!="string")throw new TypeError("encoding must be a string");if(typeof Qe=="string"&&!J.isEncoding(Qe))throw new TypeError("Unknown encoding: "+Qe)}else typeof Se=="number"&&(Se=Se&255);if($e<0||this.length<$e||this.length<Ue)throw new RangeError("Out of range index");if(Ue<=$e)return this;$e=$e>>>0,Ue=Ue===void 0?this.length:Ue>>>0,Se||(Se=0);var ht;if(typeof Se=="number")for(ht=$e;ht<Ue;++ht)this[ht]=Se;else{var at=J.isBuffer(Se)?Se:In(new J(Se,Qe).toString()),ut=at.length;for(ht=0;ht<Ue-$e;++ht)this[ht+$e]=at[ht%ut]}return this};var _n=/[^+\/0-9A-Za-z-_]/g;function Hn(Pe){if(Pe=On(Pe).replace(_n,""),Pe.length<2)return"";for(;Pe.length%4!==0;)Pe=Pe+"=";return Pe}function On(Pe){return Pe.trim?Pe.trim():Pe.replace(/^\s+|\s+$/g,"")}function Fn(Pe){return Pe<16?"0"+Pe.toString(16):Pe.toString(16)}function In(Pe,Se){Se=Se||1/0;for(var $e,Ue=Pe.length,Qe=null,mt=[],ht=0;ht<Ue;++ht){if($e=Pe.charCodeAt(ht),$e>55295&&$e<57344){if(!Qe){if($e>56319){(Se-=3)>-1&&mt.push(239,191,189);continue}else if(ht+1===Ue){(Se-=3)>-1&&mt.push(239,191,189);continue}Qe=$e;continue}if($e<56320){(Se-=3)>-1&&mt.push(239,191,189),Qe=$e;continue}$e=(Qe-55296<<10|$e-56320)+65536}else Qe&&(Se-=3)>-1&&mt.push(239,191,189);if(Qe=null,$e<128){if((Se-=1)<0)break;mt.push($e)}else if($e<2048){if((Se-=2)<0)break;mt.push($e>>6|192,$e&63|128)}else if($e<65536){if((Se-=3)<0)break;mt.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Se-=4)<0)break;mt.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return mt}function dn(Pe){for(var Se=[],$e=0;$e<Pe.length;++$e)Se.push(Pe.charCodeAt($e)&255);return Se}function kt(Pe,Se){for(var $e,Ue,Qe,mt=[],ht=0;ht<Pe.length&&!((Se-=2)<0);++ht)$e=Pe.charCodeAt(ht),Ue=$e>>8,Qe=$e%256,mt.push(Qe),mt.push(Ue);return mt}function Ye(Pe){return j.toByteArray(Hn(Pe))}function _t(Pe,Se,$e,Ue){for(var Qe=0;Qe<Ue&&!(Qe+$e>=Se.length||Qe>=Pe.length);++Qe)Se[Qe+$e]=Pe[Qe];return Qe}function We(Pe){return Pe!==Pe}},function(I,N){N.byteLength=J,N.toByteArray=ee,N.fromByteArray=se;for(var B=[],j=[],U=typeof Uint8Array<"u"?Uint8Array:Array,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=0,K=q.length;Y<K;++Y)B[Y]=q[Y],j[q.charCodeAt(Y)]=Y;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63;function G(ne){var le=ne.length;if(le%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ge=ne.indexOf("=");ge===-1&&(ge=le);var ue=ge===le?0:4-ge%4;return[ge,ue]}function J(ne){var le=G(ne),ge=le[0],ue=le[1];return(ge+ue)*3/4-ue}function Z(ne,le,ge){return(le+ge)*3/4-ge}function ee(ne){for(var le,ge=G(ne),ue=ge[0],_e=ge[1],fe=new U(Z(ne,ue,_e)),me=0,ve=_e>0?ue-4:ue,xe=0;xe<ve;xe+=4)le=j[ne.charCodeAt(xe)]<<18|j[ne.charCodeAt(xe+1)]<<12|j[ne.charCodeAt(xe+2)]<<6|j[ne.charCodeAt(xe+3)],fe[me++]=le>>16&255,fe[me++]=le>>8&255,fe[me++]=le&255;return _e===2&&(le=j[ne.charCodeAt(xe)]<<2|j[ne.charCodeAt(xe+1)]>>4,fe[me++]=le&255),_e===1&&(le=j[ne.charCodeAt(xe)]<<10|j[ne.charCodeAt(xe+1)]<<4|j[ne.charCodeAt(xe+2)]>>2,fe[me++]=le>>8&255,fe[me++]=le&255),fe}function te(ne){return B[ne>>18&63]+B[ne>>12&63]+B[ne>>6&63]+B[ne&63]}function re(ne,le,ge){for(var ue,_e=[],fe=le;fe<ge;fe+=3)ue=(ne[fe]<<16&16711680)+(ne[fe+1]<<8&65280)+(ne[fe+2]&255),_e.push(te(ue));return _e.join("")}function se(ne){for(var le,ge=ne.length,ue=ge%3,_e=[],fe=16383,me=0,ve=ge-ue;me<ve;me+=fe)_e.push(re(ne,me,me+fe>ve?ve:me+fe));return ue===1?(le=ne[ge-1],_e.push(B[le>>2]+B[le<<4&63]+"==")):ue===2&&(le=(ne[ge-2]<<8)+ne[ge-1],_e.push(B[le>>10]+B[le>>4&63]+B[le<<2&63]+"=")),_e.join("")}},function(I,N){N.read=function(B,j,U,q,Y){var K,G,J=Y*8-q-1,Z=(1<<J)-1,ee=Z>>1,te=-7,re=U?Y-1:0,se=U?-1:1,ne=B[j+re];for(re+=se,K=ne&(1<<-te)-1,ne>>=-te,te+=J;te>0;K=K*256+B[j+re],re+=se,te-=8);for(G=K&(1<<-te)-1,K>>=-te,te+=q;te>0;G=G*256+B[j+re],re+=se,te-=8);if(K===0)K=1-ee;else{if(K===Z)return G?NaN:(ne?-1:1)*(1/0);G=G+Math.pow(2,q),K=K-ee}return(ne?-1:1)*G*Math.pow(2,K-q)},N.write=function(B,j,U,q,Y,K){var G,J,Z,ee=K*8-Y-1,te=(1<<ee)-1,re=te>>1,se=Y===23?Math.pow(2,-24)-Math.pow(2,-77):0,ne=q?0:K-1,le=q?1:-1,ge=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(J=isNaN(j)?1:0,G=te):(G=Math.floor(Math.log(j)/Math.LN2),j*(Z=Math.pow(2,-G))<1&&(G--,Z*=2),G+re>=1?j+=se/Z:j+=se*Math.pow(2,1-re),j*Z>=2&&(G++,Z/=2),G+re>=te?(J=0,G=te):G+re>=1?(J=(j*Z-1)*Math.pow(2,Y),G=G+re):(J=j*Math.pow(2,re-1)*Math.pow(2,Y),G=0));Y>=8;B[U+ne]=J&255,ne+=le,J/=256,Y-=8);for(G=G<<Y|J,ee+=Y;ee>0;B[U+ne]=G&255,ne+=le,G/=256,ee-=8);B[U+ne-le]|=ge*128}},function(I,N){var B={}.toString;I.exports=Array.isArray||function(j){return B.call(j)=="[object Array]"}},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function re(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(re.prototype=ee.prototype,new re)},U=B(24),q=B(12),Y=B(8),K=B(9),G=B(2),J=function(Z){j(ee,Z);function ee(te,re){var se=this;Z.call(this),this.key=te,this.options=re||{},this.state="initialized",this.connection=null,this.usingTLS=!!re.useTLS,this.timeline=this.options.timeline,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var ne=G.default.getNetwork();ne.bind("online",function(){se.timeline.info({netinfo:"online"}),(se.state==="connecting"||se.state==="unavailable")&&se.retryIn(0)}),ne.bind("offline",function(){se.timeline.info({netinfo:"offline"}),se.connection&&se.sendActivityCheck()}),this.updateStrategy()}return ee.prototype.connect=function(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},ee.prototype.send=function(te){return this.connection?this.connection.send(te):!1},ee.prototype.send_event=function(te,re,se){return this.connection?this.connection.send_event(te,re,se):!1},ee.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},ee.prototype.isUsingTLS=function(){return this.usingTLS},ee.prototype.startConnecting=function(){var te=this,re=function(se,ne){se?te.runner=te.strategy.connect(0,re):ne.action==="error"?(te.emit("error",{type:"HandshakeError",error:ne.error}),te.timeline.error({handshakeError:ne.error})):(te.abortConnecting(),te.handshakeCallbacks[ne.action](ne))};this.runner=this.strategy.connect(0,re)},ee.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},ee.prototype.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var te=this.abandonConnection();te.close()}},ee.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},ee.prototype.retryIn=function(te){var re=this;this.timeline.info({action:"retry",delay:te}),te>0&&this.emit("connecting_in",Math.round(te/1e3)),this.retryTimer=new q.OneOffTimer(te||0,function(){re.disconnectInternally(),re.connect()})},ee.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},ee.prototype.setUnavailableTimer=function(){var te=this;this.unavailableTimer=new q.OneOffTimer(this.options.unavailableTimeout,function(){te.updateState("unavailable")})},ee.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},ee.prototype.sendActivityCheck=function(){var te=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new q.OneOffTimer(this.options.pongTimeout,function(){te.timeline.error({pong_timed_out:te.options.pongTimeout}),te.retryIn(0)})},ee.prototype.resetActivityCheck=function(){var te=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new q.OneOffTimer(this.activityTimeout,function(){te.sendActivityCheck()}))},ee.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},ee.prototype.buildConnectionCallbacks=function(te){var re=this;return K.extend({},te,{message:function(se){re.resetActivityCheck(),re.emit("message",se)},ping:function(){re.send_event("pusher:pong",{})},activity:function(){re.resetActivityCheck()},error:function(se){re.emit("error",{type:"WebSocketError",error:se})},closed:function(){re.abandonConnection(),re.shouldRetry()&&re.retryIn(1e3)}})},ee.prototype.buildHandshakeCallbacks=function(te){var re=this;return K.extend({},te,{connected:function(se){re.activityTimeout=Math.min(re.options.activityTimeout,se.activityTimeout,se.connection.activityTimeout||1/0),re.clearUnavailableTimer(),re.setConnection(se.connection),re.socket_id=re.connection.id,re.updateState("connected",{socket_id:re.socket_id})}})},ee.prototype.buildErrorCallbacks=function(){var te=this,re=function(se){return function(ne){ne.error&&te.emit("error",{type:"WebSocketError",error:ne.error}),se(ne)}};return{tls_only:re(function(){te.usingTLS=!0,te.updateStrategy(),te.retryIn(0)}),refused:re(function(){te.disconnect()}),backoff:re(function(){te.retryIn(1e3)}),retry:re(function(){te.retryIn(0)})}},ee.prototype.setConnection=function(te){this.connection=te;for(var re in this.connectionCallbacks)this.connection.bind(re,this.connectionCallbacks[re]);this.resetActivityCheck()},ee.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var te in this.connectionCallbacks)this.connection.unbind(te,this.connectionCallbacks[te]);var re=this.connection;return this.connection=null,re}},ee.prototype.updateState=function(te,re){var se=this.state;if(this.state=te,se!==te){var ne=te;ne==="connected"&&(ne+=" with new socket ID "+re.socket_id),Y.default.debug("State changed",se+" -> "+ne),this.timeline.info({state:te,params:re}),this.emit("state_change",{previous:se,current:te}),this.emit(te,re)}},ee.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},ee}(U.default);N.__esModule=!0,N.default=J},function(I,N,B){var j=B(9),U=B(43),q=B(31),Y=function(){function G(){this.channels={}}return G.prototype.add=function(J,Z){return this.channels[J]||(this.channels[J]=K(J,Z)),this.channels[J]},G.prototype.all=function(){return j.values(this.channels)},G.prototype.find=function(J){return this.channels[J]},G.prototype.remove=function(J){var Z=this.channels[J];return delete this.channels[J],Z},G.prototype.disconnect=function(){j.objectApply(this.channels,function(J){J.disconnect()})},G}();N.__esModule=!0,N.default=Y;function K(G,J){if(G.indexOf("private-encrypted-")===0){if(navigator.product=="ReactNative"){var Z="Encrypted channels are not yet supported when using React Native builds.";throw new q.UnsupportedFeature(Z)}return U.default.createEncryptedChannel(G,J)}else return G.indexOf("private-")===0?U.default.createPrivateChannel(G,J):G.indexOf("presence-")===0?U.default.createPresenceChannel(G,J):U.default.createChannel(G,J)}},function(I,N,B){var j=B(43),U=B(11),q=B(31),Y=B(9),K=function(){function J(Z,ee,te,re){this.name=Z,this.priority=ee,this.transport=te,this.options=re||{}}return J.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},J.prototype.connect=function(Z,ee){var te=this;if(this.isSupported()){if(this.priority<Z)return G(new q.TransportPriorityTooLow,ee)}else return G(new q.UnsupportedStrategy,ee);var re=!1,se=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ne=null,le=function(){se.unbind("initialized",le),se.connect()},ge=function(){ne=j.default.createHandshake(se,function(me){re=!0,fe(),ee(null,me)})},ue=function(me){fe(),ee(me)},_e=function(){fe();var me;me=Y.safeJSONStringify(se),ee(new q.TransportClosed(me))},fe=function(){se.unbind("initialized",le),se.unbind("open",ge),se.unbind("error",ue),se.unbind("closed",_e)};return se.bind("initialized",le),se.bind("open",ge),se.bind("error",ue),se.bind("closed",_e),se.initialize(),{abort:function(){re||(fe(),ne?ne.close():se.close())},forceMinPriority:function(me){re||te.priority<me&&(ne?ne.close():se.close())}}},J}();N.__esModule=!0,N.default=K;function G(J,Z){return U.default.defer(function(){Z(J)}),{abort:function(){},forceMinPriority:function(){}}}},function(I,N,B){var j=B(9),U=B(11),q=B(12),Y=function(){function K(G,J){this.strategies=G,this.loop=!!J.loop,this.failFast=!!J.failFast,this.timeout=J.timeout,this.timeoutLimit=J.timeoutLimit}return K.prototype.isSupported=function(){return j.any(this.strategies,U.default.method("isSupported"))},K.prototype.connect=function(G,J){var Z=this,ee=this.strategies,te=0,re=this.timeout,se=null,ne=function(le,ge){ge?J(null,ge):(te=te+1,Z.loop&&(te=te%ee.length),te<ee.length?(re&&(re=re*2,Z.timeoutLimit&&(re=Math.min(re,Z.timeoutLimit))),se=Z.tryStrategy(ee[te],G,{timeout:re,failFast:Z.failFast},ne)):J(!0))};return se=this.tryStrategy(ee[te],G,{timeout:re,failFast:this.failFast},ne),{abort:function(){se.abort()},forceMinPriority:function(le){G=le,se&&se.forceMinPriority(le)}}},K.prototype.tryStrategy=function(G,J,Z,ee){var te=null,re=null;return Z.timeout>0&&(te=new q.OneOffTimer(Z.timeout,function(){re.abort(),ee(!0)})),re=G.connect(J,function(se,ne){se&&te&&te.isRunning()&&!Z.failFast||(te&&te.ensureAborted(),ee(se,ne))}),{abort:function(){te&&te.ensureAborted(),re.abort()},forceMinPriority:function(se){re.forceMinPriority(se)}}},K}();N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(9),U=B(11),q=function(){function J(Z){this.strategies=Z}return J.prototype.isSupported=function(){return j.any(this.strategies,U.default.method("isSupported"))},J.prototype.connect=function(Z,ee){return Y(this.strategies,Z,function(te,re){return function(se,ne){if(re[te].error=se,se){K(re)&&ee(!0);return}j.apply(re,function(le){le.forceMinPriority(ne.transport.priority)}),ee(null,ne)}})},J}();N.__esModule=!0,N.default=q;function Y(J,Z,ee){var te=j.map(J,function(re,se,ne,le){return re.connect(Z,ee(se,le))});return{abort:function(){j.apply(te,G)},forceMinPriority:function(re){j.apply(te,function(se){se.forceMinPriority(re)})}}}function K(J){return j.all(J,function(Z){return!!Z.error})}function G(J){!J.error&&!J.aborted&&(J.abort(),J.aborted=!0)}},function(I,N,B){var j=B(11),U=B(2),q=B(65),Y=B(9),K=function(){function te(re,se,ne){this.strategy=re,this.transports=se,this.ttl=ne.ttl||1800*1e3,this.usingTLS=ne.useTLS,this.timeline=ne.timeline}return te.prototype.isSupported=function(){return this.strategy.isSupported()},te.prototype.connect=function(re,se){var ne=this.usingTLS,le=J(ne),ge=[this.strategy];if(le&&le.timestamp+this.ttl>=j.default.now()){var ue=this.transports[le.transport];ue&&(this.timeline.info({cached:!0,transport:le.transport,latency:le.latency}),ge.push(new q.default([ue],{timeout:le.latency*2+1e3,failFast:!0})))}var _e=j.default.now(),fe=ge.pop().connect(re,function me(ve,xe){ve?(ee(ne),ge.length>0?(_e=j.default.now(),fe=ge.pop().connect(re,me)):se(ve)):(Z(ne,xe.transport.name,j.default.now()-_e),se(null,xe))});return{abort:function(){fe.abort()},forceMinPriority:function(me){re=me,fe&&fe.forceMinPriority(me)}}},te}();N.__esModule=!0,N.default=K;function G(te){return"pusherTransport"+(te?"TLS":"NonTLS")}function J(te){var re=U.default.getLocalStorage();if(re)try{var se=re[G(te)];if(se)return JSON.parse(se)}catch{ee(te)}return null}function Z(te,re,se){var ne=U.default.getLocalStorage();if(ne)try{ne[G(te)]=Y.safeJSONStringify({timestamp:j.default.now(),transport:re,latency:se})}catch{}}function ee(te){var re=U.default.getLocalStorage();if(re)try{delete re[G(te)]}catch{}}},function(I,N,B){var j=B(12),U=function(){function q(Y,K){var G=K.delay;this.strategy=Y,this.options={delay:G}}return q.prototype.isSupported=function(){return this.strategy.isSupported()},q.prototype.connect=function(Y,K){var G=this.strategy,J,Z=new j.OneOffTimer(this.options.delay,function(){J=G.connect(Y,K)});return{abort:function(){Z.ensureAborted(),J&&J.abort()},forceMinPriority:function(ee){Y=ee,J&&J.forceMinPriority(ee)}}},q}();N.__esModule=!0,N.default=U},function(I,N){var B=function(){function j(U,q,Y){this.test=U,this.trueBranch=q,this.falseBranch=Y}return j.prototype.isSupported=function(){var U=this.test()?this.trueBranch:this.falseBranch;return U.isSupported()},j.prototype.connect=function(U,q){var Y=this.test()?this.trueBranch:this.falseBranch;return Y.connect(U,q)},j}();N.__esModule=!0,N.default=B},function(I,N){var B=function(){function j(U){this.strategy=U}return j.prototype.isSupported=function(){return this.strategy.isSupported()},j.prototype.connect=function(U,q){var Y=this.strategy.connect(U,function(K,G){G&&Y.abort(),q(K,G)});return Y},j}();N.__esModule=!0,N.default=B},function(I,N,B){var j=B(5);N.getGlobalConfig=function(){return{wsHost:j.default.host,wsPort:j.default.ws_port,wssPort:j.default.wss_port,wsPath:j.default.ws_path,httpHost:j.default.sockjs_host,httpPort:j.default.sockjs_http_port,httpsPort:j.default.sockjs_https_port,httpPath:j.default.sockjs_path,statsHost:j.default.stats_host,authEndpoint:j.default.channel_auth_endpoint,authTransport:j.default.channel_auth_transport,activity_timeout:j.default.activity_timeout,pong_timeout:j.default.pong_timeout,unavailable_timeout:j.default.unavailable_timeout}},N.getClusterConfig=function(U){return{wsHost:"ws-"+U+".pusher.com",httpHost:"sockjs-"+U+".pusher.com"}}}])})})(pusher);var pusherExports=pusher.exports;const Pusher$1=getDefaultExportFromCjs(pusherExports);window.Pusher=Pusher$1;class Echo{constructor(){this.configCallbacks=[],this.bootedCallbacks=[]}config($){this.configCallbacks.push($)}booted($){this.bootedCallbacks.push($)}start(){let $={broadcaster:"pusher",key:Statamic.$config.get("broadcasting.pusher.key"),cluster:Statamic.$config.get("broadcasting.pusher.cluster"),encrypted:Statamic.$config.get("broadcasting.pusher.encrypted"),csrfToken:Statamic.$config.get("csrfToken"),authEndpoint:Statamic.$config.get("broadcasting.endpoint")};this.configCallbacks.forEach(I=>$=I($)),this.echo=new Echo$1($),this.bootedCallbacks.forEach(I=>I(this)),this.bootedCallbacks=[]}}["channel","connect","disconnect","join","leave","leaveChannel","listen","private","socketId","registerInterceptors","registerVueRequestInterceptor","registerAxiosRequestInterceptor","registerjQueryAjaxSetup"].forEach(M=>{Echo.prototype[M]=function(...$){return this.echo[M](...$)}});function OrderedMap(M){this.content=M}OrderedMap.prototype={constructor:OrderedMap,find:function(M){for(var $=0;$<this.content.length;$+=2)if(this.content[$]===M)return $;return-1},get:function(M){var $=this.find(M);return $==-1?void 0:this.content[$+1]},update:function(M,$,I){var N=I&&I!=M?this.remove(I):this,B=N.find(M),j=N.content.slice();return B==-1?j.push(I||M,$):(j[B+1]=$,I&&(j[B]=I)),new OrderedMap(j)},remove:function(M){var $=this.find(M);if($==-1)return this;var I=this.content.slice();return I.splice($,2),new OrderedMap(I)},addToStart:function(M,$){return new OrderedMap([M,$].concat(this.remove(M).content))},addToEnd:function(M,$){var I=this.remove(M).content.slice();return I.push(M,$),new OrderedMap(I)},addBefore:function(M,$,I){var N=this.remove($),B=N.content.slice(),j=N.find(M);return B.splice(j==-1?B.length:j,0,$,I),new OrderedMap(B)},forEach:function(M){for(var $=0;$<this.content.length;$+=2)M(this.content[$],this.content[$+1])},prepend:function(M){return M=OrderedMap.from(M),M.size?new OrderedMap(M.content.concat(this.subtract(M).content)):this},append:function(M){return M=OrderedMap.from(M),M.size?new OrderedMap(this.subtract(M).content.concat(M.content)):this},subtract:function(M){var $=this;M=OrderedMap.from(M);for(var I=0;I<M.content.length;I+=2)$=$.remove(M.content[I]);return $},toObject:function(){var M={};return this.forEach(function($,I){M[$]=I}),M},get size(){return this.content.length>>1}};OrderedMap.from=function(M){if(M instanceof OrderedMap)return M;var $=[];if(M)for(var I in M)$.push(I,M[I]);return new OrderedMap($)};function findDiffStart(M,$,I){for(let N=0;;N++){if(N==M.childCount||N==$.childCount)return M.childCount==$.childCount?null:I;let B=M.child(N),j=$.child(N);if(B==j){I+=B.nodeSize;continue}if(!B.sameMarkup(j))return I;if(B.isText&&B.text!=j.text){for(let U=0;B.text[U]==j.text[U];U++)I++;return I}if(B.content.size||j.content.size){let U=findDiffStart(B.content,j.content,I+1);if(U!=null)return U}I+=B.nodeSize}}function findDiffEnd(M,$,I,N){for(let B=M.childCount,j=$.childCount;;){if(B==0||j==0)return B==j?null:{a:I,b:N};let U=M.child(--B),q=$.child(--j),Y=U.nodeSize;if(U==q){I-=Y,N-=Y;continue}if(!U.sameMarkup(q))return{a:I,b:N};if(U.isText&&U.text!=q.text){let K=0,G=Math.min(U.text.length,q.text.length);for(;K<G&&U.text[U.text.length-K-1]==q.text[q.text.length-K-1];)K++,I--,N--;return{a:I,b:N}}if(U.content.size||q.content.size){let K=findDiffEnd(U.content,q.content,I-1,N-1);if(K)return K}I-=Y,N-=Y}}class Fragment{constructor($,I){if(this.content=$,this.size=I||0,I==null)for(let N=0;N<$.length;N++)this.size+=$[N].nodeSize}nodesBetween($,I,N,B=0,j){for(let U=0,q=0;q<I;U++){let Y=this.content[U],K=q+Y.nodeSize;if(K>$&&N(Y,B+q,j||null,U)!==!1&&Y.content.size){let G=q+1;Y.nodesBetween(Math.max(0,$-G),Math.min(Y.content.size,I-G),N,B+G)}q=K}}descendants($){this.nodesBetween(0,this.size,$)}textBetween($,I,N,B){let j="",U=!0;return this.nodesBetween($,I,(q,Y)=>{q.isText?(j+=q.text.slice(Math.max($,Y)-Y,I-Y),U=!N):q.isLeaf?(B?j+=typeof B=="function"?B(q):B:q.type.spec.leafText&&(j+=q.type.spec.leafText(q)),U=!N):!U&&q.isBlock&&(j+=N,U=!0)},0),j}append($){if(!$.size)return this;if(!this.size)return $;let I=this.lastChild,N=$.firstChild,B=this.content.slice(),j=0;for(I.isText&&I.sameMarkup(N)&&(B[B.length-1]=I.withText(I.text+N.text),j=1);j<$.content.length;j++)B.push($.content[j]);return new Fragment(B,this.size+$.size)}cut($,I=this.size){if($==0&&I==this.size)return this;let N=[],B=0;if(I>$)for(let j=0,U=0;U<I;j++){let q=this.content[j],Y=U+q.nodeSize;Y>$&&((U<$||Y>I)&&(q.isText?q=q.cut(Math.max(0,$-U),Math.min(q.text.length,I-U)):q=q.cut(Math.max(0,$-U-1),Math.min(q.content.size,I-U-1))),N.push(q),B+=q.nodeSize),U=Y}return new Fragment(N,B)}cutByIndex($,I){return $==I?Fragment.empty:$==0&&I==this.content.length?this:new Fragment(this.content.slice($,I))}replaceChild($,I){let N=this.content[$];if(N==I)return this;let B=this.content.slice(),j=this.size+I.nodeSize-N.nodeSize;return B[$]=I,new Fragment(B,j)}addToStart($){return new Fragment([$].concat(this.content),this.size+$.nodeSize)}addToEnd($){return new Fragment(this.content.concat($),this.size+$.nodeSize)}eq($){if(this.content.length!=$.content.length)return!1;for(let I=0;I<this.content.length;I++)if(!this.content[I].eq($.content[I]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child($){let I=this.content[$];if(!I)throw new RangeError("Index "+$+" out of range for "+this);return I}maybeChild($){return this.content[$]||null}forEach($){for(let I=0,N=0;I<this.content.length;I++){let B=this.content[I];$(B,N,I),N+=B.nodeSize}}findDiffStart($,I=0){return findDiffStart(this,$,I)}findDiffEnd($,I=this.size,N=$.size){return findDiffEnd(this,$,I,N)}findIndex($,I=-1){if($==0)return retIndex(0,$);if($==this.size)return retIndex(this.content.length,$);if($>this.size||$<0)throw new RangeError(`Position ${$} outside of fragment (${this})`);for(let N=0,B=0;;N++){let j=this.child(N),U=B+j.nodeSize;if(U>=$)return U==$||I>0?retIndex(N+1,U):retIndex(N,B);B=U}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map($=>$.toJSON()):null}static fromJSON($,I){if(!I)return Fragment.empty;if(!Array.isArray(I))throw new RangeError("Invalid input for Fragment.fromJSON");return new Fragment(I.map($.nodeFromJSON))}static fromArray($){if(!$.length)return Fragment.empty;let I,N=0;for(let B=0;B<$.length;B++){let j=$[B];N+=j.nodeSize,B&&j.isText&&$[B-1].sameMarkup(j)?(I||(I=$.slice(0,B)),I[I.length-1]=j.withText(I[I.length-1].text+j.text)):I&&I.push(j)}return new Fragment(I||$,N)}static from($){if(!$)return Fragment.empty;if($ instanceof Fragment)return $;if(Array.isArray($))return this.fromArray($);if($.attrs)return new Fragment([$],$.nodeSize);throw new RangeError("Can not convert "+$+" to a Fragment"+($.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Fragment.empty=new Fragment([],0);const found={index:0,offset:0};function retIndex(M,$){return found.index=M,found.offset=$,found}function compareDeep(M,$){if(M===$)return!0;if(!(M&&typeof M=="object")||!($&&typeof $=="object"))return!1;let I=Array.isArray(M);if(Array.isArray($)!=I)return!1;if(I){if(M.length!=$.length)return!1;for(let N=0;N<M.length;N++)if(!compareDeep(M[N],$[N]))return!1}else{for(let N in M)if(!(N in $)||!compareDeep(M[N],$[N]))return!1;for(let N in $)if(!(N in M))return!1}return!0}let Mark$1=class ql{constructor($,I){this.type=$,this.attrs=I}addToSet($){let I,N=!1;for(let B=0;B<$.length;B++){let j=$[B];if(this.eq(j))return $;if(this.type.excludes(j.type))I||(I=$.slice(0,B));else{if(j.type.excludes(this.type))return $;!N&&j.type.rank>this.type.rank&&(I||(I=$.slice(0,B)),I.push(this),N=!0),I&&I.push(j)}}return I||(I=$.slice()),N||I.push(this),I}removeFromSet($){for(let I=0;I<$.length;I++)if(this.eq($[I]))return $.slice(0,I).concat($.slice(I+1));return $}isInSet($){for(let I=0;I<$.length;I++)if(this.eq($[I]))return!0;return!1}eq($){return this==$||this.type==$.type&&compareDeep(this.attrs,$.attrs)}toJSON(){let $={type:this.type.name};for(let I in this.attrs){$.attrs=this.attrs;break}return $}static fromJSON($,I){if(!I)throw new RangeError("Invalid input for Mark.fromJSON");let N=$.marks[I.type];if(!N)throw new RangeError(`There is no mark type ${I.type} in this schema`);return N.create(I.attrs)}static sameSet($,I){if($==I)return!0;if($.length!=I.length)return!1;for(let N=0;N<$.length;N++)if(!$[N].eq(I[N]))return!1;return!0}static setFrom($){if(!$||Array.isArray($)&&$.length==0)return ql.none;if($ instanceof ql)return[$];let I=$.slice();return I.sort((N,B)=>N.type.rank-B.type.rank),I}};Mark$1.none=[];class ReplaceError extends Error{}class Slice{constructor($,I,N){this.content=$,this.openStart=I,this.openEnd=N}get size(){return this.content.size-this.openStart-this.openEnd}insertAt($,I){let N=insertInto(this.content,$+this.openStart,I);return N&&new Slice(N,this.openStart,this.openEnd)}removeBetween($,I){return new Slice(removeRange(this.content,$+this.openStart,I+this.openStart),this.openStart,this.openEnd)}eq($){return this.content.eq($.content)&&this.openStart==$.openStart&&this.openEnd==$.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let $={content:this.content.toJSON()};return this.openStart>0&&($.openStart=this.openStart),this.openEnd>0&&($.openEnd=this.openEnd),$}static fromJSON($,I){if(!I)return Slice.empty;let N=I.openStart||0,B=I.openEnd||0;if(typeof N!="number"||typeof B!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Slice(Fragment.fromJSON($,I.content),N,B)}static maxOpen($,I=!0){let N=0,B=0;for(let j=$.firstChild;j&&!j.isLeaf&&(I||!j.type.spec.isolating);j=j.firstChild)N++;for(let j=$.lastChild;j&&!j.isLeaf&&(I||!j.type.spec.isolating);j=j.lastChild)B++;return new Slice($,N,B)}}Slice.empty=new Slice(Fragment.empty,0,0);function removeRange(M,$,I){let{index:N,offset:B}=M.findIndex($),j=M.maybeChild(N),{index:U,offset:q}=M.findIndex(I);if(B==$||j.isText){if(q!=I&&!M.child(U).isText)throw new RangeError("Removing non-flat range");return M.cut(0,$).append(M.cut(I))}if(N!=U)throw new RangeError("Removing non-flat range");return M.replaceChild(N,j.copy(removeRange(j.content,$-B-1,I-B-1)))}function insertInto(M,$,I,N){let{index:B,offset:j}=M.findIndex($),U=M.maybeChild(B);if(j==$||U.isText)return N&&!N.canReplace(B,B,I)?null:M.cut(0,$).append(I).append(M.cut($));let q=insertInto(U.content,$-j-1,I);return q&&M.replaceChild(B,U.copy(q))}function replace$1(M,$,I){if(I.openStart>M.depth)throw new ReplaceError("Inserted content deeper than insertion position");if(M.depth-I.openStart!=$.depth-I.openEnd)throw new ReplaceError("Inconsistent open depths");return replaceOuter(M,$,I,0)}function replaceOuter(M,$,I,N){let B=M.index(N),j=M.node(N);if(B==$.index(N)&&N<M.depth-I.openStart){let U=replaceOuter(M,$,I,N+1);return j.copy(j.content.replaceChild(B,U))}else if(I.content.size)if(!I.openStart&&!I.openEnd&&M.depth==N&&$.depth==N){let U=M.parent,q=U.content;return close(U,q.cut(0,M.parentOffset).append(I.content).append(q.cut($.parentOffset)))}else{let{start:U,end:q}=prepareSliceForReplace(I,M);return close(j,replaceThreeWay(M,U,q,$,N))}else return close(j,replaceTwoWay(M,$,N))}function checkJoin(M,$){if(!$.type.compatibleContent(M.type))throw new ReplaceError("Cannot join "+$.type.name+" onto "+M.type.name)}function joinable$1(M,$,I){let N=M.node(I);return checkJoin(N,$.node(I)),N}function addNode(M,$){let I=$.length-1;I>=0&&M.isText&&M.sameMarkup($[I])?$[I]=M.withText($[I].text+M.text):$.push(M)}function addRange(M,$,I,N){let B=($||M).node(I),j=0,U=$?$.index(I):B.childCount;M&&(j=M.index(I),M.depth>I?j++:M.textOffset&&(addNode(M.nodeAfter,N),j++));for(let q=j;q<U;q++)addNode(B.child(q),N);$&&$.depth==I&&$.textOffset&&addNode($.nodeBefore,N)}function close(M,$){return M.type.checkContent($),M.copy($)}function replaceThreeWay(M,$,I,N,B){let j=M.depth>B&&joinable$1(M,$,B+1),U=N.depth>B&&joinable$1(I,N,B+1),q=[];return addRange(null,M,B,q),j&&U&&$.index(B)==I.index(B)?(checkJoin(j,U),addNode(close(j,replaceThreeWay(M,$,I,N,B+1)),q)):(j&&addNode(close(j,replaceTwoWay(M,$,B+1)),q),addRange($,I,B,q),U&&addNode(close(U,replaceTwoWay(I,N,B+1)),q)),addRange(N,null,B,q),new Fragment(q)}function replaceTwoWay(M,$,I){let N=[];if(addRange(null,M,I,N),M.depth>I){let B=joinable$1(M,$,I+1);addNode(close(B,replaceTwoWay(M,$,I+1)),N)}return addRange($,null,I,N),new Fragment(N)}function prepareSliceForReplace(M,$){let I=$.depth-M.openStart,B=$.node(I).copy(M.content);for(let j=I-1;j>=0;j--)B=$.node(j).copy(Fragment.from(B));return{start:B.resolveNoCache(M.openStart+I),end:B.resolveNoCache(B.content.size-M.openEnd-I)}}class ResolvedPos{constructor($,I,N){this.pos=$,this.path=I,this.parentOffset=N,this.depth=I.length/3-1}resolveDepth($){return $==null?this.depth:$<0?this.depth+$:$}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node($){return this.path[this.resolveDepth($)*3]}index($){return this.path[this.resolveDepth($)*3+1]}indexAfter($){return $=this.resolveDepth($),this.index($)+($==this.depth&&!this.textOffset?0:1)}start($){return $=this.resolveDepth($),$==0?0:this.path[$*3-1]+1}end($){return $=this.resolveDepth($),this.start($)+this.node($).content.size}before($){if($=this.resolveDepth($),!$)throw new RangeError("There is no position before the top-level node");return $==this.depth+1?this.pos:this.path[$*3-1]}after($){if($=this.resolveDepth($),!$)throw new RangeError("There is no position after the top-level node");return $==this.depth+1?this.pos:this.path[$*3-1]+this.path[$*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let $=this.parent,I=this.index(this.depth);if(I==$.childCount)return null;let N=this.pos-this.path[this.path.length-1],B=$.child(I);return N?$.child(I).cut(N):B}get nodeBefore(){let $=this.index(this.depth),I=this.pos-this.path[this.path.length-1];return I?this.parent.child($).cut(0,I):$==0?null:this.parent.child($-1)}posAtIndex($,I){I=this.resolveDepth(I);let N=this.path[I*3],B=I==0?0:this.path[I*3-1]+1;for(let j=0;j<$;j++)B+=N.child(j).nodeSize;return B}marks(){let $=this.parent,I=this.index();if($.content.size==0)return Mark$1.none;if(this.textOffset)return $.child(I).marks;let N=$.maybeChild(I-1),B=$.maybeChild(I);if(!N){let q=N;N=B,B=q}let j=N.marks;for(var U=0;U<j.length;U++)j[U].type.spec.inclusive===!1&&(!B||!j[U].isInSet(B.marks))&&(j=j[U--].removeFromSet(j));return j}marksAcross($){let I=this.parent.maybeChild(this.index());if(!I||!I.isInline)return null;let N=I.marks,B=$.parent.maybeChild($.index());for(var j=0;j<N.length;j++)N[j].type.spec.inclusive===!1&&(!B||!N[j].isInSet(B.marks))&&(N=N[j--].removeFromSet(N));return N}sharedDepth($){for(let I=this.depth;I>0;I--)if(this.start(I)<=$&&this.end(I)>=$)return I;return 0}blockRange($=this,I){if($.pos<this.pos)return $.blockRange(this);for(let N=this.depth-(this.parent.inlineContent||this.pos==$.pos?1:0);N>=0;N--)if($.pos<=this.end(N)&&(!I||I(this.node(N))))return new NodeRange(this,$,N);return null}sameParent($){return this.pos-this.parentOffset==$.pos-$.parentOffset}max($){return $.pos>this.pos?$:this}min($){return $.pos<this.pos?$:this}toString(){let $="";for(let I=1;I<=this.depth;I++)$+=($?"/":"")+this.node(I).type.name+"_"+this.index(I-1);return $+":"+this.parentOffset}static resolve($,I){if(!(I>=0&&I<=$.content.size))throw new RangeError("Position "+I+" out of range");let N=[],B=0,j=I;for(let U=$;;){let{index:q,offset:Y}=U.content.findIndex(j),K=j-Y;if(N.push(U,q,B+Y),!K||(U=U.child(q),U.isText))break;j=K-1,B+=Y+1}return new ResolvedPos(I,N,j)}static resolveCached($,I){for(let B=0;B<resolveCache.length;B++){let j=resolveCache[B];if(j.pos==I&&j.doc==$)return j}let N=resolveCache[resolveCachePos]=ResolvedPos.resolve($,I);return resolveCachePos=(resolveCachePos+1)%resolveCacheSize,N}}let resolveCache=[],resolveCachePos=0,resolveCacheSize=12;class NodeRange{constructor($,I,N){this.$from=$,this.$to=I,this.depth=N}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const emptyAttrs=Object.create(null);let Node$2=class Yl{constructor($,I,N,B=Mark$1.none){this.type=$,this.attrs=I,this.marks=B,this.content=N||Fragment.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child($){return this.content.child($)}maybeChild($){return this.content.maybeChild($)}forEach($){this.content.forEach($)}nodesBetween($,I,N,B=0){this.content.nodesBetween($,I,N,B,this)}descendants($){this.nodesBetween(0,this.content.size,$)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween($,I,N,B){return this.content.textBetween($,I,N,B)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq($){return this==$||this.sameMarkup($)&&this.content.eq($.content)}sameMarkup($){return this.hasMarkup($.type,$.attrs,$.marks)}hasMarkup($,I,N){return this.type==$&&compareDeep(this.attrs,I||$.defaultAttrs||emptyAttrs)&&Mark$1.sameSet(this.marks,N||Mark$1.none)}copy($=null){return $==this.content?this:new Yl(this.type,this.attrs,$,this.marks)}mark($){return $==this.marks?this:new Yl(this.type,this.attrs,this.content,$)}cut($,I=this.content.size){return $==0&&I==this.content.size?this:this.copy(this.content.cut($,I))}slice($,I=this.content.size,N=!1){if($==I)return Slice.empty;let B=this.resolve($),j=this.resolve(I),U=N?0:B.sharedDepth(I),q=B.start(U),K=B.node(U).content.cut(B.pos-q,j.pos-q);return new Slice(K,B.depth-U,j.depth-U)}replace($,I,N){return replace$1(this.resolve($),this.resolve(I),N)}nodeAt($){for(let I=this;;){let{index:N,offset:B}=I.content.findIndex($);if(I=I.maybeChild(N),!I)return null;if(B==$||I.isText)return I;$-=B+1}}childAfter($){let{index:I,offset:N}=this.content.findIndex($);return{node:this.content.maybeChild(I),index:I,offset:N}}childBefore($){if($==0)return{node:null,index:0,offset:0};let{index:I,offset:N}=this.content.findIndex($);if(N<$)return{node:this.content.child(I),index:I,offset:N};let B=this.content.child(I-1);return{node:B,index:I-1,offset:N-B.nodeSize}}resolve($){return ResolvedPos.resolveCached(this,$)}resolveNoCache($){return ResolvedPos.resolve(this,$)}rangeHasMark($,I,N){let B=!1;return I>$&&this.nodesBetween($,I,j=>(N.isInSet(j.marks)&&(B=!0),!B)),B}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let $=this.type.name;return this.content.size&&($+="("+this.content.toStringInner()+")"),wrapMarks(this.marks,$)}contentMatchAt($){let I=this.type.contentMatch.matchFragment(this.content,0,$);if(!I)throw new Error("Called contentMatchAt on a node with invalid content");return I}canReplace($,I,N=Fragment.empty,B=0,j=N.childCount){let U=this.contentMatchAt($).matchFragment(N,B,j),q=U&&U.matchFragment(this.content,I);if(!q||!q.validEnd)return!1;for(let Y=B;Y<j;Y++)if(!this.type.allowsMarks(N.child(Y).marks))return!1;return!0}canReplaceWith($,I,N,B){if(B&&!this.type.allowsMarks(B))return!1;let j=this.contentMatchAt($).matchType(N),U=j&&j.matchFragment(this.content,I);return U?U.validEnd:!1}canAppend($){return $.content.size?this.canReplace(this.childCount,this.childCount,$.content):this.type.compatibleContent($.type)}check(){this.type.checkContent(this.content);let $=Mark$1.none;for(let I=0;I<this.marks.length;I++)$=this.marks[I].addToSet($);if(!Mark$1.sameSet($,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(I=>I.type.name)}`);this.content.forEach(I=>I.check())}toJSON(){let $={type:this.type.name};for(let I in this.attrs){$.attrs=this.attrs;break}return this.content.size&&($.content=this.content.toJSON()),this.marks.length&&($.marks=this.marks.map(I=>I.toJSON())),$}static fromJSON($,I){if(!I)throw new RangeError("Invalid input for Node.fromJSON");let N=null;if(I.marks){if(!Array.isArray(I.marks))throw new RangeError("Invalid mark data for Node.fromJSON");N=I.marks.map($.markFromJSON)}if(I.type=="text"){if(typeof I.text!="string")throw new RangeError("Invalid text node in JSON");return $.text(I.text,N)}let B=Fragment.fromJSON($,I.content);return $.nodeType(I.type).create(I.attrs,B,N)}};Node$2.prototype.text=void 0;class TextNode extends Node$2{constructor($,I,N,B){if(super($,I,null,B),!N)throw new RangeError("Empty text nodes are not allowed");this.text=N}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wrapMarks(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween($,I){return this.text.slice($,I)}get nodeSize(){return this.text.length}mark($){return $==this.marks?this:new TextNode(this.type,this.attrs,this.text,$)}withText($){return $==this.text?this:new TextNode(this.type,this.attrs,$,this.marks)}cut($=0,I=this.text.length){return $==0&&I==this.text.length?this:this.withText(this.text.slice($,I))}eq($){return this.sameMarkup($)&&this.text==$.text}toJSON(){let $=super.toJSON();return $.text=this.text,$}}function wrapMarks(M,$){for(let I=M.length-1;I>=0;I--)$=M[I].type.name+"("+$+")";return $}class ContentMatch{constructor($){this.validEnd=$,this.next=[],this.wrapCache=[]}static parse($,I){let N=new TokenStream($,I);if(N.next==null)return ContentMatch.empty;let B=parseExpr(N);N.next&&N.err("Unexpected trailing text");let j=dfa(nfa(B));return checkForDeadEnds(j,N),j}matchType($){for(let I=0;I<this.next.length;I++)if(this.next[I].type==$)return this.next[I].next;return null}matchFragment($,I=0,N=$.childCount){let B=this;for(let j=I;B&&j<N;j++)B=B.matchType($.child(j).type);return B}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let $=0;$<this.next.length;$++){let{type:I}=this.next[$];if(!(I.isText||I.hasRequiredAttrs()))return I}return null}compatible($){for(let I=0;I<this.next.length;I++)for(let N=0;N<$.next.length;N++)if(this.next[I].type==$.next[N].type)return!0;return!1}fillBefore($,I=!1,N=0){let B=[this];function j(U,q){let Y=U.matchFragment($,N);if(Y&&(!I||Y.validEnd))return Fragment.from(q.map(K=>K.createAndFill()));for(let K=0;K<U.next.length;K++){let{type:G,next:J}=U.next[K];if(!(G.isText||G.hasRequiredAttrs())&&B.indexOf(J)==-1){B.push(J);let Z=j(J,q.concat(G));if(Z)return Z}}return null}return j(this,[])}findWrapping($){for(let N=0;N<this.wrapCache.length;N+=2)if(this.wrapCache[N]==$)return this.wrapCache[N+1];let I=this.computeWrapping($);return this.wrapCache.push($,I),I}computeWrapping($){let I=Object.create(null),N=[{match:this,type:null,via:null}];for(;N.length;){let B=N.shift(),j=B.match;if(j.matchType($)){let U=[];for(let q=B;q.type;q=q.via)U.push(q.type);return U.reverse()}for(let U=0;U<j.next.length;U++){let{type:q,next:Y}=j.next[U];!q.isLeaf&&!q.hasRequiredAttrs()&&!(q.name in I)&&(!B.type||Y.validEnd)&&(N.push({match:q.contentMatch,type:q,via:B}),I[q.name]=!0)}}return null}get edgeCount(){return this.next.length}edge($){if($>=this.next.length)throw new RangeError(`There's no ${$}th edge in this content match`);return this.next[$]}toString(){let $=[];function I(N){$.push(N);for(let B=0;B<N.next.length;B++)$.indexOf(N.next[B].next)==-1&&I(N.next[B].next)}return I(this),$.map((N,B)=>{let j=B+(N.validEnd?"*":" ")+" ";for(let U=0;U<N.next.length;U++)j+=(U?", ":"")+N.next[U].type.name+"->"+$.indexOf(N.next[U].next);return j}).join(`
- `)}}ContentMatch.empty=new ContentMatch(!0);class TokenStream{constructor($,I){this.string=$,this.nodeTypes=I,this.inline=null,this.pos=0,this.tokens=$.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat($){return this.next==$&&(this.pos++||!0)}err($){throw new SyntaxError($+" (in content expression '"+this.string+"')")}}function parseExpr(M){let $=[];do $.push(parseExprSeq(M));while(M.eat("|"));return $.length==1?$[0]:{type:"choice",exprs:$}}function parseExprSeq(M){let $=[];do $.push(parseExprSubscript(M));while(M.next&&M.next!=")"&&M.next!="|");return $.length==1?$[0]:{type:"seq",exprs:$}}function parseExprSubscript(M){let $=parseExprAtom(M);for(;;)if(M.eat("+"))$={type:"plus",expr:$};else if(M.eat("*"))$={type:"star",expr:$};else if(M.eat("?"))$={type:"opt",expr:$};else if(M.eat("{"))$=parseExprRange(M,$);else break;return $}function parseNum(M){/\D/.test(M.next)&&M.err("Expected number, got '"+M.next+"'");let $=Number(M.next);return M.pos++,$}function parseExprRange(M,$){let I=parseNum(M),N=I;return M.eat(",")&&(M.next!="}"?N=parseNum(M):N=-1),M.eat("}")||M.err("Unclosed braced range"),{type:"range",min:I,max:N,expr:$}}function resolveName(M,$){let I=M.nodeTypes,N=I[$];if(N)return[N];let B=[];for(let j in I){let U=I[j];U.groups.indexOf($)>-1&&B.push(U)}return B.length==0&&M.err("No node type or group '"+$+"' found"),B}function parseExprAtom(M){if(M.eat("(")){let $=parseExpr(M);return M.eat(")")||M.err("Missing closing paren"),$}else if(/\W/.test(M.next))M.err("Unexpected token '"+M.next+"'");else{let $=resolveName(M,M.next).map(I=>(M.inline==null?M.inline=I.isInline:M.inline!=I.isInline&&M.err("Mixing inline and block content"),{type:"name",value:I}));return M.pos++,$.length==1?$[0]:{type:"choice",exprs:$}}}function nfa(M){let $=[[]];return B(j(M,0),I()),$;function I(){return $.push([])-1}function N(U,q,Y){let K={term:Y,to:q};return $[U].push(K),K}function B(U,q){U.forEach(Y=>Y.to=q)}function j(U,q){if(U.type=="choice")return U.exprs.reduce((Y,K)=>Y.concat(j(K,q)),[]);if(U.type=="seq")for(let Y=0;;Y++){let K=j(U.exprs[Y],q);if(Y==U.exprs.length-1)return K;B(K,q=I())}else if(U.type=="star"){let Y=I();return N(q,Y),B(j(U.expr,Y),Y),[N(Y)]}else if(U.type=="plus"){let Y=I();return B(j(U.expr,q),Y),B(j(U.expr,Y),Y),[N(Y)]}else{if(U.type=="opt")return[N(q)].concat(j(U.expr,q));if(U.type=="range"){let Y=q;for(let K=0;K<U.min;K++){let G=I();B(j(U.expr,Y),G),Y=G}if(U.max==-1)B(j(U.expr,Y),Y);else for(let K=U.min;K<U.max;K++){let G=I();N(Y,G),B(j(U.expr,Y),G),Y=G}return[N(Y)]}else{if(U.type=="name")return[N(q,void 0,U.value)];throw new Error("Unknown expr type")}}}}function cmp(M,$){return $-M}function nullFrom(M,$){let I=[];return N($),I.sort(cmp);function N(B){let j=M[B];if(j.length==1&&!j[0].term)return N(j[0].to);I.push(B);for(let U=0;U<j.length;U++){let{term:q,to:Y}=j[U];!q&&I.indexOf(Y)==-1&&N(Y)}}}function dfa(M){let $=Object.create(null);return I(nullFrom(M,0));function I(N){let B=[];N.forEach(U=>{M[U].forEach(({term:q,to:Y})=>{if(!q)return;let K;for(let G=0;G<B.length;G++)B[G][0]==q&&(K=B[G][1]);nullFrom(M,Y).forEach(G=>{K||B.push([q,K=[]]),K.indexOf(G)==-1&&K.push(G)})})});let j=$[N.join(",")]=new ContentMatch(N.indexOf(M.length-1)>-1);for(let U=0;U<B.length;U++){let q=B[U][1].sort(cmp);j.next.push({type:B[U][0],next:$[q.join(",")]||I(q)})}return j}}function checkForDeadEnds(M,$){for(let I=0,N=[M];I<N.length;I++){let B=N[I],j=!B.validEnd,U=[];for(let q=0;q<B.next.length;q++){let{type:Y,next:K}=B.next[q];U.push(Y.name),j&&!(Y.isText||Y.hasRequiredAttrs())&&(j=!1),N.indexOf(K)==-1&&N.push(K)}j&&$.err("Only non-generatable nodes ("+U.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function defaultAttrs(M){let $=Object.create(null);for(let I in M){let N=M[I];if(!N.hasDefault)return null;$[I]=N.default}return $}function computeAttrs(M,$){let I=Object.create(null);for(let N in M){let B=$&&$[N];if(B===void 0){let j=M[N];if(j.hasDefault)B=j.default;else throw new RangeError("No value supplied for attribute "+N)}I[N]=B}return I}function initAttrs(M){let $=Object.create(null);if(M)for(let I in M)$[I]=new Attribute(M[I]);return $}let NodeType$1=class kc{constructor($,I,N){this.name=$,this.schema=I,this.spec=N,this.markSet=null,this.groups=N.group?N.group.split(" "):[],this.attrs=initAttrs(N.attrs),this.defaultAttrs=defaultAttrs(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(N.inline||$=="text"),this.isText=$=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ContentMatch.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let $ in this.attrs)if(this.attrs[$].isRequired)return!0;return!1}compatibleContent($){return this==$||this.contentMatch.compatible($.contentMatch)}computeAttrs($){return!$&&this.defaultAttrs?this.defaultAttrs:computeAttrs(this.attrs,$)}create($=null,I,N){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Node$2(this,this.computeAttrs($),Fragment.from(I),Mark$1.setFrom(N))}createChecked($=null,I,N){return I=Fragment.from(I),this.checkContent(I),new Node$2(this,this.computeAttrs($),I,Mark$1.setFrom(N))}createAndFill($=null,I,N){if($=this.computeAttrs($),I=Fragment.from(I),I.size){let U=this.contentMatch.fillBefore(I);if(!U)return null;I=U.append(I)}let B=this.contentMatch.matchFragment(I),j=B&&B.fillBefore(Fragment.empty,!0);return j?new Node$2(this,$,I.append(j),Mark$1.setFrom(N)):null}validContent($){let I=this.contentMatch.matchFragment($);if(!I||!I.validEnd)return!1;for(let N=0;N<$.childCount;N++)if(!this.allowsMarks($.child(N).marks))return!1;return!0}checkContent($){if(!this.validContent($))throw new RangeError(`Invalid content for node ${this.name}: ${$.toString().slice(0,50)}`)}allowsMarkType($){return this.markSet==null||this.markSet.indexOf($)>-1}allowsMarks($){if(this.markSet==null)return!0;for(let I=0;I<$.length;I++)if(!this.allowsMarkType($[I].type))return!1;return!0}allowedMarks($){if(this.markSet==null)return $;let I;for(let N=0;N<$.length;N++)this.allowsMarkType($[N].type)?I&&I.push($[N]):I||(I=$.slice(0,N));return I?I.length?I:Mark$1.none:$}static compile($,I){let N=Object.create(null);$.forEach((j,U)=>N[j]=new kc(j,I,U));let B=I.spec.topNode||"doc";if(!N[B])throw new RangeError("Schema is missing its top node type ('"+B+"')");if(!N.text)throw new RangeError("Every schema needs a 'text' type");for(let j in N.text.attrs)throw new RangeError("The text node type should not have attributes");return N}};class Attribute{constructor($){this.hasDefault=Object.prototype.hasOwnProperty.call($,"default"),this.default=$.default}get isRequired(){return!this.hasDefault}}class MarkType{constructor($,I,N,B){this.name=$,this.rank=I,this.schema=N,this.spec=B,this.attrs=initAttrs(B.attrs),this.excluded=null;let j=defaultAttrs(this.attrs);this.instance=j?new Mark$1(this,j):null}create($=null){return!$&&this.instance?this.instance:new Mark$1(this,computeAttrs(this.attrs,$))}static compile($,I){let N=Object.create(null),B=0;return $.forEach((j,U)=>N[j]=new MarkType(j,B++,I,U)),N}removeFromSet($){for(var I=0;I<$.length;I++)$[I].type==this&&($=$.slice(0,I).concat($.slice(I+1)),I--);return $}isInSet($){for(let I=0;I<$.length;I++)if($[I].type==this)return $[I]}excludes($){return this.excluded.indexOf($)>-1}}class Schema{constructor($){this.cached=Object.create(null);let I=this.spec={};for(let B in $)I[B]=$[B];I.nodes=OrderedMap.from($.nodes),I.marks=OrderedMap.from($.marks||{}),this.nodes=NodeType$1.compile(this.spec.nodes,this),this.marks=MarkType.compile(this.spec.marks,this);let N=Object.create(null);for(let B in this.nodes){if(B in this.marks)throw new RangeError(B+" can not be both a node and a mark");let j=this.nodes[B],U=j.spec.content||"",q=j.spec.marks;j.contentMatch=N[U]||(N[U]=ContentMatch.parse(U,this.nodes)),j.inlineContent=j.contentMatch.inlineContent,j.markSet=q=="_"?null:q?gatherMarks(this,q.split(" ")):q==""||!j.inlineContent?[]:null}for(let B in this.marks){let j=this.marks[B],U=j.spec.excludes;j.excluded=U==null?[j]:U==""?[]:gatherMarks(this,U.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node($,I=null,N,B){if(typeof $=="string")$=this.nodeType($);else if($ instanceof NodeType$1){if($.schema!=this)throw new RangeError("Node type from different schema used ("+$.name+")")}else throw new RangeError("Invalid node type: "+$);return $.createChecked(I,N,B)}text($,I){let N=this.nodes.text;return new TextNode(N,N.defaultAttrs,$,Mark$1.setFrom(I))}mark($,I){return typeof $=="string"&&($=this.marks[$]),$.create(I)}nodeFromJSON($){return Node$2.fromJSON(this,$)}markFromJSON($){return Mark$1.fromJSON(this,$)}nodeType($){let I=this.nodes[$];if(!I)throw new RangeError("Unknown node type: "+$);return I}}function gatherMarks(M,$){let I=[];for(let N=0;N<$.length;N++){let B=$[N],j=M.marks[B],U=j;if(j)I.push(j);else for(let q in M.marks){let Y=M.marks[q];(B=="_"||Y.spec.group&&Y.spec.group.split(" ").indexOf(B)>-1)&&I.push(U=Y)}if(!U)throw new SyntaxError("Unknown mark type: '"+$[N]+"'")}return I}class DOMParser{constructor($,I){this.schema=$,this.rules=I,this.tags=[],this.styles=[],I.forEach(N=>{N.tag?this.tags.push(N):N.style&&this.styles.push(N)}),this.normalizeLists=!this.tags.some(N=>{if(!/^(ul|ol)\b/.test(N.tag)||!N.node)return!1;let B=$.nodes[N.node];return B.contentMatch.matchType(B)})}parse($,I={}){let N=new ParseContext(this,I,!1);return N.addAll($,I.from,I.to),N.finish()}parseSlice($,I={}){let N=new ParseContext(this,I,!0);return N.addAll($,I.from,I.to),Slice.maxOpen(N.finish())}matchTag($,I,N){for(let B=N?this.tags.indexOf(N)+1:0;B<this.tags.length;B++){let j=this.tags[B];if(matches($,j.tag)&&(j.namespace===void 0||$.namespaceURI==j.namespace)&&(!j.context||I.matchesContext(j.context))){if(j.getAttrs){let U=j.getAttrs($);if(U===!1)continue;j.attrs=U||void 0}return j}}}matchStyle($,I,N,B){for(let j=B?this.styles.indexOf(B)+1:0;j<this.styles.length;j++){let U=this.styles[j],q=U.style;if(!(q.indexOf($)!=0||U.context&&!N.matchesContext(U.context)||q.length>$.length&&(q.charCodeAt($.length)!=61||q.slice($.length+1)!=I))){if(U.getAttrs){let Y=U.getAttrs(I);if(Y===!1)continue;U.attrs=Y||void 0}return U}}}static schemaRules($){let I=[];function N(B){let j=B.priority==null?50:B.priority,U=0;for(;U<I.length;U++){let q=I[U];if((q.priority==null?50:q.priority)<j)break}I.splice(U,0,B)}for(let B in $.marks){let j=$.marks[B].spec.parseDOM;j&&j.forEach(U=>{N(U=copy(U)),U.mark||U.ignore||U.clearMark||(U.mark=B)})}for(let B in $.nodes){let j=$.nodes[B].spec.parseDOM;j&&j.forEach(U=>{N(U=copy(U)),U.node||U.ignore||U.mark||(U.node=B)})}return I}static fromSchema($){return $.cached.domParser||($.cached.domParser=new DOMParser($,DOMParser.schemaRules($)))}}const blockTags={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ignoreTags={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},listTags={ol:!0,ul:!0},OPT_PRESERVE_WS=1,OPT_PRESERVE_WS_FULL=2,OPT_OPEN_LEFT=4;function wsOptionsFor(M,$,I){return $!=null?($?OPT_PRESERVE_WS:0)|($==="full"?OPT_PRESERVE_WS_FULL:0):M&&M.whitespace=="pre"?OPT_PRESERVE_WS|OPT_PRESERVE_WS_FULL:I&~OPT_OPEN_LEFT}class NodeContext{constructor($,I,N,B,j,U,q){this.type=$,this.attrs=I,this.marks=N,this.pendingMarks=B,this.solid=j,this.options=q,this.content=[],this.activeMarks=Mark$1.none,this.stashMarks=[],this.match=U||(q&OPT_OPEN_LEFT?null:$.contentMatch)}findWrapping($){if(!this.match){if(!this.type)return[];let I=this.type.contentMatch.fillBefore(Fragment.from($));if(I)this.match=this.type.contentMatch.matchFragment(I);else{let N=this.type.contentMatch,B;return(B=N.findWrapping($.type))?(this.match=N,B):null}}return this.match.findWrapping($.type)}finish($){if(!(this.options&OPT_PRESERVE_WS)){let N=this.content[this.content.length-1],B;if(N&&N.isText&&(B=/[ \t\r\n\u000c]+$/.exec(N.text))){let j=N;N.text.length==B[0].length?this.content.pop():this.content[this.content.length-1]=j.withText(j.text.slice(0,j.text.length-B[0].length))}}let I=Fragment.from(this.content);return!$&&this.match&&(I=I.append(this.match.fillBefore(Fragment.empty,!0))),this.type?this.type.create(this.attrs,I,this.marks):I}popFromStashMark($){for(let I=this.stashMarks.length-1;I>=0;I--)if($.eq(this.stashMarks[I]))return this.stashMarks.splice(I,1)[0]}applyPending($){for(let I=0,N=this.pendingMarks;I<N.length;I++){let B=N[I];(this.type?this.type.allowsMarkType(B.type):markMayApply(B.type,$))&&!B.isInSet(this.activeMarks)&&(this.activeMarks=B.addToSet(this.activeMarks),this.pendingMarks=B.removeFromSet(this.pendingMarks))}}inlineContext($){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:$.parentNode&&!blockTags.hasOwnProperty($.parentNode.nodeName.toLowerCase())}}class ParseContext{constructor($,I,N){this.parser=$,this.options=I,this.isOpen=N,this.open=0;let B=I.topNode,j,U=wsOptionsFor(null,I.preserveWhitespace,0)|(N?OPT_OPEN_LEFT:0);B?j=new NodeContext(B.type,B.attrs,Mark$1.none,Mark$1.none,!0,I.topMatch||B.type.contentMatch,U):N?j=new NodeContext(null,null,Mark$1.none,Mark$1.none,!0,null,U):j=new NodeContext($.schema.topNodeType,null,Mark$1.none,Mark$1.none,!0,null,U),this.nodes=[j],this.find=I.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM($){if($.nodeType==3)this.addTextNode($);else if($.nodeType==1){let I=$.getAttribute("style");if(!I)this.addElement($);else{let N=this.readStyles(parseStyles(I));if(!N)return;let[B,j]=N,U=this.top;for(let q=0;q<j.length;q++)this.removePendingMark(j[q],U);for(let q=0;q<B.length;q++)this.addPendingMark(B[q]);this.addElement($);for(let q=0;q<B.length;q++)this.removePendingMark(B[q],U);for(let q=0;q<j.length;q++)this.addPendingMark(j[q])}}}addTextNode($){let I=$.nodeValue,N=this.top;if(N.options&OPT_PRESERVE_WS_FULL||N.inlineContext($)||/[^ \t\r\n\u000c]/.test(I)){if(N.options&OPT_PRESERVE_WS)N.options&OPT_PRESERVE_WS_FULL?I=I.replace(/\r\n?/g,`
- `):I=I.replace(/\r?\n|\r/g," ");else if(I=I.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(I)&&this.open==this.nodes.length-1){let B=N.content[N.content.length-1],j=$.previousSibling;(!B||j&&j.nodeName=="BR"||B.isText&&/[ \t\r\n\u000c]$/.test(B.text))&&(I=I.slice(1))}I&&this.insertNode(this.parser.schema.text(I)),this.findInText($)}else this.findInside($)}addElement($,I){let N=$.nodeName.toLowerCase(),B;listTags.hasOwnProperty(N)&&this.parser.normalizeLists&&normalizeList($);let j=this.options.ruleFromNode&&this.options.ruleFromNode($)||(B=this.parser.matchTag($,this,I));if(j?j.ignore:ignoreTags.hasOwnProperty(N))this.findInside($),this.ignoreFallback($);else if(!j||j.skip||j.closeParent){j&&j.closeParent?this.open=Math.max(0,this.open-1):j&&j.skip.nodeType&&($=j.skip);let U,q=this.top,Y=this.needsBlock;if(blockTags.hasOwnProperty(N))q.content.length&&q.content[0].isInline&&this.open&&(this.open--,q=this.top),U=!0,q.type||(this.needsBlock=!0);else if(!$.firstChild){this.leafFallback($);return}this.addAll($),U&&this.sync(q),this.needsBlock=Y}else this.addElementByRule($,j,j.consuming===!1?B:void 0)}leafFallback($){$.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode($.ownerDocument.createTextNode(`
- `))}ignoreFallback($){$.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles($){let I=Mark$1.none,N=Mark$1.none;e:for(let B=0;B<$.length;B+=2)for(let j=void 0;;){let U=this.parser.matchStyle($[B],$[B+1],this,j);if(!U)continue e;if(U.ignore)return null;if(U.clearMark?this.top.pendingMarks.forEach(q=>{U.clearMark(q)&&(N=q.addToSet(N))}):I=this.parser.schema.marks[U.mark].create(U.attrs).addToSet(I),U.consuming===!1)j=U;else break}return[I,N]}addElementByRule($,I,N){let B,j,U;I.node?(j=this.parser.schema.nodes[I.node],j.isLeaf?this.insertNode(j.create(I.attrs))||this.leafFallback($):B=this.enter(j,I.attrs||null,I.preserveWhitespace)):(U=this.parser.schema.marks[I.mark].create(I.attrs),this.addPendingMark(U));let q=this.top;if(j&&j.isLeaf)this.findInside($);else if(N)this.addElement($,N);else if(I.getContent)this.findInside($),I.getContent($,this.parser.schema).forEach(Y=>this.insertNode(Y));else{let Y=$;typeof I.contentElement=="string"?Y=$.querySelector(I.contentElement):typeof I.contentElement=="function"?Y=I.contentElement($):I.contentElement&&(Y=I.contentElement),this.findAround($,Y,!0),this.addAll(Y)}B&&this.sync(q)&&this.open--,U&&this.removePendingMark(U,q)}addAll($,I,N){let B=I||0;for(let j=I?$.childNodes[I]:$.firstChild,U=N==null?null:$.childNodes[N];j!=U;j=j.nextSibling,++B)this.findAtPoint($,B),this.addDOM(j);this.findAtPoint($,B)}findPlace($){let I,N;for(let B=this.open;B>=0;B--){let j=this.nodes[B],U=j.findWrapping($);if(U&&(!I||I.length>U.length)&&(I=U,N=j,!U.length)||j.solid)break}if(!I)return!1;this.sync(N);for(let B=0;B<I.length;B++)this.enterInner(I[B],null,!1);return!0}insertNode($){if($.isInline&&this.needsBlock&&!this.top.type){let I=this.textblockFromContext();I&&this.enterInner(I)}if(this.findPlace($)){this.closeExtra();let I=this.top;I.applyPending($.type),I.match&&(I.match=I.match.matchType($.type));let N=I.activeMarks;for(let B=0;B<$.marks.length;B++)(!I.type||I.type.allowsMarkType($.marks[B].type))&&(N=$.marks[B].addToSet(N));return I.content.push($.mark(N)),!0}return!1}enter($,I,N){let B=this.findPlace($.create(I));return B&&this.enterInner($,I,!0,N),B}enterInner($,I=null,N=!1,B){this.closeExtra();let j=this.top;j.applyPending($),j.match=j.match&&j.match.matchType($);let U=wsOptionsFor($,B,j.options);j.options&OPT_OPEN_LEFT&&j.content.length==0&&(U|=OPT_OPEN_LEFT),this.nodes.push(new NodeContext($,I,j.activeMarks,j.pendingMarks,N,null,U)),this.open++}closeExtra($=!1){let I=this.nodes.length-1;if(I>this.open){for(;I>this.open;I--)this.nodes[I-1].content.push(this.nodes[I].finish($));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync($){for(let I=this.open;I>=0;I--)if(this.nodes[I]==$)return this.open=I,!0;return!1}get currentPos(){this.closeExtra();let $=0;for(let I=this.open;I>=0;I--){let N=this.nodes[I].content;for(let B=N.length-1;B>=0;B--)$+=N[B].nodeSize;I&&$++}return $}findAtPoint($,I){if(this.find)for(let N=0;N<this.find.length;N++)this.find[N].node==$&&this.find[N].offset==I&&(this.find[N].pos=this.currentPos)}findInside($){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].pos==null&&$.nodeType==1&&$.contains(this.find[I].node)&&(this.find[I].pos=this.currentPos)}findAround($,I,N){if($!=I&&this.find)for(let B=0;B<this.find.length;B++)this.find[B].pos==null&&$.nodeType==1&&$.contains(this.find[B].node)&&I.compareDocumentPosition(this.find[B].node)&(N?2:4)&&(this.find[B].pos=this.currentPos)}findInText($){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].node==$&&(this.find[I].pos=this.currentPos-($.nodeValue.length-this.find[I].offset))}matchesContext($){if($.indexOf("|")>-1)return $.split(/\s*\|\s*/).some(this.matchesContext,this);let I=$.split("/"),N=this.options.context,B=!this.isOpen&&(!N||N.parent.type==this.nodes[0].type),j=-(N?N.depth+1:0)+(B?0:1),U=(q,Y)=>{for(;q>=0;q--){let K=I[q];if(K==""){if(q==I.length-1||q==0)continue;for(;Y>=j;Y--)if(U(q-1,Y))return!0;return!1}else{let G=Y>0||Y==0&&B?this.nodes[Y].type:N&&Y>=j?N.node(Y-j).type:null;if(!G||G.name!=K&&G.groups.indexOf(K)==-1)return!1;Y--}}return!0};return U(I.length-1,this.open)}textblockFromContext(){let $=this.options.context;if($)for(let I=$.depth;I>=0;I--){let N=$.node(I).contentMatchAt($.indexAfter(I)).defaultType;if(N&&N.isTextblock&&N.defaultAttrs)return N}for(let I in this.parser.schema.nodes){let N=this.parser.schema.nodes[I];if(N.isTextblock&&N.defaultAttrs)return N}}addPendingMark($){let I=findSameMarkInSet($,this.top.pendingMarks);I&&this.top.stashMarks.push(I),this.top.pendingMarks=$.addToSet(this.top.pendingMarks)}removePendingMark($,I){for(let N=this.open;N>=0;N--){let B=this.nodes[N];if(B.pendingMarks.lastIndexOf($)>-1)B.pendingMarks=$.removeFromSet(B.pendingMarks);else{B.activeMarks=$.removeFromSet(B.activeMarks);let U=B.popFromStashMark($);U&&B.type&&B.type.allowsMarkType(U.type)&&(B.activeMarks=U.addToSet(B.activeMarks))}if(B==I)break}}}function normalizeList(M){for(let $=M.firstChild,I=null;$;$=$.nextSibling){let N=$.nodeType==1?$.nodeName.toLowerCase():null;N&&listTags.hasOwnProperty(N)&&I?(I.appendChild($),$=I):N=="li"?I=$:N&&(I=null)}}function matches(M,$){return(M.matches||M.msMatchesSelector||M.webkitMatchesSelector||M.mozMatchesSelector).call(M,$)}function parseStyles(M){let $=/\s*([\w-]+)\s*:\s*([^;]+)/g,I,N=[];for(;I=$.exec(M);)N.push(I[1],I[2].trim());return N}function copy(M){let $={};for(let I in M)$[I]=M[I];return $}function markMayApply(M,$){let I=$.schema.nodes;for(let N in I){let B=I[N];if(!B.allowsMarkType(M))continue;let j=[],U=q=>{j.push(q);for(let Y=0;Y<q.edgeCount;Y++){let{type:K,next:G}=q.edge(Y);if(K==$||j.indexOf(G)<0&&U(G))return!0}};if(U(B.contentMatch))return!0}}function findSameMarkInSet(M,$){for(let I=0;I<$.length;I++)if(M.eq($[I]))return $[I]}class DOMSerializer{constructor($,I){this.nodes=$,this.marks=I}serializeFragment($,I={},N){N||(N=doc$1(I).createDocumentFragment());let B=N,j=[];return $.forEach(U=>{if(j.length||U.marks.length){let q=0,Y=0;for(;q<j.length&&Y<U.marks.length;){let K=U.marks[Y];if(!this.marks[K.type.name]){Y++;continue}if(!K.eq(j[q][0])||K.type.spec.spanning===!1)break;q++,Y++}for(;q<j.length;)B=j.pop()[1];for(;Y<U.marks.length;){let K=U.marks[Y++],G=this.serializeMark(K,U.isInline,I);G&&(j.push([K,B]),B.appendChild(G.dom),B=G.contentDOM||G.dom)}}B.appendChild(this.serializeNodeInner(U,I))}),N}serializeNodeInner($,I){let{dom:N,contentDOM:B}=DOMSerializer.renderSpec(doc$1(I),this.nodes[$.type.name]($));if(B){if($.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment($.content,I,B)}return N}serializeNode($,I={}){let N=this.serializeNodeInner($,I);for(let B=$.marks.length-1;B>=0;B--){let j=this.serializeMark($.marks[B],$.isInline,I);j&&((j.contentDOM||j.dom).appendChild(N),N=j.dom)}return N}serializeMark($,I,N={}){let B=this.marks[$.type.name];return B&&DOMSerializer.renderSpec(doc$1(N),B($,I))}static renderSpec($,I,N=null){if(typeof I=="string")return{dom:$.createTextNode(I)};if(I.nodeType!=null)return{dom:I};if(I.dom&&I.dom.nodeType!=null)return I;let B=I[0],j=B.indexOf(" ");j>0&&(N=B.slice(0,j),B=B.slice(j+1));let U,q=N?$.createElementNS(N,B):$.createElement(B),Y=I[1],K=1;if(Y&&typeof Y=="object"&&Y.nodeType==null&&!Array.isArray(Y)){K=2;for(let G in Y)if(Y[G]!=null){let J=G.indexOf(" ");J>0?q.setAttributeNS(G.slice(0,J),G.slice(J+1),Y[G]):q.setAttribute(G,Y[G])}}for(let G=K;G<I.length;G++){let J=I[G];if(J===0){if(G<I.length-1||G>K)throw new RangeError("Content hole must be the only child of its parent node");return{dom:q,contentDOM:q}}else{let{dom:Z,contentDOM:ee}=DOMSerializer.renderSpec($,J,N);if(q.appendChild(Z),ee){if(U)throw new RangeError("Multiple content holes");U=ee}}}return{dom:q,contentDOM:U}}static fromSchema($){return $.cached.domSerializer||($.cached.domSerializer=new DOMSerializer(this.nodesFromSchema($),this.marksFromSchema($)))}static nodesFromSchema($){let I=gatherToDOM($.nodes);return I.text||(I.text=N=>N.text),I}static marksFromSchema($){return gatherToDOM($.marks)}}function gatherToDOM(M){let $={};for(let I in M){let N=M[I].spec.toDOM;N&&($[I]=N)}return $}function doc$1(M){return M.document||window.document}const lower16=65535,factor16=Math.pow(2,16);function makeRecover(M,$){return M+$*factor16}function recoverIndex(M){return M&lower16}function recoverOffset(M){return(M-(M&lower16))/factor16}const DEL_BEFORE=1,DEL_AFTER=2,DEL_ACROSS=4,DEL_SIDE=8;class MapResult{constructor($,I,N){this.pos=$,this.delInfo=I,this.recover=N}get deleted(){return(this.delInfo&DEL_SIDE)>0}get deletedBefore(){return(this.delInfo&(DEL_BEFORE|DEL_ACROSS))>0}get deletedAfter(){return(this.delInfo&(DEL_AFTER|DEL_ACROSS))>0}get deletedAcross(){return(this.delInfo&DEL_ACROSS)>0}}class StepMap{constructor($,I=!1){if(this.ranges=$,this.inverted=I,!$.length&&StepMap.empty)return StepMap.empty}recover($){let I=0,N=recoverIndex($);if(!this.inverted)for(let B=0;B<N;B++)I+=this.ranges[B*3+2]-this.ranges[B*3+1];return this.ranges[N*3]+I+recoverOffset($)}mapResult($,I=1){return this._map($,I,!1)}map($,I=1){return this._map($,I,!0)}_map($,I,N){let B=0,j=this.inverted?2:1,U=this.inverted?1:2;for(let q=0;q<this.ranges.length;q+=3){let Y=this.ranges[q]-(this.inverted?B:0);if(Y>$)break;let K=this.ranges[q+j],G=this.ranges[q+U],J=Y+K;if($<=J){let Z=K?$==Y?-1:$==J?1:I:I,ee=Y+B+(Z<0?0:G);if(N)return ee;let te=$==(I<0?Y:J)?null:makeRecover(q/3,$-Y),re=$==Y?DEL_AFTER:$==J?DEL_BEFORE:DEL_ACROSS;return(I<0?$!=Y:$!=J)&&(re|=DEL_SIDE),new MapResult(ee,re,te)}B+=G-K}return N?$+B:new MapResult($+B,0,null)}touches($,I){let N=0,B=recoverIndex(I),j=this.inverted?2:1,U=this.inverted?1:2;for(let q=0;q<this.ranges.length;q+=3){let Y=this.ranges[q]-(this.inverted?N:0);if(Y>$)break;let K=this.ranges[q+j],G=Y+K;if($<=G&&q==B*3)return!0;N+=this.ranges[q+U]-K}return!1}forEach($){let I=this.inverted?2:1,N=this.inverted?1:2;for(let B=0,j=0;B<this.ranges.length;B+=3){let U=this.ranges[B],q=U-(this.inverted?j:0),Y=U+(this.inverted?0:j),K=this.ranges[B+I],G=this.ranges[B+N];$(q,q+K,Y,Y+G),j+=G-K}}invert(){return new StepMap(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset($){return $==0?StepMap.empty:new StepMap($<0?[0,-$,0]:[0,0,$])}}StepMap.empty=new StepMap([]);class Mapping{constructor($=[],I,N=0,B=$.length){this.maps=$,this.mirror=I,this.from=N,this.to=B}slice($=0,I=this.maps.length){return new Mapping(this.maps,this.mirror,$,I)}copy(){return new Mapping(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap($,I){this.to=this.maps.push($),I!=null&&this.setMirror(this.maps.length-1,I)}appendMapping($){for(let I=0,N=this.maps.length;I<$.maps.length;I++){let B=$.getMirror(I);this.appendMap($.maps[I],B!=null&&B<I?N+B:void 0)}}getMirror($){if(this.mirror){for(let I=0;I<this.mirror.length;I++)if(this.mirror[I]==$)return this.mirror[I+(I%2?-1:1)]}}setMirror($,I){this.mirror||(this.mirror=[]),this.mirror.push($,I)}appendMappingInverted($){for(let I=$.maps.length-1,N=this.maps.length+$.maps.length;I>=0;I--){let B=$.getMirror(I);this.appendMap($.maps[I].invert(),B!=null&&B>I?N-B-1:void 0)}}invert(){let $=new Mapping;return $.appendMappingInverted(this),$}map($,I=1){if(this.mirror)return this._map($,I,!0);for(let N=this.from;N<this.to;N++)$=this.maps[N].map($,I);return $}mapResult($,I=1){return this._map($,I,!1)}_map($,I,N){let B=0;for(let j=this.from;j<this.to;j++){let U=this.maps[j],q=U.mapResult($,I);if(q.recover!=null){let Y=this.getMirror(j);if(Y!=null&&Y>j&&Y<this.to){j=Y,$=this.maps[Y].recover(q.recover);continue}}B|=q.delInfo,$=q.pos}return N?$:new MapResult($,B,null)}}const stepsByID=Object.create(null);class Step{getMap(){return StepMap.empty}merge($){return null}static fromJSON($,I){if(!I||!I.stepType)throw new RangeError("Invalid input for Step.fromJSON");let N=stepsByID[I.stepType];if(!N)throw new RangeError(`No step type ${I.stepType} defined`);return N.fromJSON($,I)}static jsonID($,I){if($ in stepsByID)throw new RangeError("Duplicate use of step JSON ID "+$);return stepsByID[$]=I,I.prototype.jsonID=$,I}}class StepResult{constructor($,I){this.doc=$,this.failed=I}static ok($){return new StepResult($,null)}static fail($){return new StepResult(null,$)}static fromReplace($,I,N,B){try{return StepResult.ok($.replace(I,N,B))}catch(j){if(j instanceof ReplaceError)return StepResult.fail(j.message);throw j}}}function mapFragment(M,$,I){let N=[];for(let B=0;B<M.childCount;B++){let j=M.child(B);j.content.size&&(j=j.copy(mapFragment(j.content,$,j))),j.isInline&&(j=$(j,I,B)),N.push(j)}return Fragment.fromArray(N)}class AddMarkStep extends Step{constructor($,I,N){super(),this.from=$,this.to=I,this.mark=N}apply($){let I=$.slice(this.from,this.to),N=$.resolve(this.from),B=N.node(N.sharedDepth(this.to)),j=new Slice(mapFragment(I.content,(U,q)=>!U.isAtom||!q.type.allowsMarkType(this.mark.type)?U:U.mark(this.mark.addToSet(U.marks)),B),I.openStart,I.openEnd);return StepResult.fromReplace($,this.from,this.to,j)}invert(){return new RemoveMarkStep(this.from,this.to,this.mark)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deleted&&N.deleted||I.pos>=N.pos?null:new AddMarkStep(I.pos,N.pos,this.mark)}merge($){return $ instanceof AddMarkStep&&$.mark.eq(this.mark)&&this.from<=$.to&&this.to>=$.from?new AddMarkStep(Math.min(this.from,$.from),Math.max(this.to,$.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new AddMarkStep(I.from,I.to,$.markFromJSON(I.mark))}}Step.jsonID("addMark",AddMarkStep);class RemoveMarkStep extends Step{constructor($,I,N){super(),this.from=$,this.to=I,this.mark=N}apply($){let I=$.slice(this.from,this.to),N=new Slice(mapFragment(I.content,B=>B.mark(this.mark.removeFromSet(B.marks)),$),I.openStart,I.openEnd);return StepResult.fromReplace($,this.from,this.to,N)}invert(){return new AddMarkStep(this.from,this.to,this.mark)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deleted&&N.deleted||I.pos>=N.pos?null:new RemoveMarkStep(I.pos,N.pos,this.mark)}merge($){return $ instanceof RemoveMarkStep&&$.mark.eq(this.mark)&&this.from<=$.to&&this.to>=$.from?new RemoveMarkStep(Math.min(this.from,$.from),Math.max(this.to,$.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new RemoveMarkStep(I.from,I.to,$.markFromJSON(I.mark))}}Step.jsonID("removeMark",RemoveMarkStep);class AddNodeMarkStep extends Step{constructor($,I){super(),this.pos=$,this.mark=I}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at mark step's position");let N=I.type.create(I.attrs,null,this.mark.addToSet(I.marks));return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(N),0,I.isLeaf?0:1))}invert($){let I=$.nodeAt(this.pos);if(I){let N=this.mark.addToSet(I.marks);if(N.length==I.marks.length){for(let B=0;B<I.marks.length;B++)if(!I.marks[B].isInSet(N))return new AddNodeMarkStep(this.pos,I.marks[B]);return new AddNodeMarkStep(this.pos,this.mark)}}return new RemoveNodeMarkStep(this.pos,this.mark)}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new AddNodeMarkStep(I.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new AddNodeMarkStep(I.pos,$.markFromJSON(I.mark))}}Step.jsonID("addNodeMark",AddNodeMarkStep);class RemoveNodeMarkStep extends Step{constructor($,I){super(),this.pos=$,this.mark=I}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at mark step's position");let N=I.type.create(I.attrs,null,this.mark.removeFromSet(I.marks));return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(N),0,I.isLeaf?0:1))}invert($){let I=$.nodeAt(this.pos);return!I||!this.mark.isInSet(I.marks)?this:new AddNodeMarkStep(this.pos,this.mark)}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new RemoveNodeMarkStep(I.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new RemoveNodeMarkStep(I.pos,$.markFromJSON(I.mark))}}Step.jsonID("removeNodeMark",RemoveNodeMarkStep);class ReplaceStep extends Step{constructor($,I,N,B=!1){super(),this.from=$,this.to=I,this.slice=N,this.structure=B}apply($){return this.structure&&contentBetween($,this.from,this.to)?StepResult.fail("Structure replace would overwrite content"):StepResult.fromReplace($,this.from,this.to,this.slice)}getMap(){return new StepMap([this.from,this.to-this.from,this.slice.size])}invert($){return new ReplaceStep(this.from,this.from+this.slice.size,$.slice(this.from,this.to))}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deletedAcross&&N.deletedAcross?null:new ReplaceStep(I.pos,Math.max(I.pos,N.pos),this.slice)}merge($){if(!($ instanceof ReplaceStep)||$.structure||this.structure)return null;if(this.from+this.slice.size==$.from&&!this.slice.openEnd&&!$.slice.openStart){let I=this.slice.size+$.slice.size==0?Slice.empty:new Slice(this.slice.content.append($.slice.content),this.slice.openStart,$.slice.openEnd);return new ReplaceStep(this.from,this.to+($.to-$.from),I,this.structure)}else if($.to==this.from&&!this.slice.openStart&&!$.slice.openEnd){let I=this.slice.size+$.slice.size==0?Slice.empty:new Slice($.slice.content.append(this.slice.content),$.slice.openStart,this.slice.openEnd);return new ReplaceStep($.from,this.to,I,this.structure)}else return null}toJSON(){let $={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&($.slice=this.slice.toJSON()),this.structure&&($.structure=!0),$}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ReplaceStep(I.from,I.to,Slice.fromJSON($,I.slice),!!I.structure)}}Step.jsonID("replace",ReplaceStep);class ReplaceAroundStep extends Step{constructor($,I,N,B,j,U,q=!1){super(),this.from=$,this.to=I,this.gapFrom=N,this.gapTo=B,this.slice=j,this.insert=U,this.structure=q}apply($){if(this.structure&&(contentBetween($,this.from,this.gapFrom)||contentBetween($,this.gapTo,this.to)))return StepResult.fail("Structure gap-replace would overwrite content");let I=$.slice(this.gapFrom,this.gapTo);if(I.openStart||I.openEnd)return StepResult.fail("Gap is not a flat range");let N=this.slice.insertAt(this.insert,I.content);return N?StepResult.fromReplace($,this.from,this.to,N):StepResult.fail("Content does not fit in gap")}getMap(){return new StepMap([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert($){let I=this.gapTo-this.gapFrom;return new ReplaceAroundStep(this.from,this.from+this.slice.size+I,this.from+this.insert,this.from+this.insert+I,$.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1),B=$.map(this.gapFrom,-1),j=$.map(this.gapTo,1);return I.deletedAcross&&N.deletedAcross||B<I.pos||j>N.pos?null:new ReplaceAroundStep(I.pos,N.pos,B,j,this.slice,this.insert,this.structure)}toJSON(){let $={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&($.slice=this.slice.toJSON()),this.structure&&($.structure=!0),$}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number"||typeof I.gapFrom!="number"||typeof I.gapTo!="number"||typeof I.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ReplaceAroundStep(I.from,I.to,I.gapFrom,I.gapTo,Slice.fromJSON($,I.slice),I.insert,!!I.structure)}}Step.jsonID("replaceAround",ReplaceAroundStep);function contentBetween(M,$,I){let N=M.resolve($),B=I-$,j=N.depth;for(;B>0&&j>0&&N.indexAfter(j)==N.node(j).childCount;)j--,B--;if(B>0){let U=N.node(j).maybeChild(N.indexAfter(j));for(;B>0;){if(!U||U.isLeaf)return!0;U=U.firstChild,B--}}return!1}function addMark(M,$,I,N){let B=[],j=[],U,q;M.doc.nodesBetween($,I,(Y,K,G)=>{if(!Y.isInline)return;let J=Y.marks;if(!N.isInSet(J)&&G.type.allowsMarkType(N.type)){let Z=Math.max(K,$),ee=Math.min(K+Y.nodeSize,I),te=N.addToSet(J);for(let re=0;re<J.length;re++)J[re].isInSet(te)||(U&&U.to==Z&&U.mark.eq(J[re])?U.to=ee:B.push(U=new RemoveMarkStep(Z,ee,J[re])));q&&q.to==Z?q.to=ee:j.push(q=new AddMarkStep(Z,ee,N))}}),B.forEach(Y=>M.step(Y)),j.forEach(Y=>M.step(Y))}function removeMark(M,$,I,N){let B=[],j=0;M.doc.nodesBetween($,I,(U,q)=>{if(!U.isInline)return;j++;let Y=null;if(N instanceof MarkType){let K=U.marks,G;for(;G=N.isInSet(K);)(Y||(Y=[])).push(G),K=G.removeFromSet(K)}else N?N.isInSet(U.marks)&&(Y=[N]):Y=U.marks;if(Y&&Y.length){let K=Math.min(q+U.nodeSize,I);for(let G=0;G<Y.length;G++){let J=Y[G],Z;for(let ee=0;ee<B.length;ee++){let te=B[ee];te.step==j-1&&J.eq(B[ee].style)&&(Z=te)}Z?(Z.to=K,Z.step=j):B.push({style:J,from:Math.max(q,$),to:K,step:j})}}}),B.forEach(U=>M.step(new RemoveMarkStep(U.from,U.to,U.style)))}function clearIncompatible(M,$,I,N=I.contentMatch){let B=M.doc.nodeAt($),j=[],U=$+1;for(let q=0;q<B.childCount;q++){let Y=B.child(q),K=U+Y.nodeSize,G=N.matchType(Y.type);if(!G)j.push(new ReplaceStep(U,K,Slice.empty));else{N=G;for(let J=0;J<Y.marks.length;J++)I.allowsMarkType(Y.marks[J].type)||M.step(new RemoveMarkStep(U,K,Y.marks[J]))}U=K}if(!N.validEnd){let q=N.fillBefore(Fragment.empty,!0);M.replace(U,U,new Slice(q,0,0))}for(let q=j.length-1;q>=0;q--)M.step(j[q])}function canCut(M,$,I){return($==0||M.canReplace($,M.childCount))&&(I==M.childCount||M.canReplace(0,I))}function liftTarget(M){let I=M.parent.content.cutByIndex(M.startIndex,M.endIndex);for(let N=M.depth;;--N){let B=M.$from.node(N),j=M.$from.index(N),U=M.$to.indexAfter(N);if(N<M.depth&&B.canReplace(j,U,I))return N;if(N==0||B.type.spec.isolating||!canCut(B,j,U))break}return null}function lift$2(M,$,I){let{$from:N,$to:B,depth:j}=$,U=N.before(j+1),q=B.after(j+1),Y=U,K=q,G=Fragment.empty,J=0;for(let te=j,re=!1;te>I;te--)re||N.index(te)>0?(re=!0,G=Fragment.from(N.node(te).copy(G)),J++):Y--;let Z=Fragment.empty,ee=0;for(let te=j,re=!1;te>I;te--)re||B.after(te+1)<B.end(te)?(re=!0,Z=Fragment.from(B.node(te).copy(Z)),ee++):K++;M.step(new ReplaceAroundStep(Y,K,U,q,new Slice(G.append(Z),J,ee),G.size-J,!0))}function findWrapping(M,$,I=null,N=M){let B=findWrappingOutside(M,$),j=B&&findWrappingInside(N,$);return j?B.map(withAttrs).concat({type:$,attrs:I}).concat(j.map(withAttrs)):null}function withAttrs(M){return{type:M,attrs:null}}function findWrappingOutside(M,$){let{parent:I,startIndex:N,endIndex:B}=M,j=I.contentMatchAt(N).findWrapping($);if(!j)return null;let U=j.length?j[0]:$;return I.canReplaceWith(N,B,U)?j:null}function findWrappingInside(M,$){let{parent:I,startIndex:N,endIndex:B}=M,j=I.child(N),U=$.contentMatch.findWrapping(j.type);if(!U)return null;let Y=(U.length?U[U.length-1]:$).contentMatch;for(let K=N;Y&&K<B;K++)Y=Y.matchType(I.child(K).type);return!Y||!Y.validEnd?null:U}function wrap$1(M,$,I){let N=Fragment.empty;for(let U=I.length-1;U>=0;U--){if(N.size){let q=I[U].type.contentMatch.matchFragment(N);if(!q||!q.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}N=Fragment.from(I[U].type.create(I[U].attrs,N))}let B=$.start,j=$.end;M.step(new ReplaceAroundStep(B,j,B,j,new Slice(N,0,0),I.length,!0))}function setBlockType$1(M,$,I,N,B){if(!N.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let j=M.steps.length;M.doc.nodesBetween($,I,(U,q)=>{if(U.isTextblock&&!U.hasMarkup(N,B)&&canChangeType(M.doc,M.mapping.slice(j).map(q),N)){M.clearIncompatible(M.mapping.slice(j).map(q,1),N);let Y=M.mapping.slice(j),K=Y.map(q,1),G=Y.map(q+U.nodeSize,1);return M.step(new ReplaceAroundStep(K,G,K+1,G-1,new Slice(Fragment.from(N.create(B,null,U.marks)),0,0),1,!0)),!1}})}function canChangeType(M,$,I){let N=M.resolve($),B=N.index();return N.parent.canReplaceWith(B,B+1,I)}function setNodeMarkup(M,$,I,N,B){let j=M.doc.nodeAt($);if(!j)throw new RangeError("No node at given position");I||(I=j.type);let U=I.create(N,null,B||j.marks);if(j.isLeaf)return M.replaceWith($,$+j.nodeSize,U);if(!I.validContent(j.content))throw new RangeError("Invalid content for node type "+I.name);M.step(new ReplaceAroundStep($,$+j.nodeSize,$+1,$+j.nodeSize-1,new Slice(Fragment.from(U),0,0),1,!0))}function canSplit(M,$,I=1,N){let B=M.resolve($),j=B.depth-I,U=N&&N[N.length-1]||B.parent;if(j<0||B.parent.type.spec.isolating||!B.parent.canReplace(B.index(),B.parent.childCount)||!U.type.validContent(B.parent.content.cutByIndex(B.index(),B.parent.childCount)))return!1;for(let K=B.depth-1,G=I-2;K>j;K--,G--){let J=B.node(K),Z=B.index(K);if(J.type.spec.isolating)return!1;let ee=J.content.cutByIndex(Z,J.childCount),te=N&&N[G]||J;if(te!=J&&(ee=ee.replaceChild(0,te.type.create(te.attrs))),!J.canReplace(Z+1,J.childCount)||!te.type.validContent(ee))return!1}let q=B.indexAfter(j),Y=N&&N[0];return B.node(j).canReplaceWith(q,q,Y?Y.type:B.node(j+1).type)}function split(M,$,I=1,N){let B=M.doc.resolve($),j=Fragment.empty,U=Fragment.empty;for(let q=B.depth,Y=B.depth-I,K=I-1;q>Y;q--,K--){j=Fragment.from(B.node(q).copy(j));let G=N&&N[K];U=Fragment.from(G?G.type.create(G.attrs,U):B.node(q).copy(U))}M.step(new ReplaceStep($,$,new Slice(j.append(U),I,I),!0))}function canJoin(M,$){let I=M.resolve($),N=I.index();return joinable(I.nodeBefore,I.nodeAfter)&&I.parent.canReplace(N,N+1)}function joinable(M,$){return!!(M&&$&&!M.isLeaf&&M.canAppend($))}function joinPoint(M,$,I=-1){let N=M.resolve($);for(let B=N.depth;;B--){let j,U,q=N.index(B);if(B==N.depth?(j=N.nodeBefore,U=N.nodeAfter):I>0?(j=N.node(B+1),q++,U=N.node(B).maybeChild(q)):(j=N.node(B).maybeChild(q-1),U=N.node(B+1)),j&&!j.isTextblock&&joinable(j,U)&&N.node(B).canReplace(q,q+1))return $;if(B==0)break;$=I<0?N.before(B):N.after(B)}}function join(M,$,I){let N=new ReplaceStep($-I,$+I,Slice.empty,!0);M.step(N)}function insertPoint(M,$,I){let N=M.resolve($);if(N.parent.canReplaceWith(N.index(),N.index(),I))return $;if(N.parentOffset==0)for(let B=N.depth-1;B>=0;B--){let j=N.index(B);if(N.node(B).canReplaceWith(j,j,I))return N.before(B+1);if(j>0)return null}if(N.parentOffset==N.parent.content.size)for(let B=N.depth-1;B>=0;B--){let j=N.indexAfter(B);if(N.node(B).canReplaceWith(j,j,I))return N.after(B+1);if(j<N.node(B).childCount)return null}return null}function dropPoint(M,$,I){let N=M.resolve($);if(!I.content.size)return $;let B=I.content;for(let j=0;j<I.openStart;j++)B=B.firstChild.content;for(let j=1;j<=(I.openStart==0&&I.size?2:1);j++)for(let U=N.depth;U>=0;U--){let q=U==N.depth?0:N.pos<=(N.start(U+1)+N.end(U+1))/2?-1:1,Y=N.index(U)+(q>0?1:0),K=N.node(U),G=!1;if(j==1)G=K.canReplace(Y,Y,B);else{let J=K.contentMatchAt(Y).findWrapping(B.firstChild.type);G=J&&K.canReplaceWith(Y,Y,J[0])}if(G)return q==0?N.pos:q<0?N.before(U+1):N.after(U+1)}return null}function replaceStep(M,$,I=$,N=Slice.empty){if($==I&&!N.size)return null;let B=M.resolve($),j=M.resolve(I);return fitsTrivially(B,j,N)?new ReplaceStep($,I,N):new Fitter(B,j,N).fit()}function fitsTrivially(M,$,I){return!I.openStart&&!I.openEnd&&M.start()==$.start()&&M.parent.canReplace(M.index(),$.index(),I.content)}class Fitter{constructor($,I,N){this.$from=$,this.$to=I,this.unplaced=N,this.frontier=[],this.placed=Fragment.empty;for(let B=0;B<=$.depth;B++){let j=$.node(B);this.frontier.push({type:j.type,match:j.contentMatchAt($.indexAfter(B))})}for(let B=$.depth;B>0;B--)this.placed=Fragment.from($.node(B).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let K=this.findFittable();K?this.placeNodes(K):this.openMore()||this.dropNode()}let $=this.mustMoveInline(),I=this.placed.size-this.depth-this.$from.depth,N=this.$from,B=this.close($<0?this.$to:N.doc.resolve($));if(!B)return null;let j=this.placed,U=N.depth,q=B.depth;for(;U&&q&&j.childCount==1;)j=j.firstChild.content,U--,q--;let Y=new Slice(j,U,q);return $>-1?new ReplaceAroundStep(N.pos,$,this.$to.pos,this.$to.end(),Y,I):Y.size||N.pos!=this.$to.pos?new ReplaceStep(N.pos,B.pos,Y):null}findFittable(){let $=this.unplaced.openStart;for(let I=this.unplaced.content,N=0,B=this.unplaced.openEnd;N<$;N++){let j=I.firstChild;if(I.childCount>1&&(B=0),j.type.spec.isolating&&B<=N){$=N;break}I=j.content}for(let I=1;I<=2;I++)for(let N=I==1?$:this.unplaced.openStart;N>=0;N--){let B,j=null;N?(j=contentAt(this.unplaced.content,N-1).firstChild,B=j.content):B=this.unplaced.content;let U=B.firstChild;for(let q=this.depth;q>=0;q--){let{type:Y,match:K}=this.frontier[q],G,J=null;if(I==1&&(U?K.matchType(U.type)||(J=K.fillBefore(Fragment.from(U),!1)):j&&Y.compatibleContent(j.type)))return{sliceDepth:N,frontierDepth:q,parent:j,inject:J};if(I==2&&U&&(G=K.findWrapping(U.type)))return{sliceDepth:N,frontierDepth:q,parent:j,wrap:G};if(j&&K.matchType(j.type))break}}}openMore(){let{content:$,openStart:I,openEnd:N}=this.unplaced,B=contentAt($,I);return!B.childCount||B.firstChild.isLeaf?!1:(this.unplaced=new Slice($,I+1,Math.max(N,B.size+I>=$.size-N?I+1:0)),!0)}dropNode(){let{content:$,openStart:I,openEnd:N}=this.unplaced,B=contentAt($,I);if(B.childCount<=1&&I>0){let j=$.size-I<=I+B.size;this.unplaced=new Slice(dropFromFragment($,I-1,1),I-1,j?I-1:N)}else this.unplaced=new Slice(dropFromFragment($,I,1),I,N)}placeNodes({sliceDepth:$,frontierDepth:I,parent:N,inject:B,wrap:j}){for(;this.depth>I;)this.closeFrontierNode();if(j)for(let re=0;re<j.length;re++)this.openFrontierNode(j[re]);let U=this.unplaced,q=N?N.content:U.content,Y=U.openStart-$,K=0,G=[],{match:J,type:Z}=this.frontier[I];if(B){for(let re=0;re<B.childCount;re++)G.push(B.child(re));J=J.matchFragment(B)}let ee=q.size+$-(U.content.size-U.openEnd);for(;K<q.childCount;){let re=q.child(K),se=J.matchType(re.type);if(!se)break;K++,(K>1||Y==0||re.content.size)&&(J=se,G.push(closeNodeStart(re.mark(Z.allowedMarks(re.marks)),K==1?Y:0,K==q.childCount?ee:-1)))}let te=K==q.childCount;te||(ee=-1),this.placed=addToFragment(this.placed,I,Fragment.from(G)),this.frontier[I].match=J,te&&ee<0&&N&&N.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let re=0,se=q;re<ee;re++){let ne=se.lastChild;this.frontier.push({type:ne.type,match:ne.contentMatchAt(ne.childCount)}),se=ne.content}this.unplaced=te?$==0?Slice.empty:new Slice(dropFromFragment(U.content,$-1,1),$-1,ee<0?U.openEnd:$-1):new Slice(dropFromFragment(U.content,$,K),U.openStart,U.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let $=this.frontier[this.depth],I;if(!$.type.isTextblock||!contentAfterFits(this.$to,this.$to.depth,$.type,$.match,!1)||this.$to.depth==this.depth&&(I=this.findCloseLevel(this.$to))&&I.depth==this.depth)return-1;let{depth:N}=this.$to,B=this.$to.after(N);for(;N>1&&B==this.$to.end(--N);)++B;return B}findCloseLevel($){e:for(let I=Math.min(this.depth,$.depth);I>=0;I--){let{match:N,type:B}=this.frontier[I],j=I<$.depth&&$.end(I+1)==$.pos+($.depth-(I+1)),U=contentAfterFits($,I,B,N,j);if(U){for(let q=I-1;q>=0;q--){let{match:Y,type:K}=this.frontier[q],G=contentAfterFits($,q,K,Y,!0);if(!G||G.childCount)continue e}return{depth:I,fit:U,move:j?$.doc.resolve($.after(I+1)):$}}}}close($){let I=this.findCloseLevel($);if(!I)return null;for(;this.depth>I.depth;)this.closeFrontierNode();I.fit.childCount&&(this.placed=addToFragment(this.placed,I.depth,I.fit)),$=I.move;for(let N=I.depth+1;N<=$.depth;N++){let B=$.node(N),j=B.type.contentMatch.fillBefore(B.content,!0,$.index(N));this.openFrontierNode(B.type,B.attrs,j)}return $}openFrontierNode($,I=null,N){let B=this.frontier[this.depth];B.match=B.match.matchType($),this.placed=addToFragment(this.placed,this.depth,Fragment.from($.create(I,N))),this.frontier.push({type:$,match:$.contentMatch})}closeFrontierNode(){let I=this.frontier.pop().match.fillBefore(Fragment.empty,!0);I.childCount&&(this.placed=addToFragment(this.placed,this.frontier.length,I))}}function dropFromFragment(M,$,I){return $==0?M.cutByIndex(I,M.childCount):M.replaceChild(0,M.firstChild.copy(dropFromFragment(M.firstChild.content,$-1,I)))}function addToFragment(M,$,I){return $==0?M.append(I):M.replaceChild(M.childCount-1,M.lastChild.copy(addToFragment(M.lastChild.content,$-1,I)))}function contentAt(M,$){for(let I=0;I<$;I++)M=M.firstChild.content;return M}function closeNodeStart(M,$,I){if($<=0)return M;let N=M.content;return $>1&&(N=N.replaceChild(0,closeNodeStart(N.firstChild,$-1,N.childCount==1?I-1:0))),$>0&&(N=M.type.contentMatch.fillBefore(N).append(N),I<=0&&(N=N.append(M.type.contentMatch.matchFragment(N).fillBefore(Fragment.empty,!0)))),M.copy(N)}function contentAfterFits(M,$,I,N,B){let j=M.node($),U=B?M.indexAfter($):M.index($);if(U==j.childCount&&!I.compatibleContent(j.type))return null;let q=N.fillBefore(j.content,!0,U);return q&&!invalidMarks(I,j.content,U)?q:null}function invalidMarks(M,$,I){for(let N=I;N<$.childCount;N++)if(!M.allowsMarks($.child(N).marks))return!0;return!1}function definesContent(M){return M.spec.defining||M.spec.definingForContent}function replaceRange(M,$,I,N){if(!N.size)return M.deleteRange($,I);let B=M.doc.resolve($),j=M.doc.resolve(I);if(fitsTrivially(B,j,N))return M.step(new ReplaceStep($,I,N));let U=coveredDepths(B,M.doc.resolve(I));U[U.length-1]==0&&U.pop();let q=-(B.depth+1);U.unshift(q);for(let Z=B.depth,ee=B.pos-1;Z>0;Z--,ee--){let te=B.node(Z).type.spec;if(te.defining||te.definingAsContext||te.isolating)break;U.indexOf(Z)>-1?q=Z:B.before(Z)==ee&&U.splice(1,0,-Z)}let Y=U.indexOf(q),K=[],G=N.openStart;for(let Z=N.content,ee=0;;ee++){let te=Z.firstChild;if(K.push(te),ee==N.openStart)break;Z=te.content}for(let Z=G-1;Z>=0;Z--){let ee=K[Z].type,te=definesContent(ee);if(te&&B.node(Y).type!=ee)G=Z;else if(te||!ee.isTextblock)break}for(let Z=N.openStart;Z>=0;Z--){let ee=(Z+G+1)%(N.openStart+1),te=K[ee];if(te)for(let re=0;re<U.length;re++){let se=U[(re+Y)%U.length],ne=!0;se<0&&(ne=!1,se=-se);let le=B.node(se-1),ge=B.index(se-1);if(le.canReplaceWith(ge,ge,te.type,te.marks))return M.replace(B.before(se),ne?j.after(se):I,new Slice(closeFragment(N.content,0,N.openStart,ee),ee,N.openEnd))}}let J=M.steps.length;for(let Z=U.length-1;Z>=0&&(M.replace($,I,N),!(M.steps.length>J));Z--){let ee=U[Z];ee<0||($=B.before(ee),I=j.after(ee))}}function closeFragment(M,$,I,N,B){if($<I){let j=M.firstChild;M=M.replaceChild(0,j.copy(closeFragment(j.content,$+1,I,N,j)))}if($>N){let j=B.contentMatchAt(0),U=j.fillBefore(M).append(M);M=U.append(j.matchFragment(U).fillBefore(Fragment.empty,!0))}return M}function replaceRangeWith(M,$,I,N){if(!N.isInline&&$==I&&M.doc.resolve($).parent.content.size){let B=insertPoint(M.doc,$,N.type);B!=null&&($=I=B)}M.replaceRange($,I,new Slice(Fragment.from(N),0,0))}function deleteRange$1(M,$,I){let N=M.doc.resolve($),B=M.doc.resolve(I),j=coveredDepths(N,B);for(let U=0;U<j.length;U++){let q=j[U],Y=U==j.length-1;if(Y&&q==0||N.node(q).type.contentMatch.validEnd)return M.delete(N.start(q),B.end(q));if(q>0&&(Y||N.node(q-1).canReplace(N.index(q-1),B.indexAfter(q-1))))return M.delete(N.before(q),B.after(q))}for(let U=1;U<=N.depth&&U<=B.depth;U++)if($-N.start(U)==N.depth-U&&I>N.end(U)&&B.end(U)-I!=B.depth-U)return M.delete(N.before(U),I);M.delete($,I)}function coveredDepths(M,$){let I=[],N=Math.min(M.depth,$.depth);for(let B=N;B>=0;B--){let j=M.start(B);if(j<M.pos-(M.depth-B)||$.end(B)>$.pos+($.depth-B)||M.node(B).type.spec.isolating||$.node(B).type.spec.isolating)break;(j==$.start(B)||B==M.depth&&B==$.depth&&M.parent.inlineContent&&$.parent.inlineContent&&B&&$.start(B-1)==j-1)&&I.push(B)}return I}class AttrStep extends Step{constructor($,I,N){super(),this.pos=$,this.attr=I,this.value=N}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at attribute step's position");let N=Object.create(null);for(let j in I.attrs)N[j]=I.attrs[j];N[this.attr]=this.value;let B=I.type.create(N,null,I.marks);return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(B),0,I.isLeaf?0:1))}getMap(){return StepMap.empty}invert($){return new AttrStep(this.pos,this.attr,$.nodeAt(this.pos).attrs[this.attr])}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new AttrStep(I.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON($,I){if(typeof I.pos!="number"||typeof I.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new AttrStep(I.pos,I.attr,I.value)}}Step.jsonID("attr",AttrStep);let TransformError=class extends Error{};TransformError=function M($){let I=Error.call(this,$);return I.__proto__=M.prototype,I};TransformError.prototype=Object.create(Error.prototype);TransformError.prototype.constructor=TransformError;TransformError.prototype.name="TransformError";class Transform{constructor($){this.doc=$,this.steps=[],this.docs=[],this.mapping=new Mapping}get before(){return this.docs.length?this.docs[0]:this.doc}step($){let I=this.maybeStep($);if(I.failed)throw new TransformError(I.failed);return this}maybeStep($){let I=$.apply(this.doc);return I.failed||this.addStep($,I.doc),I}get docChanged(){return this.steps.length>0}addStep($,I){this.docs.push(this.doc),this.steps.push($),this.mapping.appendMap($.getMap()),this.doc=I}replace($,I=$,N=Slice.empty){let B=replaceStep(this.doc,$,I,N);return B&&this.step(B),this}replaceWith($,I,N){return this.replace($,I,new Slice(Fragment.from(N),0,0))}delete($,I){return this.replace($,I,Slice.empty)}insert($,I){return this.replaceWith($,$,I)}replaceRange($,I,N){return replaceRange(this,$,I,N),this}replaceRangeWith($,I,N){return replaceRangeWith(this,$,I,N),this}deleteRange($,I){return deleteRange$1(this,$,I),this}lift($,I){return lift$2(this,$,I),this}join($,I=1){return join(this,$,I),this}wrap($,I){return wrap$1(this,$,I),this}setBlockType($,I=$,N,B=null){return setBlockType$1(this,$,I,N,B),this}setNodeMarkup($,I,N=null,B){return setNodeMarkup(this,$,I,N,B),this}setNodeAttribute($,I,N){return this.step(new AttrStep($,I,N)),this}addNodeMark($,I){return this.step(new AddNodeMarkStep($,I)),this}removeNodeMark($,I){if(!(I instanceof Mark$1)){let N=this.doc.nodeAt($);if(!N)throw new RangeError("No node at position "+$);if(I=I.isInSet(N.marks),!I)return this}return this.step(new RemoveNodeMarkStep($,I)),this}split($,I=1,N){return split(this,$,I,N),this}addMark($,I,N){return addMark(this,$,I,N),this}removeMark($,I,N){return removeMark(this,$,I,N),this}clearIncompatible($,I,N){return clearIncompatible(this,$,I,N),this}}const classesById=Object.create(null);class Selection{constructor($,I,N){this.$anchor=$,this.$head=I,this.ranges=N||[new SelectionRange($.min(I),$.max(I))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let $=this.ranges;for(let I=0;I<$.length;I++)if($[I].$from.pos!=$[I].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace($,I=Slice.empty){let N=I.content.lastChild,B=null;for(let q=0;q<I.openEnd;q++)B=N,N=N.lastChild;let j=$.steps.length,U=this.ranges;for(let q=0;q<U.length;q++){let{$from:Y,$to:K}=U[q],G=$.mapping.slice(j);$.replaceRange(G.map(Y.pos),G.map(K.pos),q?Slice.empty:I),q==0&&selectionToInsertionEnd$1($,j,(N?N.isInline:B&&B.isTextblock)?-1:1)}}replaceWith($,I){let N=$.steps.length,B=this.ranges;for(let j=0;j<B.length;j++){let{$from:U,$to:q}=B[j],Y=$.mapping.slice(N),K=Y.map(U.pos),G=Y.map(q.pos);j?$.deleteRange(K,G):($.replaceRangeWith(K,G,I),selectionToInsertionEnd$1($,N,I.isInline?-1:1))}}static findFrom($,I,N=!1){let B=$.parent.inlineContent?new TextSelection($):findSelectionIn($.node(0),$.parent,$.pos,$.index(),I,N);if(B)return B;for(let j=$.depth-1;j>=0;j--){let U=I<0?findSelectionIn($.node(0),$.node(j),$.before(j+1),$.index(j),I,N):findSelectionIn($.node(0),$.node(j),$.after(j+1),$.index(j)+1,I,N);if(U)return U}return null}static near($,I=1){return this.findFrom($,I)||this.findFrom($,-I)||new AllSelection($.node(0))}static atStart($){return findSelectionIn($,$,0,0,1)||new AllSelection($)}static atEnd($){return findSelectionIn($,$,$.content.size,$.childCount,-1)||new AllSelection($)}static fromJSON($,I){if(!I||!I.type)throw new RangeError("Invalid input for Selection.fromJSON");let N=classesById[I.type];if(!N)throw new RangeError(`No selection type ${I.type} defined`);return N.fromJSON($,I)}static jsonID($,I){if($ in classesById)throw new RangeError("Duplicate use of selection JSON ID "+$);return classesById[$]=I,I.prototype.jsonID=$,I}getBookmark(){return TextSelection.between(this.$anchor,this.$head).getBookmark()}}Selection.prototype.visible=!0;class SelectionRange{constructor($,I){this.$from=$,this.$to=I}}let warnedAboutTextSelection=!1;function checkTextSelection(M){!warnedAboutTextSelection&&!M.parent.inlineContent&&(warnedAboutTextSelection=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+M.parent.type.name+")"))}class TextSelection extends Selection{constructor($,I=$){checkTextSelection($),checkTextSelection(I),super($,I)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map($,I){let N=$.resolve(I.map(this.head));if(!N.parent.inlineContent)return Selection.near(N);let B=$.resolve(I.map(this.anchor));return new TextSelection(B.parent.inlineContent?B:N,N)}replace($,I=Slice.empty){if(super.replace($,I),I==Slice.empty){let N=this.$from.marksAcross(this.$to);N&&$.ensureMarks(N)}}eq($){return $ instanceof TextSelection&&$.anchor==this.anchor&&$.head==this.head}getBookmark(){return new TextBookmark(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON($,I){if(typeof I.anchor!="number"||typeof I.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new TextSelection($.resolve(I.anchor),$.resolve(I.head))}static create($,I,N=I){let B=$.resolve(I);return new this(B,N==I?B:$.resolve(N))}static between($,I,N){let B=$.pos-I.pos;if((!N||B)&&(N=B>=0?1:-1),!I.parent.inlineContent){let j=Selection.findFrom(I,N,!0)||Selection.findFrom(I,-N,!0);if(j)I=j.$head;else return Selection.near(I,N)}return $.parent.inlineContent||(B==0?$=I:($=(Selection.findFrom($,-N,!0)||Selection.findFrom($,N,!0)).$anchor,$.pos<I.pos!=B<0&&($=I))),new TextSelection($,I)}}Selection.jsonID("text",TextSelection);class TextBookmark{constructor($,I){this.anchor=$,this.head=I}map($){return new TextBookmark($.map(this.anchor),$.map(this.head))}resolve($){return TextSelection.between($.resolve(this.anchor),$.resolve(this.head))}}class NodeSelection extends Selection{constructor($){let I=$.nodeAfter,N=$.node(0).resolve($.pos+I.nodeSize);super($,N),this.node=I}map($,I){let{deleted:N,pos:B}=I.mapResult(this.anchor),j=$.resolve(B);return N?Selection.near(j):new NodeSelection(j)}content(){return new Slice(Fragment.from(this.node),0,0)}eq($){return $ instanceof NodeSelection&&$.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new NodeBookmark(this.anchor)}static fromJSON($,I){if(typeof I.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new NodeSelection($.resolve(I.anchor))}static create($,I){return new NodeSelection($.resolve(I))}static isSelectable($){return!$.isText&&$.type.spec.selectable!==!1}}NodeSelection.prototype.visible=!1;Selection.jsonID("node",NodeSelection);class NodeBookmark{constructor($){this.anchor=$}map($){let{deleted:I,pos:N}=$.mapResult(this.anchor);return I?new TextBookmark(N,N):new NodeBookmark(N)}resolve($){let I=$.resolve(this.anchor),N=I.nodeAfter;return N&&NodeSelection.isSelectable(N)?new NodeSelection(I):Selection.near(I)}}class AllSelection extends Selection{constructor($){super($.resolve(0),$.resolve($.content.size))}replace($,I=Slice.empty){if(I==Slice.empty){$.delete(0,$.doc.content.size);let N=Selection.atStart($.doc);N.eq($.selection)||$.setSelection(N)}else super.replace($,I)}toJSON(){return{type:"all"}}static fromJSON($){return new AllSelection($)}map($){return new AllSelection($)}eq($){return $ instanceof AllSelection}getBookmark(){return AllBookmark}}Selection.jsonID("all",AllSelection);const AllBookmark={map(){return this},resolve(M){return new AllSelection(M)}};function findSelectionIn(M,$,I,N,B,j=!1){if($.inlineContent)return TextSelection.create(M,I);for(let U=N-(B>0?0:1);B>0?U<$.childCount:U>=0;U+=B){let q=$.child(U);if(q.isAtom){if(!j&&NodeSelection.isSelectable(q))return NodeSelection.create(M,I-(B<0?q.nodeSize:0))}else{let Y=findSelectionIn(M,q,I+B,B<0?q.childCount:0,B,j);if(Y)return Y}I+=q.nodeSize*B}return null}function selectionToInsertionEnd$1(M,$,I){let N=M.steps.length-1;if(N<$)return;let B=M.steps[N];if(!(B instanceof ReplaceStep||B instanceof ReplaceAroundStep))return;let j=M.mapping.maps[N],U;j.forEach((q,Y,K,G)=>{U==null&&(U=G)}),M.setSelection(Selection.near(M.doc.resolve(U),I))}const UPDATED_SEL=1,UPDATED_MARKS=2,UPDATED_SCROLL=4;class Transaction extends Transform{constructor($){super($.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=$.selection,this.storedMarks=$.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection($){if($.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=$,this.curSelectionFor=this.steps.length,this.updated=(this.updated|UPDATED_SEL)&~UPDATED_MARKS,this.storedMarks=null,this}get selectionSet(){return(this.updated&UPDATED_SEL)>0}setStoredMarks($){return this.storedMarks=$,this.updated|=UPDATED_MARKS,this}ensureMarks($){return Mark$1.sameSet(this.storedMarks||this.selection.$from.marks(),$)||this.setStoredMarks($),this}addStoredMark($){return this.ensureMarks($.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark($){return this.ensureMarks($.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&UPDATED_MARKS)>0}addStep($,I){super.addStep($,I),this.updated=this.updated&~UPDATED_MARKS,this.storedMarks=null}setTime($){return this.time=$,this}replaceSelection($){return this.selection.replace(this,$),this}replaceSelectionWith($,I=!0){let N=this.selection;return I&&($=$.mark(this.storedMarks||(N.empty?N.$from.marks():N.$from.marksAcross(N.$to)||Mark$1.none))),N.replaceWith(this,$),this}deleteSelection(){return this.selection.replace(this),this}insertText($,I,N){let B=this.doc.type.schema;if(I==null)return $?this.replaceSelectionWith(B.text($),!0):this.deleteSelection();{if(N==null&&(N=I),N=N??I,!$)return this.deleteRange(I,N);let j=this.storedMarks;if(!j){let U=this.doc.resolve(I);j=N==I?U.marks():U.marksAcross(this.doc.resolve(N))}return this.replaceRangeWith(I,N,B.text($,j)),this.selection.empty||this.setSelection(Selection.near(this.selection.$to)),this}}setMeta($,I){return this.meta[typeof $=="string"?$:$.key]=I,this}getMeta($){return this.meta[typeof $=="string"?$:$.key]}get isGeneric(){for(let $ in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=UPDATED_SCROLL,this}get scrolledIntoView(){return(this.updated&UPDATED_SCROLL)>0}}function bind$7(M,$){return!$||!M?M:M.bind($)}class FieldDesc{constructor($,I,N){this.name=$,this.init=bind$7(I.init,N),this.apply=bind$7(I.apply,N)}}const baseFields=[new FieldDesc("doc",{init(M){return M.doc||M.schema.topNodeType.createAndFill()},apply(M){return M.doc}}),new FieldDesc("selection",{init(M,$){return M.selection||Selection.atStart($.doc)},apply(M){return M.selection}}),new FieldDesc("storedMarks",{init(M){return M.storedMarks||null},apply(M,$,I,N){return N.selection.$cursor?M.storedMarks:null}}),new FieldDesc("scrollToSelection",{init(){return 0},apply(M,$){return M.scrolledIntoView?$+1:$}})];class Configuration{constructor($,I){this.schema=$,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=baseFields.slice(),I&&I.forEach(N=>{if(this.pluginsByKey[N.key])throw new RangeError("Adding different instances of a keyed plugin ("+N.key+")");this.plugins.push(N),this.pluginsByKey[N.key]=N,N.spec.state&&this.fields.push(new FieldDesc(N.key,N.spec.state,N))})}}class EditorState{constructor($){this.config=$}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply($){return this.applyTransaction($).state}filterTransaction($,I=-1){for(let N=0;N<this.config.plugins.length;N++)if(N!=I){let B=this.config.plugins[N];if(B.spec.filterTransaction&&!B.spec.filterTransaction.call(B,$,this))return!1}return!0}applyTransaction($){if(!this.filterTransaction($))return{state:this,transactions:[]};let I=[$],N=this.applyInner($),B=null;for(;;){let j=!1;for(let U=0;U<this.config.plugins.length;U++){let q=this.config.plugins[U];if(q.spec.appendTransaction){let Y=B?B[U].n:0,K=B?B[U].state:this,G=Y<I.length&&q.spec.appendTransaction.call(q,Y?I.slice(Y):I,K,N);if(G&&N.filterTransaction(G,U)){if(G.setMeta("appendedTransaction",$),!B){B=[];for(let J=0;J<this.config.plugins.length;J++)B.push(J<U?{state:N,n:I.length}:{state:this,n:0})}I.push(G),N=N.applyInner(G),j=!0}B&&(B[U]={state:N,n:I.length})}}if(!j)return{state:N,transactions:I}}}applyInner($){if(!$.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let I=new EditorState(this.config),N=this.config.fields;for(let B=0;B<N.length;B++){let j=N[B];I[j.name]=j.apply($,this[j.name],this,I)}return I}get tr(){return new Transaction(this)}static create($){let I=new Configuration($.doc?$.doc.type.schema:$.schema,$.plugins),N=new EditorState(I);for(let B=0;B<I.fields.length;B++)N[I.fields[B].name]=I.fields[B].init($,N);return N}reconfigure($){let I=new Configuration(this.schema,$.plugins),N=I.fields,B=new EditorState(I);for(let j=0;j<N.length;j++){let U=N[j].name;B[U]=this.hasOwnProperty(U)?this[U]:N[j].init($,B)}return B}toJSON($){let I={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(I.storedMarks=this.storedMarks.map(N=>N.toJSON())),$&&typeof $=="object")for(let N in $){if(N=="doc"||N=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let B=$[N],j=B.spec.state;j&&j.toJSON&&(I[N]=j.toJSON.call(B,this[B.key]))}return I}static fromJSON($,I,N){if(!I)throw new RangeError("Invalid input for EditorState.fromJSON");if(!$.schema)throw new RangeError("Required config field 'schema' missing");let B=new Configuration($.schema,$.plugins),j=new EditorState(B);return B.fields.forEach(U=>{if(U.name=="doc")j.doc=Node$2.fromJSON($.schema,I.doc);else if(U.name=="selection")j.selection=Selection.fromJSON(j.doc,I.selection);else if(U.name=="storedMarks")I.storedMarks&&(j.storedMarks=I.storedMarks.map($.schema.markFromJSON));else{if(N)for(let q in N){let Y=N[q],K=Y.spec.state;if(Y.key==U.name&&K&&K.fromJSON&&Object.prototype.hasOwnProperty.call(I,q)){j[U.name]=K.fromJSON.call(Y,$,I[q],j);return}}j[U.name]=U.init($,j)}}),j}}function bindProps(M,$,I){for(let N in M){let B=M[N];B instanceof Function?B=B.bind($):N=="handleDOMEvents"&&(B=bindProps(B,$,{})),I[N]=B}return I}class Plugin{constructor($){this.spec=$,this.props={},$.props&&bindProps($.props,this,this.props),this.key=$.key?$.key.key:createKey("plugin")}getState($){return $[this.key]}}const keys$3=Object.create(null);function createKey(M){return M in keys$3?M+"$"+ ++keys$3[M]:(keys$3[M]=0,M+"$")}class PluginKey{constructor($="key"){this.key=createKey($)}get($){return $.config.pluginsByKey[this.key]}getState($){return $[this.key]}}const state=Object.freeze(Object.defineProperty({__proto__:null,AllSelection,EditorState,NodeSelection,Plugin,PluginKey,Selection,SelectionRange,TextSelection,Transaction},Symbol.toStringTag,{value:"Module"})),domIndex=function(M){for(var $=0;;$++)if(M=M.previousSibling,!M)return $},parentNode=function(M){let $=M.assignedSlot||M.parentNode;return $&&$.nodeType==11?$.host:$};let reusedRange=null;const textRange=function(M,$,I){let N=reusedRange||(reusedRange=document.createRange());return N.setEnd(M,I??M.nodeValue.length),N.setStart(M,$||0),N},isEquivalentPosition=function(M,$,I,N){return I&&(scanFor(M,$,I,N,-1)||scanFor(M,$,I,N,1))},atomElements=/^(img|br|input|textarea|hr)$/i;function scanFor(M,$,I,N,B){for(;;){if(M==I&&$==N)return!0;if($==(B<0?0:nodeSize(M))){let j=M.parentNode;if(!j||j.nodeType!=1||hasBlockDesc(M)||atomElements.test(M.nodeName)||M.contentEditable=="false")return!1;$=domIndex(M)+(B<0?0:1),M=j}else if(M.nodeType==1){if(M=M.childNodes[$+(B<0?-1:0)],M.contentEditable=="false")return!1;$=B<0?nodeSize(M):0}else return!1}}function nodeSize(M){return M.nodeType==3?M.nodeValue.length:M.childNodes.length}function isOnEdge(M,$,I){for(let N=$==0,B=$==nodeSize(M);N||B;){if(M==I)return!0;let j=domIndex(M);if(M=M.parentNode,!M)return!1;N=N&&j==0,B=B&&j==nodeSize(M)}}function hasBlockDesc(M){let $;for(let I=M;I&&!($=I.pmViewDesc);I=I.parentNode);return $&&$.node&&$.node.isBlock&&($.dom==M||$.contentDOM==M)}const selectionCollapsed=function(M){return M.focusNode&&isEquivalentPosition(M.focusNode,M.focusOffset,M.anchorNode,M.anchorOffset)};function keyEvent(M,$){let I=document.createEvent("Event");return I.initEvent("keydown",!0,!0),I.keyCode=M,I.key=I.code=$,I}function deepActiveElement(M){let $=M.activeElement;for(;$&&$.shadowRoot;)$=$.shadowRoot.activeElement;return $}const nav=typeof navigator<"u"?navigator:null,doc=typeof document<"u"?document:null,agent=nav&&nav.userAgent||"",ie_edge=/Edge\/(\d+)/.exec(agent),ie_upto10=/MSIE \d/.exec(agent),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(agent),ie$1=!!(ie_upto10||ie_11up||ie_edge),ie_version=ie_upto10?document.documentMode:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko=!ie$1&&/gecko\/(\d+)/i.test(agent);gecko&&+(/Firefox\/(\d+)/.exec(agent)||[0,0])[1];const _chrome=!ie$1&&/Chrome\/(\d+)/.exec(agent),chrome$1=!!_chrome,chrome_version=_chrome?+_chrome[1]:0,safari=!ie$1&&!!nav&&/Apple Computer/.test(nav.vendor),ios=safari&&(/Mobile\/\w+/.test(agent)||!!nav&&nav.maxTouchPoints>2),mac$3=ios||(nav?/Mac/.test(nav.platform):!1),android=/Android \d/.test(agent),webkit=!!doc&&"webkitFontSmoothing"in doc.documentElement.style,webkit_version=webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function windowRect(M){return{left:0,right:M.documentElement.clientWidth,top:0,bottom:M.documentElement.clientHeight}}function getSide(M,$){return typeof M=="number"?M:M[$]}function clientRect(M){let $=M.getBoundingClientRect(),I=$.width/M.offsetWidth||1,N=$.height/M.offsetHeight||1;return{left:$.left,right:$.left+M.clientWidth*I,top:$.top,bottom:$.top+M.clientHeight*N}}function scrollRectIntoView(M,$,I){let N=M.someProp("scrollThreshold")||0,B=M.someProp("scrollMargin")||5,j=M.dom.ownerDocument;for(let U=I||M.dom;U;U=parentNode(U)){if(U.nodeType!=1)continue;let q=U,Y=q==j.body,K=Y?windowRect(j):clientRect(q),G=0,J=0;if($.top<K.top+getSide(N,"top")?J=-(K.top-$.top+getSide(B,"top")):$.bottom>K.bottom-getSide(N,"bottom")&&(J=$.bottom-K.bottom+getSide(B,"bottom")),$.left<K.left+getSide(N,"left")?G=-(K.left-$.left+getSide(B,"left")):$.right>K.right-getSide(N,"right")&&(G=$.right-K.right+getSide(B,"right")),G||J)if(Y)j.defaultView.scrollBy(G,J);else{let Z=q.scrollLeft,ee=q.scrollTop;J&&(q.scrollTop+=J),G&&(q.scrollLeft+=G);let te=q.scrollLeft-Z,re=q.scrollTop-ee;$={left:$.left-te,top:$.top-re,right:$.right-te,bottom:$.bottom-re}}if(Y)break}}function storeScrollPos(M){let $=M.dom.getBoundingClientRect(),I=Math.max(0,$.top),N,B;for(let j=($.left+$.right)/2,U=I+1;U<Math.min(innerHeight,$.bottom);U+=5){let q=M.root.elementFromPoint(j,U);if(!q||q==M.dom||!M.dom.contains(q))continue;let Y=q.getBoundingClientRect();if(Y.top>=I-20){N=q,B=Y.top;break}}return{refDOM:N,refTop:B,stack:scrollStack(M.dom)}}function scrollStack(M){let $=[],I=M.ownerDocument;for(let N=M;N&&($.push({dom:N,top:N.scrollTop,left:N.scrollLeft}),M!=I);N=parentNode(N));return $}function resetScrollPos({refDOM:M,refTop:$,stack:I}){let N=M?M.getBoundingClientRect().top:0;restoreScrollStack(I,N==0?0:N-$)}function restoreScrollStack(M,$){for(let I=0;I<M.length;I++){let{dom:N,top:B,left:j}=M[I];N.scrollTop!=B+$&&(N.scrollTop=B+$),N.scrollLeft!=j&&(N.scrollLeft=j)}}let preventScrollSupported=null;function focusPreventScroll(M){if(M.setActive)return M.setActive();if(preventScrollSupported)return M.focus(preventScrollSupported);let $=scrollStack(M);M.focus(preventScrollSupported==null?{get preventScroll(){return preventScrollSupported={preventScroll:!0},!0}}:void 0),preventScrollSupported||(preventScrollSupported=!1,restoreScrollStack($,0))}function findOffsetInNode(M,$){let I,N=2e8,B,j=0,U=$.top,q=$.top;for(let Y=M.firstChild,K=0;Y;Y=Y.nextSibling,K++){let G;if(Y.nodeType==1)G=Y.getClientRects();else if(Y.nodeType==3)G=textRange(Y).getClientRects();else continue;for(let J=0;J<G.length;J++){let Z=G[J];if(Z.top<=U&&Z.bottom>=q){U=Math.max(Z.bottom,U),q=Math.min(Z.top,q);let ee=Z.left>$.left?Z.left-$.left:Z.right<$.left?$.left-Z.right:0;if(ee<N){I=Y,N=ee,B=ee&&I.nodeType==3?{left:Z.right<$.left?Z.right:Z.left,top:$.top}:$,Y.nodeType==1&&ee&&(j=K+($.left>=(Z.left+Z.right)/2?1:0));continue}}!I&&($.left>=Z.right&&$.top>=Z.top||$.left>=Z.left&&$.top>=Z.bottom)&&(j=K+1)}}return I&&I.nodeType==3?findOffsetInText(I,B):!I||N&&I.nodeType==1?{node:M,offset:j}:findOffsetInNode(I,B)}function findOffsetInText(M,$){let I=M.nodeValue.length,N=document.createRange();for(let B=0;B<I;B++){N.setEnd(M,B+1),N.setStart(M,B);let j=singleRect(N,1);if(j.top!=j.bottom&&inRect($,j))return{node:M,offset:B+($.left>=(j.left+j.right)/2?1:0)}}return{node:M,offset:0}}function inRect(M,$){return M.left>=$.left-1&&M.left<=$.right+1&&M.top>=$.top-1&&M.top<=$.bottom+1}function targetKludge(M,$){let I=M.parentNode;return I&&/^li$/i.test(I.nodeName)&&$.left<M.getBoundingClientRect().left?I:M}function posFromElement(M,$,I){let{node:N,offset:B}=findOffsetInNode($,I),j=-1;if(N.nodeType==1&&!N.firstChild){let U=N.getBoundingClientRect();j=U.left!=U.right&&I.left>(U.left+U.right)/2?1:-1}return M.docView.posFromDOM(N,B,j)}function posFromCaret(M,$,I,N){let B=-1;for(let j=$,U=!1;j!=M.dom;){let q=M.docView.nearestDesc(j,!0);if(!q)return null;if(q.dom.nodeType==1&&(q.node.isBlock&&q.parent&&!U||!q.contentDOM)){let Y=q.dom.getBoundingClientRect();if(q.node.isBlock&&q.parent&&!U&&(U=!0,Y.left>N.left||Y.top>N.top?B=q.posBefore:(Y.right<N.left||Y.bottom<N.top)&&(B=q.posAfter)),!q.contentDOM&&B<0)return(q.node.isBlock?N.top<(Y.top+Y.bottom)/2:N.left<(Y.left+Y.right)/2)?q.posBefore:q.posAfter}j=q.dom.parentNode}return B>-1?B:M.docView.posFromDOM($,I,-1)}function elementFromPoint(M,$,I){let N=M.childNodes.length;if(N&&I.top<I.bottom)for(let B=Math.max(0,Math.min(N-1,Math.floor(N*($.top-I.top)/(I.bottom-I.top))-2)),j=B;;){let U=M.childNodes[j];if(U.nodeType==1){let q=U.getClientRects();for(let Y=0;Y<q.length;Y++){let K=q[Y];if(inRect($,K))return elementFromPoint(U,$,K)}}if((j=(j+1)%N)==B)break}return M}function posAtCoords(M,$){let I=M.dom.ownerDocument,N,B=0;if(I.caretPositionFromPoint)try{let Y=I.caretPositionFromPoint($.left,$.top);Y&&({offsetNode:N,offset:B}=Y)}catch{}if(!N&&I.caretRangeFromPoint){let Y=I.caretRangeFromPoint($.left,$.top);Y&&({startContainer:N,startOffset:B}=Y)}let j=(M.root.elementFromPoint?M.root:I).elementFromPoint($.left,$.top),U;if(!j||!M.dom.contains(j.nodeType!=1?j.parentNode:j)){let Y=M.dom.getBoundingClientRect();if(!inRect($,Y)||(j=elementFromPoint(M.dom,$,Y),!j))return null}if(safari)for(let Y=j;N&&Y;Y=parentNode(Y))Y.draggable&&(N=void 0);if(j=targetKludge(j,$),N){if(gecko&&N.nodeType==1&&(B=Math.min(B,N.childNodes.length),B<N.childNodes.length)){let Y=N.childNodes[B],K;Y.nodeName=="IMG"&&(K=Y.getBoundingClientRect()).right<=$.left&&K.bottom>$.top&&B++}N==M.dom&&B==N.childNodes.length-1&&N.lastChild.nodeType==1&&$.top>N.lastChild.getBoundingClientRect().bottom?U=M.state.doc.content.size:(B==0||N.nodeType!=1||N.childNodes[B-1].nodeName!="BR")&&(U=posFromCaret(M,N,B,$))}U==null&&(U=posFromElement(M,j,$));let q=M.docView.nearestDesc(j,!0);return{pos:U,inside:q?q.posAtStart-q.border:-1}}function singleRect(M,$){let I=M.getClientRects();return I.length?I[$<0?0:I.length-1]:M.getBoundingClientRect()}const BIDI=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function coordsAtPos(M,$,I){let{node:N,offset:B,atom:j}=M.docView.domFromPos($,I<0?-1:1),U=webkit||gecko;if(N.nodeType==3)if(U&&(BIDI.test(N.nodeValue)||(I<0?!B:B==N.nodeValue.length))){let Y=singleRect(textRange(N,B,B),I);if(gecko&&B&&/\s/.test(N.nodeValue[B-1])&&B<N.nodeValue.length){let K=singleRect(textRange(N,B-1,B-1),-1);if(K.top==Y.top){let G=singleRect(textRange(N,B,B+1),-1);if(G.top!=Y.top)return flattenV(G,G.left<K.left)}}return Y}else{let Y=B,K=B,G=I<0?1:-1;return I<0&&!B?(K++,G=-1):I>=0&&B==N.nodeValue.length?(Y--,G=1):I<0?Y--:K++,flattenV(singleRect(textRange(N,Y,K),1),G<0)}if(!M.state.doc.resolve($-(j||0)).parent.inlineContent){if(j==null&&B&&(I<0||B==nodeSize(N))){let Y=N.childNodes[B-1];if(Y.nodeType==1)return flattenH(Y.getBoundingClientRect(),!1)}if(j==null&&B<nodeSize(N)){let Y=N.childNodes[B];if(Y.nodeType==1)return flattenH(Y.getBoundingClientRect(),!0)}return flattenH(N.getBoundingClientRect(),I>=0)}if(j==null&&B&&(I<0||B==nodeSize(N))){let Y=N.childNodes[B-1],K=Y.nodeType==3?textRange(Y,nodeSize(Y)-(U?0:1)):Y.nodeType==1&&(Y.nodeName!="BR"||!Y.nextSibling)?Y:null;if(K)return flattenV(singleRect(K,1),!1)}if(j==null&&B<nodeSize(N)){let Y=N.childNodes[B];for(;Y.pmViewDesc&&Y.pmViewDesc.ignoreForCoords;)Y=Y.nextSibling;let K=Y?Y.nodeType==3?textRange(Y,0,U?0:1):Y.nodeType==1?Y:null:null;if(K)return flattenV(singleRect(K,-1),!0)}return flattenV(singleRect(N.nodeType==3?textRange(N):N,-I),I>=0)}function flattenV(M,$){if(M.width==0)return M;let I=$?M.left:M.right;return{top:M.top,bottom:M.bottom,left:I,right:I}}function flattenH(M,$){if(M.height==0)return M;let I=$?M.top:M.bottom;return{top:I,bottom:I,left:M.left,right:M.right}}function withFlushedState(M,$,I){let N=M.state,B=M.root.activeElement;N!=$&&M.updateState($),B!=M.dom&&M.focus();try{return I()}finally{N!=$&&M.updateState(N),B!=M.dom&&B&&B.focus()}}function endOfTextblockVertical(M,$,I){let N=$.selection,B=I=="up"?N.$from:N.$to;return withFlushedState(M,$,()=>{let{node:j}=M.docView.domFromPos(B.pos,I=="up"?-1:1);for(;;){let q=M.docView.nearestDesc(j,!0);if(!q)break;if(q.node.isBlock){j=q.contentDOM||q.dom;break}j=q.dom.parentNode}let U=coordsAtPos(M,B.pos,1);for(let q=j.firstChild;q;q=q.nextSibling){let Y;if(q.nodeType==1)Y=q.getClientRects();else if(q.nodeType==3)Y=textRange(q,0,q.nodeValue.length).getClientRects();else continue;for(let K=0;K<Y.length;K++){let G=Y[K];if(G.bottom>G.top+1&&(I=="up"?U.top-G.top>(G.bottom-U.top)*2:G.bottom-U.bottom>(U.bottom-G.top)*2))return!1}}return!0})}const maybeRTL=/[\u0590-\u08ac]/;function endOfTextblockHorizontal(M,$,I){let{$head:N}=$.selection;if(!N.parent.isTextblock)return!1;let B=N.parentOffset,j=!B,U=B==N.parent.content.size,q=M.domSelection();return!maybeRTL.test(N.parent.textContent)||!q.modify?I=="left"||I=="backward"?j:U:withFlushedState(M,$,()=>{let{focusNode:Y,focusOffset:K,anchorNode:G,anchorOffset:J}=M.domSelectionRange(),Z=q.caretBidiLevel;q.modify("move",I,"character");let ee=N.depth?M.docView.domAfterPos(N.before()):M.dom,{focusNode:te,focusOffset:re}=M.domSelectionRange(),se=te&&!ee.contains(te.nodeType==1?te:te.parentNode)||Y==te&&K==re;try{q.collapse(G,J),Y&&(Y!=G||K!=J)&&q.extend&&q.extend(Y,K)}catch{}return Z!=null&&(q.caretBidiLevel=Z),se})}let cachedState=null,cachedDir=null,cachedResult=!1;function endOfTextblock(M,$,I){return cachedState==$&&cachedDir==I?cachedResult:(cachedState=$,cachedDir=I,cachedResult=I=="up"||I=="down"?endOfTextblockVertical(M,$,I):endOfTextblockHorizontal(M,$,I))}const NOT_DIRTY=0,CHILD_DIRTY=1,CONTENT_DIRTY=2,NODE_DIRTY=3;class ViewDesc{constructor($,I,N,B){this.parent=$,this.children=I,this.dom=N,this.contentDOM=B,this.dirty=NOT_DIRTY,N.pmViewDesc=this}matchesWidget($){return!1}matchesMark($){return!1}matchesNode($,I,N){return!1}matchesHack($){return!1}parseRule(){return null}stopEvent($){return!1}get size(){let $=0;for(let I=0;I<this.children.length;I++)$+=this.children[I].size;return $}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let $=0;$<this.children.length;$++)this.children[$].destroy()}posBeforeChild($){for(let I=0,N=this.posAtStart;;I++){let B=this.children[I];if(B==$)return N;N+=B.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM($,I,N){if(this.contentDOM&&this.contentDOM.contains($.nodeType==1?$:$.parentNode))if(N<0){let j,U;if($==this.contentDOM)j=$.childNodes[I-1];else{for(;$.parentNode!=this.contentDOM;)$=$.parentNode;j=$.previousSibling}for(;j&&!((U=j.pmViewDesc)&&U.parent==this);)j=j.previousSibling;return j?this.posBeforeChild(U)+U.size:this.posAtStart}else{let j,U;if($==this.contentDOM)j=$.childNodes[I];else{for(;$.parentNode!=this.contentDOM;)$=$.parentNode;j=$.nextSibling}for(;j&&!((U=j.pmViewDesc)&&U.parent==this);)j=j.nextSibling;return j?this.posBeforeChild(U):this.posAtEnd}let B;if($==this.dom&&this.contentDOM)B=I>domIndex(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))B=$.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(I==0)for(let j=$;;j=j.parentNode){if(j==this.dom){B=!1;break}if(j.previousSibling)break}if(B==null&&I==$.childNodes.length)for(let j=$;;j=j.parentNode){if(j==this.dom){B=!0;break}if(j.nextSibling)break}}return B??N>0?this.posAtEnd:this.posAtStart}nearestDesc($,I=!1){for(let N=!0,B=$;B;B=B.parentNode){let j=this.getDesc(B),U;if(j&&(!I||j.node))if(N&&(U=j.nodeDOM)&&!(U.nodeType==1?U.contains($.nodeType==1?$:$.parentNode):U==$))N=!1;else return j}}getDesc($){let I=$.pmViewDesc;for(let N=I;N;N=N.parent)if(N==this)return I}posFromDOM($,I,N){for(let B=$;B;B=B.parentNode){let j=this.getDesc(B);if(j)return j.localPosFromDOM($,I,N)}return-1}descAt($){for(let I=0,N=0;I<this.children.length;I++){let B=this.children[I],j=N+B.size;if(N==$&&j!=N){for(;!B.border&&B.children.length;)B=B.children[0];return B}if($<j)return B.descAt($-N-B.border);N=j}}domFromPos($,I){if(!this.contentDOM)return{node:this.dom,offset:0,atom:$+1};let N=0,B=0;for(let j=0;N<this.children.length;N++){let U=this.children[N],q=j+U.size;if(q>$||U instanceof TrailingHackViewDesc){B=$-j;break}j=q}if(B)return this.children[N].domFromPos(B-this.children[N].border,I);for(let j;N&&!(j=this.children[N-1]).size&&j instanceof WidgetViewDesc&&j.side>=0;N--);if(I<=0){let j,U=!0;for(;j=N?this.children[N-1]:null,!(!j||j.dom.parentNode==this.contentDOM);N--,U=!1);return j&&I&&U&&!j.border&&!j.domAtom?j.domFromPos(j.size,I):{node:this.contentDOM,offset:j?domIndex(j.dom)+1:0}}else{let j,U=!0;for(;j=N<this.children.length?this.children[N]:null,!(!j||j.dom.parentNode==this.contentDOM);N++,U=!1);return j&&U&&!j.border&&!j.domAtom?j.domFromPos(0,I):{node:this.contentDOM,offset:j?domIndex(j.dom):this.contentDOM.childNodes.length}}}parseRange($,I,N=0){if(this.children.length==0)return{node:this.contentDOM,from:$,to:I,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let B=-1,j=-1;for(let U=N,q=0;;q++){let Y=this.children[q],K=U+Y.size;if(B==-1&&$<=K){let G=U+Y.border;if($>=G&&I<=K-Y.border&&Y.node&&Y.contentDOM&&this.contentDOM.contains(Y.contentDOM))return Y.parseRange($,I,G);$=U;for(let J=q;J>0;J--){let Z=this.children[J-1];if(Z.size&&Z.dom.parentNode==this.contentDOM&&!Z.emptyChildAt(1)){B=domIndex(Z.dom)+1;break}$-=Z.size}B==-1&&(B=0)}if(B>-1&&(K>I||q==this.children.length-1)){I=K;for(let G=q+1;G<this.children.length;G++){let J=this.children[G];if(J.size&&J.dom.parentNode==this.contentDOM&&!J.emptyChildAt(-1)){j=domIndex(J.dom);break}I+=J.size}j==-1&&(j=this.contentDOM.childNodes.length);break}U=K}return{node:this.contentDOM,from:$,to:I,fromOffset:B,toOffset:j}}emptyChildAt($){if(this.border||!this.contentDOM||!this.children.length)return!1;let I=this.children[$<0?0:this.children.length-1];return I.size==0||I.emptyChildAt($)}domAfterPos($){let{node:I,offset:N}=this.domFromPos($,0);if(I.nodeType!=1||N==I.childNodes.length)throw new RangeError("No node after pos "+$);return I.childNodes[N]}setSelection($,I,N,B=!1){let j=Math.min($,I),U=Math.max($,I);for(let Z=0,ee=0;Z<this.children.length;Z++){let te=this.children[Z],re=ee+te.size;if(j>ee&&U<re)return te.setSelection($-ee-te.border,I-ee-te.border,N,B);ee=re}let q=this.domFromPos($,$?-1:1),Y=I==$?q:this.domFromPos(I,I?-1:1),K=N.getSelection(),G=!1;if((gecko||safari)&&$==I){let{node:Z,offset:ee}=q;if(Z.nodeType==3){if(G=!!(ee&&Z.nodeValue[ee-1]==`
- `),G&&ee==Z.nodeValue.length)for(let te=Z,re;te;te=te.parentNode){if(re=te.nextSibling){re.nodeName=="BR"&&(q=Y={node:re.parentNode,offset:domIndex(re)+1});break}let se=te.pmViewDesc;if(se&&se.node&&se.node.isBlock)break}}else{let te=Z.childNodes[ee-1];G=te&&(te.nodeName=="BR"||te.contentEditable=="false")}}if(gecko&&K.focusNode&&K.focusNode!=Y.node&&K.focusNode.nodeType==1){let Z=K.focusNode.childNodes[K.focusOffset];Z&&Z.contentEditable=="false"&&(B=!0)}if(!(B||G&&safari)&&isEquivalentPosition(q.node,q.offset,K.anchorNode,K.anchorOffset)&&isEquivalentPosition(Y.node,Y.offset,K.focusNode,K.focusOffset))return;let J=!1;if((K.extend||$==I)&&!G){K.collapse(q.node,q.offset);try{$!=I&&K.extend(Y.node,Y.offset),J=!0}catch{}}if(!J){if($>I){let ee=q;q=Y,Y=ee}let Z=document.createRange();Z.setEnd(Y.node,Y.offset),Z.setStart(q.node,q.offset),K.removeAllRanges(),K.addRange(Z)}}ignoreMutation($){return!this.contentDOM&&$.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty($,I){for(let N=0,B=0;B<this.children.length;B++){let j=this.children[B],U=N+j.size;if(N==U?$<=U&&I>=N:$<U&&I>N){let q=N+j.border,Y=U-j.border;if($>=q&&I<=Y){this.dirty=$==N||I==U?CONTENT_DIRTY:CHILD_DIRTY,$==q&&I==Y&&(j.contentLost||j.dom.parentNode!=this.contentDOM)?j.dirty=NODE_DIRTY:j.markDirty($-q,I-q);return}else j.dirty=j.dom==j.contentDOM&&j.dom.parentNode==this.contentDOM&&!j.children.length?CONTENT_DIRTY:NODE_DIRTY}N=U}this.dirty=CONTENT_DIRTY}markParentsDirty(){let $=1;for(let I=this.parent;I;I=I.parent,$++){let N=$==1?CONTENT_DIRTY:CHILD_DIRTY;I.dirty<N&&(I.dirty=N)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class WidgetViewDesc extends ViewDesc{constructor($,I,N,B){let j,U=I.type.toDOM;if(typeof U=="function"&&(U=U(N,()=>{if(!j)return B;if(j.parent)return j.parent.posBeforeChild(j)})),!I.type.spec.raw){if(U.nodeType!=1){let q=document.createElement("span");q.appendChild(U),U=q}U.contentEditable="false",U.classList.add("ProseMirror-widget")}super($,[],U,null),this.widget=I,this.widget=I,j=this}matchesWidget($){return this.dirty==NOT_DIRTY&&$.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent($){let I=this.widget.spec.stopEvent;return I?I($):!1}ignoreMutation($){return $.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class CompositionViewDesc extends ViewDesc{constructor($,I,N,B){super($,[],I,null),this.textDOM=N,this.text=B}get size(){return this.text.length}localPosFromDOM($,I){return $!=this.textDOM?this.posAtStart+(I?this.size:0):this.posAtStart+I}domFromPos($){return{node:this.textDOM,offset:$}}ignoreMutation($){return $.type==="characterData"&&$.target.nodeValue==$.oldValue}}class MarkViewDesc extends ViewDesc{constructor($,I,N,B){super($,[],N,B),this.mark=I}static create($,I,N,B){let j=B.nodeViews[I.type.name],U=j&&j(I,B,N);return(!U||!U.dom)&&(U=DOMSerializer.renderSpec(document,I.type.spec.toDOM(I,N))),new MarkViewDesc($,I,U.dom,U.contentDOM||U.dom)}parseRule(){return this.dirty&NODE_DIRTY||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark($){return this.dirty!=NODE_DIRTY&&this.mark.eq($)}markDirty($,I){if(super.markDirty($,I),this.dirty!=NOT_DIRTY){let N=this.parent;for(;!N.node;)N=N.parent;N.dirty<this.dirty&&(N.dirty=this.dirty),this.dirty=NOT_DIRTY}}slice($,I,N){let B=MarkViewDesc.create(this.parent,this.mark,!0,N),j=this.children,U=this.size;I<U&&(j=replaceNodes(j,I,U,N)),$>0&&(j=replaceNodes(j,0,$,N));for(let q=0;q<j.length;q++)j[q].parent=B;return B.children=j,B}}class NodeViewDesc extends ViewDesc{constructor($,I,N,B,j,U,q,Y,K){super($,[],j,U),this.node=I,this.outerDeco=N,this.innerDeco=B,this.nodeDOM=q,U&&this.updateChildren(Y,K)}static create($,I,N,B,j,U){let q=j.nodeViews[I.type.name],Y,K=q&&q(I,j,()=>{if(!Y)return U;if(Y.parent)return Y.parent.posBeforeChild(Y)},N,B),G=K&&K.dom,J=K&&K.contentDOM;if(I.isText){if(!G)G=document.createTextNode(I.text);else if(G.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else G||({dom:G,contentDOM:J}=DOMSerializer.renderSpec(document,I.type.spec.toDOM(I)));!J&&!I.isText&&G.nodeName!="BR"&&(G.hasAttribute("contenteditable")||(G.contentEditable="false"),I.type.spec.draggable&&(G.draggable=!0));let Z=G;return G=applyOuterDeco(G,N,I),K?Y=new CustomNodeViewDesc($,I,N,B,G,J||null,Z,K,j,U+1):I.isText?new TextViewDesc($,I,N,B,G,Z,j):new NodeViewDesc($,I,N,B,G,J||null,Z,j,U+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let $={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&($.preserveWhitespace="full"),!this.contentDOM)$.getContent=()=>this.node.content;else if(!this.contentLost)$.contentElement=this.contentDOM;else{for(let I=this.children.length-1;I>=0;I--){let N=this.children[I];if(this.dom.contains(N.dom.parentNode)){$.contentElement=N.dom.parentNode;break}}$.contentElement||($.getContent=()=>Fragment.empty)}return $}matchesNode($,I,N){return this.dirty==NOT_DIRTY&&$.eq(this.node)&&sameOuterDeco(I,this.outerDeco)&&N.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren($,I){let N=this.node.inlineContent,B=I,j=$.composing?this.localCompositionInfo($,I):null,U=j&&j.pos>-1?j:null,q=j&&j.pos<0,Y=new ViewTreeUpdater(this,U&&U.node,$);iterDeco(this.node,this.innerDeco,(K,G,J)=>{K.spec.marks?Y.syncToMarks(K.spec.marks,N,$):K.type.side>=0&&!J&&Y.syncToMarks(G==this.node.childCount?Mark$1.none:this.node.child(G).marks,N,$),Y.placeWidget(K,$,B)},(K,G,J,Z)=>{Y.syncToMarks(K.marks,N,$);let ee;Y.findNodeMatch(K,G,J,Z)||q&&$.state.selection.from>B&&$.state.selection.to<B+K.nodeSize&&(ee=Y.findIndexWithChild(j.node))>-1&&Y.updateNodeAt(K,G,J,ee,$)||Y.updateNextNode(K,G,J,$,Z)||Y.addNode(K,G,J,$,B),B+=K.nodeSize}),Y.syncToMarks([],N,$),this.node.isTextblock&&Y.addTextblockHacks(),Y.destroyRest(),(Y.changed||this.dirty==CONTENT_DIRTY)&&(U&&this.protectLocalComposition($,U),renderDescs(this.contentDOM,this.children,$),ios&&iosHacks(this.dom))}localCompositionInfo($,I){let{from:N,to:B}=$.state.selection;if(!($.state.selection instanceof TextSelection)||N<I||B>I+this.node.content.size)return null;let j=$.domSelectionRange(),U=nearbyTextNode(j.focusNode,j.focusOffset);if(!U||!this.dom.contains(U.parentNode))return null;if(this.node.inlineContent){let q=U.nodeValue,Y=findTextInFragment(this.node.content,q,N-I,B-I);return Y<0?null:{node:U,pos:Y,text:q}}else return{node:U,pos:-1,text:""}}protectLocalComposition($,{node:I,pos:N,text:B}){if(this.getDesc(I))return;let j=I;for(;j.parentNode!=this.contentDOM;j=j.parentNode){for(;j.previousSibling;)j.parentNode.removeChild(j.previousSibling);for(;j.nextSibling;)j.parentNode.removeChild(j.nextSibling);j.pmViewDesc&&(j.pmViewDesc=void 0)}let U=new CompositionViewDesc(this,j,I,B);$.input.compositionNodes.push(U),this.children=replaceNodes(this.children,N,N+B.length,$,U)}update($,I,N,B){return this.dirty==NODE_DIRTY||!$.sameMarkup(this.node)?!1:(this.updateInner($,I,N,B),!0)}updateInner($,I,N,B){this.updateOuterDeco(I),this.node=$,this.innerDeco=N,this.contentDOM&&this.updateChildren(B,this.posAtStart),this.dirty=NOT_DIRTY}updateOuterDeco($){if(sameOuterDeco($,this.outerDeco))return;let I=this.nodeDOM.nodeType!=1,N=this.dom;this.dom=patchOuterDeco(this.dom,this.nodeDOM,computeOuterDeco(this.outerDeco,this.node,I),computeOuterDeco($,this.node,I)),this.dom!=N&&(N.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=$}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function docViewDesc(M,$,I,N,B){return applyOuterDeco(N,$,M),new NodeViewDesc(void 0,M,$,I,N,N,N,B,0)}class TextViewDesc extends NodeViewDesc{constructor($,I,N,B,j,U,q){super($,I,N,B,j,null,U,q,0)}parseRule(){let $=this.nodeDOM.parentNode;for(;$&&$!=this.dom&&!$.pmIsDeco;)$=$.parentNode;return{skip:$||!0}}update($,I,N,B){return this.dirty==NODE_DIRTY||this.dirty!=NOT_DIRTY&&!this.inParent()||!$.sameMarkup(this.node)?!1:(this.updateOuterDeco(I),(this.dirty!=NOT_DIRTY||$.text!=this.node.text)&&$.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=$.text,B.trackWrites==this.nodeDOM&&(B.trackWrites=null)),this.node=$,this.dirty=NOT_DIRTY,!0)}inParent(){let $=this.parent.contentDOM;for(let I=this.nodeDOM;I;I=I.parentNode)if(I==$)return!0;return!1}domFromPos($){return{node:this.nodeDOM,offset:$}}localPosFromDOM($,I,N){return $==this.nodeDOM?this.posAtStart+Math.min(I,this.node.text.length):super.localPosFromDOM($,I,N)}ignoreMutation($){return $.type!="characterData"&&$.type!="selection"}slice($,I,N){let B=this.node.cut($,I),j=document.createTextNode(B.text);return new TextViewDesc(this.parent,B,this.outerDeco,this.innerDeco,j,j,N)}markDirty($,I){super.markDirty($,I),this.dom!=this.nodeDOM&&($==0||I==this.nodeDOM.nodeValue.length)&&(this.dirty=NODE_DIRTY)}get domAtom(){return!1}}class TrailingHackViewDesc extends ViewDesc{parseRule(){return{ignore:!0}}matchesHack($){return this.dirty==NOT_DIRTY&&this.dom.nodeName==$}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class CustomNodeViewDesc extends NodeViewDesc{constructor($,I,N,B,j,U,q,Y,K,G){super($,I,N,B,j,U,q,K,G),this.spec=Y}update($,I,N,B){if(this.dirty==NODE_DIRTY)return!1;if(this.spec.update){let j=this.spec.update($,I,N);return j&&this.updateInner($,I,N,B),j}else return!this.contentDOM&&!$.isLeaf?!1:super.update($,I,N,B)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection($,I,N,B){this.spec.setSelection?this.spec.setSelection($,I,N):super.setSelection($,I,N,B)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent($){return this.spec.stopEvent?this.spec.stopEvent($):!1}ignoreMutation($){return this.spec.ignoreMutation?this.spec.ignoreMutation($):super.ignoreMutation($)}}function renderDescs(M,$,I){let N=M.firstChild,B=!1;for(let j=0;j<$.length;j++){let U=$[j],q=U.dom;if(q.parentNode==M){for(;q!=N;)N=rm(N),B=!0;N=N.nextSibling}else B=!0,M.insertBefore(q,N);if(U instanceof MarkViewDesc){let Y=N?N.previousSibling:M.lastChild;renderDescs(U.contentDOM,U.children,I),N=Y?Y.nextSibling:M.firstChild}}for(;N;)N=rm(N),B=!0;B&&I.trackWrites==M&&(I.trackWrites=null)}const OuterDecoLevel=function(M){M&&(this.nodeName=M)};OuterDecoLevel.prototype=Object.create(null);const noDeco=[new OuterDecoLevel];function computeOuterDeco(M,$,I){if(M.length==0)return noDeco;let N=I?noDeco[0]:new OuterDecoLevel,B=[N];for(let j=0;j<M.length;j++){let U=M[j].type.attrs;if(U){U.nodeName&&B.push(N=new OuterDecoLevel(U.nodeName));for(let q in U){let Y=U[q];Y!=null&&(I&&B.length==1&&B.push(N=new OuterDecoLevel($.isInline?"span":"div")),q=="class"?N.class=(N.class?N.class+" ":"")+Y:q=="style"?N.style=(N.style?N.style+";":"")+Y:q!="nodeName"&&(N[q]=Y))}}}return B}function patchOuterDeco(M,$,I,N){if(I==noDeco&&N==noDeco)return $;let B=$;for(let j=0;j<N.length;j++){let U=N[j],q=I[j];if(j){let Y;q&&q.nodeName==U.nodeName&&B!=M&&(Y=B.parentNode)&&Y.nodeName.toLowerCase()==U.nodeName||(Y=document.createElement(U.nodeName),Y.pmIsDeco=!0,Y.appendChild(B),q=noDeco[0]),B=Y}patchAttributes(B,q||noDeco[0],U)}return B}function patchAttributes(M,$,I){for(let N in $)N!="class"&&N!="style"&&N!="nodeName"&&!(N in I)&&M.removeAttribute(N);for(let N in I)N!="class"&&N!="style"&&N!="nodeName"&&I[N]!=$[N]&&M.setAttribute(N,I[N]);if($.class!=I.class){let N=$.class?$.class.split(" ").filter(Boolean):[],B=I.class?I.class.split(" ").filter(Boolean):[];for(let j=0;j<N.length;j++)B.indexOf(N[j])==-1&&M.classList.remove(N[j]);for(let j=0;j<B.length;j++)N.indexOf(B[j])==-1&&M.classList.add(B[j]);M.classList.length==0&&M.removeAttribute("class")}if($.style!=I.style){if($.style){let N=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,B;for(;B=N.exec($.style);)M.style.removeProperty(B[1])}I.style&&(M.style.cssText+=I.style)}}function applyOuterDeco(M,$,I){return patchOuterDeco(M,M,noDeco,computeOuterDeco($,I,M.nodeType!=1))}function sameOuterDeco(M,$){if(M.length!=$.length)return!1;for(let I=0;I<M.length;I++)if(!M[I].type.eq($[I].type))return!1;return!0}function rm(M){let $=M.nextSibling;return M.parentNode.removeChild(M),$}class ViewTreeUpdater{constructor($,I,N){this.lock=I,this.view=N,this.index=0,this.stack=[],this.changed=!1,this.top=$,this.preMatch=preMatch($.node.content,$)}destroyBetween($,I){if($!=I){for(let N=$;N<I;N++)this.top.children[N].destroy();this.top.children.splice($,I-$),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks($,I,N){let B=0,j=this.stack.length>>1,U=Math.min(j,$.length);for(;B<U&&(B==j-1?this.top:this.stack[B+1<<1]).matchesMark($[B])&&$[B].type.spec.spanning!==!1;)B++;for(;B<j;)this.destroyRest(),this.top.dirty=NOT_DIRTY,this.index=this.stack.pop(),this.top=this.stack.pop(),j--;for(;j<$.length;){this.stack.push(this.top,this.index+1);let q=-1;for(let Y=this.index;Y<Math.min(this.index+3,this.top.children.length);Y++){let K=this.top.children[Y];if(K.matchesMark($[j])&&!this.isLocked(K.dom)){q=Y;break}}if(q>-1)q>this.index&&(this.changed=!0,this.destroyBetween(this.index,q)),this.top=this.top.children[this.index];else{let Y=MarkViewDesc.create(this.top,$[j],I,N);this.top.children.splice(this.index,0,Y),this.top=Y,this.changed=!0}this.index=0,j++}}findNodeMatch($,I,N,B){let j=-1,U;if(B>=this.preMatch.index&&(U=this.preMatch.matches[B-this.preMatch.index]).parent==this.top&&U.matchesNode($,I,N))j=this.top.children.indexOf(U,this.index);else for(let q=this.index,Y=Math.min(this.top.children.length,q+5);q<Y;q++){let K=this.top.children[q];if(K.matchesNode($,I,N)&&!this.preMatch.matched.has(K)){j=q;break}}return j<0?!1:(this.destroyBetween(this.index,j),this.index++,!0)}updateNodeAt($,I,N,B,j){let U=this.top.children[B];return U.dirty==NODE_DIRTY&&U.dom==U.contentDOM&&(U.dirty=CONTENT_DIRTY),U.update($,I,N,j)?(this.destroyBetween(this.index,B),this.index++,!0):!1}findIndexWithChild($){for(;;){let I=$.parentNode;if(!I)return-1;if(I==this.top.contentDOM){let N=$.pmViewDesc;if(N){for(let B=this.index;B<this.top.children.length;B++)if(this.top.children[B]==N)return B}return-1}$=I}}updateNextNode($,I,N,B,j){for(let U=this.index;U<this.top.children.length;U++){let q=this.top.children[U];if(q instanceof NodeViewDesc){let Y=this.preMatch.matched.get(q);if(Y!=null&&Y!=j)return!1;let K=q.dom;if(!(this.isLocked(K)&&!($.isText&&q.node&&q.node.isText&&q.nodeDOM.nodeValue==$.text&&q.dirty!=NODE_DIRTY&&sameOuterDeco(I,q.outerDeco)))&&q.update($,I,N,B))return this.destroyBetween(this.index,U),q.dom!=K&&(this.changed=!0),this.index++,!0;break}}return!1}addNode($,I,N,B,j){this.top.children.splice(this.index++,0,NodeViewDesc.create(this.top,$,I,N,B,j)),this.changed=!0}placeWidget($,I,N){let B=this.index<this.top.children.length?this.top.children[this.index]:null;if(B&&B.matchesWidget($)&&($==B.widget||!B.widget.type.toDOM.parentNode))this.index++;else{let j=new WidgetViewDesc(this.top,$,I,N);this.top.children.splice(this.index++,0,j),this.changed=!0}}addTextblockHacks(){let $=this.top.children[this.index-1],I=this.top;for(;$ instanceof MarkViewDesc;)I=$,$=I.children[I.children.length-1];(!$||!($ instanceof TextViewDesc)||/\n$/.test($.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test($.node.text))&&((safari||chrome$1)&&$&&$.dom.contentEditable=="false"&&this.addHackNode("IMG",I),this.addHackNode("BR",this.top))}addHackNode($,I){if(I==this.top&&this.index<I.children.length&&I.children[this.index].matchesHack($))this.index++;else{let N=document.createElement($);$=="IMG"&&(N.className="ProseMirror-separator",N.alt=""),$=="BR"&&(N.className="ProseMirror-trailingBreak");let B=new TrailingHackViewDesc(this.top,[],N,null);I!=this.top?I.children.push(B):I.children.splice(this.index++,0,B),this.changed=!0}}isLocked($){return this.lock&&($==this.lock||$.nodeType==1&&$.contains(this.lock.parentNode))}}function preMatch(M,$){let I=$,N=I.children.length,B=M.childCount,j=new Map,U=[];e:for(;B>0;){let q;for(;;)if(N){let K=I.children[N-1];if(K instanceof MarkViewDesc)I=K,N=K.children.length;else{q=K,N--;break}}else{if(I==$)break e;N=I.parent.children.indexOf(I),I=I.parent}let Y=q.node;if(Y){if(Y!=M.child(B-1))break;--B,j.set(q,B),U.push(q)}}return{index:B,matched:j,matches:U.reverse()}}function compareSide(M,$){return M.type.side-$.type.side}function iterDeco(M,$,I,N){let B=$.locals(M),j=0;if(B.length==0){for(let K=0;K<M.childCount;K++){let G=M.child(K);N(G,B,$.forChild(j,G),K),j+=G.nodeSize}return}let U=0,q=[],Y=null;for(let K=0;;){if(U<B.length&&B[U].to==j){let te=B[U++],re;for(;U<B.length&&B[U].to==j;)(re||(re=[te])).push(B[U++]);if(re){re.sort(compareSide);for(let se=0;se<re.length;se++)I(re[se],K,!!Y)}else I(te,K,!!Y)}let G,J;if(Y)J=-1,G=Y,Y=null;else if(K<M.childCount)J=K,G=M.child(K++);else break;for(let te=0;te<q.length;te++)q[te].to<=j&&q.splice(te--,1);for(;U<B.length&&B[U].from<=j&&B[U].to>j;)q.push(B[U++]);let Z=j+G.nodeSize;if(G.isText){let te=Z;U<B.length&&B[U].from<te&&(te=B[U].from);for(let re=0;re<q.length;re++)q[re].to<te&&(te=q[re].to);te<Z&&(Y=G.cut(te-j),G=G.cut(0,te-j),Z=te,J=-1)}let ee=G.isInline&&!G.isLeaf?q.filter(te=>!te.inline):q.slice();N(G,ee,$.forChild(j,G),J),j=Z}}function iosHacks(M){if(M.nodeName=="UL"||M.nodeName=="OL"){let $=M.style.cssText;M.style.cssText=$+"; list-style: square !important",window.getComputedStyle(M).listStyle,M.style.cssText=$}}function nearbyTextNode(M,$){for(;;){if(M.nodeType==3)return M;if(M.nodeType==1&&$>0){if(M.childNodes.length>$&&M.childNodes[$].nodeType==3)return M.childNodes[$];M=M.childNodes[$-1],$=nodeSize(M)}else if(M.nodeType==1&&$<M.childNodes.length)M=M.childNodes[$],$=0;else return null}}function findTextInFragment(M,$,I,N){for(let B=0,j=0;B<M.childCount&&j<=N;){let U=M.child(B++),q=j;if(j+=U.nodeSize,!U.isText)continue;let Y=U.text;for(;B<M.childCount;){let K=M.child(B++);if(j+=K.nodeSize,!K.isText)break;Y+=K.text}if(j>=I){let K=q<N?Y.lastIndexOf($,N-q-1):-1;if(K>=0&&K+$.length+q>=I)return q+K;if(I==N&&Y.length>=N+$.length-q&&Y.slice(N-q,N-q+$.length)==$)return N}}return-1}function replaceNodes(M,$,I,N,B){let j=[];for(let U=0,q=0;U<M.length;U++){let Y=M[U],K=q,G=q+=Y.size;K>=I||G<=$?j.push(Y):(K<$&&j.push(Y.slice(0,$-K,N)),B&&(j.push(B),B=void 0),G>I&&j.push(Y.slice(I-K,Y.size,N)))}return j}function selectionFromDOM(M,$=null){let I=M.domSelectionRange(),N=M.state.doc;if(!I.focusNode)return null;let B=M.docView.nearestDesc(I.focusNode),j=B&&B.size==0,U=M.docView.posFromDOM(I.focusNode,I.focusOffset,1);if(U<0)return null;let q=N.resolve(U),Y,K;if(selectionCollapsed(I)){for(Y=q;B&&!B.node;)B=B.parent;let G=B.node;if(B&&G.isAtom&&NodeSelection.isSelectable(G)&&B.parent&&!(G.isInline&&isOnEdge(I.focusNode,I.focusOffset,B.dom))){let J=B.posBefore;K=new NodeSelection(U==J?q:N.resolve(J))}}else{let G=M.docView.posFromDOM(I.anchorNode,I.anchorOffset,1);if(G<0)return null;Y=N.resolve(G)}if(!K){let G=$=="pointer"||M.state.selection.head<q.pos&&!j?1:-1;K=selectionBetween(M,Y,q,G)}return K}function editorOwnsSelection(M){return M.editable?M.hasFocus():hasSelection(M)&&document.activeElement&&document.activeElement.contains(M.dom)}function selectionToDOM(M,$=!1){let I=M.state.selection;if(syncNodeSelection(M,I),!!editorOwnsSelection(M)){if(!$&&M.input.mouseDown&&M.input.mouseDown.allowDefault&&chrome$1){let N=M.domSelectionRange(),B=M.domObserver.currentSelection;if(N.anchorNode&&B.anchorNode&&isEquivalentPosition(N.anchorNode,N.anchorOffset,B.anchorNode,B.anchorOffset)){M.input.mouseDown.delayedSelectionSync=!0,M.domObserver.setCurSelection();return}}if(M.domObserver.disconnectSelection(),M.cursorWrapper)selectCursorWrapper(M);else{let{anchor:N,head:B}=I,j,U;brokenSelectBetweenUneditable&&!(I instanceof TextSelection)&&(I.$from.parent.inlineContent||(j=temporarilyEditableNear(M,I.from)),!I.empty&&!I.$from.parent.inlineContent&&(U=temporarilyEditableNear(M,I.to))),M.docView.setSelection(N,B,M.root,$),brokenSelectBetweenUneditable&&(j&&resetEditable(j),U&&resetEditable(U)),I.visible?M.dom.classList.remove("ProseMirror-hideselection"):(M.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&removeClassOnSelectionChange(M))}M.domObserver.setCurSelection(),M.domObserver.connectSelection()}}const brokenSelectBetweenUneditable=safari||chrome$1&&chrome_version<63;function temporarilyEditableNear(M,$){let{node:I,offset:N}=M.docView.domFromPos($,0),B=N<I.childNodes.length?I.childNodes[N]:null,j=N?I.childNodes[N-1]:null;if(safari&&B&&B.contentEditable=="false")return setEditable(B);if((!B||B.contentEditable=="false")&&(!j||j.contentEditable=="false")){if(B)return setEditable(B);if(j)return setEditable(j)}}function setEditable(M){return M.contentEditable="true",safari&&M.draggable&&(M.draggable=!1,M.wasDraggable=!0),M}function resetEditable(M){M.contentEditable="false",M.wasDraggable&&(M.draggable=!0,M.wasDraggable=null)}function removeClassOnSelectionChange(M){let $=M.dom.ownerDocument;$.removeEventListener("selectionchange",M.input.hideSelectionGuard);let I=M.domSelectionRange(),N=I.anchorNode,B=I.anchorOffset;$.addEventListener("selectionchange",M.input.hideSelectionGuard=()=>{(I.anchorNode!=N||I.anchorOffset!=B)&&($.removeEventListener("selectionchange",M.input.hideSelectionGuard),setTimeout(()=>{(!editorOwnsSelection(M)||M.state.selection.visible)&&M.dom.classList.remove("ProseMirror-hideselection")},20))})}function selectCursorWrapper(M){let $=M.domSelection(),I=document.createRange(),N=M.cursorWrapper.dom,B=N.nodeName=="IMG";B?I.setEnd(N.parentNode,domIndex(N)+1):I.setEnd(N,0),I.collapse(!1),$.removeAllRanges(),$.addRange(I),!B&&!M.state.selection.visible&&ie$1&&ie_version<=11&&(N.disabled=!0,N.disabled=!1)}function syncNodeSelection(M,$){if($ instanceof NodeSelection){let I=M.docView.descAt($.from);I!=M.lastSelectedViewDesc&&(clearNodeSelection(M),I&&I.selectNode(),M.lastSelectedViewDesc=I)}else clearNodeSelection(M)}function clearNodeSelection(M){M.lastSelectedViewDesc&&(M.lastSelectedViewDesc.parent&&M.lastSelectedViewDesc.deselectNode(),M.lastSelectedViewDesc=void 0)}function selectionBetween(M,$,I,N){return M.someProp("createSelectionBetween",B=>B(M,$,I))||TextSelection.between($,I,N)}function hasFocusAndSelection(M){return M.editable&&!M.hasFocus()?!1:hasSelection(M)}function hasSelection(M){let $=M.domSelectionRange();if(!$.anchorNode)return!1;try{return M.dom.contains($.anchorNode.nodeType==3?$.anchorNode.parentNode:$.anchorNode)&&(M.editable||M.dom.contains($.focusNode.nodeType==3?$.focusNode.parentNode:$.focusNode))}catch{return!1}}function anchorInRightPlace(M){let $=M.docView.domFromPos(M.state.selection.anchor,0),I=M.domSelectionRange();return isEquivalentPosition($.node,$.offset,I.anchorNode,I.anchorOffset)}function moveSelectionBlock(M,$){let{$anchor:I,$head:N}=M.selection,B=$>0?I.max(N):I.min(N),j=B.parent.inlineContent?B.depth?M.doc.resolve($>0?B.after():B.before()):null:B;return j&&Selection.findFrom(j,$)}function apply(M,$){return M.dispatch(M.state.tr.setSelection($).scrollIntoView()),!0}function selectHorizontally(M,$,I){let N=M.state.selection;if(N instanceof TextSelection){if(!N.empty||I.indexOf("s")>-1)return!1;if(M.endOfTextblock($>0?"right":"left")){let B=moveSelectionBlock(M.state,$);return B&&B instanceof NodeSelection?apply(M,B):!1}else if(!(mac$3&&I.indexOf("m")>-1)){let B=N.$head,j=B.textOffset?null:$<0?B.nodeBefore:B.nodeAfter,U;if(!j||j.isText)return!1;let q=$<0?B.pos-j.nodeSize:B.pos;return j.isAtom||(U=M.docView.descAt(q))&&!U.contentDOM?NodeSelection.isSelectable(j)?apply(M,new NodeSelection($<0?M.state.doc.resolve(B.pos-j.nodeSize):B)):webkit?apply(M,new TextSelection(M.state.doc.resolve($<0?q:q+j.nodeSize))):!1:!1}}else{if(N instanceof NodeSelection&&N.node.isInline)return apply(M,new TextSelection($>0?N.$to:N.$from));{let B=moveSelectionBlock(M.state,$);return B?apply(M,B):!1}}}function nodeLen(M){return M.nodeType==3?M.nodeValue.length:M.childNodes.length}function isIgnorable(M){let $=M.pmViewDesc;return $&&$.size==0&&(M.nextSibling||M.nodeName!="BR")}function skipIgnoredNodesLeft(M){let $=M.domSelectionRange(),I=$.focusNode,N=$.focusOffset;if(!I)return;let B,j,U=!1;for(gecko&&I.nodeType==1&&N<nodeLen(I)&&isIgnorable(I.childNodes[N])&&(U=!0);;)if(N>0){if(I.nodeType!=1)break;{let q=I.childNodes[N-1];if(isIgnorable(q))B=I,j=--N;else if(q.nodeType==3)I=q,N=I.nodeValue.length;else break}}else{if(isBlockNode(I))break;{let q=I.previousSibling;for(;q&&isIgnorable(q);)B=I.parentNode,j=domIndex(q),q=q.previousSibling;if(q)I=q,N=nodeLen(I);else{if(I=I.parentNode,I==M.dom)break;N=0}}}U?setSelFocus(M,I,N):B&&setSelFocus(M,B,j)}function skipIgnoredNodesRight(M){let $=M.domSelectionRange(),I=$.focusNode,N=$.focusOffset;if(!I)return;let B=nodeLen(I),j,U;for(;;)if(N<B){if(I.nodeType!=1)break;let q=I.childNodes[N];if(isIgnorable(q))j=I,U=++N;else break}else{if(isBlockNode(I))break;{let q=I.nextSibling;for(;q&&isIgnorable(q);)j=q.parentNode,U=domIndex(q)+1,q=q.nextSibling;if(q)I=q,N=0,B=nodeLen(I);else{if(I=I.parentNode,I==M.dom)break;N=B=0}}}j&&setSelFocus(M,j,U)}function isBlockNode(M){let $=M.pmViewDesc;return $&&$.node&&$.node.isBlock}function setSelFocus(M,$,I){let N=M.domSelection();if(selectionCollapsed(N)){let j=document.createRange();j.setEnd($,I),j.setStart($,I),N.removeAllRanges(),N.addRange(j)}else N.extend&&N.extend($,I);M.domObserver.setCurSelection();let{state:B}=M;setTimeout(()=>{M.state==B&&selectionToDOM(M)},50)}function selectVertically(M,$,I){let N=M.state.selection;if(N instanceof TextSelection&&!N.empty||I.indexOf("s")>-1||mac$3&&I.indexOf("m")>-1)return!1;let{$from:B,$to:j}=N;if(!B.parent.inlineContent||M.endOfTextblock($<0?"up":"down")){let U=moveSelectionBlock(M.state,$);if(U&&U instanceof NodeSelection)return apply(M,U)}if(!B.parent.inlineContent){let U=$<0?B:j,q=N instanceof AllSelection?Selection.near(U,$):Selection.findFrom(U,$);return q?apply(M,q):!1}return!1}function stopNativeHorizontalDelete(M,$){if(!(M.state.selection instanceof TextSelection))return!0;let{$head:I,$anchor:N,empty:B}=M.state.selection;if(!I.sameParent(N))return!0;if(!B)return!1;if(M.endOfTextblock($>0?"forward":"backward"))return!0;let j=!I.textOffset&&($<0?I.nodeBefore:I.nodeAfter);if(j&&!j.isText){let U=M.state.tr;return $<0?U.delete(I.pos-j.nodeSize,I.pos):U.delete(I.pos,I.pos+j.nodeSize),M.dispatch(U),!0}return!1}function switchEditable(M,$,I){M.domObserver.stop(),$.contentEditable=I,M.domObserver.start()}function safariDownArrowBug(M){if(!safari||M.state.selection.$head.parentOffset>0)return!1;let{focusNode:$,focusOffset:I}=M.domSelectionRange();if($&&$.nodeType==1&&I==0&&$.firstChild&&$.firstChild.contentEditable=="false"){let N=$.firstChild;switchEditable(M,N,"true"),setTimeout(()=>switchEditable(M,N,"false"),20)}return!1}function getMods(M){let $="";return M.ctrlKey&&($+="c"),M.metaKey&&($+="m"),M.altKey&&($+="a"),M.shiftKey&&($+="s"),$}function captureKeyDown(M,$){let I=$.keyCode,N=getMods($);return I==8||mac$3&&I==72&&N=="c"?stopNativeHorizontalDelete(M,-1)||skipIgnoredNodesLeft(M):I==46||mac$3&&I==68&&N=="c"?stopNativeHorizontalDelete(M,1)||skipIgnoredNodesRight(M):I==13||I==27?!0:I==37||mac$3&&I==66&&N=="c"?selectHorizontally(M,-1,N)||skipIgnoredNodesLeft(M):I==39||mac$3&&I==70&&N=="c"?selectHorizontally(M,1,N)||skipIgnoredNodesRight(M):I==38||mac$3&&I==80&&N=="c"?selectVertically(M,-1,N)||skipIgnoredNodesLeft(M):I==40||mac$3&&I==78&&N=="c"?safariDownArrowBug(M)||selectVertically(M,1,N)||skipIgnoredNodesRight(M):N==(mac$3?"m":"c")&&(I==66||I==73||I==89||I==90)}function serializeForClipboard(M,$){M.someProp("transformCopied",ee=>{$=ee($,M)});let I=[],{content:N,openStart:B,openEnd:j}=$;for(;B>1&&j>1&&N.childCount==1&&N.firstChild.childCount==1;){B--,j--;let ee=N.firstChild;I.push(ee.type.name,ee.attrs!=ee.type.defaultAttrs?ee.attrs:null),N=ee.content}let U=M.someProp("clipboardSerializer")||DOMSerializer.fromSchema(M.state.schema),q=detachedDoc(),Y=q.createElement("div");Y.appendChild(U.serializeFragment(N,{document:q}));let K=Y.firstChild,G,J=0;for(;K&&K.nodeType==1&&(G=wrapMap[K.nodeName.toLowerCase()]);){for(let ee=G.length-1;ee>=0;ee--){let te=q.createElement(G[ee]);for(;Y.firstChild;)te.appendChild(Y.firstChild);Y.appendChild(te),J++}K=Y.firstChild}K&&K.nodeType==1&&K.setAttribute("data-pm-slice",`${B} ${j}${J?` -${J}`:""} ${JSON.stringify(I)}`);let Z=M.someProp("clipboardTextSerializer",ee=>ee($,M))||$.content.textBetween(0,$.content.size,`
-
- `);return{dom:Y,text:Z}}function parseFromClipboard(M,$,I,N,B){let j=B.parent.type.spec.code,U,q;if(!I&&!$)return null;let Y=$&&(N||j||!I);if(Y){if(M.someProp("transformPastedText",Z=>{$=Z($,j||N,M)}),j)return $?new Slice(Fragment.from(M.state.schema.text($.replace(/\r\n?/g,`
- `))),0,0):Slice.empty;let J=M.someProp("clipboardTextParser",Z=>Z($,B,N,M));if(J)q=J;else{let Z=B.marks(),{schema:ee}=M.state,te=DOMSerializer.fromSchema(ee);U=document.createElement("div"),$.split(/(?:\r\n?|\n)+/).forEach(re=>{let se=U.appendChild(document.createElement("p"));re&&se.appendChild(te.serializeNode(ee.text(re,Z)))})}}else M.someProp("transformPastedHTML",J=>{I=J(I,M)}),U=readHTML(I),webkit&&restoreReplacedSpaces(U);let K=U&&U.querySelector("[data-pm-slice]"),G=K&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(K.getAttribute("data-pm-slice")||"");if(G&&G[3])for(let J=+G[3];J>0;J--){let Z=U.firstChild;for(;Z&&Z.nodeType!=1;)Z=Z.nextSibling;if(!Z)break;U=Z}if(q||(q=(M.someProp("clipboardParser")||M.someProp("domParser")||DOMParser.fromSchema(M.state.schema)).parseSlice(U,{preserveWhitespace:!!(Y||G),context:B,ruleFromNode(Z){return Z.nodeName=="BR"&&!Z.nextSibling&&Z.parentNode&&!inlineParents.test(Z.parentNode.nodeName)?{ignore:!0}:null}})),G)q=addContext(closeSlice(q,+G[1],+G[2]),G[4]);else if(q=Slice.maxOpen(normalizeSiblings(q.content,B),!0),q.openStart||q.openEnd){let J=0,Z=0;for(let ee=q.content.firstChild;J<q.openStart&&!ee.type.spec.isolating;J++,ee=ee.firstChild);for(let ee=q.content.lastChild;Z<q.openEnd&&!ee.type.spec.isolating;Z++,ee=ee.lastChild);q=closeSlice(q,J,Z)}return M.someProp("transformPasted",J=>{q=J(q,M)}),q}const inlineParents=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function normalizeSiblings(M,$){if(M.childCount<2)return M;for(let I=$.depth;I>=0;I--){let B=$.node(I).contentMatchAt($.index(I)),j,U=[];if(M.forEach(q=>{if(!U)return;let Y=B.findWrapping(q.type),K;if(!Y)return U=null;if(K=U.length&&j.length&&addToSibling(Y,j,q,U[U.length-1],0))U[U.length-1]=K;else{U.length&&(U[U.length-1]=closeRight(U[U.length-1],j.length));let G=withWrappers(q,Y);U.push(G),B=B.matchType(G.type),j=Y}}),U)return Fragment.from(U)}return M}function withWrappers(M,$,I=0){for(let N=$.length-1;N>=I;N--)M=$[N].create(null,Fragment.from(M));return M}function addToSibling(M,$,I,N,B){if(B<M.length&&B<$.length&&M[B]==$[B]){let j=addToSibling(M,$,I,N.lastChild,B+1);if(j)return N.copy(N.content.replaceChild(N.childCount-1,j));if(N.contentMatchAt(N.childCount).matchType(B==M.length-1?I.type:M[B+1]))return N.copy(N.content.append(Fragment.from(withWrappers(I,M,B+1))))}}function closeRight(M,$){if($==0)return M;let I=M.content.replaceChild(M.childCount-1,closeRight(M.lastChild,$-1)),N=M.contentMatchAt(M.childCount).fillBefore(Fragment.empty,!0);return M.copy(I.append(N))}function closeRange(M,$,I,N,B,j){let U=$<0?M.firstChild:M.lastChild,q=U.content;return B<N-1&&(q=closeRange(q,$,I,N,B+1,j)),B>=I&&(q=$<0?U.contentMatchAt(0).fillBefore(q,M.childCount>1||j<=B).append(q):q.append(U.contentMatchAt(U.childCount).fillBefore(Fragment.empty,!0))),M.replaceChild($<0?0:M.childCount-1,U.copy(q))}function closeSlice(M,$,I){return $<M.openStart&&(M=new Slice(closeRange(M.content,-1,$,M.openStart,0,M.openEnd),$,M.openEnd)),I<M.openEnd&&(M=new Slice(closeRange(M.content,1,I,M.openEnd,0,0),M.openStart,I)),M}const wrapMap={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let _detachedDoc=null;function detachedDoc(){return _detachedDoc||(_detachedDoc=document.implementation.createHTMLDocument("title"))}function readHTML(M){let $=/^(\s*<meta [^>]*>)*/.exec(M);$&&(M=M.slice($[0].length));let I=detachedDoc().createElement("div"),N=/<([a-z][^>\s]+)/i.exec(M),B;if((B=N&&wrapMap[N[1].toLowerCase()])&&(M=B.map(j=>"<"+j+">").join("")+M+B.map(j=>"</"+j+">").reverse().join("")),I.innerHTML=M,B)for(let j=0;j<B.length;j++)I=I.querySelector(B[j])||I;return I}function restoreReplacedSpaces(M){let $=M.querySelectorAll(chrome$1?"span:not([class]):not([style])":"span.Apple-converted-space");for(let I=0;I<$.length;I++){let N=$[I];N.childNodes.length==1&&N.textContent==" "&&N.parentNode&&N.parentNode.replaceChild(M.ownerDocument.createTextNode(" "),N)}}function addContext(M,$){if(!M.size)return M;let I=M.content.firstChild.type.schema,N;try{N=JSON.parse($)}catch{return M}let{content:B,openStart:j,openEnd:U}=M;for(let q=N.length-2;q>=0;q-=2){let Y=I.nodes[N[q]];if(!Y||Y.hasRequiredAttrs())break;B=Fragment.from(Y.create(N[q+1],B)),j++,U++}return new Slice(B,j,U)}const handlers={},editHandlers={},passiveHandlers={touchstart:!0,touchmove:!0};class InputState{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function initInput(M){for(let $ in handlers){let I=handlers[$];M.dom.addEventListener($,M.input.eventHandlers[$]=N=>{eventBelongsToView(M,N)&&!runCustomHandler(M,N)&&(M.editable||!(N.type in editHandlers))&&I(M,N)},passiveHandlers[$]?{passive:!0}:void 0)}safari&&M.dom.addEventListener("input",()=>null),ensureListeners(M)}function setSelectionOrigin(M,$){M.input.lastSelectionOrigin=$,M.input.lastSelectionTime=Date.now()}function destroyInput(M){M.domObserver.stop();for(let $ in M.input.eventHandlers)M.dom.removeEventListener($,M.input.eventHandlers[$]);clearTimeout(M.input.composingTimeout),clearTimeout(M.input.lastIOSEnterFallbackTimeout)}function ensureListeners(M){M.someProp("handleDOMEvents",$=>{for(let I in $)M.input.eventHandlers[I]||M.dom.addEventListener(I,M.input.eventHandlers[I]=N=>runCustomHandler(M,N))})}function runCustomHandler(M,$){return M.someProp("handleDOMEvents",I=>{let N=I[$.type];return N?N(M,$)||$.defaultPrevented:!1})}function eventBelongsToView(M,$){if(!$.bubbles)return!0;if($.defaultPrevented)return!1;for(let I=$.target;I!=M.dom;I=I.parentNode)if(!I||I.nodeType==11||I.pmViewDesc&&I.pmViewDesc.stopEvent($))return!1;return!0}function dispatchEvent(M,$){!runCustomHandler(M,$)&&handlers[$.type]&&(M.editable||!($.type in editHandlers))&&handlers[$.type](M,$)}editHandlers.keydown=(M,$)=>{let I=$;if(M.input.shiftKey=I.keyCode==16||I.shiftKey,!inOrNearComposition(M,I)&&(M.input.lastKeyCode=I.keyCode,M.input.lastKeyCodeTime=Date.now(),!(android&&chrome$1&&I.keyCode==13)))if(I.keyCode!=229&&M.domObserver.forceFlush(),ios&&I.keyCode==13&&!I.ctrlKey&&!I.altKey&&!I.metaKey){let N=Date.now();M.input.lastIOSEnter=N,M.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{M.input.lastIOSEnter==N&&(M.someProp("handleKeyDown",B=>B(M,keyEvent(13,"Enter"))),M.input.lastIOSEnter=0)},200)}else M.someProp("handleKeyDown",N=>N(M,I))||captureKeyDown(M,I)?I.preventDefault():setSelectionOrigin(M,"key")};editHandlers.keyup=(M,$)=>{$.keyCode==16&&(M.input.shiftKey=!1)};editHandlers.keypress=(M,$)=>{let I=$;if(inOrNearComposition(M,I)||!I.charCode||I.ctrlKey&&!I.altKey||mac$3&&I.metaKey)return;if(M.someProp("handleKeyPress",B=>B(M,I))){I.preventDefault();return}let N=M.state.selection;if(!(N instanceof TextSelection)||!N.$from.sameParent(N.$to)){let B=String.fromCharCode(I.charCode);!/[\r\n]/.test(B)&&!M.someProp("handleTextInput",j=>j(M,N.$from.pos,N.$to.pos,B))&&M.dispatch(M.state.tr.insertText(B).scrollIntoView()),I.preventDefault()}};function eventCoords(M){return{left:M.clientX,top:M.clientY}}function isNear(M,$){let I=$.x-M.clientX,N=$.y-M.clientY;return I*I+N*N<100}function runHandlerOnContext(M,$,I,N,B){if(N==-1)return!1;let j=M.state.doc.resolve(N);for(let U=j.depth+1;U>0;U--)if(M.someProp($,q=>U>j.depth?q(M,I,j.nodeAfter,j.before(U),B,!0):q(M,I,j.node(U),j.before(U),B,!1)))return!0;return!1}function updateSelection(M,$,I){M.focused||M.focus();let N=M.state.tr.setSelection($);I=="pointer"&&N.setMeta("pointer",!0),M.dispatch(N)}function selectClickedLeaf(M,$){if($==-1)return!1;let I=M.state.doc.resolve($),N=I.nodeAfter;return N&&N.isAtom&&NodeSelection.isSelectable(N)?(updateSelection(M,new NodeSelection(I),"pointer"),!0):!1}function selectClickedNode(M,$){if($==-1)return!1;let I=M.state.selection,N,B;I instanceof NodeSelection&&(N=I.node);let j=M.state.doc.resolve($);for(let U=j.depth+1;U>0;U--){let q=U>j.depth?j.nodeAfter:j.node(U);if(NodeSelection.isSelectable(q)){N&&I.$from.depth>0&&U>=I.$from.depth&&j.before(I.$from.depth+1)==I.$from.pos?B=j.before(I.$from.depth):B=j.before(U);break}}return B!=null?(updateSelection(M,NodeSelection.create(M.state.doc,B),"pointer"),!0):!1}function handleSingleClick(M,$,I,N,B){return runHandlerOnContext(M,"handleClickOn",$,I,N)||M.someProp("handleClick",j=>j(M,$,N))||(B?selectClickedNode(M,I):selectClickedLeaf(M,I))}function handleDoubleClick(M,$,I,N){return runHandlerOnContext(M,"handleDoubleClickOn",$,I,N)||M.someProp("handleDoubleClick",B=>B(M,$,N))}function handleTripleClick$1(M,$,I,N){return runHandlerOnContext(M,"handleTripleClickOn",$,I,N)||M.someProp("handleTripleClick",B=>B(M,$,N))||defaultTripleClick(M,I,N)}function defaultTripleClick(M,$,I){if(I.button!=0)return!1;let N=M.state.doc;if($==-1)return N.inlineContent?(updateSelection(M,TextSelection.create(N,0,N.content.size),"pointer"),!0):!1;let B=N.resolve($);for(let j=B.depth+1;j>0;j--){let U=j>B.depth?B.nodeAfter:B.node(j),q=B.before(j);if(U.inlineContent)updateSelection(M,TextSelection.create(N,q+1,q+1+U.content.size),"pointer");else if(NodeSelection.isSelectable(U))updateSelection(M,NodeSelection.create(N,q),"pointer");else continue;return!0}}function forceDOMFlush(M){return endComposition(M)}const selectNodeModifier=mac$3?"metaKey":"ctrlKey";handlers.mousedown=(M,$)=>{let I=$;M.input.shiftKey=I.shiftKey;let N=forceDOMFlush(M),B=Date.now(),j="singleClick";B-M.input.lastClick.time<500&&isNear(I,M.input.lastClick)&&!I[selectNodeModifier]&&(M.input.lastClick.type=="singleClick"?j="doubleClick":M.input.lastClick.type=="doubleClick"&&(j="tripleClick")),M.input.lastClick={time:B,x:I.clientX,y:I.clientY,type:j};let U=M.posAtCoords(eventCoords(I));U&&(j=="singleClick"?(M.input.mouseDown&&M.input.mouseDown.done(),M.input.mouseDown=new MouseDown(M,U,I,!!N)):(j=="doubleClick"?handleDoubleClick:handleTripleClick$1)(M,U.pos,U.inside,I)?I.preventDefault():setSelectionOrigin(M,"pointer"))};class MouseDown{constructor($,I,N,B){this.view=$,this.pos=I,this.event=N,this.flushed=B,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=$.state.doc,this.selectNode=!!N[selectNodeModifier],this.allowDefault=N.shiftKey;let j,U;if(I.inside>-1)j=$.state.doc.nodeAt(I.inside),U=I.inside;else{let G=$.state.doc.resolve(I.pos);j=G.parent,U=G.depth?G.before():0}const q=B?null:N.target,Y=q?$.docView.nearestDesc(q,!0):null;this.target=Y?Y.dom:null;let{selection:K}=$.state;(N.button==0&&j.type.spec.draggable&&j.type.spec.selectable!==!1||K instanceof NodeSelection&&K.from<=U&&K.to>U)&&(this.mightDrag={node:j,pos:U,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&gecko&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),$.root.addEventListener("mouseup",this.up=this.up.bind(this)),$.root.addEventListener("mousemove",this.move=this.move.bind(this)),setSelectionOrigin($,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>selectionToDOM(this.view)),this.view.input.mouseDown=null}up($){if(this.done(),!this.view.dom.contains($.target))return;let I=this.pos;this.view.state.doc!=this.startDoc&&(I=this.view.posAtCoords(eventCoords($))),this.updateAllowDefault($),this.allowDefault||!I?setSelectionOrigin(this.view,"pointer"):handleSingleClick(this.view,I.pos,I.inside,$,this.selectNode)?$.preventDefault():$.button==0&&(this.flushed||safari&&this.mightDrag&&!this.mightDrag.node.isAtom||chrome$1&&!this.view.state.selection.visible&&Math.min(Math.abs(I.pos-this.view.state.selection.from),Math.abs(I.pos-this.view.state.selection.to))<=2)?(updateSelection(this.view,Selection.near(this.view.state.doc.resolve(I.pos)),"pointer"),$.preventDefault()):setSelectionOrigin(this.view,"pointer")}move($){this.updateAllowDefault($),setSelectionOrigin(this.view,"pointer"),$.buttons==0&&this.done()}updateAllowDefault($){!this.allowDefault&&(Math.abs(this.event.x-$.clientX)>4||Math.abs(this.event.y-$.clientY)>4)&&(this.allowDefault=!0)}}handlers.touchstart=M=>{M.input.lastTouch=Date.now(),forceDOMFlush(M),setSelectionOrigin(M,"pointer")};handlers.touchmove=M=>{M.input.lastTouch=Date.now(),setSelectionOrigin(M,"pointer")};handlers.contextmenu=M=>forceDOMFlush(M);function inOrNearComposition(M,$){return M.composing?!0:safari&&Math.abs($.timeStamp-M.input.compositionEndedAt)<500?(M.input.compositionEndedAt=-2e8,!0):!1}const timeoutComposition=android?5e3:-1;editHandlers.compositionstart=editHandlers.compositionupdate=M=>{if(!M.composing){M.domObserver.flush();let{state:$}=M,I=$.selection.$from;if($.selection.empty&&($.storedMarks||!I.textOffset&&I.parentOffset&&I.nodeBefore.marks.some(N=>N.type.spec.inclusive===!1)))M.markCursor=M.state.storedMarks||I.marks(),endComposition(M,!0),M.markCursor=null;else if(endComposition(M),gecko&&$.selection.empty&&I.parentOffset&&!I.textOffset&&I.nodeBefore.marks.length){let N=M.domSelectionRange();for(let B=N.focusNode,j=N.focusOffset;B&&B.nodeType==1&&j!=0;){let U=j<0?B.lastChild:B.childNodes[j-1];if(!U)break;if(U.nodeType==3){M.domSelection().collapse(U,U.nodeValue.length);break}else B=U,j=-1}}M.input.composing=!0}scheduleComposeEnd(M,timeoutComposition)};editHandlers.compositionend=(M,$)=>{M.composing&&(M.input.composing=!1,M.input.compositionEndedAt=$.timeStamp,scheduleComposeEnd(M,20))};function scheduleComposeEnd(M,$){clearTimeout(M.input.composingTimeout),$>-1&&(M.input.composingTimeout=setTimeout(()=>endComposition(M),$))}function clearComposition(M){for(M.composing&&(M.input.composing=!1,M.input.compositionEndedAt=timestampFromCustomEvent());M.input.compositionNodes.length>0;)M.input.compositionNodes.pop().markParentsDirty()}function timestampFromCustomEvent(){let M=document.createEvent("Event");return M.initEvent("event",!0,!0),M.timeStamp}function endComposition(M,$=!1){if(!(android&&M.domObserver.flushingSoon>=0)){if(M.domObserver.forceFlush(),clearComposition(M),$||M.docView&&M.docView.dirty){let I=selectionFromDOM(M);return I&&!I.eq(M.state.selection)?M.dispatch(M.state.tr.setSelection(I)):M.updateState(M.state),!0}return!1}}function captureCopy(M,$){if(!M.dom.parentNode)return;let I=M.dom.parentNode.appendChild(document.createElement("div"));I.appendChild($),I.style.cssText="position: fixed; left: -10000px; top: 10px";let N=getSelection(),B=document.createRange();B.selectNodeContents($),M.dom.blur(),N.removeAllRanges(),N.addRange(B),setTimeout(()=>{I.parentNode&&I.parentNode.removeChild(I),M.focus()},50)}const brokenClipboardAPI=ie$1&&ie_version<15||ios&&webkit_version<604;handlers.copy=editHandlers.cut=(M,$)=>{let I=$,N=M.state.selection,B=I.type=="cut";if(N.empty)return;let j=brokenClipboardAPI?null:I.clipboardData,U=N.content(),{dom:q,text:Y}=serializeForClipboard(M,U);j?(I.preventDefault(),j.clearData(),j.setData("text/html",q.innerHTML),j.setData("text/plain",Y)):captureCopy(M,q),B&&M.dispatch(M.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sliceSingleNode(M){return M.openStart==0&&M.openEnd==0&&M.content.childCount==1?M.content.firstChild:null}function capturePaste(M,$){if(!M.dom.parentNode)return;let I=M.input.shiftKey||M.state.selection.$from.parent.type.spec.code,N=M.dom.parentNode.appendChild(document.createElement(I?"textarea":"div"));I||(N.contentEditable="true"),N.style.cssText="position: fixed; left: -10000px; top: 10px",N.focus(),setTimeout(()=>{M.focus(),N.parentNode&&N.parentNode.removeChild(N),I?doPaste(M,N.value,null,M.input.shiftKey,$):doPaste(M,N.textContent,N.innerHTML,M.input.shiftKey,$)},50)}function doPaste(M,$,I,N,B){let j=parseFromClipboard(M,$,I,N,M.state.selection.$from);if(M.someProp("handlePaste",Y=>Y(M,B,j||Slice.empty)))return!0;if(!j)return!1;let U=sliceSingleNode(j),q=U?M.state.tr.replaceSelectionWith(U,M.input.shiftKey):M.state.tr.replaceSelection(j);return M.dispatch(q.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}editHandlers.paste=(M,$)=>{let I=$;if(M.composing&&!android)return;let N=brokenClipboardAPI?null:I.clipboardData;N&&doPaste(M,N.getData("text/plain"),N.getData("text/html"),M.input.shiftKey,I)?I.preventDefault():capturePaste(M,I)};class Dragging{constructor($,I){this.slice=$,this.move=I}}const dragCopyModifier=mac$3?"altKey":"ctrlKey";handlers.dragstart=(M,$)=>{let I=$,N=M.input.mouseDown;if(N&&N.done(),!I.dataTransfer)return;let B=M.state.selection,j=B.empty?null:M.posAtCoords(eventCoords(I));if(!(j&&j.pos>=B.from&&j.pos<=(B instanceof NodeSelection?B.to-1:B.to))){if(N&&N.mightDrag)M.dispatch(M.state.tr.setSelection(NodeSelection.create(M.state.doc,N.mightDrag.pos)));else if(I.target&&I.target.nodeType==1){let K=M.docView.nearestDesc(I.target,!0);K&&K.node.type.spec.draggable&&K!=M.docView&&M.dispatch(M.state.tr.setSelection(NodeSelection.create(M.state.doc,K.posBefore)))}}let U=M.state.selection.content(),{dom:q,text:Y}=serializeForClipboard(M,U);I.dataTransfer.clearData(),I.dataTransfer.setData(brokenClipboardAPI?"Text":"text/html",q.innerHTML),I.dataTransfer.effectAllowed="copyMove",brokenClipboardAPI||I.dataTransfer.setData("text/plain",Y),M.dragging=new Dragging(U,!I[dragCopyModifier])};handlers.dragend=M=>{let $=M.dragging;window.setTimeout(()=>{M.dragging==$&&(M.dragging=null)},50)};editHandlers.dragover=editHandlers.dragenter=(M,$)=>$.preventDefault();editHandlers.drop=(M,$)=>{let I=$,N=M.dragging;if(M.dragging=null,!I.dataTransfer)return;let B=M.posAtCoords(eventCoords(I));if(!B)return;let j=M.state.doc.resolve(B.pos),U=N&&N.slice;U?M.someProp("transformPasted",te=>{U=te(U,M)}):U=parseFromClipboard(M,I.dataTransfer.getData(brokenClipboardAPI?"Text":"text/plain"),brokenClipboardAPI?null:I.dataTransfer.getData("text/html"),!1,j);let q=!!(N&&!I[dragCopyModifier]);if(M.someProp("handleDrop",te=>te(M,I,U||Slice.empty,q))){I.preventDefault();return}if(!U)return;I.preventDefault();let Y=U?dropPoint(M.state.doc,j.pos,U):j.pos;Y==null&&(Y=j.pos);let K=M.state.tr;q&&K.deleteSelection();let G=K.mapping.map(Y),J=U.openStart==0&&U.openEnd==0&&U.content.childCount==1,Z=K.doc;if(J?K.replaceRangeWith(G,G,U.content.firstChild):K.replaceRange(G,G,U),K.doc.eq(Z))return;let ee=K.doc.resolve(G);if(J&&NodeSelection.isSelectable(U.content.firstChild)&&ee.nodeAfter&&ee.nodeAfter.sameMarkup(U.content.firstChild))K.setSelection(new NodeSelection(ee));else{let te=K.mapping.map(Y);K.mapping.maps[K.mapping.maps.length-1].forEach((re,se,ne,le)=>te=le),K.setSelection(selectionBetween(M,ee,K.doc.resolve(te)))}M.focus(),M.dispatch(K.setMeta("uiEvent","drop"))};handlers.focus=M=>{M.input.lastFocus=Date.now(),M.focused||(M.domObserver.stop(),M.dom.classList.add("ProseMirror-focused"),M.domObserver.start(),M.focused=!0,setTimeout(()=>{M.docView&&M.hasFocus()&&!M.domObserver.currentSelection.eq(M.domSelectionRange())&&selectionToDOM(M)},20))};handlers.blur=(M,$)=>{let I=$;M.focused&&(M.domObserver.stop(),M.dom.classList.remove("ProseMirror-focused"),M.domObserver.start(),I.relatedTarget&&M.dom.contains(I.relatedTarget)&&M.domObserver.currentSelection.clear(),M.focused=!1)};handlers.beforeinput=(M,$)=>{if(chrome$1&&android&&$.inputType=="deleteContentBackward"){M.domObserver.flushSoon();let{domChangeCount:N}=M.input;setTimeout(()=>{if(M.input.domChangeCount!=N||(M.dom.blur(),M.focus(),M.someProp("handleKeyDown",j=>j(M,keyEvent(8,"Backspace")))))return;let{$cursor:B}=M.state.selection;B&&B.pos>0&&M.dispatch(M.state.tr.delete(B.pos-1,B.pos).scrollIntoView())},50)}};for(let M in editHandlers)handlers[M]=editHandlers[M];function compareObjs(M,$){if(M==$)return!0;for(let I in M)if(M[I]!==$[I])return!1;for(let I in $)if(!(I in M))return!1;return!0}class WidgetType{constructor($,I){this.toDOM=$,this.spec=I||noSpec,this.side=this.spec.side||0}map($,I,N,B){let{pos:j,deleted:U}=$.mapResult(I.from+B,this.side<0?-1:1);return U?null:new Decoration(j-N,j-N,this)}valid(){return!0}eq($){return this==$||$ instanceof WidgetType&&(this.spec.key&&this.spec.key==$.spec.key||this.toDOM==$.toDOM&&compareObjs(this.spec,$.spec))}destroy($){this.spec.destroy&&this.spec.destroy($)}}class InlineType{constructor($,I){this.attrs=$,this.spec=I||noSpec}map($,I,N,B){let j=$.map(I.from+B,this.spec.inclusiveStart?-1:1)-N,U=$.map(I.to+B,this.spec.inclusiveEnd?1:-1)-N;return j>=U?null:new Decoration(j,U,this)}valid($,I){return I.from<I.to}eq($){return this==$||$ instanceof InlineType&&compareObjs(this.attrs,$.attrs)&&compareObjs(this.spec,$.spec)}static is($){return $.type instanceof InlineType}destroy(){}}class NodeType{constructor($,I){this.attrs=$,this.spec=I||noSpec}map($,I,N,B){let j=$.mapResult(I.from+B,1);if(j.deleted)return null;let U=$.mapResult(I.to+B,-1);return U.deleted||U.pos<=j.pos?null:new Decoration(j.pos-N,U.pos-N,this)}valid($,I){let{index:N,offset:B}=$.content.findIndex(I.from),j;return B==I.from&&!(j=$.child(N)).isText&&B+j.nodeSize==I.to}eq($){return this==$||$ instanceof NodeType&&compareObjs(this.attrs,$.attrs)&&compareObjs(this.spec,$.spec)}destroy(){}}class Decoration{constructor($,I,N){this.from=$,this.to=I,this.type=N}copy($,I){return new Decoration($,I,this.type)}eq($,I=0){return this.type.eq($.type)&&this.from+I==$.from&&this.to+I==$.to}map($,I,N){return this.type.map($,this,I,N)}static widget($,I,N){return new Decoration($,$,new WidgetType(I,N))}static inline($,I,N,B){return new Decoration($,I,new InlineType(N,B))}static node($,I,N,B){return new Decoration($,I,new NodeType(N,B))}get spec(){return this.type.spec}get inline(){return this.type instanceof InlineType}}const none=[],noSpec={};class DecorationSet{constructor($,I){this.local=$.length?$:none,this.children=I.length?I:none}static create($,I){return I.length?buildTree(I,$,0,noSpec):empty}find($,I,N){let B=[];return this.findInner($??0,I??1e9,B,0,N),B}findInner($,I,N,B,j){for(let U=0;U<this.local.length;U++){let q=this.local[U];q.from<=I&&q.to>=$&&(!j||j(q.spec))&&N.push(q.copy(q.from+B,q.to+B))}for(let U=0;U<this.children.length;U+=3)if(this.children[U]<I&&this.children[U+1]>$){let q=this.children[U]+1;this.children[U+2].findInner($-q,I-q,N,B+q,j)}}map($,I,N){return this==empty||$.maps.length==0?this:this.mapInner($,I,0,0,N||noSpec)}mapInner($,I,N,B,j){let U;for(let q=0;q<this.local.length;q++){let Y=this.local[q].map($,N,B);Y&&Y.type.valid(I,Y)?(U||(U=[])).push(Y):j.onRemove&&j.onRemove(this.local[q].spec)}return this.children.length?mapChildren(this.children,U||[],$,I,N,B,j):U?new DecorationSet(U.sort(byPos),none):empty}add($,I){return I.length?this==empty?DecorationSet.create($,I):this.addInner($,I,0):this}addInner($,I,N){let B,j=0;$.forEach((q,Y)=>{let K=Y+N,G;if(G=takeSpansForNode(I,q,K)){for(B||(B=this.children.slice());j<B.length&&B[j]<Y;)j+=3;B[j]==Y?B[j+2]=B[j+2].addInner(q,G,K+1):B.splice(j,0,Y,Y+q.nodeSize,buildTree(G,q,K+1,noSpec)),j+=3}});let U=moveSpans(j?withoutNulls(I):I,-N);for(let q=0;q<U.length;q++)U[q].type.valid($,U[q])||U.splice(q--,1);return new DecorationSet(U.length?this.local.concat(U).sort(byPos):this.local,B||this.children)}remove($){return $.length==0||this==empty?this:this.removeInner($,0)}removeInner($,I){let N=this.children,B=this.local;for(let j=0;j<N.length;j+=3){let U,q=N[j]+I,Y=N[j+1]+I;for(let G=0,J;G<$.length;G++)(J=$[G])&&J.from>q&&J.to<Y&&($[G]=null,(U||(U=[])).push(J));if(!U)continue;N==this.children&&(N=this.children.slice());let K=N[j+2].removeInner(U,q+1);K!=empty?N[j+2]=K:(N.splice(j,3),j-=3)}if(B.length){for(let j=0,U;j<$.length;j++)if(U=$[j])for(let q=0;q<B.length;q++)B[q].eq(U,I)&&(B==this.local&&(B=this.local.slice()),B.splice(q--,1))}return N==this.children&&B==this.local?this:B.length||N.length?new DecorationSet(B,N):empty}forChild($,I){if(this==empty)return this;if(I.isLeaf)return DecorationSet.empty;let N,B;for(let q=0;q<this.children.length;q+=3)if(this.children[q]>=$){this.children[q]==$&&(N=this.children[q+2]);break}let j=$+1,U=j+I.content.size;for(let q=0;q<this.local.length;q++){let Y=this.local[q];if(Y.from<U&&Y.to>j&&Y.type instanceof InlineType){let K=Math.max(j,Y.from)-j,G=Math.min(U,Y.to)-j;K<G&&(B||(B=[])).push(Y.copy(K,G))}}if(B){let q=new DecorationSet(B.sort(byPos),none);return N?new DecorationGroup([q,N]):q}return N||empty}eq($){if(this==$)return!0;if(!($ instanceof DecorationSet)||this.local.length!=$.local.length||this.children.length!=$.children.length)return!1;for(let I=0;I<this.local.length;I++)if(!this.local[I].eq($.local[I]))return!1;for(let I=0;I<this.children.length;I+=3)if(this.children[I]!=$.children[I]||this.children[I+1]!=$.children[I+1]||!this.children[I+2].eq($.children[I+2]))return!1;return!0}locals($){return removeOverlap(this.localsInner($))}localsInner($){if(this==empty)return none;if($.inlineContent||!this.local.some(InlineType.is))return this.local;let I=[];for(let N=0;N<this.local.length;N++)this.local[N].type instanceof InlineType||I.push(this.local[N]);return I}}DecorationSet.empty=new DecorationSet([],[]);DecorationSet.removeOverlap=removeOverlap;const empty=DecorationSet.empty;class DecorationGroup{constructor($){this.members=$}map($,I){const N=this.members.map(B=>B.map($,I,noSpec));return DecorationGroup.from(N)}forChild($,I){if(I.isLeaf)return DecorationSet.empty;let N=[];for(let B=0;B<this.members.length;B++){let j=this.members[B].forChild($,I);j!=empty&&(j instanceof DecorationGroup?N=N.concat(j.members):N.push(j))}return DecorationGroup.from(N)}eq($){if(!($ instanceof DecorationGroup)||$.members.length!=this.members.length)return!1;for(let I=0;I<this.members.length;I++)if(!this.members[I].eq($.members[I]))return!1;return!0}locals($){let I,N=!0;for(let B=0;B<this.members.length;B++){let j=this.members[B].localsInner($);if(j.length)if(!I)I=j;else{N&&(I=I.slice(),N=!1);for(let U=0;U<j.length;U++)I.push(j[U])}}return I?removeOverlap(N?I:I.sort(byPos)):none}static from($){switch($.length){case 0:return empty;case 1:return $[0];default:return new DecorationGroup($.every(I=>I instanceof DecorationSet)?$:$.reduce((I,N)=>I.concat(N instanceof DecorationSet?N:N.members),[]))}}}function mapChildren(M,$,I,N,B,j,U){let q=M.slice();for(let K=0,G=j;K<I.maps.length;K++){let J=0;I.maps[K].forEach((Z,ee,te,re)=>{let se=re-te-(ee-Z);for(let ne=0;ne<q.length;ne+=3){let le=q[ne+1];if(le<0||Z>le+G-J)continue;let ge=q[ne]+G-J;ee>=ge?q[ne+1]=Z<=ge?-2:-1:te>=B&&se&&(q[ne]+=se,q[ne+1]+=se)}J+=se}),G=I.maps[K].map(G,-1)}let Y=!1;for(let K=0;K<q.length;K+=3)if(q[K+1]<0){if(q[K+1]==-2){Y=!0,q[K+1]=-1;continue}let G=I.map(M[K]+j),J=G-B;if(J<0||J>=N.content.size){Y=!0;continue}let Z=I.map(M[K+1]+j,-1),ee=Z-B,{index:te,offset:re}=N.content.findIndex(J),se=N.maybeChild(te);if(se&&re==J&&re+se.nodeSize==ee){let ne=q[K+2].mapInner(I,se,G+1,M[K]+j+1,U);ne!=empty?(q[K]=J,q[K+1]=ee,q[K+2]=ne):(q[K+1]=-2,Y=!0)}else Y=!0}if(Y){let K=mapAndGatherRemainingDecorations(q,M,$,I,B,j,U),G=buildTree(K,N,0,U);$=G.local;for(let J=0;J<q.length;J+=3)q[J+1]<0&&(q.splice(J,3),J-=3);for(let J=0,Z=0;J<G.children.length;J+=3){let ee=G.children[J];for(;Z<q.length&&q[Z]<ee;)Z+=3;q.splice(Z,0,G.children[J],G.children[J+1],G.children[J+2])}}return new DecorationSet($.sort(byPos),q)}function moveSpans(M,$){if(!$||!M.length)return M;let I=[];for(let N=0;N<M.length;N++){let B=M[N];I.push(new Decoration(B.from+$,B.to+$,B.type))}return I}function mapAndGatherRemainingDecorations(M,$,I,N,B,j,U){function q(Y,K){for(let G=0;G<Y.local.length;G++){let J=Y.local[G].map(N,B,K);J?I.push(J):U.onRemove&&U.onRemove(Y.local[G].spec)}for(let G=0;G<Y.children.length;G+=3)q(Y.children[G+2],Y.children[G]+K+1)}for(let Y=0;Y<M.length;Y+=3)M[Y+1]==-1&&q(M[Y+2],$[Y]+j+1);return I}function takeSpansForNode(M,$,I){if($.isLeaf)return null;let N=I+$.nodeSize,B=null;for(let j=0,U;j<M.length;j++)(U=M[j])&&U.from>I&&U.to<N&&((B||(B=[])).push(U),M[j]=null);return B}function withoutNulls(M){let $=[];for(let I=0;I<M.length;I++)M[I]!=null&&$.push(M[I]);return $}function buildTree(M,$,I,N){let B=[],j=!1;$.forEach((q,Y)=>{let K=takeSpansForNode(M,q,Y+I);if(K){j=!0;let G=buildTree(K,q,I+Y+1,N);G!=empty&&B.push(Y,Y+q.nodeSize,G)}});let U=moveSpans(j?withoutNulls(M):M,-I).sort(byPos);for(let q=0;q<U.length;q++)U[q].type.valid($,U[q])||(N.onRemove&&N.onRemove(U[q].spec),U.splice(q--,1));return U.length||B.length?new DecorationSet(U,B):empty}function byPos(M,$){return M.from-$.from||M.to-$.to}function removeOverlap(M){let $=M;for(let I=0;I<$.length-1;I++){let N=$[I];if(N.from!=N.to)for(let B=I+1;B<$.length;B++){let j=$[B];if(j.from==N.from){j.to!=N.to&&($==M&&($=M.slice()),$[B]=j.copy(j.from,N.to),insertAhead($,B+1,j.copy(N.to,j.to)));continue}else{j.from<N.to&&($==M&&($=M.slice()),$[I]=N.copy(N.from,j.from),insertAhead($,B,N.copy(j.from,N.to)));break}}}return $}function insertAhead(M,$,I){for(;$<M.length&&byPos(I,M[$])>0;)$++;M.splice($,0,I)}function viewDecorations(M){let $=[];return M.someProp("decorations",I=>{let N=I(M.state);N&&N!=empty&&$.push(N)}),M.cursorWrapper&&$.push(DecorationSet.create(M.state.doc,[M.cursorWrapper.deco])),DecorationGroup.from($)}const observeOptions={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},useCharData=ie$1&&ie_version<=11;class SelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set($){this.anchorNode=$.anchorNode,this.anchorOffset=$.anchorOffset,this.focusNode=$.focusNode,this.focusOffset=$.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq($){return $.anchorNode==this.anchorNode&&$.anchorOffset==this.anchorOffset&&$.focusNode==this.focusNode&&$.focusOffset==this.focusOffset}}class DOMObserver{constructor($,I){this.view=$,this.handleDOMChange=I,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new SelectionState,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(N=>{for(let B=0;B<N.length;B++)this.queue.push(N[B]);ie$1&&ie_version<=11&&N.some(B=>B.type=="childList"&&B.removedNodes.length||B.type=="characterData"&&B.oldValue.length>B.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=N=>{this.queue.push({target:N.target,type:"characterData",oldValue:N.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,observeOptions)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let $=this.observer.takeRecords();if($.length){for(let I=0;I<$.length;I++)this.queue.push($[I]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(hasFocusAndSelection(this.view)){if(this.suppressingSelectionUpdates)return selectionToDOM(this.view);if(ie$1&&ie_version<=11&&!this.view.state.selection.empty){let $=this.view.domSelectionRange();if($.focusNode&&isEquivalentPosition($.focusNode,$.focusOffset,$.anchorNode,$.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange($){if(!$.focusNode)return!0;let I=new Set,N;for(let j=$.focusNode;j;j=parentNode(j))I.add(j);for(let j=$.anchorNode;j;j=parentNode(j))if(I.has(j)){N=j;break}let B=N&&this.view.docView.nearestDesc(N);if(B&&B.ignoreMutation({type:"selection",target:N.nodeType==3?N.parentNode:N}))return this.setCurSelection(),!0}flush(){let{view:$}=this;if(!$.docView||this.flushingSoon>-1)return;let I=this.observer?this.observer.takeRecords():[];this.queue.length&&(I=this.queue.concat(I),this.queue.length=0);let N=$.domSelectionRange(),B=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(N)&&hasFocusAndSelection($)&&!this.ignoreSelectionChange(N),j=-1,U=-1,q=!1,Y=[];if($.editable)for(let G=0;G<I.length;G++){let J=this.registerMutation(I[G],Y);J&&(j=j<0?J.from:Math.min(J.from,j),U=U<0?J.to:Math.max(J.to,U),J.typeOver&&(q=!0))}if(gecko&&Y.length>1){let G=Y.filter(J=>J.nodeName=="BR");if(G.length==2){let J=G[0],Z=G[1];J.parentNode&&J.parentNode.parentNode==Z.parentNode?Z.remove():J.remove()}}let K=null;j<0&&B&&$.input.lastFocus>Date.now()-200&&Math.max($.input.lastTouch,$.input.lastClick.time)<Date.now()-300&&selectionCollapsed(N)&&(K=selectionFromDOM($))&&K.eq(Selection.near($.state.doc.resolve(0),1))?($.input.lastFocus=0,selectionToDOM($),this.currentSelection.set(N),$.scrollToSelection()):(j>-1||B)&&(j>-1&&($.docView.markDirty(j,U),checkCSS($)),this.handleDOMChange(j,U,q,Y),$.docView&&$.docView.dirty?$.updateState($.state):this.currentSelection.eq(N)||selectionToDOM($),this.currentSelection.set(N))}registerMutation($,I){if(I.indexOf($.target)>-1)return null;let N=this.view.docView.nearestDesc($.target);if($.type=="attributes"&&(N==this.view.docView||$.attributeName=="contenteditable"||$.attributeName=="style"&&!$.oldValue&&!$.target.getAttribute("style"))||!N||N.ignoreMutation($))return null;if($.type=="childList"){for(let G=0;G<$.addedNodes.length;G++)I.push($.addedNodes[G]);if(N.contentDOM&&N.contentDOM!=N.dom&&!N.contentDOM.contains($.target))return{from:N.posBefore,to:N.posAfter};let B=$.previousSibling,j=$.nextSibling;if(ie$1&&ie_version<=11&&$.addedNodes.length)for(let G=0;G<$.addedNodes.length;G++){let{previousSibling:J,nextSibling:Z}=$.addedNodes[G];(!J||Array.prototype.indexOf.call($.addedNodes,J)<0)&&(B=J),(!Z||Array.prototype.indexOf.call($.addedNodes,Z)<0)&&(j=Z)}let U=B&&B.parentNode==$.target?domIndex(B)+1:0,q=N.localPosFromDOM($.target,U,-1),Y=j&&j.parentNode==$.target?domIndex(j):$.target.childNodes.length,K=N.localPosFromDOM($.target,Y,1);return{from:q,to:K}}else return $.type=="attributes"?{from:N.posAtStart-N.border,to:N.posAtEnd+N.border}:{from:N.posAtStart,to:N.posAtEnd,typeOver:$.target.nodeValue==$.oldValue}}}let cssChecked=new WeakMap,cssCheckWarned=!1;function checkCSS(M){if(!cssChecked.has(M)&&(cssChecked.set(M,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(M.dom).whiteSpace)!==-1)){if(M.requiresGeckoHackNode=gecko,cssCheckWarned)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),cssCheckWarned=!0}}function safariShadowSelectionRange(M){let $;function I(Y){Y.preventDefault(),Y.stopImmediatePropagation(),$=Y.getTargetRanges()[0]}M.dom.addEventListener("beforeinput",I,!0),document.execCommand("indent"),M.dom.removeEventListener("beforeinput",I,!0);let N=$.startContainer,B=$.startOffset,j=$.endContainer,U=$.endOffset,q=M.domAtPos(M.state.selection.anchor);return isEquivalentPosition(q.node,q.offset,j,U)&&([N,B,j,U]=[j,U,N,B]),{anchorNode:N,anchorOffset:B,focusNode:j,focusOffset:U}}function parseBetween(M,$,I){let{node:N,fromOffset:B,toOffset:j,from:U,to:q}=M.docView.parseRange($,I),Y=M.domSelectionRange(),K,G=Y.anchorNode;if(G&&M.dom.contains(G.nodeType==1?G:G.parentNode)&&(K=[{node:G,offset:Y.anchorOffset}],selectionCollapsed(Y)||K.push({node:Y.focusNode,offset:Y.focusOffset})),chrome$1&&M.input.lastKeyCode===8)for(let se=j;se>B;se--){let ne=N.childNodes[se-1],le=ne.pmViewDesc;if(ne.nodeName=="BR"&&!le){j=se;break}if(!le||le.size)break}let J=M.state.doc,Z=M.someProp("domParser")||DOMParser.fromSchema(M.state.schema),ee=J.resolve(U),te=null,re=Z.parse(N,{topNode:ee.parent,topMatch:ee.parent.contentMatchAt(ee.index()),topOpen:!0,from:B,to:j,preserveWhitespace:ee.parent.type.whitespace=="pre"?"full":!0,findPositions:K,ruleFromNode,context:ee});if(K&&K[0].pos!=null){let se=K[0].pos,ne=K[1]&&K[1].pos;ne==null&&(ne=se),te={anchor:se+U,head:ne+U}}return{doc:re,sel:te,from:U,to:q}}function ruleFromNode(M){let $=M.pmViewDesc;if($)return $.parseRule();if(M.nodeName=="BR"&&M.parentNode){if(safari&&/^(ul|ol)$/i.test(M.parentNode.nodeName)){let I=document.createElement("div");return I.appendChild(document.createElement("li")),{skip:I}}else if(M.parentNode.lastChild==M||safari&&/^(tr|table)$/i.test(M.parentNode.nodeName))return{ignore:!0}}else if(M.nodeName=="IMG"&&M.getAttribute("mark-placeholder"))return{ignore:!0};return null}const isInline=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function readDOMChange(M,$,I,N,B){if($<0){let ve=M.input.lastSelectionTime>Date.now()-50?M.input.lastSelectionOrigin:null,xe=selectionFromDOM(M,ve);if(xe&&!M.state.selection.eq(xe)){if(chrome$1&&android&&M.input.lastKeyCode===13&&Date.now()-100<M.input.lastKeyCodeTime&&M.someProp("handleKeyDown",ye=>ye(M,keyEvent(13,"Enter"))))return;let oe=M.state.tr.setSelection(xe);ve=="pointer"?oe.setMeta("pointer",!0):ve=="key"&&oe.scrollIntoView(),M.dispatch(oe)}return}let j=M.state.doc.resolve($),U=j.sharedDepth(I);$=j.before(U+1),I=M.state.doc.resolve(I).after(U+1);let q=M.state.selection,Y=parseBetween(M,$,I),K=M.state.doc,G=K.slice(Y.from,Y.to),J,Z;M.input.lastKeyCode===8&&Date.now()-100<M.input.lastKeyCodeTime?(J=M.state.selection.to,Z="end"):(J=M.state.selection.from,Z="start"),M.input.lastKeyCode=null;let ee=findDiff(G.content,Y.doc.content,Y.from,J,Z);if((ios&&M.input.lastIOSEnter>Date.now()-225||android)&&B.some(ve=>ve.nodeType==1&&!isInline.test(ve.nodeName))&&(!ee||ee.endA>=ee.endB)&&M.someProp("handleKeyDown",ve=>ve(M,keyEvent(13,"Enter")))){M.input.lastIOSEnter=0;return}if(!ee)if(N&&q instanceof TextSelection&&!q.empty&&q.$head.sameParent(q.$anchor)&&!M.composing&&!(Y.sel&&Y.sel.anchor!=Y.sel.head))ee={start:q.from,endA:q.to,endB:q.to};else{if(Y.sel){let ve=resolveSelection(M,M.state.doc,Y.sel);ve&&!ve.eq(M.state.selection)&&M.dispatch(M.state.tr.setSelection(ve))}return}if(chrome$1&&M.cursorWrapper&&Y.sel&&Y.sel.anchor==M.cursorWrapper.deco.from&&Y.sel.head==Y.sel.anchor){let ve=ee.endB-ee.start;Y.sel={anchor:Y.sel.anchor+ve,head:Y.sel.anchor+ve}}M.input.domChangeCount++,M.state.selection.from<M.state.selection.to&&ee.start==ee.endB&&M.state.selection instanceof TextSelection&&(ee.start>M.state.selection.from&&ee.start<=M.state.selection.from+2&&M.state.selection.from>=Y.from?ee.start=M.state.selection.from:ee.endA<M.state.selection.to&&ee.endA>=M.state.selection.to-2&&M.state.selection.to<=Y.to&&(ee.endB+=M.state.selection.to-ee.endA,ee.endA=M.state.selection.to)),ie$1&&ie_version<=11&&ee.endB==ee.start+1&&ee.endA==ee.start&&ee.start>Y.from&&Y.doc.textBetween(ee.start-Y.from-1,ee.start-Y.from+1)==" "&&(ee.start--,ee.endA--,ee.endB--);let te=Y.doc.resolveNoCache(ee.start-Y.from),re=Y.doc.resolveNoCache(ee.endB-Y.from),se=K.resolve(ee.start),ne=te.sameParent(re)&&te.parent.inlineContent&&se.end()>=ee.endA,le;if((ios&&M.input.lastIOSEnter>Date.now()-225&&(!ne||B.some(ve=>ve.nodeName=="DIV"||ve.nodeName=="P"))||!ne&&te.pos<Y.doc.content.size&&(le=Selection.findFrom(Y.doc.resolve(te.pos+1),1,!0))&&le.head==re.pos)&&M.someProp("handleKeyDown",ve=>ve(M,keyEvent(13,"Enter")))){M.input.lastIOSEnter=0;return}if(M.state.selection.anchor>ee.start&&looksLikeJoin(K,ee.start,ee.endA,te,re)&&M.someProp("handleKeyDown",ve=>ve(M,keyEvent(8,"Backspace")))){android&&chrome$1&&M.domObserver.suppressSelectionUpdates();return}chrome$1&&android&&ee.endB==ee.start&&(M.input.lastAndroidDelete=Date.now()),android&&!ne&&te.start()!=re.start()&&re.parentOffset==0&&te.depth==re.depth&&Y.sel&&Y.sel.anchor==Y.sel.head&&Y.sel.head==ee.endA&&(ee.endB-=2,re=Y.doc.resolveNoCache(ee.endB-Y.from),setTimeout(()=>{M.someProp("handleKeyDown",function(ve){return ve(M,keyEvent(13,"Enter"))})},20));let ge=ee.start,ue=ee.endA,_e,fe,me;if(ne){if(te.pos==re.pos)ie$1&&ie_version<=11&&te.parentOffset==0&&(M.domObserver.suppressSelectionUpdates(),setTimeout(()=>selectionToDOM(M),20)),_e=M.state.tr.delete(ge,ue),fe=K.resolve(ee.start).marksAcross(K.resolve(ee.endA));else if(ee.endA==ee.endB&&(me=isMarkChange(te.parent.content.cut(te.parentOffset,re.parentOffset),se.parent.content.cut(se.parentOffset,ee.endA-se.start()))))_e=M.state.tr,me.type=="add"?_e.addMark(ge,ue,me.mark):_e.removeMark(ge,ue,me.mark);else if(te.parent.child(te.index()).isText&&te.index()==re.index()-(re.textOffset?0:1)){let ve=te.parent.textBetween(te.parentOffset,re.parentOffset);if(M.someProp("handleTextInput",xe=>xe(M,ge,ue,ve)))return;_e=M.state.tr.insertText(ve,ge,ue)}}if(_e||(_e=M.state.tr.replace(ge,ue,Y.doc.slice(ee.start-Y.from,ee.endB-Y.from))),Y.sel){let ve=resolveSelection(M,_e.doc,Y.sel);ve&&!(chrome$1&&android&&M.composing&&ve.empty&&(ee.start!=ee.endB||M.input.lastAndroidDelete<Date.now()-100)&&(ve.head==ge||ve.head==_e.mapping.map(ue)-1)||ie$1&&ve.empty&&ve.head==ge)&&_e.setSelection(ve)}fe&&_e.ensureMarks(fe),M.dispatch(_e.scrollIntoView())}function resolveSelection(M,$,I){return Math.max(I.anchor,I.head)>$.content.size?null:selectionBetween(M,$.resolve(I.anchor),$.resolve(I.head))}function isMarkChange(M,$){let I=M.firstChild.marks,N=$.firstChild.marks,B=I,j=N,U,q,Y;for(let G=0;G<N.length;G++)B=N[G].removeFromSet(B);for(let G=0;G<I.length;G++)j=I[G].removeFromSet(j);if(B.length==1&&j.length==0)q=B[0],U="add",Y=G=>G.mark(q.addToSet(G.marks));else if(B.length==0&&j.length==1)q=j[0],U="remove",Y=G=>G.mark(q.removeFromSet(G.marks));else return null;let K=[];for(let G=0;G<$.childCount;G++)K.push(Y($.child(G)));if(Fragment.from(K).eq(M))return{mark:q,type:U}}function looksLikeJoin(M,$,I,N,B){if(!N.parent.isTextblock||I-$<=B.pos-N.pos||skipClosingAndOpening(N,!0,!1)<B.pos)return!1;let j=M.resolve($);if(j.parentOffset<j.parent.content.size||!j.parent.isTextblock)return!1;let U=M.resolve(skipClosingAndOpening(j,!0,!0));return!U.parent.isTextblock||U.pos>I||skipClosingAndOpening(U,!0,!1)<I?!1:N.parent.content.cut(N.parentOffset).eq(U.parent.content)}function skipClosingAndOpening(M,$,I){let N=M.depth,B=$?M.end():M.pos;for(;N>0&&($||M.indexAfter(N)==M.node(N).childCount);)N--,B++,$=!1;if(I){let j=M.node(N).maybeChild(M.indexAfter(N));for(;j&&!j.isLeaf;)j=j.firstChild,B++}return B}function findDiff(M,$,I,N,B){let j=M.findDiffStart($,I);if(j==null)return null;let{a:U,b:q}=M.findDiffEnd($,I+M.size,I+$.size);if(B=="end"){let Y=Math.max(0,j-Math.min(U,q));N-=U+Y-j}if(U<j&&M.size<$.size){let Y=N<=j&&N>=U?j-N:0;j-=Y,q=j+(q-U),U=j}else if(q<j){let Y=N<=j&&N>=q?j-N:0;j-=Y,U=j+(U-q),q=j}return{start:j,endA:U,endB:q}}const __serializeForClipboard=serializeForClipboard,__parseFromClipboard=parseFromClipboard,__endComposition=endComposition;class EditorView{constructor($,I){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new InputState,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=I,this.state=I.state,this.directPlugins=I.plugins||[],this.directPlugins.forEach(checkStateComponent),this.dispatch=this.dispatch.bind(this),this.dom=$&&$.mount||document.createElement("div"),$&&($.appendChild?$.appendChild(this.dom):typeof $=="function"?$(this.dom):$.mount&&(this.mounted=!0)),this.editable=getEditable(this),updateCursorWrapper(this),this.nodeViews=buildNodeViews(this),this.docView=docViewDesc(this.state.doc,computeDocDeco(this),viewDecorations(this),this.dom,this),this.domObserver=new DOMObserver(this,(N,B,j,U)=>readDOMChange(this,N,B,j,U)),this.domObserver.start(),initInput(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let $=this._props;this._props={};for(let I in $)this._props[I]=$[I];this._props.state=this.state}return this._props}update($){$.handleDOMEvents!=this._props.handleDOMEvents&&ensureListeners(this);let I=this._props;this._props=$,$.plugins&&($.plugins.forEach(checkStateComponent),this.directPlugins=$.plugins),this.updateStateInner($.state,I)}setProps($){let I={};for(let N in this._props)I[N]=this._props[N];I.state=this.state;for(let N in $)I[N]=$[N];this.update(I)}updateState($){this.updateStateInner($,this._props)}updateStateInner($,I){let N=this.state,B=!1,j=!1;$.storedMarks&&this.composing&&(clearComposition(this),j=!0),this.state=$;let U=N.plugins!=$.plugins||this._props.plugins!=I.plugins;if(U||this._props.plugins!=I.plugins||this._props.nodeViews!=I.nodeViews){let Z=buildNodeViews(this);changedNodeViews(Z,this.nodeViews)&&(this.nodeViews=Z,B=!0)}(U||I.handleDOMEvents!=this._props.handleDOMEvents)&&ensureListeners(this),this.editable=getEditable(this),updateCursorWrapper(this);let q=viewDecorations(this),Y=computeDocDeco(this),K=N.plugins!=$.plugins&&!N.doc.eq($.doc)?"reset":$.scrollToSelection>N.scrollToSelection?"to selection":"preserve",G=B||!this.docView.matchesNode($.doc,Y,q);(G||!$.selection.eq(N.selection))&&(j=!0);let J=K=="preserve"&&j&&this.dom.style.overflowAnchor==null&&storeScrollPos(this);if(j){this.domObserver.stop();let Z=G&&(ie$1||chrome$1)&&!this.composing&&!N.selection.empty&&!$.selection.empty&&selectionContextChanged(N.selection,$.selection);if(G){let ee=chrome$1?this.trackWrites=this.domSelectionRange().focusNode:null;(B||!this.docView.update($.doc,Y,q,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=docViewDesc($.doc,Y,q,this.dom,this)),ee&&!this.trackWrites&&(Z=!0)}Z||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&anchorInRightPlace(this))?selectionToDOM(this,Z):(syncNodeSelection(this,$.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(N),K=="reset"?this.dom.scrollTop=0:K=="to selection"?this.scrollToSelection():J&&resetScrollPos(J)}scrollToSelection(){let $=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",I=>I(this)))if(this.state.selection instanceof NodeSelection){let I=this.docView.domAfterPos(this.state.selection.from);I.nodeType==1&&scrollRectIntoView(this,I.getBoundingClientRect(),$)}else scrollRectIntoView(this,this.coordsAtPos(this.state.selection.head,1),$)}destroyPluginViews(){let $;for(;$=this.pluginViews.pop();)$.destroy&&$.destroy()}updatePluginViews($){if(!$||$.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let I=0;I<this.directPlugins.length;I++){let N=this.directPlugins[I];N.spec.view&&this.pluginViews.push(N.spec.view(this))}for(let I=0;I<this.state.plugins.length;I++){let N=this.state.plugins[I];N.spec.view&&this.pluginViews.push(N.spec.view(this))}}else for(let I=0;I<this.pluginViews.length;I++){let N=this.pluginViews[I];N.update&&N.update(this,$)}}someProp($,I){let N=this._props&&this._props[$],B;if(N!=null&&(B=I?I(N):N))return B;for(let U=0;U<this.directPlugins.length;U++){let q=this.directPlugins[U].props[$];if(q!=null&&(B=I?I(q):q))return B}let j=this.state.plugins;if(j)for(let U=0;U<j.length;U++){let q=j[U].props[$];if(q!=null&&(B=I?I(q):q))return B}}hasFocus(){if(ie$1){let $=this.root.activeElement;if($==this.dom)return!0;if(!$||!this.dom.contains($))return!1;for(;$&&this.dom!=$&&this.dom.contains($);){if($.contentEditable=="false")return!1;$=$.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&focusPreventScroll(this.dom),selectionToDOM(this),this.domObserver.start()}get root(){let $=this._root;if($==null){for(let I=this.dom.parentNode;I;I=I.parentNode)if(I.nodeType==9||I.nodeType==11&&I.host)return I.getSelection||(Object.getPrototypeOf(I).getSelection=()=>I.ownerDocument.getSelection()),this._root=I}return $||document}posAtCoords($){return posAtCoords(this,$)}coordsAtPos($,I=1){return coordsAtPos(this,$,I)}domAtPos($,I=0){return this.docView.domFromPos($,I)}nodeDOM($){let I=this.docView.descAt($);return I?I.nodeDOM:null}posAtDOM($,I,N=-1){let B=this.docView.posFromDOM($,I,N);if(B==null)throw new RangeError("DOM position not inside the editor");return B}endOfTextblock($,I){return endOfTextblock(this,I||this.state,$)}pasteHTML($,I){return doPaste(this,"",$,!1,I||new ClipboardEvent("paste"))}pasteText($,I){return doPaste(this,$,null,!0,I||new ClipboardEvent("paste"))}destroy(){this.docView&&(destroyInput(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],viewDecorations(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent($){return dispatchEvent(this,$)}dispatch($){let I=this._props.dispatchTransaction;I?I.call(this,$):this.updateState(this.state.apply($))}domSelectionRange(){return safari&&this.root.nodeType===11&&deepActiveElement(this.dom.ownerDocument)==this.dom?safariShadowSelectionRange(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function computeDocDeco(M){let $=Object.create(null);return $.class="ProseMirror",$.contenteditable=String(M.editable),$.translate="no",M.someProp("attributes",I=>{if(typeof I=="function"&&(I=I(M.state)),I)for(let N in I)N=="class"&&($.class+=" "+I[N]),N=="style"?$.style=($.style?$.style+";":"")+I[N]:!$[N]&&N!="contenteditable"&&N!="nodeName"&&($[N]=String(I[N]))}),[Decoration.node(0,M.state.doc.content.size,$)]}function updateCursorWrapper(M){if(M.markCursor){let $=document.createElement("img");$.className="ProseMirror-separator",$.setAttribute("mark-placeholder","true"),$.setAttribute("alt",""),M.cursorWrapper={dom:$,deco:Decoration.widget(M.state.selection.head,$,{raw:!0,marks:M.markCursor})}}else M.cursorWrapper=null}function getEditable(M){return!M.someProp("editable",$=>$(M.state)===!1)}function selectionContextChanged(M,$){let I=Math.min(M.$anchor.sharedDepth(M.head),$.$anchor.sharedDepth($.head));return M.$anchor.start(I)!=$.$anchor.start(I)}function buildNodeViews(M){let $=Object.create(null);function I(N){for(let B in N)Object.prototype.hasOwnProperty.call($,B)||($[B]=N[B])}return M.someProp("nodeViews",I),M.someProp("markViews",I),$}function changedNodeViews(M,$){let I=0,N=0;for(let B in M){if(M[B]!=$[B])return!0;I++}for(let B in $)N++;return I!=N}function checkStateComponent(M){if(M.spec.state||M.spec.filterTransaction||M.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const view=Object.freeze(Object.defineProperty({__proto__:null,Decoration,DecorationSet,EditorView,__endComposition,__parseFromClipboard,__serializeForClipboard},Symbol.toStringTag,{value:"Module"}));var base={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shift$1={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},chrome=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),mac$2=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),brokenModifierNames=mac$2||chrome&&+chrome[1]<57;for(var i$3=0;i$3<10;i$3++)base[48+i$3]=base[96+i$3]=String(i$3);for(var i$3=1;i$3<=24;i$3++)base[i$3+111]="F"+i$3;for(var i$3=65;i$3<=90;i$3++)base[i$3]=String.fromCharCode(i$3+32),shift$1[i$3]=String.fromCharCode(i$3);for(var code in base)shift$1.hasOwnProperty(code)||(shift$1[code]=base[code]);function keyName(M){var $=brokenModifierNames&&(M.ctrlKey||M.altKey||M.metaKey)||ie&&M.shiftKey&&M.key&&M.key.length==1||M.key=="Unidentified",I=!$&&M.key||(M.shiftKey?shift$1:base)[M.keyCode]||M.key||"Unidentified";return I=="Esc"&&(I="Escape"),I=="Del"&&(I="Delete"),I=="Left"&&(I="ArrowLeft"),I=="Up"&&(I="ArrowUp"),I=="Right"&&(I="ArrowRight"),I=="Down"&&(I="ArrowDown"),I}const mac$1=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function normalizeKeyName$1(M){let $=M.split(/-(?!$)/),I=$[$.length-1];I=="Space"&&(I=" ");let N,B,j,U;for(let q=0;q<$.length-1;q++){let Y=$[q];if(/^(cmd|meta|m)$/i.test(Y))U=!0;else if(/^a(lt)?$/i.test(Y))N=!0;else if(/^(c|ctrl|control)$/i.test(Y))B=!0;else if(/^s(hift)?$/i.test(Y))j=!0;else if(/^mod$/i.test(Y))mac$1?U=!0:B=!0;else throw new Error("Unrecognized modifier name: "+Y)}return N&&(I="Alt-"+I),B&&(I="Ctrl-"+I),U&&(I="Meta-"+I),j&&(I="Shift-"+I),I}function normalize(M){let $=Object.create(null);for(let I in M)$[normalizeKeyName$1(I)]=M[I];return $}function modifiers(M,$,I=!0){return $.altKey&&(M="Alt-"+M),$.ctrlKey&&(M="Ctrl-"+M),$.metaKey&&(M="Meta-"+M),I&&$.shiftKey&&(M="Shift-"+M),M}function keymap(M){return new Plugin({props:{handleKeyDown:keydownHandler(M)}})}function keydownHandler(M){let $=normalize(M);return function(I,N){let B=keyName(N),j,U=$[modifiers(B,N)];if(U&&U(I.state,I.dispatch,I))return!0;if(B.length==1&&B!=" "){if(N.shiftKey){let q=$[modifiers(B,N,!1)];if(q&&q(I.state,I.dispatch,I))return!0}if((N.shiftKey||N.altKey||N.metaKey||B.charCodeAt(0)>127)&&(j=base[N.keyCode])&&j!=B){let q=$[modifiers(j,N)];if(q&&q(I.state,I.dispatch,I))return!0}}return!1}}const model=Object.freeze(Object.defineProperty({__proto__:null,ContentMatch,DOMParser,DOMSerializer,Fragment,Mark:Mark$1,MarkType,Node:Node$2,NodeRange,NodeType:NodeType$1,ReplaceError,ResolvedPos,Schema,Slice},Symbol.toStringTag,{value:"Module"})),deleteSelection$1=(M,$)=>M.selection.empty?!1:($&&$(M.tr.deleteSelection().scrollIntoView()),!0);function atBlockStart(M,$){let{$cursor:I}=M.selection;return!I||($?!$.endOfTextblock("backward",M):I.parentOffset>0)?null:I}const joinBackward$1=(M,$,I)=>{let N=atBlockStart(M,I);if(!N)return!1;let B=findCutBefore(N);if(!B){let U=N.blockRange(),q=U&&liftTarget(U);return q==null?!1:($&&$(M.tr.lift(U,q).scrollIntoView()),!0)}let j=B.nodeBefore;if(!j.type.spec.isolating&&deleteBarrier(M,B,$))return!0;if(N.parent.content.size==0&&(textblockAt(j,"end")||NodeSelection.isSelectable(j))){let U=replaceStep(M.doc,N.before(),N.after(),Slice.empty);if(U&&U.slice.size<U.to-U.from){if($){let q=M.tr.step(U);q.setSelection(textblockAt(j,"end")?Selection.findFrom(q.doc.resolve(q.mapping.map(B.pos,-1)),-1):NodeSelection.create(q.doc,B.pos-j.nodeSize)),$(q.scrollIntoView())}return!0}}return j.isAtom&&B.depth==N.depth-1?($&&$(M.tr.delete(B.pos-j.nodeSize,B.pos).scrollIntoView()),!0):!1};function textblockAt(M,$,I=!1){for(let N=M;N;N=$=="start"?N.firstChild:N.lastChild){if(N.isTextblock)return!0;if(I&&N.childCount!=1)return!1}return!1}const selectNodeBackward$1=(M,$,I)=>{let{$head:N,empty:B}=M.selection,j=N;if(!B)return!1;if(N.parent.isTextblock){if(I?!I.endOfTextblock("backward",M):N.parentOffset>0)return!1;j=findCutBefore(N)}let U=j&&j.nodeBefore;return!U||!NodeSelection.isSelectable(U)?!1:($&&$(M.tr.setSelection(NodeSelection.create(M.doc,j.pos-U.nodeSize)).scrollIntoView()),!0)};function findCutBefore(M){if(!M.parent.type.spec.isolating)for(let $=M.depth-1;$>=0;$--){if(M.index($)>0)return M.doc.resolve(M.before($+1));if(M.node($).type.spec.isolating)break}return null}function atBlockEnd(M,$){let{$cursor:I}=M.selection;return!I||($?!$.endOfTextblock("forward",M):I.parentOffset<I.parent.content.size)?null:I}const joinForward$1=(M,$,I)=>{let N=atBlockEnd(M,I);if(!N)return!1;let B=findCutAfter(N);if(!B)return!1;let j=B.nodeAfter;if(deleteBarrier(M,B,$))return!0;if(N.parent.content.size==0&&(textblockAt(j,"start")||NodeSelection.isSelectable(j))){let U=replaceStep(M.doc,N.before(),N.after(),Slice.empty);if(U&&U.slice.size<U.to-U.from){if($){let q=M.tr.step(U);q.setSelection(textblockAt(j,"start")?Selection.findFrom(q.doc.resolve(q.mapping.map(B.pos)),1):NodeSelection.create(q.doc,q.mapping.map(B.pos))),$(q.scrollIntoView())}return!0}}return j.isAtom&&B.depth==N.depth-1?($&&$(M.tr.delete(B.pos,B.pos+j.nodeSize).scrollIntoView()),!0):!1},selectNodeForward$1=(M,$,I)=>{let{$head:N,empty:B}=M.selection,j=N;if(!B)return!1;if(N.parent.isTextblock){if(I?!I.endOfTextblock("forward",M):N.parentOffset<N.parent.content.size)return!1;j=findCutAfter(N)}let U=j&&j.nodeAfter;return!U||!NodeSelection.isSelectable(U)?!1:($&&$(M.tr.setSelection(NodeSelection.create(M.doc,j.pos)).scrollIntoView()),!0)};function findCutAfter(M){if(!M.parent.type.spec.isolating)for(let $=M.depth-1;$>=0;$--){let I=M.node($);if(M.index($)+1<I.childCount)return M.doc.resolve(M.after($+1));if(I.type.spec.isolating)break}return null}const joinUp$1=(M,$)=>{let I=M.selection,N=I instanceof NodeSelection,B;if(N){if(I.node.isTextblock||!canJoin(M.doc,I.from))return!1;B=I.from}else if(B=joinPoint(M.doc,I.from,-1),B==null)return!1;if($){let j=M.tr.join(B);N&&j.setSelection(NodeSelection.create(j.doc,B-M.doc.resolve(B).nodeBefore.nodeSize)),$(j.scrollIntoView())}return!0},joinDown$1=(M,$)=>{let I=M.selection,N;if(I instanceof NodeSelection){if(I.node.isTextblock||!canJoin(M.doc,I.to))return!1;N=I.to}else if(N=joinPoint(M.doc,I.to,1),N==null)return!1;return $&&$(M.tr.join(N).scrollIntoView()),!0},lift$1=(M,$)=>{let{$from:I,$to:N}=M.selection,B=I.blockRange(N),j=B&&liftTarget(B);return j==null?!1:($&&$(M.tr.lift(B,j).scrollIntoView()),!0)},newlineInCode$1=(M,$)=>{let{$head:I,$anchor:N}=M.selection;return!I.parent.type.spec.code||!I.sameParent(N)?!1:($&&$(M.tr.insertText(`
- `).scrollIntoView()),!0)};function defaultBlockAt$1(M){for(let $=0;$<M.edgeCount;$++){let{type:I}=M.edge($);if(I.isTextblock&&!I.hasRequiredAttrs())return I}return null}const exitCode$1=(M,$)=>{let{$head:I,$anchor:N}=M.selection;if(!I.parent.type.spec.code||!I.sameParent(N))return!1;let B=I.node(-1),j=I.indexAfter(-1),U=defaultBlockAt$1(B.contentMatchAt(j));if(!U||!B.canReplaceWith(j,j,U))return!1;if($){let q=I.after(),Y=M.tr.replaceWith(q,q,U.createAndFill());Y.setSelection(Selection.near(Y.doc.resolve(q),1)),$(Y.scrollIntoView())}return!0},createParagraphNear$1=(M,$)=>{let I=M.selection,{$from:N,$to:B}=I;if(I instanceof AllSelection||N.parent.inlineContent||B.parent.inlineContent)return!1;let j=defaultBlockAt$1(B.parent.contentMatchAt(B.indexAfter()));if(!j||!j.isTextblock)return!1;if($){let U=(!N.parentOffset&&B.index()<B.parent.childCount?N:B).pos,q=M.tr.insert(U,j.createAndFill());q.setSelection(TextSelection.create(q.doc,U+1)),$(q.scrollIntoView())}return!0},liftEmptyBlock$1=(M,$)=>{let{$cursor:I}=M.selection;if(!I||I.parent.content.size)return!1;if(I.depth>1&&I.after()!=I.end(-1)){let j=I.before();if(canSplit(M.doc,j))return $&&$(M.tr.split(j).scrollIntoView()),!0}let N=I.blockRange(),B=N&&liftTarget(N);return B==null?!1:($&&$(M.tr.lift(N,B).scrollIntoView()),!0)},selectParentNode$1=(M,$)=>{let{$from:I,to:N}=M.selection,B,j=I.sharedDepth(N);return j==0?!1:(B=I.before(j),$&&$(M.tr.setSelection(NodeSelection.create(M.doc,B))),!0)};function joinMaybeClear(M,$,I){let N=$.nodeBefore,B=$.nodeAfter,j=$.index();return!N||!B||!N.type.compatibleContent(B.type)?!1:!N.content.size&&$.parent.canReplace(j-1,j)?(I&&I(M.tr.delete($.pos-N.nodeSize,$.pos).scrollIntoView()),!0):!$.parent.canReplace(j,j+1)||!(B.isTextblock||canJoin(M.doc,$.pos))?!1:(I&&I(M.tr.clearIncompatible($.pos,N.type,N.contentMatchAt(N.childCount)).join($.pos).scrollIntoView()),!0)}function deleteBarrier(M,$,I){let N=$.nodeBefore,B=$.nodeAfter,j,U;if(N.type.spec.isolating||B.type.spec.isolating)return!1;if(joinMaybeClear(M,$,I))return!0;let q=$.parent.canReplace($.index(),$.index()+1);if(q&&(j=(U=N.contentMatchAt(N.childCount)).findWrapping(B.type))&&U.matchType(j[0]||B.type).validEnd){if(I){let J=$.pos+B.nodeSize,Z=Fragment.empty;for(let re=j.length-1;re>=0;re--)Z=Fragment.from(j[re].create(null,Z));Z=Fragment.from(N.copy(Z));let ee=M.tr.step(new ReplaceAroundStep($.pos-1,J,$.pos,J,new Slice(Z,1,0),j.length,!0)),te=J+2*j.length;canJoin(ee.doc,te)&&ee.join(te),I(ee.scrollIntoView())}return!0}let Y=Selection.findFrom($,1),K=Y&&Y.$from.blockRange(Y.$to),G=K&&liftTarget(K);if(G!=null&&G>=$.depth)return I&&I(M.tr.lift(K,G).scrollIntoView()),!0;if(q&&textblockAt(B,"start",!0)&&textblockAt(N,"end")){let J=N,Z=[];for(;Z.push(J),!J.isTextblock;)J=J.lastChild;let ee=B,te=1;for(;!ee.isTextblock;ee=ee.firstChild)te++;if(J.canReplace(J.childCount,J.childCount,ee.content)){if(I){let re=Fragment.empty;for(let ne=Z.length-1;ne>=0;ne--)re=Fragment.from(Z[ne].copy(re));let se=M.tr.step(new ReplaceAroundStep($.pos-Z.length,$.pos+B.nodeSize,$.pos+te,$.pos+B.nodeSize-te,new Slice(re,Z.length,0),0,!0));I(se.scrollIntoView())}return!0}}return!1}function selectTextblockSide(M){return function($,I){let N=$.selection,B=M<0?N.$from:N.$to,j=B.depth;for(;B.node(j).isInline;){if(!j)return!1;j--}return B.node(j).isTextblock?(I&&I($.tr.setSelection(TextSelection.create($.doc,M<0?B.start(j):B.end(j)))),!0):!1}}const selectTextblockStart$1=selectTextblockSide(-1),selectTextblockEnd$1=selectTextblockSide(1);function wrapIn$1(M,$=null){return function(I,N){let{$from:B,$to:j}=I.selection,U=B.blockRange(j),q=U&&findWrapping(U,M,$);return q?(N&&N(I.tr.wrap(U,q).scrollIntoView()),!0):!1}}function setBlockType(M,$=null){return function(I,N){let B=!1;for(let j=0;j<I.selection.ranges.length&&!B;j++){let{$from:{pos:U},$to:{pos:q}}=I.selection.ranges[j];I.doc.nodesBetween(U,q,(Y,K)=>{if(B)return!1;if(!(!Y.isTextblock||Y.hasMarkup(M,$)))if(Y.type==M)B=!0;else{let G=I.doc.resolve(K),J=G.index();B=G.parent.canReplaceWith(J,J+1,M)}})}if(!B)return!1;if(N){let j=I.tr;for(let U=0;U<I.selection.ranges.length;U++){let{$from:{pos:q},$to:{pos:Y}}=I.selection.ranges[U];j.setBlockType(q,Y,M,$)}N(j.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function wrapInList$1(M,$=null){return function(I,N){let{$from:B,$to:j}=I.selection,U=B.blockRange(j),q=!1,Y=U;if(!U)return!1;if(U.depth>=2&&B.node(U.depth-1).type.compatibleContent(M)&&U.startIndex==0){if(B.index(U.depth-1)==0)return!1;let G=I.doc.resolve(U.start-2);Y=new NodeRange(G,G,U.depth),U.endIndex<U.parent.childCount&&(U=new NodeRange(B,I.doc.resolve(j.end(U.depth)),U.depth)),q=!0}let K=findWrapping(Y,M,$,U);return K?(N&&N(doWrapInList(I.tr,U,K,q,M).scrollIntoView()),!0):!1}}function doWrapInList(M,$,I,N,B){let j=Fragment.empty;for(let G=I.length-1;G>=0;G--)j=Fragment.from(I[G].type.create(I[G].attrs,j));M.step(new ReplaceAroundStep($.start-(N?2:0),$.end,$.start,$.end,new Slice(j,0,0),I.length,!0));let U=0;for(let G=0;G<I.length;G++)I[G].type==B&&(U=G+1);let q=I.length-U,Y=$.start+I.length-(N?2:0),K=$.parent;for(let G=$.startIndex,J=$.endIndex,Z=!0;G<J;G++,Z=!1)!Z&&canSplit(M.doc,Y,q)&&(M.split(Y,q),Y+=2*q),Y+=K.child(G).nodeSize;return M}function liftListItem$1(M){return function($,I){let{$from:N,$to:B}=$.selection,j=N.blockRange(B,U=>U.childCount>0&&U.firstChild.type==M);return j?I?N.node(j.depth-1).type==M?liftToOuterList($,I,M,j):liftOutOfList($,I,j):!0:!1}}function liftToOuterList(M,$,I,N){let B=M.tr,j=N.end,U=N.$to.end(N.depth);j<U&&(B.step(new ReplaceAroundStep(j-1,U,j,U,new Slice(Fragment.from(I.create(null,N.parent.copy())),1,0),1,!0)),N=new NodeRange(B.doc.resolve(N.$from.pos),B.doc.resolve(U),N.depth));const q=liftTarget(N);if(q==null)return!1;B.lift(N,q);let Y=B.mapping.map(j,-1)-1;return canJoin(B.doc,Y)&&B.join(Y),$(B.scrollIntoView()),!0}function liftOutOfList(M,$,I){let N=M.tr,B=I.parent;for(let ee=I.end,te=I.endIndex-1,re=I.startIndex;te>re;te--)ee-=B.child(te).nodeSize,N.delete(ee-1,ee+1);let j=N.doc.resolve(I.start),U=j.nodeAfter;if(N.mapping.map(I.end)!=I.start+j.nodeAfter.nodeSize)return!1;let q=I.startIndex==0,Y=I.endIndex==B.childCount,K=j.node(-1),G=j.index(-1);if(!K.canReplace(G+(q?0:1),G+1,U.content.append(Y?Fragment.empty:Fragment.from(B))))return!1;let J=j.pos,Z=J+U.nodeSize;return N.step(new ReplaceAroundStep(J-(q?1:0),Z+(Y?1:0),J+1,Z-1,new Slice((q?Fragment.empty:Fragment.from(B.copy(Fragment.empty))).append(Y?Fragment.empty:Fragment.from(B.copy(Fragment.empty))),q?0:1,Y?0:1),q?0:1)),$(N.scrollIntoView()),!0}function sinkListItem$1(M){return function($,I){let{$from:N,$to:B}=$.selection,j=N.blockRange(B,K=>K.childCount>0&&K.firstChild.type==M);if(!j)return!1;let U=j.startIndex;if(U==0)return!1;let q=j.parent,Y=q.child(U-1);if(Y.type!=M)return!1;if(I){let K=Y.lastChild&&Y.lastChild.type==q.type,G=Fragment.from(K?M.create():null),J=new Slice(Fragment.from(M.create(null,Fragment.from(q.type.create(null,G)))),K?3:1,0),Z=j.start,ee=j.end;I($.tr.step(new ReplaceAroundStep(Z-(K?3:1),ee,Z,ee,J,1,!0)).scrollIntoView())}return!0}}function createChainableState(M){const{state:$,transaction:I}=M;let{selection:N}=I,{doc:B}=I,{storedMarks:j}=I;return{...$,apply:$.apply.bind($),applyTransaction:$.applyTransaction.bind($),filterTransaction:$.filterTransaction,plugins:$.plugins,schema:$.schema,reconfigure:$.reconfigure.bind($),toJSON:$.toJSON.bind($),get storedMarks(){return j},get selection(){return N},get doc(){return B},get tr(){return N=I.selection,B=I.doc,j=I.storedMarks,I}}}class CommandManager{constructor($){this.editor=$.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=$.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:$,editor:I,state:N}=this,{view:B}=I,{tr:j}=N,U=this.buildProps(j);return Object.fromEntries(Object.entries($).map(([q,Y])=>[q,(...G)=>{const J=Y(...G)(U);return!j.getMeta("preventDispatch")&&!this.hasCustomState&&B.dispatch(j),J}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain($,I=!0){const{rawCommands:N,editor:B,state:j}=this,{view:U}=B,q=[],Y=!!$,K=$||j.tr,G=()=>(!Y&&I&&!K.getMeta("preventDispatch")&&!this.hasCustomState&&U.dispatch(K),q.every(Z=>Z===!0)),J={...Object.fromEntries(Object.entries(N).map(([Z,ee])=>[Z,(...re)=>{const se=this.buildProps(K,I),ne=ee(...re)(se);return q.push(ne),J}])),run:G};return J}createCan($){const{rawCommands:I,state:N}=this,B=!1,j=$||N.tr,U=this.buildProps(j,B);return{...Object.fromEntries(Object.entries(I).map(([Y,K])=>[Y,(...G)=>K(...G)({...U,dispatch:void 0})])),chain:()=>this.createChain(j,B)}}buildProps($,I=!0){const{rawCommands:N,editor:B,state:j}=this,{view:U}=B;j.storedMarks&&$.setStoredMarks(j.storedMarks);const q={tr:$,editor:B,view:U,state:createChainableState({state:j,transaction:$}),dispatch:I?()=>{}:void 0,chain:()=>this.createChain($),can:()=>this.createCan($),get commands(){return Object.fromEntries(Object.entries(N).map(([Y,K])=>[Y,(...G)=>K(...G)(q)]))}};return q}}class EventEmitter{constructor(){this.callbacks={}}on($,I){return this.callbacks[$]||(this.callbacks[$]=[]),this.callbacks[$].push(I),this}emit($,...I){const N=this.callbacks[$];return N&&N.forEach(B=>B.apply(this,I)),this}off($,I){const N=this.callbacks[$];return N&&(I?this.callbacks[$]=N.filter(B=>B!==I):delete this.callbacks[$]),this}removeAllListeners(){this.callbacks={}}}function getExtensionField(M,$,I){return M.config[$]===void 0&&M.parent?getExtensionField(M.parent,$,I):typeof M.config[$]=="function"?M.config[$].bind({...I,parent:M.parent?getExtensionField(M.parent,$,I):null}):M.config[$]}function splitExtensions(M){const $=M.filter(B=>B.type==="extension"),I=M.filter(B=>B.type==="node"),N=M.filter(B=>B.type==="mark");return{baseExtensions:$,nodeExtensions:I,markExtensions:N}}function getAttributesFromExtensions(M){const $=[],{nodeExtensions:I,markExtensions:N}=splitExtensions(M),B=[...I,...N],j={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return M.forEach(U=>{const q={name:U.name,options:U.options,storage:U.storage},Y=getExtensionField(U,"addGlobalAttributes",q);if(!Y)return;Y().forEach(G=>{G.types.forEach(J=>{Object.entries(G.attributes).forEach(([Z,ee])=>{$.push({type:J,name:Z,attribute:{...j,...ee}})})})})}),B.forEach(U=>{const q={name:U.name,options:U.options,storage:U.storage},Y=getExtensionField(U,"addAttributes",q);if(!Y)return;const K=Y();Object.entries(K).forEach(([G,J])=>{const Z={...j,...J};typeof(Z==null?void 0:Z.default)=="function"&&(Z.default=Z.default()),Z!=null&&Z.isRequired&&(Z==null?void 0:Z.default)===void 0&&delete Z.default,$.push({type:U.name,name:G,attribute:Z})})}),$}function getNodeType(M,$){if(typeof M=="string"){if(!$.nodes[M])throw Error(`There is no node type named '${M}'. Maybe you forgot to add the extension?`);return $.nodes[M]}return M}function mergeAttributes(...M){return M.filter($=>!!$).reduce(($,I)=>{const N={...$};return Object.entries(I).forEach(([B,j])=>{if(!N[B]){N[B]=j;return}B==="class"?N[B]=[N[B],j].join(" "):B==="style"?N[B]=[N[B],j].join("; "):N[B]=j}),N},{})}function getRenderedAttributes(M,$){return $.filter(I=>I.attribute.rendered).map(I=>I.attribute.renderHTML?I.attribute.renderHTML(M.attrs)||{}:{[I.name]:M.attrs[I.name]}).reduce((I,N)=>mergeAttributes(I,N),{})}function isFunction$5(M){return typeof M=="function"}function callOrReturn(M,$=void 0,...I){return isFunction$5(M)?$?M.bind($)(...I):M(...I):M}function isEmptyObject(M={}){return Object.keys(M).length===0&&M.constructor===Object}function fromString(M){return typeof M!="string"?M:M.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(M):M==="true"?!0:M==="false"?!1:M}function injectExtensionAttributesToParseRule(M,$){return M.style?M:{...M,getAttrs:I=>{const N=M.getAttrs?M.getAttrs(I):M.attrs;if(N===!1)return!1;const B=$.reduce((j,U)=>{const q=U.attribute.parseHTML?U.attribute.parseHTML(I):fromString(I.getAttribute(U.name));return q==null?j:{...j,[U.name]:q}},{});return{...N,...B}}}}function cleanUpSchemaItem(M){return Object.fromEntries(Object.entries(M).filter(([$,I])=>$==="attrs"&&isEmptyObject(I)?!1:I!=null))}function getSchemaByResolvedExtensions(M,$){var I;const N=getAttributesFromExtensions(M),{nodeExtensions:B,markExtensions:j}=splitExtensions(M),U=(I=B.find(K=>getExtensionField(K,"topNode")))===null||I===void 0?void 0:I.name,q=Object.fromEntries(B.map(K=>{const G=N.filter(ne=>ne.type===K.name),J={name:K.name,options:K.options,storage:K.storage,editor:$},Z=M.reduce((ne,le)=>{const ge=getExtensionField(le,"extendNodeSchema",J);return{...ne,...ge?ge(K):{}}},{}),ee=cleanUpSchemaItem({...Z,content:callOrReturn(getExtensionField(K,"content",J)),marks:callOrReturn(getExtensionField(K,"marks",J)),group:callOrReturn(getExtensionField(K,"group",J)),inline:callOrReturn(getExtensionField(K,"inline",J)),atom:callOrReturn(getExtensionField(K,"atom",J)),selectable:callOrReturn(getExtensionField(K,"selectable",J)),draggable:callOrReturn(getExtensionField(K,"draggable",J)),code:callOrReturn(getExtensionField(K,"code",J)),defining:callOrReturn(getExtensionField(K,"defining",J)),isolating:callOrReturn(getExtensionField(K,"isolating",J)),attrs:Object.fromEntries(G.map(ne=>{var le;return[ne.name,{default:(le=ne==null?void 0:ne.attribute)===null||le===void 0?void 0:le.default}]}))}),te=callOrReturn(getExtensionField(K,"parseHTML",J));te&&(ee.parseDOM=te.map(ne=>injectExtensionAttributesToParseRule(ne,G)));const re=getExtensionField(K,"renderHTML",J);re&&(ee.toDOM=ne=>re({node:ne,HTMLAttributes:getRenderedAttributes(ne,G)}));const se=getExtensionField(K,"renderText",J);return se&&(ee.toText=se),[K.name,ee]})),Y=Object.fromEntries(j.map(K=>{const G=N.filter(se=>se.type===K.name),J={name:K.name,options:K.options,storage:K.storage,editor:$},Z=M.reduce((se,ne)=>{const le=getExtensionField(ne,"extendMarkSchema",J);return{...se,...le?le(K):{}}},{}),ee=cleanUpSchemaItem({...Z,inclusive:callOrReturn(getExtensionField(K,"inclusive",J)),excludes:callOrReturn(getExtensionField(K,"excludes",J)),group:callOrReturn(getExtensionField(K,"group",J)),spanning:callOrReturn(getExtensionField(K,"spanning",J)),code:callOrReturn(getExtensionField(K,"code",J)),attrs:Object.fromEntries(G.map(se=>{var ne;return[se.name,{default:(ne=se==null?void 0:se.attribute)===null||ne===void 0?void 0:ne.default}]}))}),te=callOrReturn(getExtensionField(K,"parseHTML",J));te&&(ee.parseDOM=te.map(se=>injectExtensionAttributesToParseRule(se,G)));const re=getExtensionField(K,"renderHTML",J);return re&&(ee.toDOM=se=>re({mark:se,HTMLAttributes:getRenderedAttributes(se,G)})),[K.name,ee]}));return new Schema({topNode:U,nodes:q,marks:Y})}function getSchemaTypeByName(M,$){return $.nodes[M]||$.marks[M]||null}function isExtensionRulesEnabled(M,$){return Array.isArray($)?$.some(I=>(typeof I=="string"?I:I.name)===M.name):$}const getTextContentFromNodes=(M,$=500)=>{let I="";const N=M.parentOffset;return M.parent.nodesBetween(Math.max(0,N-$),N,(B,j,U,q)=>{var Y,K;const G=((K=(Y=B.type.spec).toText)===null||K===void 0?void 0:K.call(Y,{node:B,pos:j,parent:U,index:q}))||B.textContent||"%leaf%";I+=G.slice(0,Math.max(0,N-j))}),I};function isRegExp$4(M){return Object.prototype.toString.call(M)==="[object RegExp]"}class InputRule{constructor($){this.find=$.find,this.handler=$.handler}}const inputRuleMatcherHandler=(M,$)=>{if(isRegExp$4($))return $.exec(M);const I=$(M);if(!I)return null;const N=[I.text];return N.index=I.index,N.input=M,N.data=I.data,I.replaceWith&&(I.text.includes(I.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),N.push(I.replaceWith)),N};function run$1(M){var $;const{editor:I,from:N,to:B,text:j,rules:U,plugin:q}=M,{view:Y}=I;if(Y.composing)return!1;const K=Y.state.doc.resolve(N);if(K.parent.type.spec.code||!(($=K.nodeBefore||K.nodeAfter)===null||$===void 0)&&$.marks.find(Z=>Z.type.spec.code))return!1;let G=!1;const J=getTextContentFromNodes(K)+j;return U.forEach(Z=>{if(G)return;const ee=inputRuleMatcherHandler(J,Z.find);if(!ee)return;const te=Y.state.tr,re=createChainableState({state:Y.state,transaction:te}),se={from:N-(ee[0].length-j.length),to:B},{commands:ne,chain:le,can:ge}=new CommandManager({editor:I,state:re});Z.handler({state:re,range:se,match:ee,commands:ne,chain:le,can:ge})===null||!te.steps.length||(te.setMeta(q,{transform:te,from:N,to:B,text:j}),Y.dispatch(te),G=!0)}),G}function inputRulesPlugin(M){const{editor:$,rules:I}=M,N=new Plugin({state:{init(){return null},apply(B,j){const U=B.getMeta(N);return U||(B.selectionSet||B.docChanged?null:j)}},props:{handleTextInput(B,j,U,q){return run$1({editor:$,from:j,to:U,text:q,rules:I,plugin:N})},handleDOMEvents:{compositionend:B=>(setTimeout(()=>{const{$cursor:j}=B.state.selection;j&&run$1({editor:$,from:j.pos,to:j.pos,text:"",rules:I,plugin:N})}),!1)},handleKeyDown(B,j){if(j.key!=="Enter")return!1;const{$cursor:U}=B.state.selection;return U?run$1({editor:$,from:U.pos,to:U.pos,text:`
- `,rules:I,plugin:N}):!1}},isInputRules:!0});return N}function isNumber$4(M){return typeof M=="number"}class PasteRule{constructor($){this.find=$.find,this.handler=$.handler}}const pasteRuleMatcherHandler=(M,$)=>{if(isRegExp$4($))return[...M.matchAll($)];const I=$(M);return I?I.map(N=>{const B=[N.text];return B.index=N.index,B.input=M,B.data=N.data,N.replaceWith&&(N.text.includes(N.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),B.push(N.replaceWith)),B}):[]};function run(M){const{editor:$,state:I,from:N,to:B,rule:j}=M,{commands:U,chain:q,can:Y}=new CommandManager({editor:$,state:I}),K=[];return I.doc.nodesBetween(N,B,(J,Z)=>{if(!J.isTextblock||J.type.spec.code)return;const ee=Math.max(N,Z),te=Math.min(B,Z+J.content.size),re=J.textBetween(ee-Z,te-Z,void 0,"");pasteRuleMatcherHandler(re,j.find).forEach(ne=>{if(ne.index===void 0)return;const le=ee+ne.index+1,ge=le+ne[0].length,ue={from:I.tr.mapping.map(le),to:I.tr.mapping.map(ge)},_e=j.handler({state:I,range:ue,match:ne,commands:U,chain:q,can:Y});K.push(_e)})}),K.every(J=>J!==null)}function pasteRulesPlugin(M){const{editor:$,rules:I}=M;let N=null,B=!1,j=!1;return I.map(q=>new Plugin({view(Y){const K=G=>{var J;N=!((J=Y.dom.parentElement)===null||J===void 0)&&J.contains(G.target)?Y.dom.parentElement:null};return window.addEventListener("dragstart",K),{destroy(){window.removeEventListener("dragstart",K)}}},props:{handleDOMEvents:{drop:Y=>(j=N===Y.dom.parentElement,!1),paste:(Y,K)=>{var G;const J=(G=K.clipboardData)===null||G===void 0?void 0:G.getData("text/html");return B=!!(J!=null&&J.includes("data-pm-slice")),!1}}},appendTransaction:(Y,K,G)=>{const J=Y[0],Z=J.getMeta("uiEvent")==="paste"&&!B,ee=J.getMeta("uiEvent")==="drop"&&!j;if(!Z&&!ee)return;const te=K.doc.content.findDiffStart(G.doc.content),re=K.doc.content.findDiffEnd(G.doc.content);if(!isNumber$4(te)||!re||te===re.b)return;const se=G.tr,ne=createChainableState({state:G,transaction:se});if(!(!run({editor:$,state:ne,from:Math.max(te-1,0),to:re.b-1,rule:q})||!se.steps.length))return se}}))}function findDuplicates(M){const $=M.filter((I,N)=>M.indexOf(I)!==N);return[...new Set($)]}class ExtensionManager{constructor($,I){this.splittableMarks=[],this.editor=I,this.extensions=ExtensionManager.resolve($),this.schema=getSchemaByResolvedExtensions(this.extensions,I),this.extensions.forEach(N=>{var B;this.editor.extensionStorage[N.name]=N.storage;const j={name:N.name,options:N.options,storage:N.storage,editor:this.editor,type:getSchemaTypeByName(N.name,this.schema)};N.type==="mark"&&(!((B=callOrReturn(getExtensionField(N,"keepOnSplit",j)))!==null&&B!==void 0)||B)&&this.splittableMarks.push(N.name);const U=getExtensionField(N,"onBeforeCreate",j);U&&this.editor.on("beforeCreate",U);const q=getExtensionField(N,"onCreate",j);q&&this.editor.on("create",q);const Y=getExtensionField(N,"onUpdate",j);Y&&this.editor.on("update",Y);const K=getExtensionField(N,"onSelectionUpdate",j);K&&this.editor.on("selectionUpdate",K);const G=getExtensionField(N,"onTransaction",j);G&&this.editor.on("transaction",G);const J=getExtensionField(N,"onFocus",j);J&&this.editor.on("focus",J);const Z=getExtensionField(N,"onBlur",j);Z&&this.editor.on("blur",Z);const ee=getExtensionField(N,"onDestroy",j);ee&&this.editor.on("destroy",ee)})}static resolve($){const I=ExtensionManager.sort(ExtensionManager.flatten($)),N=findDuplicates(I.map(B=>B.name));return N.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${N.map(B=>`'${B}'`).join(", ")}]. This can lead to issues.`),I}static flatten($){return $.map(I=>{const N={name:I.name,options:I.options,storage:I.storage},B=getExtensionField(I,"addExtensions",N);return B?[I,...this.flatten(B())]:I}).flat(10)}static sort($){return $.sort((N,B)=>{const j=getExtensionField(N,"priority")||100,U=getExtensionField(B,"priority")||100;return j>U?-1:j<U?1:0})}get commands(){return this.extensions.reduce(($,I)=>{const N={name:I.name,options:I.options,storage:I.storage,editor:this.editor,type:getSchemaTypeByName(I.name,this.schema)},B=getExtensionField(I,"addCommands",N);return B?{...$,...B()}:$},{})}get plugins(){const{editor:$}=this,I=ExtensionManager.sort([...this.extensions].reverse()),N=[],B=[],j=I.map(U=>{const q={name:U.name,options:U.options,storage:U.storage,editor:$,type:getSchemaTypeByName(U.name,this.schema)},Y=[],K=getExtensionField(U,"addKeyboardShortcuts",q);let G={};if(U.type==="mark"&&U.config.exitable&&(G.ArrowRight=()=>Mark.handleExit({editor:$,mark:U})),K){const re=Object.fromEntries(Object.entries(K()).map(([se,ne])=>[se,()=>ne({editor:$})]));G={...G,...re}}const J=keymap(G);Y.push(J);const Z=getExtensionField(U,"addInputRules",q);isExtensionRulesEnabled(U,$.options.enableInputRules)&&Z&&N.push(...Z());const ee=getExtensionField(U,"addPasteRules",q);isExtensionRulesEnabled(U,$.options.enablePasteRules)&&ee&&B.push(...ee());const te=getExtensionField(U,"addProseMirrorPlugins",q);if(te){const re=te();Y.push(...re)}return Y}).flat();return[inputRulesPlugin({editor:$,rules:N}),...pasteRulesPlugin({editor:$,rules:B}),...j]}get attributes(){return getAttributesFromExtensions(this.extensions)}get nodeViews(){const{editor:$}=this,{nodeExtensions:I}=splitExtensions(this.extensions);return Object.fromEntries(I.filter(N=>!!getExtensionField(N,"addNodeView")).map(N=>{const B=this.attributes.filter(Y=>Y.type===N.name),j={name:N.name,options:N.options,storage:N.storage,editor:$,type:getNodeType(N.name,this.schema)},U=getExtensionField(N,"addNodeView",j);if(!U)return[];const q=(Y,K,G,J)=>{const Z=getRenderedAttributes(Y,B);return U()({editor:$,node:Y,getPos:G,decorations:J,HTMLAttributes:Z,extension:N})};return[N.name,q]}))}}function getType(M){return Object.prototype.toString.call(M).slice(8,-1)}function isPlainObject$1(M){return getType(M)!=="Object"?!1:M.constructor===Object&&Object.getPrototypeOf(M)===Object.prototype}function mergeDeep(M,$){const I={...M};return isPlainObject$1(M)&&isPlainObject$1($)&&Object.keys($).forEach(N=>{isPlainObject$1($[N])?N in M?I[N]=mergeDeep(M[N],$[N]):Object.assign(I,{[N]:$[N]}):Object.assign(I,{[N]:$[N]})}),I}class Extension{constructor($={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new Extension($)}configure($={}){const I=this.extend();return I.options=mergeDeep(this.options,$),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}extend($={}){const I=new Extension($);return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}}function getTextBetween(M,$,I){const{from:N,to:B}=$,{blockSeparator:j=`
-
- `,textSerializers:U={}}=I||{};let q="",Y=!0;return M.nodesBetween(N,B,(K,G,J,Z)=>{var ee;const te=U==null?void 0:U[K.type.name];te?(K.isBlock&&!Y&&(q+=j,Y=!0),J&&(q+=te({node:K,pos:G,parent:J,index:Z,range:$}))):K.isText?(q+=(ee=K==null?void 0:K.text)===null||ee===void 0?void 0:ee.slice(Math.max(N,G)-G,B-G),Y=!1):K.isBlock&&!Y&&(q+=j,Y=!0)}),q}function getTextSerializersFromSchema(M){return Object.fromEntries(Object.entries(M.nodes).filter(([,$])=>$.spec.toText).map(([$,I])=>[$,I.spec.toText]))}const ClipboardTextSerializer=Extension.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:M}=this,{state:$,schema:I}=M,{doc:N,selection:B}=$,{ranges:j}=B,U=Math.min(...j.map(G=>G.$from.pos)),q=Math.max(...j.map(G=>G.$to.pos)),Y=getTextSerializersFromSchema(I);return getTextBetween(N,{from:U,to:q},{textSerializers:Y})}}})]}}),blur=()=>({editor:M,view:$})=>(requestAnimationFrame(()=>{var I;M.isDestroyed||($.dom.blur(),(I=window==null?void 0:window.getSelection())===null||I===void 0||I.removeAllRanges())}),!0),clearContent=(M=!1)=>({commands:$})=>$.setContent("",M),clearNodes=()=>({state:M,tr:$,dispatch:I})=>{const{selection:N}=$,{ranges:B}=N;return I&&B.forEach(({$from:j,$to:U})=>{M.doc.nodesBetween(j.pos,U.pos,(q,Y)=>{if(q.type.isText)return;const{doc:K,mapping:G}=$,J=K.resolve(G.map(Y)),Z=K.resolve(G.map(Y+q.nodeSize)),ee=J.blockRange(Z);if(!ee)return;const te=liftTarget(ee);if(q.type.isTextblock){const{defaultType:re}=J.parent.contentMatchAt(J.index());$.setNodeMarkup(ee.start,re)}(te||te===0)&&$.lift(ee,te)})}),!0},command=M=>$=>M($),createParagraphNear=()=>({state:M,dispatch:$})=>createParagraphNear$1(M,$),deleteCurrentNode=()=>({tr:M,dispatch:$})=>{const{selection:I}=M,N=I.$anchor.node();if(N.content.size>0)return!1;const B=M.selection.$anchor;for(let j=B.depth;j>0;j-=1)if(B.node(j).type===N.type){if($){const q=B.before(j),Y=B.after(j);M.delete(q,Y).scrollIntoView()}return!0}return!1},deleteNode=M=>({tr:$,state:I,dispatch:N})=>{const B=getNodeType(M,I.schema),j=$.selection.$anchor;for(let U=j.depth;U>0;U-=1)if(j.node(U).type===B){if(N){const Y=j.before(U),K=j.after(U);$.delete(Y,K).scrollIntoView()}return!0}return!1},deleteRange=M=>({tr:$,dispatch:I})=>{const{from:N,to:B}=M;return I&&$.delete(N,B),!0},deleteSelection=()=>({state:M,dispatch:$})=>deleteSelection$1(M,$),enter=()=>({commands:M})=>M.keyboardShortcut("Enter"),exitCode=()=>({state:M,dispatch:$})=>exitCode$1(M,$);function objectIncludes$1(M,$,I={strict:!0}){const N=Object.keys($);return N.length?N.every(B=>I.strict?$[B]===M[B]:isRegExp$4($[B])?$[B].test(M[B]):$[B]===M[B]):!0}function findMarkInSet(M,$,I={}){return M.find(N=>N.type===$&&objectIncludes$1(N.attrs,I))}function isMarkInSet(M,$,I={}){return!!findMarkInSet(M,$,I)}function getMarkRange(M,$,I={}){if(!M||!$)return;let N=M.parent.childAfter(M.parentOffset);if(M.parentOffset===N.offset&&N.offset!==0&&(N=M.parent.childBefore(M.parentOffset)),!N.node)return;const B=findMarkInSet([...N.node.marks],$,I);if(!B)return;let j=N.index,U=M.start()+N.offset,q=j+1,Y=U+N.node.nodeSize;for(findMarkInSet([...N.node.marks],$,I);j>0&&B.isInSet(M.parent.child(j-1).marks);)j-=1,U-=M.parent.child(j).nodeSize;for(;q<M.parent.childCount&&isMarkInSet([...M.parent.child(q).marks],$,I);)Y+=M.parent.child(q).nodeSize,q+=1;return{from:U,to:Y}}function getMarkType(M,$){if(typeof M=="string"){if(!$.marks[M])throw Error(`There is no mark type named '${M}'. Maybe you forgot to add the extension?`);return $.marks[M]}return M}const extendMarkRange=(M,$={})=>({tr:I,state:N,dispatch:B})=>{const j=getMarkType(M,N.schema),{doc:U,selection:q}=I,{$from:Y,from:K,to:G}=q;if(B){const J=getMarkRange(Y,j,$);if(J&&J.from<=K&&J.to>=G){const Z=TextSelection.create(U,J.from,J.to);I.setSelection(Z)}}return!0},first$1=M=>$=>{const I=typeof M=="function"?M($):M;for(let N=0;N<I.length;N+=1)if(I[N]($))return!0;return!1};function isTextSelection(M){return M instanceof TextSelection}function minMax(M=0,$=0,I=0){return Math.min(Math.max(M,$),I)}function resolveFocusPosition(M,$=null){if(!$)return null;const I=Selection.atStart(M),N=Selection.atEnd(M);if($==="start"||$===!0)return I;if($==="end")return N;const B=I.from,j=N.to;return $==="all"?TextSelection.create(M,minMax(0,B,j),minMax(M.content.size,B,j)):TextSelection.create(M,minMax($,B,j),minMax($,B,j))}function isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const focus=(M=null,$={})=>({editor:I,view:N,tr:B,dispatch:j})=>{$={scrollIntoView:!0,...$};const U=()=>{isiOS()&&N.dom.focus(),requestAnimationFrame(()=>{I.isDestroyed||(N.focus(),$!=null&&$.scrollIntoView&&I.commands.scrollIntoView())})};if(N.hasFocus()&&M===null||M===!1)return!0;if(j&&M===null&&!isTextSelection(I.state.selection))return U(),!0;const q=resolveFocusPosition(B.doc,M)||I.state.selection,Y=I.state.selection.eq(q);return j&&(Y||B.setSelection(q),Y&&B.storedMarks&&B.setStoredMarks(B.storedMarks),U()),!0},forEach$1=(M,$)=>I=>M.every((N,B)=>$(N,{...I,index:B})),insertContent=(M,$)=>({tr:I,commands:N})=>N.insertContentAt({from:I.selection.from,to:I.selection.to},M,$);function elementFromString(M){const $=`<body>${M}</body>`;return new window.DOMParser().parseFromString($,"text/html").body}function createNodeFromContent(M,$,I){if(I={slice:!0,parseOptions:{},...I},typeof M=="object"&&M!==null)try{return Array.isArray(M)&&M.length>0?Fragment.fromArray(M.map(N=>$.nodeFromJSON(N))):$.nodeFromJSON(M)}catch(N){return console.warn("[tiptap warn]: Invalid content.","Passed value:",M,"Error:",N),createNodeFromContent("",$,I)}if(typeof M=="string"){const N=DOMParser.fromSchema($);return I.slice?N.parseSlice(elementFromString(M),I.parseOptions).content:N.parse(elementFromString(M),I.parseOptions)}return createNodeFromContent("",$,I)}function selectionToInsertionEnd(M,$,I){const N=M.steps.length-1;if(N<$)return;const B=M.steps[N];if(!(B instanceof ReplaceStep||B instanceof ReplaceAroundStep))return;const j=M.mapping.maps[N];let U=0;j.forEach((q,Y,K,G)=>{U===0&&(U=G)}),M.setSelection(Selection.near(M.doc.resolve(U),I))}const isFragment=M=>M.toString().startsWith("<"),insertContentAt=(M,$,I)=>({tr:N,dispatch:B,editor:j})=>{if(B){I={parseOptions:{},updateSelection:!0,...I};const U=createNodeFromContent($,j.schema,{parseOptions:{preserveWhitespace:"full",...I.parseOptions}});if(U.toString()==="<>")return!0;let{from:q,to:Y}=typeof M=="number"?{from:M,to:M}:M,K=!0,G=!0;if((isFragment(U)?U:[U]).forEach(Z=>{Z.check(),K=K?Z.isText&&Z.marks.length===0:!1,G=G?Z.isBlock:!1}),q===Y&&G){const{parent:Z}=N.doc.resolve(q);Z.isTextblock&&!Z.type.spec.code&&!Z.childCount&&(q-=1,Y+=1)}K?Array.isArray($)?N.insertText($.map(Z=>Z.text||"").join(""),q,Y):typeof $=="object"&&$&&$.text?N.insertText($.text,q,Y):N.insertText($,q,Y):N.replaceWith(q,Y,U),I.updateSelection&&selectionToInsertionEnd(N,N.steps.length-1,-1)}return!0},joinUp=()=>({state:M,dispatch:$})=>joinUp$1(M,$),joinDown=()=>({state:M,dispatch:$})=>joinDown$1(M,$),joinBackward=()=>({state:M,dispatch:$})=>joinBackward$1(M,$),joinForward=()=>({state:M,dispatch:$})=>joinForward$1(M,$);function isMacOS(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function normalizeKeyName(M){const $=M.split(/-(?!$)/);let I=$[$.length-1];I==="Space"&&(I=" ");let N,B,j,U;for(let q=0;q<$.length-1;q+=1){const Y=$[q];if(/^(cmd|meta|m)$/i.test(Y))U=!0;else if(/^a(lt)?$/i.test(Y))N=!0;else if(/^(c|ctrl|control)$/i.test(Y))B=!0;else if(/^s(hift)?$/i.test(Y))j=!0;else if(/^mod$/i.test(Y))isiOS()||isMacOS()?U=!0:B=!0;else throw new Error(`Unrecognized modifier name: ${Y}`)}return N&&(I=`Alt-${I}`),B&&(I=`Ctrl-${I}`),U&&(I=`Meta-${I}`),j&&(I=`Shift-${I}`),I}const keyboardShortcut=M=>({editor:$,view:I,tr:N,dispatch:B})=>{const j=normalizeKeyName(M).split(/-(?!$)/),U=j.find(K=>!["Alt","Ctrl","Meta","Shift"].includes(K)),q=new KeyboardEvent("keydown",{key:U==="Space"?" ":U,altKey:j.includes("Alt"),ctrlKey:j.includes("Ctrl"),metaKey:j.includes("Meta"),shiftKey:j.includes("Shift"),bubbles:!0,cancelable:!0}),Y=$.captureTransaction(()=>{I.someProp("handleKeyDown",K=>K(I,q))});return Y==null||Y.steps.forEach(K=>{const G=K.map(N.mapping);G&&B&&N.maybeStep(G)}),!0};function isNodeActive(M,$,I={}){const{from:N,to:B,empty:j}=M.selection,U=$?getNodeType($,M.schema):null,q=[];M.doc.nodesBetween(N,B,(J,Z)=>{if(J.isText)return;const ee=Math.max(N,Z),te=Math.min(B,Z+J.nodeSize);q.push({node:J,from:ee,to:te})});const Y=B-N,K=q.filter(J=>U?U.name===J.node.type.name:!0).filter(J=>objectIncludes$1(J.node.attrs,I,{strict:!1}));return j?!!K.length:K.reduce((J,Z)=>J+Z.to-Z.from,0)>=Y}const lift=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return isNodeActive(I,B,$)?lift$1(I,N):!1},liftEmptyBlock=()=>({state:M,dispatch:$})=>liftEmptyBlock$1(M,$),liftListItem=M=>({state:$,dispatch:I})=>{const N=getNodeType(M,$.schema);return liftListItem$1(N)($,I)},newlineInCode=()=>({state:M,dispatch:$})=>newlineInCode$1(M,$);function getSchemaTypeNameByName(M,$){return $.nodes[M]?"node":$.marks[M]?"mark":null}function deleteProps(M,$){const I=typeof $=="string"?[$]:$;return Object.keys(M).reduce((N,B)=>(I.includes(B)||(N[B]=M[B]),N),{})}const resetAttributes=(M,$)=>({tr:I,state:N,dispatch:B})=>{let j=null,U=null;const q=getSchemaTypeNameByName(typeof M=="string"?M:M.name,N.schema);return q?(q==="node"&&(j=getNodeType(M,N.schema)),q==="mark"&&(U=getMarkType(M,N.schema)),B&&I.selection.ranges.forEach(Y=>{N.doc.nodesBetween(Y.$from.pos,Y.$to.pos,(K,G)=>{j&&j===K.type&&I.setNodeMarkup(G,void 0,deleteProps(K.attrs,$)),U&&K.marks.length&&K.marks.forEach(J=>{U===J.type&&I.addMark(G,G+K.nodeSize,U.create(deleteProps(J.attrs,$)))})})}),!0):!1},scrollIntoView=()=>({tr:M,dispatch:$})=>($&&M.scrollIntoView(),!0),selectAll=()=>({tr:M,commands:$})=>$.setTextSelection({from:0,to:M.doc.content.size}),selectNodeBackward=()=>({state:M,dispatch:$})=>selectNodeBackward$1(M,$),selectNodeForward=()=>({state:M,dispatch:$})=>selectNodeForward$1(M,$),selectParentNode=()=>({state:M,dispatch:$})=>selectParentNode$1(M,$),selectTextblockEnd=()=>({state:M,dispatch:$})=>selectTextblockEnd$1(M,$),selectTextblockStart=()=>({state:M,dispatch:$})=>selectTextblockStart$1(M,$);function createDocument(M,$,I={}){return createNodeFromContent(M,$,{slice:!1,parseOptions:I})}const setContent$1=(M,$=!1,I={})=>({tr:N,editor:B,dispatch:j})=>{const{doc:U}=N,q=createDocument(M,B.schema,I);return j&&N.replaceWith(0,U.content.size,q).setMeta("preventUpdate",!$),!0};function combineTransactionSteps(M,$){const I=new Transform(M);return $.forEach(N=>{N.steps.forEach(B=>{I.step(B)})}),I}function defaultBlockAt(M){for(let $=0;$<M.edgeCount;$+=1){const{type:I}=M.edge($);if(I.isTextblock&&!I.hasRequiredAttrs())return I}return null}function findChildren(M,$){const I=[];return M.descendants((N,B)=>{$(N)&&I.push({node:N,pos:B})}),I}function findChildrenInRange(M,$,I){const N=[];return M.nodesBetween($.from,$.to,(B,j)=>{I(B)&&N.push({node:B,pos:j})}),N}function findParentNodeClosestToPos(M,$){for(let I=M.depth;I>0;I-=1){const N=M.node(I);if($(N))return{pos:I>0?M.before(I):0,start:M.start(I),depth:I,node:N}}}function findParentNode(M){return $=>findParentNodeClosestToPos($.$from,M)}function getHTMLFromFragment(M,$){const I=DOMSerializer.fromSchema($).serializeFragment(M),B=document.implementation.createHTMLDocument().createElement("div");return B.appendChild(I),B.innerHTML}function getSchema(M,$){const I=ExtensionManager.resolve(M);return getSchemaByResolvedExtensions(I,$)}function generateHTML(M,$){const I=getSchema($),N=Node$2.fromJSON(I,M);return getHTMLFromFragment(N.content,I)}function generateJSON(M,$){const I=getSchema($),N=elementFromString(M);return DOMParser.fromSchema(I).parse(N).toJSON()}function getText(M,$){const I={from:0,to:M.content.size};return getTextBetween(M,I,$)}function generateText(M,$,I){const{blockSeparator:N=`
-
- `,textSerializers:B={}}=I||{},j=getSchema($),U=Node$2.fromJSON(j,M);return getText(U,{blockSeparator:N,textSerializers:{...getTextSerializersFromSchema(j),...B}})}function getMarkAttributes(M,$){const I=getMarkType($,M.schema),{from:N,to:B,empty:j}=M.selection,U=[];j?(M.storedMarks&&U.push(...M.storedMarks),U.push(...M.selection.$head.marks())):M.doc.nodesBetween(N,B,Y=>{U.push(...Y.marks)});const q=U.find(Y=>Y.type.name===I.name);return q?{...q.attrs}:{}}function getNodeAttributes(M,$){const I=getNodeType($,M.schema),{from:N,to:B}=M.selection,j=[];M.doc.nodesBetween(N,B,q=>{j.push(q)});const U=j.reverse().find(q=>q.type.name===I.name);return U?{...U.attrs}:{}}function getAttributes(M,$){const I=getSchemaTypeNameByName(typeof $=="string"?$:$.name,M.schema);return I==="node"?getNodeAttributes(M,$):I==="mark"?getMarkAttributes(M,$):{}}function removeDuplicates(M,$=JSON.stringify){const I={};return M.filter(N=>{const B=$(N);return Object.prototype.hasOwnProperty.call(I,B)?!1:I[B]=!0})}function simplifyChangedRanges(M){const $=removeDuplicates(M);return $.length===1?$:$.filter((I,N)=>!$.filter((j,U)=>U!==N).some(j=>I.oldRange.from>=j.oldRange.from&&I.oldRange.to<=j.oldRange.to&&I.newRange.from>=j.newRange.from&&I.newRange.to<=j.newRange.to))}function getChangedRanges(M){const{mapping:$,steps:I}=M,N=[];return $.maps.forEach((B,j)=>{const U=[];if(B.ranges.length)B.forEach((q,Y)=>{U.push({from:q,to:Y})});else{const{from:q,to:Y}=I[j];if(q===void 0||Y===void 0)return;U.push({from:q,to:Y})}U.forEach(({from:q,to:Y})=>{const K=$.slice(j).map(q,-1),G=$.slice(j).map(Y),J=$.invert().map(K,-1),Z=$.invert().map(G);N.push({oldRange:{from:J,to:Z},newRange:{from:K,to:G}})})}),simplifyChangedRanges(N)}function getDebugJSON(M,$=0){const N=M.type===M.type.schema.topNodeType?0:1,B=$,j=B+M.nodeSize,U=M.marks.map(K=>{const G={type:K.type.name};return Object.keys(K.attrs).length&&(G.attrs={...K.attrs}),G}),q={...M.attrs},Y={type:M.type.name,from:B,to:j};return Object.keys(q).length&&(Y.attrs=q),U.length&&(Y.marks=U),M.content.childCount&&(Y.content=[],M.forEach((K,G)=>{var J;(J=Y.content)===null||J===void 0||J.push(getDebugJSON(K,$+G+N))})),M.text&&(Y.text=M.text),Y}function getMarksBetween(M,$,I){const N=[];return M===$?I.resolve(M).marks().forEach(B=>{const j=I.resolve(M-1),U=getMarkRange(j,B.type);U&&N.push({mark:B,...U})}):I.nodesBetween(M,$,(B,j)=>{N.push(...B.marks.map(U=>({from:j,to:j+B.nodeSize,mark:U})))}),N}function getSplittedAttributes(M,$,I){return Object.fromEntries(Object.entries(I).filter(([N])=>{const B=M.find(j=>j.type===$&&j.name===N);return B?B.attribute.keepOnSplit:!1}))}function isMarkActive(M,$,I={}){const{empty:N,ranges:B}=M.selection,j=$?getMarkType($,M.schema):null;if(N)return!!(M.storedMarks||M.selection.$from.marks()).filter(J=>j?j.name===J.type.name:!0).find(J=>objectIncludes$1(J.attrs,I,{strict:!1}));let U=0;const q=[];if(B.forEach(({$from:J,$to:Z})=>{const ee=J.pos,te=Z.pos;M.doc.nodesBetween(ee,te,(re,se)=>{if(!re.isText&&!re.marks.length)return;const ne=Math.max(ee,se),le=Math.min(te,se+re.nodeSize),ge=le-ne;U+=ge,q.push(...re.marks.map(ue=>({mark:ue,from:ne,to:le})))})}),U===0)return!1;const Y=q.filter(J=>j?j.name===J.mark.type.name:!0).filter(J=>objectIncludes$1(J.mark.attrs,I,{strict:!1})).reduce((J,Z)=>J+Z.to-Z.from,0),K=q.filter(J=>j?J.mark.type!==j&&J.mark.type.excludes(j):!0).reduce((J,Z)=>J+Z.to-Z.from,0);return(Y>0?Y+K:Y)>=U}function isActive(M,$,I={}){if(!$)return isNodeActive(M,null,I)||isMarkActive(M,null,I);const N=getSchemaTypeNameByName($,M.schema);return N==="node"?isNodeActive(M,$,I):N==="mark"?isMarkActive(M,$,I):!1}function isList(M,$){const{nodeExtensions:I}=splitExtensions($),N=I.find(U=>U.name===M);if(!N)return!1;const B={name:N.name,options:N.options,storage:N.storage},j=callOrReturn(getExtensionField(N,"group",B));return typeof j!="string"?!1:j.split(" ").includes("list")}function isNodeEmpty(M){var $;const I=($=M.type.createAndFill())===null||$===void 0?void 0:$.toJSON(),N=M.toJSON();return JSON.stringify(I)===JSON.stringify(N)}function isNodeSelection(M){return M instanceof NodeSelection}function posToDOMRect(M,$,I){const B=M.state.doc.content.size,j=minMax($,0,B),U=minMax(I,0,B),q=M.coordsAtPos(j),Y=M.coordsAtPos(U,-1),K=Math.min(q.top,Y.top),G=Math.max(q.bottom,Y.bottom),J=Math.min(q.left,Y.left),Z=Math.max(q.right,Y.right),ee=Z-J,te=G-K,ne={top:K,bottom:G,left:J,right:Z,width:ee,height:te,x:J,y:K};return{...ne,toJSON:()=>ne}}function canSetMark(M,$,I){var N;const{selection:B}=$;let j=null;if(isTextSelection(B)&&(j=B.$cursor),j){const q=(N=M.storedMarks)!==null&&N!==void 0?N:j.marks();return!!I.isInSet(q)||!q.some(Y=>Y.type.excludes(I))}const{ranges:U}=B;return U.some(({$from:q,$to:Y})=>{let K=q.depth===0?M.doc.inlineContent&&M.doc.type.allowsMarkType(I):!1;return M.doc.nodesBetween(q.pos,Y.pos,(G,J,Z)=>{if(K)return!1;if(G.isInline){const ee=!Z||Z.type.allowsMarkType(I),te=!!I.isInSet(G.marks)||!G.marks.some(re=>re.type.excludes(I));K=ee&&te}return!K}),K})}const setMark=(M,$={})=>({tr:I,state:N,dispatch:B})=>{const{selection:j}=I,{empty:U,ranges:q}=j,Y=getMarkType(M,N.schema);if(B)if(U){const K=getMarkAttributes(N,Y);I.addStoredMark(Y.create({...K,...$}))}else q.forEach(K=>{const G=K.$from.pos,J=K.$to.pos;N.doc.nodesBetween(G,J,(Z,ee)=>{const te=Math.max(ee,G),re=Math.min(ee+Z.nodeSize,J);Z.marks.find(ne=>ne.type===Y)?Z.marks.forEach(ne=>{Y===ne.type&&I.addMark(te,re,Y.create({...ne.attrs,...$}))}):I.addMark(te,re,Y.create($))})});return canSetMark(N,I,Y)},setMeta=(M,$)=>({tr:I})=>(I.setMeta(M,$),!0),setNode=(M,$={})=>({state:I,dispatch:N,chain:B})=>{const j=getNodeType(M,I.schema);return j.isTextblock?B().command(({commands:U})=>setBlockType(j,$)(I)?!0:U.clearNodes()).command(({state:U})=>setBlockType(j,$)(U,N)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection=M=>({tr:$,dispatch:I})=>{if(I){const{doc:N}=$,B=minMax(M,0,N.content.size),j=NodeSelection.create(N,B);$.setSelection(j)}return!0},setTextSelection=M=>({tr:$,dispatch:I})=>{if(I){const{doc:N}=$,{from:B,to:j}=typeof M=="number"?{from:M,to:M}:M,U=TextSelection.atStart(N).from,q=TextSelection.atEnd(N).to,Y=minMax(B,U,q),K=minMax(j,U,q),G=TextSelection.create(N,Y,K);$.setSelection(G)}return!0},sinkListItem=M=>({state:$,dispatch:I})=>{const N=getNodeType(M,$.schema);return sinkListItem$1(N)($,I)};function ensureMarks(M,$){const I=M.storedMarks||M.selection.$to.parentOffset&&M.selection.$from.marks();if(I){const N=I.filter(B=>$==null?void 0:$.includes(B.type.name));M.tr.ensureMarks(N)}}const splitBlock=({keepMarks:M=!0}={})=>({tr:$,state:I,dispatch:N,editor:B})=>{const{selection:j,doc:U}=$,{$from:q,$to:Y}=j,K=B.extensionManager.attributes,G=getSplittedAttributes(K,q.node().type.name,q.node().attrs);if(j instanceof NodeSelection&&j.node.isBlock)return!q.parentOffset||!canSplit(U,q.pos)?!1:(N&&(M&&ensureMarks(I,B.extensionManager.splittableMarks),$.split(q.pos).scrollIntoView()),!0);if(!q.parent.isBlock)return!1;if(N){const J=Y.parentOffset===Y.parent.content.size;j instanceof TextSelection&&$.deleteSelection();const Z=q.depth===0?void 0:defaultBlockAt(q.node(-1).contentMatchAt(q.indexAfter(-1)));let ee=J&&Z?[{type:Z,attrs:G}]:void 0,te=canSplit($.doc,$.mapping.map(q.pos),1,ee);if(!ee&&!te&&canSplit($.doc,$.mapping.map(q.pos),1,Z?[{type:Z}]:void 0)&&(te=!0,ee=Z?[{type:Z,attrs:G}]:void 0),te&&($.split($.mapping.map(q.pos),1,ee),Z&&!J&&!q.parentOffset&&q.parent.type!==Z)){const re=$.mapping.map(q.before()),se=$.doc.resolve(re);q.node(-1).canReplaceWith(se.index(),se.index()+1,Z)&&$.setNodeMarkup($.mapping.map(q.before()),Z)}M&&ensureMarks(I,B.extensionManager.splittableMarks),$.scrollIntoView()}return!0},splitListItem=M=>({tr:$,state:I,dispatch:N,editor:B})=>{var j;const U=getNodeType(M,I.schema),{$from:q,$to:Y}=I.selection,K=I.selection.node;if(K&&K.isBlock||q.depth<2||!q.sameParent(Y))return!1;const G=q.node(-1);if(G.type!==U)return!1;const J=B.extensionManager.attributes;if(q.parent.content.size===0&&q.node(-1).childCount===q.indexAfter(-1)){if(q.depth===2||q.node(-3).type!==U||q.index(-2)!==q.node(-2).childCount-1)return!1;if(N){let se=Fragment.empty;const ne=q.index(-1)?1:q.index(-2)?2:3;for(let me=q.depth-ne;me>=q.depth-3;me-=1)se=Fragment.from(q.node(me).copy(se));const le=q.indexAfter(-1)<q.node(-2).childCount?1:q.indexAfter(-2)<q.node(-3).childCount?2:3,ge=getSplittedAttributes(J,q.node().type.name,q.node().attrs),ue=((j=U.contentMatch.defaultType)===null||j===void 0?void 0:j.createAndFill(ge))||void 0;se=se.append(Fragment.from(U.createAndFill(null,ue)||void 0));const _e=q.before(q.depth-(ne-1));$.replace(_e,q.after(-le),new Slice(se,4-ne,0));let fe=-1;$.doc.nodesBetween(_e,$.doc.content.size,(me,ve)=>{if(fe>-1)return!1;me.isTextblock&&me.content.size===0&&(fe=ve+1)}),fe>-1&&$.setSelection(TextSelection.near($.doc.resolve(fe))),$.scrollIntoView()}return!0}const Z=Y.pos===q.end()?G.contentMatchAt(0).defaultType:null,ee=getSplittedAttributes(J,G.type.name,G.attrs),te=getSplittedAttributes(J,q.node().type.name,q.node().attrs);$.delete(q.pos,Y.pos);const re=Z?[{type:U,attrs:ee},{type:Z,attrs:te}]:[{type:U,attrs:ee}];if(!canSplit($.doc,q.pos,2))return!1;if(N){const{selection:se,storedMarks:ne}=I,{splittableMarks:le}=B.extensionManager,ge=ne||se.$to.parentOffset&&se.$from.marks();if($.split(q.pos,2,re).scrollIntoView(),!ge||!N)return!0;const ue=ge.filter(_e=>le.includes(_e.type.name));$.ensureMarks(ue)}return!0},joinListBackwards=(M,$)=>{const I=findParentNode(U=>U.type===$)(M.selection);if(!I)return!0;const N=M.doc.resolve(Math.max(0,I.pos-1)).before(I.depth);if(N===void 0)return!0;const B=M.doc.nodeAt(N);return I.node.type===(B==null?void 0:B.type)&&canJoin(M.doc,I.pos)&&M.join(I.pos),!0},joinListForwards=(M,$)=>{const I=findParentNode(U=>U.type===$)(M.selection);if(!I)return!0;const N=M.doc.resolve(I.start).after(I.depth);if(N===void 0)return!0;const B=M.doc.nodeAt(N);return I.node.type===(B==null?void 0:B.type)&&canJoin(M.doc,N)&&M.join(N),!0},toggleList=(M,$,I,N={})=>({editor:B,tr:j,state:U,dispatch:q,chain:Y,commands:K,can:G})=>{const{extensions:J,splittableMarks:Z}=B.extensionManager,ee=getNodeType(M,U.schema),te=getNodeType($,U.schema),{selection:re,storedMarks:se}=U,{$from:ne,$to:le}=re,ge=ne.blockRange(le),ue=se||re.$to.parentOffset&&re.$from.marks();if(!ge)return!1;const _e=findParentNode(fe=>isList(fe.type.name,J))(re);if(ge.depth>=1&&_e&&ge.depth-_e.depth<=1){if(_e.node.type===ee)return K.liftListItem(te);if(isList(_e.node.type.name,J)&&ee.validContent(_e.node.content)&&q)return Y().command(()=>(j.setNodeMarkup(_e.pos,ee),!0)).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run()}return!I||!ue||!q?Y().command(()=>G().wrapInList(ee,N)?!0:K.clearNodes()).wrapInList(ee,N).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run():Y().command(()=>{const fe=G().wrapInList(ee,N),me=ue.filter(ve=>Z.includes(ve.type.name));return j.ensureMarks(me),fe?!0:K.clearNodes()}).wrapInList(ee,N).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run()},toggleMark=(M,$={},I={})=>({state:N,commands:B})=>{const{extendEmptyMarkRange:j=!1}=I,U=getMarkType(M,N.schema);return isMarkActive(N,U,$)?B.unsetMark(U,{extendEmptyMarkRange:j}):B.setMark(U,$)},toggleNode=(M,$,I={})=>({state:N,commands:B})=>{const j=getNodeType(M,N.schema),U=getNodeType($,N.schema);return isNodeActive(N,j,I)?B.setNode(U):B.setNode(j,I)},toggleWrap=(M,$={})=>({state:I,commands:N})=>{const B=getNodeType(M,I.schema);return isNodeActive(I,B,$)?N.lift(B):N.wrapIn(B,$)},undoInputRule=()=>({state:M,dispatch:$})=>{const I=M.plugins;for(let N=0;N<I.length;N+=1){const B=I[N];let j;if(B.spec.isInputRules&&(j=B.getState(M))){if($){const U=M.tr,q=j.transform;for(let Y=q.steps.length-1;Y>=0;Y-=1)U.step(q.steps[Y].invert(q.docs[Y]));if(j.text){const Y=U.doc.resolve(j.from).marks();U.replaceWith(j.from,j.to,M.schema.text(j.text,Y))}else U.delete(j.from,j.to)}return!0}}return!1},unsetAllMarks=()=>({tr:M,dispatch:$})=>{const{selection:I}=M,{empty:N,ranges:B}=I;return N||$&&B.forEach(j=>{M.removeMark(j.$from.pos,j.$to.pos)}),!0},unsetMark=(M,$={})=>({tr:I,state:N,dispatch:B})=>{var j;const{extendEmptyMarkRange:U=!1}=$,{selection:q}=I,Y=getMarkType(M,N.schema),{$from:K,empty:G,ranges:J}=q;if(!B)return!0;if(G&&U){let{from:Z,to:ee}=q;const te=(j=K.marks().find(se=>se.type===Y))===null||j===void 0?void 0:j.attrs,re=getMarkRange(K,Y,te);re&&(Z=re.from,ee=re.to),I.removeMark(Z,ee,Y)}else J.forEach(Z=>{I.removeMark(Z.$from.pos,Z.$to.pos,Y)});return I.removeStoredMark(Y),!0},updateAttributes=(M,$={})=>({tr:I,state:N,dispatch:B})=>{let j=null,U=null;const q=getSchemaTypeNameByName(typeof M=="string"?M:M.name,N.schema);return q?(q==="node"&&(j=getNodeType(M,N.schema)),q==="mark"&&(U=getMarkType(M,N.schema)),B&&I.selection.ranges.forEach(Y=>{const K=Y.$from.pos,G=Y.$to.pos;N.doc.nodesBetween(K,G,(J,Z)=>{j&&j===J.type&&I.setNodeMarkup(Z,void 0,{...J.attrs,...$}),U&&J.marks.length&&J.marks.forEach(ee=>{if(U===ee.type){const te=Math.max(Z,K),re=Math.min(Z+J.nodeSize,G);I.addMark(te,re,U.create({...ee.attrs,...$}))}})})}),!0):!1},wrapIn=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return wrapIn$1(B,$)(I,N)},wrapInList=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return wrapInList$1(B,$)(I,N)};var commands=Object.freeze({__proto__:null,blur,clearContent,clearNodes,command,createParagraphNear,deleteCurrentNode,deleteNode,deleteRange,deleteSelection,enter,exitCode,extendMarkRange,first:first$1,focus,forEach:forEach$1,insertContent,insertContentAt,joinUp,joinDown,joinBackward,joinForward,keyboardShortcut,lift,liftEmptyBlock,liftListItem,newlineInCode,resetAttributes,scrollIntoView,selectAll,selectNodeBackward,selectNodeForward,selectParentNode,selectTextblockEnd,selectTextblockStart,setContent:setContent$1,setMark,setMeta,setNode,setNodeSelection,setTextSelection,sinkListItem,splitBlock,splitListItem,toggleList,toggleMark,toggleNode,toggleWrap,undoInputRule,unsetAllMarks,unsetMark,updateAttributes,wrapIn,wrapInList});const Commands=Extension.create({name:"commands",addCommands(){return{...commands}}}),Editable=Extension.create({name:"editable",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("editable"),props:{editable:()=>this.editor.options.editable}})]}}),FocusEvents=Extension.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:M}=this;return[new Plugin({key:new PluginKey("focusEvents"),props:{handleDOMEvents:{focus:($,I)=>{M.isFocused=!0;const N=M.state.tr.setMeta("focus",{event:I}).setMeta("addToHistory",!1);return $.dispatch(N),!1},blur:($,I)=>{M.isFocused=!1;const N=M.state.tr.setMeta("blur",{event:I}).setMeta("addToHistory",!1);return $.dispatch(N),!1}}}})]}}),Keymap=Extension.create({name:"keymap",addKeyboardShortcuts(){const M=()=>this.editor.commands.first(({commands:U})=>[()=>U.undoInputRule(),()=>U.command(({tr:q})=>{const{selection:Y,doc:K}=q,{empty:G,$anchor:J}=Y,{pos:Z,parent:ee}=J,te=Selection.atStart(K).from===Z;return!G||!te||!ee.type.isTextblock||ee.textContent.length?!1:U.clearNodes()}),()=>U.deleteSelection(),()=>U.joinBackward(),()=>U.selectNodeBackward()]),$=()=>this.editor.commands.first(({commands:U})=>[()=>U.deleteSelection(),()=>U.deleteCurrentNode(),()=>U.joinForward(),()=>U.selectNodeForward()]),N={Enter:()=>this.editor.commands.first(({commands:U})=>[()=>U.newlineInCode(),()=>U.createParagraphNear(),()=>U.liftEmptyBlock(),()=>U.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:M,"Mod-Backspace":M,"Shift-Backspace":M,Delete:$,"Mod-Delete":$,"Mod-a":()=>this.editor.commands.selectAll()},B={...N},j={...N,"Ctrl-h":M,"Alt-Backspace":M,"Ctrl-d":$,"Ctrl-Alt-Backspace":$,"Alt-Delete":$,"Alt-d":$,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return isiOS()||isMacOS()?j:B},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("clearDocument"),appendTransaction:(M,$,I)=>{if(!(M.some(te=>te.docChanged)&&!$.doc.eq(I.doc)))return;const{empty:B,from:j,to:U}=$.selection,q=Selection.atStart($.doc).from,Y=Selection.atEnd($.doc).to;if(B||!(j===q&&U===Y)||!(I.doc.textBetween(0,I.doc.content.size," "," ").length===0))return;const J=I.tr,Z=createChainableState({state:I,transaction:J}),{commands:ee}=new CommandManager({editor:this.editor,state:Z});if(ee.clearNodes(),!!J.steps.length)return J}})]}}),Tabindex=Extension.create({name:"tabindex",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var extensions=Object.freeze({__proto__:null,ClipboardTextSerializer,Commands,Editable,FocusEvents,Keymap,Tabindex});const style$1=`.ProseMirror {
- position: relative;
- }
-
- .ProseMirror {
- word-wrap: break-word;
- white-space: pre-wrap;
- white-space: break-spaces;
- -webkit-font-variant-ligatures: none;
- font-variant-ligatures: none;
- font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
- }
-
- .ProseMirror [contenteditable="false"] {
- white-space: normal;
- }
-
- .ProseMirror [contenteditable="false"] [contenteditable="true"] {
- white-space: pre-wrap;
- }
-
- .ProseMirror pre {
- white-space: pre-wrap;
- }
-
- img.ProseMirror-separator {
- display: inline !important;
- border: none !important;
- margin: 0 !important;
- width: 1px !important;
- height: 1px !important;
- }
-
- .ProseMirror-gapcursor {
- display: none;
- pointer-events: none;
- position: absolute;
- margin: 0;
- }
-
- .ProseMirror-gapcursor:after {
- content: "";
- display: block;
- position: absolute;
- top: -2px;
- width: 20px;
- border-top: 1px solid black;
- animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
- }
-
- @keyframes ProseMirror-cursor-blink {
- to {
- visibility: hidden;
- }
- }
-
- .ProseMirror-hideselection *::selection {
- background: transparent;
- }
-
- .ProseMirror-hideselection *::-moz-selection {
- background: transparent;
- }
-
- .ProseMirror-hideselection * {
- caret-color: transparent;
- }
-
- .ProseMirror-focused .ProseMirror-gapcursor {
- display: block;
- }
-
- .tippy-box[data-animation=fade][data-state=hidden] {
- opacity: 0
- }`;function createStyleTag(M,$){const I=document.querySelector("style[data-tiptap-style]");if(I!==null)return I;const N=document.createElement("style");return $&&N.setAttribute("nonce",$),N.setAttribute("data-tiptap-style",""),N.innerHTML=M,document.getElementsByTagName("head")[0].appendChild(N),N}let Editor$1=class extends EventEmitter{constructor($={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions($),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=createStyleTag(style$1,this.options.injectNonce))}setOptions($={}){this.options={...this.options,...$},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable($,I=!0){this.setOptions({editable:$}),I&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin($,I){const N=isFunction$5(I)?I($,[...this.state.plugins]):[...this.state.plugins,$],B=this.state.reconfigure({plugins:N});this.view.updateState(B)}unregisterPlugin($){if(this.isDestroyed)return;const I=typeof $=="string"?`${$}$`:$.key,N=this.state.reconfigure({plugins:this.state.plugins.filter(B=>!B.key.startsWith(I))});this.view.updateState(N)}createExtensionManager(){const I=[...this.options.enableCoreExtensions?Object.values(extensions):[],...this.options.extensions].filter(N=>["extension","node","mark"].includes(N==null?void 0:N.type));this.extensionManager=new ExtensionManager(I,this)}createCommandManager(){this.commandManager=new CommandManager({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const $=createDocument(this.options.content,this.schema,this.options.parseOptions),I=resolveFocusPosition($,this.options.autofocus);this.view=new EditorView(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:EditorState.create({doc:$,selection:I||void 0})});const N=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(N),this.createNodeViews();const B=this.view.dom;B.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction($){this.isCapturingTransaction=!0,$(),this.isCapturingTransaction=!1;const I=this.capturedTransaction;return this.capturedTransaction=null,I}dispatchTransaction($){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=$;return}$.steps.forEach(U=>{var q;return(q=this.capturedTransaction)===null||q===void 0?void 0:q.step(U)});return}const I=this.state.apply($),N=!this.state.selection.eq(I.selection);this.view.updateState(I),this.emit("transaction",{editor:this,transaction:$}),N&&this.emit("selectionUpdate",{editor:this,transaction:$});const B=$.getMeta("focus"),j=$.getMeta("blur");B&&this.emit("focus",{editor:this,event:B.event,transaction:$}),j&&this.emit("blur",{editor:this,event:j.event,transaction:$}),!(!$.docChanged||$.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:$})}getAttributes($){return getAttributes(this.state,$)}isActive($,I){const N=typeof $=="string"?$:null,B=typeof $=="string"?I:$;return isActive(this.state,N,B)}getJSON(){return this.state.doc.toJSON()}getHTML(){return getHTMLFromFragment(this.state.doc.content,this.schema)}getText($){const{blockSeparator:I=`
-
- `,textSerializers:N={}}=$||{};return getText(this.state.doc,{blockSeparator:I,textSerializers:{...getTextSerializersFromSchema(this.schema),...N}})}get isEmpty(){return isNodeEmpty(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var $;return!(!(($=this.view)===null||$===void 0)&&$.docView)}};function markInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=callOrReturn(M.getAttributes,void 0,N);if(B===!1||B===null)return null;const{tr:j}=$,U=N[N.length-1],q=N[0];let Y=I.to;if(U){const K=q.search(/\S/),G=I.from+q.indexOf(U),J=G+U.length;if(getMarksBetween(I.from,I.to,$.doc).filter(ee=>ee.mark.type.excluded.find(re=>re===M.type&&re!==ee.mark.type)).filter(ee=>ee.to>G).length)return null;J<I.to&&j.delete(J,I.to),G>I.from&&j.delete(I.from+K,G),Y=I.from+K+U.length,j.addMark(I.from+K,Y,M.type.create(B||{})),j.removeStoredMark(M.type)}}})}function nodeInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=callOrReturn(M.getAttributes,void 0,N)||{},{tr:j}=$,U=I.from;let q=I.to;if(N[1]){const Y=N[0].lastIndexOf(N[1]);let K=U+Y;K>q?K=q:q=K+N[1].length;const G=N[0][N[0].length-1];j.insertText(G,U+N[0].length-1),j.replaceWith(K,q,M.type.create(B))}else N[0]&&j.replaceWith(U,q,M.type.create(B))}})}function textblockTypeInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=$.doc.resolve(I.from),j=callOrReturn(M.getAttributes,void 0,N)||{};if(!B.node(-1).canReplaceWith(B.index(-1),B.indexAfter(-1),M.type))return null;$.tr.delete(I.from,I.to).setBlockType(I.from,I.from,M.type,j)}})}function textInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{let B=M.replace,j=I.from;const U=I.to;if(N[1]){const q=N[0].lastIndexOf(N[1]);B+=N[0].slice(q+N[1].length),j+=q;const Y=j-U;Y>0&&(B=N[0].slice(q-Y,q)+B,j=U)}$.tr.insertText(B,j,U)}})}function wrappingInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N,chain:B})=>{const j=callOrReturn(M.getAttributes,void 0,N)||{},U=$.tr.delete(I.from,I.to),Y=U.doc.resolve(I.from).blockRange(),K=Y&&findWrapping(Y,M.type,j);if(!K)return null;if(U.wrap(Y,K),M.keepMarks&&M.editor){const{selection:J,storedMarks:Z}=$,{splittableMarks:ee}=M.editor.extensionManager,te=Z||J.$to.parentOffset&&J.$from.marks();if(te){const re=te.filter(se=>ee.includes(se.type.name));U.ensureMarks(re)}}if(M.keepAttributes){const J=M.type.name==="bulletList"||M.type.name==="orderedList"?"listItem":"taskList";B().updateAttributes(J,j).run()}const G=U.doc.resolve(I.from-1).nodeBefore;G&&G.type===M.type&&canJoin(U.doc,I.from-1)&&(!M.joinPredicate||M.joinPredicate(N,G))&&U.join(I.from-1)}})}class Mark{constructor($={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new Mark($)}configure($={}){const I=this.extend();return I.options=mergeDeep(this.options,$),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}extend($={}){const I=new Mark($);return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}static handleExit({editor:$,mark:I}){const{tr:N}=$.state,B=$.state.selection.$from;if(B.pos===B.end()){const U=B.marks();if(!!!U.find(K=>(K==null?void 0:K.type.name)===I.name))return!1;const Y=U.find(K=>(K==null?void 0:K.type.name)===I.name);return Y&&N.removeStoredMark(Y),N.insertText(" ",B.pos),$.view.dispatch(N),!0}return!1}}let Node$1=class Kl{constructor($={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new Kl($)}configure($={}){const I=this.extend();return I.options=mergeDeep(this.options,$),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}extend($={}){const I=new Kl($);return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}};class NodeView{constructor($,I,N){this.isDragging=!1,this.component=$,this.editor=I.editor,this.options={stopEvent:null,ignoreMutation:null,...N},this.extension=I.extension,this.node=I.node,this.decorations=I.decorations,this.getPos=I.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart($){var I,N,B,j,U,q,Y;const{view:K}=this.editor,G=$.target,J=G.nodeType===3?(I=G.parentElement)===null||I===void 0?void 0:I.closest("[data-drag-handle]"):G.closest("[data-drag-handle]");if(!this.dom||!((N=this.contentDOM)===null||N===void 0)&&N.contains(G)||!J)return;let Z=0,ee=0;if(this.dom!==J){const se=this.dom.getBoundingClientRect(),ne=J.getBoundingClientRect(),le=(B=$.offsetX)!==null&&B!==void 0?B:(j=$.nativeEvent)===null||j===void 0?void 0:j.offsetX,ge=(U=$.offsetY)!==null&&U!==void 0?U:(q=$.nativeEvent)===null||q===void 0?void 0:q.offsetY;Z=ne.x-se.x+le,ee=ne.y-se.y+ge}(Y=$.dataTransfer)===null||Y===void 0||Y.setDragImage(this.dom,Z,ee);const te=NodeSelection.create(K.state.doc,this.getPos()),re=K.state.tr.setSelection(te);K.dispatch(re)}stopEvent($){var I;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:$});const N=$.target;if(!(this.dom.contains(N)&&!(!((I=this.contentDOM)===null||I===void 0)&&I.contains(N))))return!1;const j=$.type.startsWith("drag"),U=$.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(N.tagName)||N.isContentEditable)&&!U&&!j)return!0;const{isEditable:Y}=this.editor,{isDragging:K}=this,G=!!this.node.type.spec.draggable,J=NodeSelection.isSelectable(this.node),Z=$.type==="copy",ee=$.type==="paste",te=$.type==="cut",re=$.type==="mousedown";if(!G&&J&&j&&$.preventDefault(),G&&j&&!K)return $.preventDefault(),!1;if(G&&Y&&!K&&re){const se=N.closest("[data-drag-handle]");se&&(this.dom===se||this.dom.contains(se))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(K||U||Z||ee||te||re&&J)}ignoreMutation($){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:$}):this.node.isLeaf||this.node.isAtom?!0:$.type==="selection"||this.dom.contains($.target)&&$.type==="childList"&&isiOS()&&this.editor.isFocused&&[...Array.from($.addedNodes),...Array.from($.removedNodes)].every(N=>N.isContentEditable)?!1:this.contentDOM===$.target&&$.type==="attributes"?!0:!this.contentDOM.contains($.target)}updateAttributes($){this.editor.commands.command(({tr:I})=>{const N=this.getPos();return I.setNodeMarkup(N,void 0,{...this.node.attrs,...$}),!0})}deleteNode(){const $=this.getPos(),I=$+this.node.nodeSize;this.editor.commands.deleteRange({from:$,to:I})}}function markPasteRule(M){return new PasteRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=callOrReturn(M.getAttributes,void 0,N);if(B===!1||B===null)return null;const{tr:j}=$,U=N[N.length-1],q=N[0];let Y=I.to;if(U){const K=q.search(/\S/),G=I.from+q.indexOf(U),J=G+U.length;if(getMarksBetween(I.from,I.to,$.doc).filter(ee=>ee.mark.type.excluded.find(re=>re===M.type&&re!==ee.mark.type)).filter(ee=>ee.to>G).length)return null;J<I.to&&j.delete(J,I.to),G>I.from&&j.delete(I.from+K,G),Y=I.from+K+U.length,j.addMark(I.from+K,Y,M.type.create(B||{})),j.removeStoredMark(M.type)}}})}function escapeForRegEx(M){return M.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function isString$6(M){return typeof M=="string"}function nodePasteRule(M){return new PasteRule({find:M.find,handler({match:$,chain:I,range:N}){const B=callOrReturn(M.getAttributes,void 0,$);if(B===!1||B===null)return null;$.input&&I().deleteRange(N).insertContentAt(N.from,{type:M.type.name,attrs:B})}})}function textPasteRule(M){return new PasteRule({find:M.find,handler:({state:$,range:I,match:N})=>{let B=M.replace,j=I.from;const U=I.to;if(N[1]){const q=N[0].lastIndexOf(N[1]);B+=N[0].slice(q+N[1].length),j+=q;const Y=j-U;Y>0&&(B=N[0].slice(q-Y,q)+B,j=U)}$.tr.insertText(B,j,U)}})}class Tracker{constructor($){this.transaction=$,this.currentStep=this.transaction.steps.length}map($){let I=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce((B,j)=>{const U=j.getMap().mapResult(B);return U.deleted&&(I=!0),U.pos},$),deleted:I}}}const core$2=Object.freeze(Object.defineProperty({__proto__:null,CommandManager,Editor:Editor$1,Extension,InputRule,Mark,Node:Node$1,NodeView,PasteRule,Tracker,callOrReturn,combineTransactionSteps,createChainableState,createDocument,createNodeFromContent,createStyleTag,defaultBlockAt,deleteProps,elementFromString,escapeForRegEx,extensions,findChildren,findChildrenInRange,findDuplicates,findParentNode,findParentNodeClosestToPos,fromString,generateHTML,generateJSON,generateText,getAttributes,getAttributesFromExtensions,getChangedRanges,getDebugJSON,getExtensionField,getHTMLFromFragment,getMarkAttributes,getMarkRange,getMarkType,getMarksBetween,getNodeAttributes,getNodeType,getRenderedAttributes,getSchema,getSchemaByResolvedExtensions,getSchemaTypeByName,getSchemaTypeNameByName,getSplittedAttributes,getText,getTextBetween,getTextContentFromNodes,getTextSerializersFromSchema,injectExtensionAttributesToParseRule,inputRulesPlugin,isActive,isEmptyObject,isExtensionRulesEnabled,isFunction:isFunction$5,isList,isMacOS,isMarkActive,isNodeActive,isNodeEmpty,isNodeSelection,isNumber:isNumber$4,isPlainObject:isPlainObject$1,isRegExp:isRegExp$4,isString:isString$6,isTextSelection,isiOS,markInputRule,markPasteRule,mergeAttributes,mergeDeep,minMax,nodeInputRule,nodePasteRule,objectIncludes:objectIncludes$1,pasteRulesPlugin,posToDOMRect,removeDuplicates,resolveFocusPosition,selectionToInsertionEnd,splitExtensions,textInputRule,textPasteRule,textblockTypeInputRule,wrappingInputRule},Symbol.toStringTag,{value:"Module"}));var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements$1=[top,bottom,right,left],start$1="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements$1.reduce(function(M,$){return M.concat([$+"-"+start$1,$+"-"+end])},[]),placements$1=[].concat(basePlacements$1,[auto]).reduce(function(M,$){return M.concat([$,$+"-"+start$1,$+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName$1(M){return M?(M.nodeName||"").toLowerCase():null}function getWindow$1(M){if(M==null)return window;if(M.toString()!=="[object Window]"){var $=M.ownerDocument;return $&&$.defaultView||window}return M}function isElement$4(M){var $=getWindow$1(M).Element;return M instanceof $||M instanceof Element}function isHTMLElement$1(M){var $=getWindow$1(M).HTMLElement;return M instanceof $||M instanceof HTMLElement}function isShadowRoot$1(M){if(typeof ShadowRoot>"u")return!1;var $=getWindow$1(M).ShadowRoot;return M instanceof $||M instanceof ShadowRoot}function applyStyles(M){var $=M.state;Object.keys($.elements).forEach(function(I){var N=$.styles[I]||{},B=$.attributes[I]||{},j=$.elements[I];!isHTMLElement$1(j)||!getNodeName$1(j)||(Object.assign(j.style,N),Object.keys(B).forEach(function(U){var q=B[U];q===!1?j.removeAttribute(U):j.setAttribute(U,q===!0?"":q)}))})}function effect$3(M){var $=M.state,I={popper:{position:$.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign($.elements.popper.style,I.popper),$.styles=I,$.elements.arrow&&Object.assign($.elements.arrow.style,I.arrow),function(){Object.keys($.elements).forEach(function(N){var B=$.elements[N],j=$.attributes[N]||{},U=Object.keys($.styles.hasOwnProperty(N)?$.styles[N]:I[N]),q=U.reduce(function(Y,K){return Y[K]="",Y},{});!isHTMLElement$1(B)||!getNodeName$1(B)||(Object.assign(B.style,q),Object.keys(j).forEach(function(Y){B.removeAttribute(Y)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$3,requires:["computeStyles"]};function getBasePlacement$2(M){return M.split("-")[0]}var max$4=Math.max,min$4=Math.min,round$2=Math.round;function getUAString(){var M=navigator.userAgentData;return M!=null&&M.brands&&Array.isArray(M.brands)?M.brands.map(function($){return $.brand+"/"+$.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect$1(M,$,I){$===void 0&&($=!1),I===void 0&&(I=!1);var N=M.getBoundingClientRect(),B=1,j=1;$&&isHTMLElement$1(M)&&(B=M.offsetWidth>0&&round$2(N.width)/M.offsetWidth||1,j=M.offsetHeight>0&&round$2(N.height)/M.offsetHeight||1);var U=isElement$4(M)?getWindow$1(M):window,q=U.visualViewport,Y=!isLayoutViewport()&&I,K=(N.left+(Y&&q?q.offsetLeft:0))/B,G=(N.top+(Y&&q?q.offsetTop:0))/j,J=N.width/B,Z=N.height/j;return{width:J,height:Z,top:G,right:K+J,bottom:G+Z,left:K,x:K,y:G}}function getLayoutRect(M){var $=getBoundingClientRect$1(M),I=M.offsetWidth,N=M.offsetHeight;return Math.abs($.width-I)<=1&&(I=$.width),Math.abs($.height-N)<=1&&(N=$.height),{x:M.offsetLeft,y:M.offsetTop,width:I,height:N}}function contains$2(M,$){var I=$.getRootNode&&$.getRootNode();if(M.contains($))return!0;if(I&&isShadowRoot$1(I)){var N=$;do{if(N&&M.isSameNode(N))return!0;N=N.parentNode||N.host}while(N)}return!1}function getComputedStyle$2(M){return getWindow$1(M).getComputedStyle(M)}function isTableElement$1(M){return["table","td","th"].indexOf(getNodeName$1(M))>=0}function getDocumentElement$1(M){return((isElement$4(M)?M.ownerDocument:M.document)||window.document).documentElement}function getParentNode$1(M){return getNodeName$1(M)==="html"?M:M.assignedSlot||M.parentNode||(isShadowRoot$1(M)?M.host:null)||getDocumentElement$1(M)}function getTrueOffsetParent$1(M){return!isHTMLElement$1(M)||getComputedStyle$2(M).position==="fixed"?null:M.offsetParent}function getContainingBlock$1(M){var $=/firefox/i.test(getUAString()),I=/Trident/i.test(getUAString());if(I&&isHTMLElement$1(M)){var N=getComputedStyle$2(M);if(N.position==="fixed")return null}var B=getParentNode$1(M);for(isShadowRoot$1(B)&&(B=B.host);isHTMLElement$1(B)&&["html","body"].indexOf(getNodeName$1(B))<0;){var j=getComputedStyle$2(B);if(j.transform!=="none"||j.perspective!=="none"||j.contain==="paint"||["transform","perspective"].indexOf(j.willChange)!==-1||$&&j.willChange==="filter"||$&&j.filter&&j.filter!=="none")return B;B=B.parentNode}return null}function getOffsetParent$1(M){for(var $=getWindow$1(M),I=getTrueOffsetParent$1(M);I&&isTableElement$1(I)&&getComputedStyle$2(I).position==="static";)I=getTrueOffsetParent$1(I);return I&&(getNodeName$1(I)==="html"||getNodeName$1(I)==="body"&&getComputedStyle$2(I).position==="static")?$:I||getContainingBlock$1(M)||$}function getMainAxisFromPlacement$1(M){return["top","bottom"].indexOf(M)>=0?"x":"y"}function within$1(M,$,I){return max$4(M,min$4($,I))}function withinMaxClamp(M,$,I){var N=within$1(M,$,I);return N>I?I:N}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(M){return Object.assign({},getFreshSideObject(),M)}function expandToHashMap(M,$){return $.reduce(function(I,N){return I[N]=M,I},{})}var toPaddingObject=function($,I){return $=typeof $=="function"?$(Object.assign({},I.rects,{placement:I.placement})):$,mergePaddingObject(typeof $!="number"?$:expandToHashMap($,basePlacements$1))};function arrow$3(M){var $,I=M.state,N=M.name,B=M.options,j=I.elements.arrow,U=I.modifiersData.popperOffsets,q=getBasePlacement$2(I.placement),Y=getMainAxisFromPlacement$1(q),K=[left,right].indexOf(q)>=0,G=K?"height":"width";if(!(!j||!U)){var J=toPaddingObject(B.padding,I),Z=getLayoutRect(j),ee=Y==="y"?top:left,te=Y==="y"?bottom:right,re=I.rects.reference[G]+I.rects.reference[Y]-U[Y]-I.rects.popper[G],se=U[Y]-I.rects.reference[Y],ne=getOffsetParent$1(j),le=ne?Y==="y"?ne.clientHeight||0:ne.clientWidth||0:0,ge=re/2-se/2,ue=J[ee],_e=le-Z[G]-J[te],fe=le/2-Z[G]/2+ge,me=within$1(ue,fe,_e),ve=Y;I.modifiersData[N]=($={},$[ve]=me,$.centerOffset=me-fe,$)}}function effect$2(M){var $=M.state,I=M.options,N=I.element,B=N===void 0?"[data-popper-arrow]":N;B!=null&&(typeof B=="string"&&(B=$.elements.popper.querySelector(B),!B)||contains$2($.elements.popper,B)&&($.elements.arrow=B))}const arrow$4={name:"arrow",enabled:!0,phase:"main",fn:arrow$3,effect:effect$2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(M){return M.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(M,$){var I=M.x,N=M.y,B=$.devicePixelRatio||1;return{x:round$2(I*B)/B||0,y:round$2(N*B)/B||0}}function mapToStyles(M){var $,I=M.popper,N=M.popperRect,B=M.placement,j=M.variation,U=M.offsets,q=M.position,Y=M.gpuAcceleration,K=M.adaptive,G=M.roundOffsets,J=M.isFixed,Z=U.x,ee=Z===void 0?0:Z,te=U.y,re=te===void 0?0:te,se=typeof G=="function"?G({x:ee,y:re}):{x:ee,y:re};ee=se.x,re=se.y;var ne=U.hasOwnProperty("x"),le=U.hasOwnProperty("y"),ge=left,ue=top,_e=window;if(K){var fe=getOffsetParent$1(I),me="clientHeight",ve="clientWidth";if(fe===getWindow$1(I)&&(fe=getDocumentElement$1(I),getComputedStyle$2(fe).position!=="static"&&q==="absolute"&&(me="scrollHeight",ve="scrollWidth")),fe=fe,B===top||(B===left||B===right)&&j===end){ue=bottom;var xe=J&&fe===_e&&_e.visualViewport?_e.visualViewport.height:fe[me];re-=xe-N.height,re*=Y?1:-1}if(B===left||(B===top||B===bottom)&&j===end){ge=right;var oe=J&&fe===_e&&_e.visualViewport?_e.visualViewport.width:fe[ve];ee-=oe-N.width,ee*=Y?1:-1}}var ye=Object.assign({position:q},K&&unsetSides),be=G===!0?roundOffsetsByDPR({x:ee,y:re},getWindow$1(I)):{x:ee,y:re};if(ee=be.x,re=be.y,Y){var we;return Object.assign({},ye,(we={},we[ue]=le?"0":"",we[ge]=ne?"0":"",we.transform=(_e.devicePixelRatio||1)<=1?"translate("+ee+"px, "+re+"px)":"translate3d("+ee+"px, "+re+"px, 0)",we))}return Object.assign({},ye,($={},$[ue]=le?re+"px":"",$[ge]=ne?ee+"px":"",$.transform="",$))}function computeStyles(M){var $=M.state,I=M.options,N=I.gpuAcceleration,B=N===void 0?!0:N,j=I.adaptive,U=j===void 0?!0:j,q=I.roundOffsets,Y=q===void 0?!0:q,K={placement:getBasePlacement$2($.placement),variation:getVariation($.placement),popper:$.elements.popper,popperRect:$.rects.popper,gpuAcceleration:B,isFixed:$.options.strategy==="fixed"};$.modifiersData.popperOffsets!=null&&($.styles.popper=Object.assign({},$.styles.popper,mapToStyles(Object.assign({},K,{offsets:$.modifiersData.popperOffsets,position:$.options.strategy,adaptive:U,roundOffsets:Y})))),$.modifiersData.arrow!=null&&($.styles.arrow=Object.assign({},$.styles.arrow,mapToStyles(Object.assign({},K,{offsets:$.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Y})))),$.attributes.popper=Object.assign({},$.attributes.popper,{"data-popper-placement":$.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect$1(M){var $=M.state,I=M.instance,N=M.options,B=N.scroll,j=B===void 0?!0:B,U=N.resize,q=U===void 0?!0:U,Y=getWindow$1($.elements.popper),K=[].concat($.scrollParents.reference,$.scrollParents.popper);return j&&K.forEach(function(G){G.addEventListener("scroll",I.update,passive)}),q&&Y.addEventListener("resize",I.update,passive),function(){j&&K.forEach(function(G){G.removeEventListener("scroll",I.update,passive)}),q&&Y.removeEventListener("resize",I.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect$1,data:{}};var hash$3={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement$1(M){return M.replace(/left|right|bottom|top/g,function($){return hash$3[$]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(M){return M.replace(/start|end/g,function($){return hash$2[$]})}function getWindowScroll(M){var $=getWindow$1(M),I=$.pageXOffset,N=$.pageYOffset;return{scrollLeft:I,scrollTop:N}}function getWindowScrollBarX$1(M){return getBoundingClientRect$1(getDocumentElement$1(M)).left+getWindowScroll(M).scrollLeft}function getViewportRect$1(M,$){var I=getWindow$1(M),N=getDocumentElement$1(M),B=I.visualViewport,j=N.clientWidth,U=N.clientHeight,q=0,Y=0;if(B){j=B.width,U=B.height;var K=isLayoutViewport();(K||!K&&$==="fixed")&&(q=B.offsetLeft,Y=B.offsetTop)}return{width:j,height:U,x:q+getWindowScrollBarX$1(M),y:Y}}function getDocumentRect$1(M){var $,I=getDocumentElement$1(M),N=getWindowScroll(M),B=($=M.ownerDocument)==null?void 0:$.body,j=max$4(I.scrollWidth,I.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),U=max$4(I.scrollHeight,I.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),q=-N.scrollLeft+getWindowScrollBarX$1(M),Y=-N.scrollTop;return getComputedStyle$2(B||I).direction==="rtl"&&(q+=max$4(I.clientWidth,B?B.clientWidth:0)-j),{width:j,height:U,x:q,y:Y}}function isScrollParent$1(M){var $=getComputedStyle$2(M),I=$.overflow,N=$.overflowX,B=$.overflowY;return/auto|scroll|overlay|hidden/.test(I+B+N)}function getScrollParent$1(M){return["html","body","#document"].indexOf(getNodeName$1(M))>=0?M.ownerDocument.body:isHTMLElement$1(M)&&isScrollParent$1(M)?M:getScrollParent$1(getParentNode$1(M))}function listScrollParents(M,$){var I;$===void 0&&($=[]);var N=getScrollParent$1(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=getWindow$1(N),U=B?[j].concat(j.visualViewport||[],isScrollParent$1(N)?N:[]):N,q=$.concat(U);return B?q:q.concat(listScrollParents(getParentNode$1(U)))}function rectToClientRect$1(M){return Object.assign({},M,{left:M.x,top:M.y,right:M.x+M.width,bottom:M.y+M.height})}function getInnerBoundingClientRect$1(M,$){var I=getBoundingClientRect$1(M,!1,$==="fixed");return I.top=I.top+M.clientTop,I.left=I.left+M.clientLeft,I.bottom=I.top+M.clientHeight,I.right=I.left+M.clientWidth,I.width=M.clientWidth,I.height=M.clientHeight,I.x=I.left,I.y=I.top,I}function getClientRectFromMixedType(M,$,I){return $===viewport?rectToClientRect$1(getViewportRect$1(M,I)):isElement$4($)?getInnerBoundingClientRect$1($,I):rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(M)))}function getClippingParents$1(M){var $=listScrollParents(getParentNode$1(M)),I=["absolute","fixed"].indexOf(getComputedStyle$2(M).position)>=0,N=I&&isHTMLElement$1(M)?getOffsetParent$1(M):M;return isElement$4(N)?$.filter(function(B){return isElement$4(B)&&contains$2(B,N)&&getNodeName$1(B)!=="body"}):[]}function getClippingRect(M,$,I,N){var B=$==="clippingParents"?getClippingParents$1(M):[].concat($),j=[].concat(B,[I]),U=j[0],q=j.reduce(function(Y,K){var G=getClientRectFromMixedType(M,K,N);return Y.top=max$4(G.top,Y.top),Y.right=min$4(G.right,Y.right),Y.bottom=min$4(G.bottom,Y.bottom),Y.left=max$4(G.left,Y.left),Y},getClientRectFromMixedType(M,U,N));return q.width=q.right-q.left,q.height=q.bottom-q.top,q.x=q.left,q.y=q.top,q}function computeOffsets(M){var $=M.reference,I=M.element,N=M.placement,B=N?getBasePlacement$2(N):null,j=N?getVariation(N):null,U=$.x+$.width/2-I.width/2,q=$.y+$.height/2-I.height/2,Y;switch(B){case top:Y={x:U,y:$.y-I.height};break;case bottom:Y={x:U,y:$.y+$.height};break;case right:Y={x:$.x+$.width,y:q};break;case left:Y={x:$.x-I.width,y:q};break;default:Y={x:$.x,y:$.y}}var K=B?getMainAxisFromPlacement$1(B):null;if(K!=null){var G=K==="y"?"height":"width";switch(j){case start$1:Y[K]=Y[K]-($[G]/2-I[G]/2);break;case end:Y[K]=Y[K]+($[G]/2-I[G]/2);break}}return Y}function detectOverflow$1(M,$){$===void 0&&($={});var I=$,N=I.placement,B=N===void 0?M.placement:N,j=I.strategy,U=j===void 0?M.strategy:j,q=I.boundary,Y=q===void 0?clippingParents:q,K=I.rootBoundary,G=K===void 0?viewport:K,J=I.elementContext,Z=J===void 0?popper:J,ee=I.altBoundary,te=ee===void 0?!1:ee,re=I.padding,se=re===void 0?0:re,ne=mergePaddingObject(typeof se!="number"?se:expandToHashMap(se,basePlacements$1)),le=Z===popper?reference:popper,ge=M.rects.popper,ue=M.elements[te?le:Z],_e=getClippingRect(isElement$4(ue)?ue:ue.contextElement||getDocumentElement$1(M.elements.popper),Y,G,U),fe=getBoundingClientRect$1(M.elements.reference),me=computeOffsets({reference:fe,element:ge,strategy:"absolute",placement:B}),ve=rectToClientRect$1(Object.assign({},ge,me)),xe=Z===popper?ve:fe,oe={top:_e.top-xe.top+ne.top,bottom:xe.bottom-_e.bottom+ne.bottom,left:_e.left-xe.left+ne.left,right:xe.right-_e.right+ne.right},ye=M.modifiersData.offset;if(Z===popper&&ye){var be=ye[B];Object.keys(oe).forEach(function(we){var Ae=[right,bottom].indexOf(we)>=0?1:-1,ke=[top,bottom].indexOf(we)>=0?"y":"x";oe[we]+=be[ke]*Ae})}return oe}function computeAutoPlacement(M,$){$===void 0&&($={});var I=$,N=I.placement,B=I.boundary,j=I.rootBoundary,U=I.padding,q=I.flipVariations,Y=I.allowedAutoPlacements,K=Y===void 0?placements$1:Y,G=getVariation(N),J=G?q?variationPlacements:variationPlacements.filter(function(te){return getVariation(te)===G}):basePlacements$1,Z=J.filter(function(te){return K.indexOf(te)>=0});Z.length===0&&(Z=J);var ee=Z.reduce(function(te,re){return te[re]=detectOverflow$1(M,{placement:re,boundary:B,rootBoundary:j,padding:U})[getBasePlacement$2(re)],te},{});return Object.keys(ee).sort(function(te,re){return ee[te]-ee[re]})}function getExpandedFallbackPlacements(M){if(getBasePlacement$2(M)===auto)return[];var $=getOppositePlacement$1(M);return[getOppositeVariationPlacement(M),$,getOppositeVariationPlacement($)]}function flip$1(M){var $=M.state,I=M.options,N=M.name;if(!$.modifiersData[N]._skip){for(var B=I.mainAxis,j=B===void 0?!0:B,U=I.altAxis,q=U===void 0?!0:U,Y=I.fallbackPlacements,K=I.padding,G=I.boundary,J=I.rootBoundary,Z=I.altBoundary,ee=I.flipVariations,te=ee===void 0?!0:ee,re=I.allowedAutoPlacements,se=$.options.placement,ne=getBasePlacement$2(se),le=ne===se,ge=Y||(le||!te?[getOppositePlacement$1(se)]:getExpandedFallbackPlacements(se)),ue=[se].concat(ge).reduce(function(At,Nt){return At.concat(getBasePlacement$2(Nt)===auto?computeAutoPlacement($,{placement:Nt,boundary:G,rootBoundary:J,padding:K,flipVariations:te,allowedAutoPlacements:re}):Nt)},[]),_e=$.rects.reference,fe=$.rects.popper,me=new Map,ve=!0,xe=ue[0],oe=0;oe<ue.length;oe++){var ye=ue[oe],be=getBasePlacement$2(ye),we=getVariation(ye)===start$1,Ae=[top,bottom].indexOf(be)>=0,ke=Ae?"width":"height",Oe=detectOverflow$1($,{placement:ye,boundary:G,rootBoundary:J,altBoundary:Z,padding:K}),Me=Ae?we?right:left:we?bottom:top;_e[ke]>fe[ke]&&(Me=getOppositePlacement$1(Me));var ze=getOppositePlacement$1(Me),Fe=[];if(j&&Fe.push(Oe[be]<=0),q&&Fe.push(Oe[Me]<=0,Oe[ze]<=0),Fe.every(function(At){return At})){xe=ye,ve=!1;break}me.set(ye,Fe)}if(ve)for(var Ze=te?3:1,lt=function(Nt){var zt=ue.find(function(Ht){var qt=me.get(Ht);if(qt)return qt.slice(0,Nt).every(function(Qt){return Qt})});if(zt)return xe=zt,"break"},qe=Ze;qe>0;qe--){var Ve=lt(qe);if(Ve==="break")break}$.placement!==xe&&($.modifiersData[N]._skip=!0,$.placement=xe,$.reset=!0)}}const flip$2={name:"flip",enabled:!0,phase:"main",fn:flip$1,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(M,$,I){return I===void 0&&(I={x:0,y:0}),{top:M.top-$.height-I.y,right:M.right-$.width+I.x,bottom:M.bottom-$.height+I.y,left:M.left-$.width-I.x}}function isAnySideFullyClipped(M){return[top,right,bottom,left].some(function($){return M[$]>=0})}function hide(M){var $=M.state,I=M.name,N=$.rects.reference,B=$.rects.popper,j=$.modifiersData.preventOverflow,U=detectOverflow$1($,{elementContext:"reference"}),q=detectOverflow$1($,{altBoundary:!0}),Y=getSideOffsets(U,N),K=getSideOffsets(q,B,j),G=isAnySideFullyClipped(Y),J=isAnySideFullyClipped(K);$.modifiersData[I]={referenceClippingOffsets:Y,popperEscapeOffsets:K,isReferenceHidden:G,hasPopperEscaped:J},$.attributes.popper=Object.assign({},$.attributes.popper,{"data-popper-reference-hidden":G,"data-popper-escaped":J})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(M,$,I){var N=getBasePlacement$2(M),B=[left,top].indexOf(N)>=0?-1:1,j=typeof I=="function"?I(Object.assign({},$,{placement:M})):I,U=j[0],q=j[1];return U=U||0,q=(q||0)*B,[left,right].indexOf(N)>=0?{x:q,y:U}:{x:U,y:q}}function offset$2(M){var $=M.state,I=M.options,N=M.name,B=I.offset,j=B===void 0?[0,0]:B,U=placements$1.reduce(function(G,J){return G[J]=distanceAndSkiddingToXY(J,$.rects,j),G},{}),q=U[$.placement],Y=q.x,K=q.y;$.modifiersData.popperOffsets!=null&&($.modifiersData.popperOffsets.x+=Y,$.modifiersData.popperOffsets.y+=K),$.modifiersData[N]=U}const offset$3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$2};function popperOffsets(M){var $=M.state,I=M.name;$.modifiersData[I]=computeOffsets({reference:$.rects.reference,element:$.rects.popper,strategy:"absolute",placement:$.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(M){return M==="x"?"y":"x"}function preventOverflow(M){var $=M.state,I=M.options,N=M.name,B=I.mainAxis,j=B===void 0?!0:B,U=I.altAxis,q=U===void 0?!1:U,Y=I.boundary,K=I.rootBoundary,G=I.altBoundary,J=I.padding,Z=I.tether,ee=Z===void 0?!0:Z,te=I.tetherOffset,re=te===void 0?0:te,se=detectOverflow$1($,{boundary:Y,rootBoundary:K,padding:J,altBoundary:G}),ne=getBasePlacement$2($.placement),le=getVariation($.placement),ge=!le,ue=getMainAxisFromPlacement$1(ne),_e=getAltAxis(ue),fe=$.modifiersData.popperOffsets,me=$.rects.reference,ve=$.rects.popper,xe=typeof re=="function"?re(Object.assign({},$.rects,{placement:$.placement})):re,oe=typeof xe=="number"?{mainAxis:xe,altAxis:xe}:Object.assign({mainAxis:0,altAxis:0},xe),ye=$.modifiersData.offset?$.modifiersData.offset[$.placement]:null,be={x:0,y:0};if(fe){if(j){var we,Ae=ue==="y"?top:left,ke=ue==="y"?bottom:right,Oe=ue==="y"?"height":"width",Me=fe[ue],ze=Me+se[Ae],Fe=Me-se[ke],Ze=ee?-ve[Oe]/2:0,lt=le===start$1?me[Oe]:ve[Oe],qe=le===start$1?-ve[Oe]:-me[Oe],Ve=$.elements.arrow,At=ee&&Ve?getLayoutRect(Ve):{width:0,height:0},Nt=$.modifiersData["arrow#persistent"]?$.modifiersData["arrow#persistent"].padding:getFreshSideObject(),zt=Nt[Ae],Ht=Nt[ke],qt=within$1(0,me[Oe],At[Oe]),Qt=ge?me[Oe]/2-Ze-qt-zt-oe.mainAxis:lt-qt-zt-oe.mainAxis,Jt=ge?-me[Oe]/2+Ze+qt+Ht+oe.mainAxis:qe+qt+Ht+oe.mainAxis,yn=$.elements.arrow&&getOffsetParent$1($.elements.arrow),_n=yn?ue==="y"?yn.clientTop||0:yn.clientLeft||0:0,Hn=(we=ye==null?void 0:ye[ue])!=null?we:0,On=Me+Qt-Hn-_n,Fn=Me+Jt-Hn,In=within$1(ee?min$4(ze,On):ze,Me,ee?max$4(Fe,Fn):Fe);fe[ue]=In,be[ue]=In-Me}if(q){var dn,kt=ue==="x"?top:left,Ye=ue==="x"?bottom:right,_t=fe[_e],We=_e==="y"?"height":"width",Pe=_t+se[kt],Se=_t-se[Ye],$e=[top,left].indexOf(ne)!==-1,Ue=(dn=ye==null?void 0:ye[_e])!=null?dn:0,Qe=$e?Pe:_t-me[We]-ve[We]-Ue+oe.altAxis,mt=$e?_t+me[We]+ve[We]-Ue-oe.altAxis:Se,ht=ee&&$e?withinMaxClamp(Qe,_t,mt):within$1(ee?Qe:Pe,_t,ee?mt:Se);fe[_e]=ht,be[_e]=ht-_t}$.modifiersData[N]=be}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(M){return{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function getNodeScroll$1(M){return M===getWindow$1(M)||!isHTMLElement$1(M)?getWindowScroll(M):getHTMLElementScroll(M)}function isElementScaled(M){var $=M.getBoundingClientRect(),I=round$2($.width)/M.offsetWidth||1,N=round$2($.height)/M.offsetHeight||1;return I!==1||N!==1}function getCompositeRect(M,$,I){I===void 0&&(I=!1);var N=isHTMLElement$1($),B=isHTMLElement$1($)&&isElementScaled($),j=getDocumentElement$1($),U=getBoundingClientRect$1(M,B,I),q={scrollLeft:0,scrollTop:0},Y={x:0,y:0};return(N||!N&&!I)&&((getNodeName$1($)!=="body"||isScrollParent$1(j))&&(q=getNodeScroll$1($)),isHTMLElement$1($)?(Y=getBoundingClientRect$1($,!0),Y.x+=$.clientLeft,Y.y+=$.clientTop):j&&(Y.x=getWindowScrollBarX$1(j))),{x:U.left+q.scrollLeft-Y.x,y:U.top+q.scrollTop-Y.y,width:U.width,height:U.height}}function order(M){var $=new Map,I=new Set,N=[];M.forEach(function(j){$.set(j.name,j)});function B(j){I.add(j.name);var U=[].concat(j.requires||[],j.requiresIfExists||[]);U.forEach(function(q){if(!I.has(q)){var Y=$.get(q);Y&&B(Y)}}),N.push(j)}return M.forEach(function(j){I.has(j.name)||B(j)}),N}function orderModifiers(M){var $=order(M);return modifierPhases.reduce(function(I,N){return I.concat($.filter(function(B){return B.phase===N}))},[])}function debounce$3(M){var $;return function(){return $||($=new Promise(function(I){Promise.resolve().then(function(){$=void 0,I(M())})})),$}}function mergeByName(M){var $=M.reduce(function(I,N){var B=I[N.name];return I[N.name]=B?Object.assign({},B,N,{options:Object.assign({},B.options,N.options),data:Object.assign({},B.data,N.data)}):N,I},{});return Object.keys($).map(function(I){return $[I]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var M=arguments.length,$=new Array(M),I=0;I<M;I++)$[I]=arguments[I];return!$.some(function(N){return!(N&&typeof N.getBoundingClientRect=="function")})}function popperGenerator(M){M===void 0&&(M={});var $=M,I=$.defaultModifiers,N=I===void 0?[]:I,B=$.defaultOptions,j=B===void 0?DEFAULT_OPTIONS:B;return function(q,Y,K){K===void 0&&(K=j);var G={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,j),modifiersData:{},elements:{reference:q,popper:Y},attributes:{},styles:{}},J=[],Z=!1,ee={state:G,setOptions:function(ne){var le=typeof ne=="function"?ne(G.options):ne;re(),G.options=Object.assign({},j,G.options,le),G.scrollParents={reference:isElement$4(q)?listScrollParents(q):q.contextElement?listScrollParents(q.contextElement):[],popper:listScrollParents(Y)};var ge=orderModifiers(mergeByName([].concat(N,G.options.modifiers)));return G.orderedModifiers=ge.filter(function(ue){return ue.enabled}),te(),ee.update()},forceUpdate:function(){if(!Z){var ne=G.elements,le=ne.reference,ge=ne.popper;if(areValidElements(le,ge)){G.rects={reference:getCompositeRect(le,getOffsetParent$1(ge),G.options.strategy==="fixed"),popper:getLayoutRect(ge)},G.reset=!1,G.placement=G.options.placement,G.orderedModifiers.forEach(function(oe){return G.modifiersData[oe.name]=Object.assign({},oe.data)});for(var ue=0;ue<G.orderedModifiers.length;ue++){if(G.reset===!0){G.reset=!1,ue=-1;continue}var _e=G.orderedModifiers[ue],fe=_e.fn,me=_e.options,ve=me===void 0?{}:me,xe=_e.name;typeof fe=="function"&&(G=fe({state:G,options:ve,name:xe,instance:ee})||G)}}}},update:debounce$3(function(){return new Promise(function(se){ee.forceUpdate(),se(G)})}),destroy:function(){re(),Z=!0}};if(!areValidElements(q,Y))return ee;ee.setOptions(K).then(function(se){!Z&&K.onFirstUpdate&&K.onFirstUpdate(se)});function te(){G.orderedModifiers.forEach(function(se){var ne=se.name,le=se.options,ge=le===void 0?{}:le,ue=se.effect;if(typeof ue=="function"){var _e=ue({state:G,name:ne,instance:ee,options:ge}),fe=function(){};J.push(_e||fe)}})}function re(){J.forEach(function(se){return se()}),J=[]}return ee}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$3,flip$2,preventOverflow$1,arrow$4,hide$1],createPopper=popperGenerator({defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(M,$,I){if(Array.isArray(M)){var N=M[$];return N??(Array.isArray(I)?I[$]:I)}return M}function isType(M,$){var I={}.toString.call(M);return I.indexOf("[object")===0&&I.indexOf($+"]")>-1}function invokeWithArgsOrReturn(M,$){return typeof M=="function"?M.apply(void 0,$):M}function debounce$2(M,$){if($===0)return M;var I;return function(N){clearTimeout(I),I=setTimeout(function(){M(N)},$)}}function splitBySpaces(M){return M.split(/\s+/).filter(Boolean)}function normalizeToArray(M){return[].concat(M)}function pushIfUnique(M,$){M.indexOf($)===-1&&M.push($)}function unique(M){return M.filter(function($,I){return M.indexOf($)===I})}function getBasePlacement$1(M){return M.split("-")[0]}function arrayFrom(M){return[].slice.call(M)}function removeUndefinedProps(M){return Object.keys(M).reduce(function($,I){return M[I]!==void 0&&($[I]=M[I]),$},{})}function div(){return document.createElement("div")}function isElement$3(M){return["Element","Fragment"].some(function($){return isType(M,$)})}function isNodeList(M){return isType(M,"NodeList")}function isMouseEvent(M){return isType(M,"MouseEvent")}function isReferenceElement(M){return!!(M&&M._tippy&&M._tippy.reference===M)}function getArrayOfElements(M){return isElement$3(M)?[M]:isNodeList(M)?arrayFrom(M):Array.isArray(M)?M:arrayFrom(document.querySelectorAll(M))}function setTransitionDuration(M,$){M.forEach(function(I){I&&(I.style.transitionDuration=$+"ms")})}function setVisibilityState(M,$){M.forEach(function(I){I&&I.setAttribute("data-state",$)})}function getOwnerDocument(M){var $,I=normalizeToArray(M),N=I[0];return N!=null&&($=N.ownerDocument)!=null&&$.body?N.ownerDocument:document}function isCursorOutsideInteractiveBorder(M,$){var I=$.clientX,N=$.clientY;return M.every(function(B){var j=B.popperRect,U=B.popperState,q=B.props,Y=q.interactiveBorder,K=getBasePlacement$1(U.placement),G=U.modifiersData.offset;if(!G)return!0;var J=K==="bottom"?G.top.y:0,Z=K==="top"?G.bottom.y:0,ee=K==="right"?G.left.x:0,te=K==="left"?G.right.x:0,re=j.top-N+J>Y,se=N-j.bottom-Z>Y,ne=j.left-I+ee>Y,le=I-j.right-te>Y;return re||se||ne||le})}function updateTransitionEndListener(M,$,I){var N=$+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(B){M[N](B,I)})}function actualContains(M,$){for(var I=$;I;){var N;if(M.contains(I))return!0;I=I.getRootNode==null||(N=I.getRootNode())==null?void 0:N.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var M=performance.now();M-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=M}function onWindowBlur(){var M=document.activeElement;if(isReferenceElement(M)){var $=M._tippy;M.blur&&!$.state.isVisible&&M.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser$1=typeof window<"u"&&typeof document<"u",isIE11$1=isBrowser$1?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function($){var I=Object.keys($);I.forEach(function(N){defaultProps[N]=$[N]})};function getExtendedPassedProps(M){var $=M.plugins||[],I=$.reduce(function(N,B){var j=B.name,U=B.defaultValue;if(j){var q;N[j]=M[j]!==void 0?M[j]:(q=defaultProps[j])!=null?q:U}return N},{});return Object.assign({},M,I)}function getDataAttributeProps(M,$){var I=$?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:$}))):defaultKeys,N=I.reduce(function(B,j){var U=(M.getAttribute("data-tippy-"+j)||"").trim();if(!U)return B;if(j==="content")B[j]=U;else try{B[j]=JSON.parse(U)}catch{B[j]=U}return B},{});return N}function evaluateProps(M,$){var I=Object.assign({},$,{content:invokeWithArgsOrReturn($.content,[M])},$.ignoreAttributes?{}:getDataAttributeProps(M,$.plugins));return I.aria=Object.assign({},defaultProps.aria,I.aria),I.aria={expanded:I.aria.expanded==="auto"?$.interactive:I.aria.expanded,content:I.aria.content==="auto"?$.interactive?null:"describedby":I.aria.content},I}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(M,$){M[innerHTML()]=$}function createArrowElement(M){var $=div();return M===!0?$.className=ARROW_CLASS:($.className=SVG_ARROW_CLASS,isElement$3(M)?$.appendChild(M):dangerouslySetInnerHTML($,M)),$}function setContent(M,$){isElement$3($.content)?(dangerouslySetInnerHTML(M,""),M.appendChild($.content)):typeof $.content!="function"&&($.allowHTML?dangerouslySetInnerHTML(M,$.content):M.textContent=$.content)}function getChildren(M){var $=M.firstElementChild,I=arrayFrom($.children);return{box:$,content:I.find(function(N){return N.classList.contains(CONTENT_CLASS)}),arrow:I.find(function(N){return N.classList.contains(ARROW_CLASS)||N.classList.contains(SVG_ARROW_CLASS)}),backdrop:I.find(function(N){return N.classList.contains(BACKDROP_CLASS)})}}function render$3(M){var $=div(),I=div();I.className=BOX_CLASS,I.setAttribute("data-state","hidden"),I.setAttribute("tabindex","-1");var N=div();N.className=CONTENT_CLASS,N.setAttribute("data-state","hidden"),setContent(N,M.props),$.appendChild(I),I.appendChild(N),B(M.props,M.props);function B(j,U){var q=getChildren($),Y=q.box,K=q.content,G=q.arrow;U.theme?Y.setAttribute("data-theme",U.theme):Y.removeAttribute("data-theme"),typeof U.animation=="string"?Y.setAttribute("data-animation",U.animation):Y.removeAttribute("data-animation"),U.inertia?Y.setAttribute("data-inertia",""):Y.removeAttribute("data-inertia"),Y.style.maxWidth=typeof U.maxWidth=="number"?U.maxWidth+"px":U.maxWidth,U.role?Y.setAttribute("role",U.role):Y.removeAttribute("role"),(j.content!==U.content||j.allowHTML!==U.allowHTML)&&setContent(K,M.props),U.arrow?G?j.arrow!==U.arrow&&(Y.removeChild(G),Y.appendChild(createArrowElement(U.arrow))):Y.appendChild(createArrowElement(U.arrow)):G&&Y.removeChild(G)}return{popper:$,onUpdate:B}}render$3.$$tippy=!0;var idCounter$1=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(M,$){var I=evaluateProps(M,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps($)))),N,B,j,U=!1,q=!1,Y=!1,K=!1,G,J,Z,ee=[],te=debounce$2(On,I.interactiveDebounce),re,se=idCounter$1++,ne=null,le=unique(I.plugins),ge={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},ue={id:se,reference:M,popper:div(),popperInstance:ne,props:I,state:ge,plugins:le,clearDelayTimeouts:Qe,setProps:mt,setContent:ht,show:at,hide:ut,hideWithInteractivity:Rt,enable:$e,disable:Ue,unmount:fn,destroy:Bn};if(!I.render)return ue;var _e=I.render(ue),fe=_e.popper,me=_e.onUpdate;fe.setAttribute("data-tippy-root",""),fe.id="tippy-"+ue.id,ue.popper=fe,M._tippy=ue,fe._tippy=ue;var ve=le.map(function(en){return en.fn(ue)}),xe=M.hasAttribute("aria-expanded");return yn(),Ze(),Me(),ze("onCreate",[ue]),I.showOnCreate&&Pe(),fe.addEventListener("mouseenter",function(){ue.props.interactive&&ue.state.isVisible&&ue.clearDelayTimeouts()}),fe.addEventListener("mouseleave",function(){ue.props.interactive&&ue.props.trigger.indexOf("mouseenter")>=0&&Ae().addEventListener("mousemove",te)}),ue;function oe(){var en=ue.props.touch;return Array.isArray(en)?en:[en,0]}function ye(){return oe()[0]==="hold"}function be(){var en;return!!((en=ue.props.render)!=null&&en.$$tippy)}function we(){return re||M}function Ae(){var en=we().parentNode;return en?getOwnerDocument(en):document}function ke(){return getChildren(fe)}function Oe(en){return ue.state.isMounted&&!ue.state.isVisible||currentInput.isTouch||G&&G.type==="focus"?0:getValueAtIndexOrReturn(ue.props.delay,en?0:1,defaultProps.delay)}function Me(en){en===void 0&&(en=!1),fe.style.pointerEvents=ue.props.interactive&&!en?"":"none",fe.style.zIndex=""+ue.props.zIndex}function ze(en,xn,ot){if(ot===void 0&&(ot=!0),ve.forEach(function(Ot){Ot[en]&&Ot[en].apply(Ot,xn)}),ot){var dt;(dt=ue.props)[en].apply(dt,xn)}}function Fe(){var en=ue.props.aria;if(en.content){var xn="aria-"+en.content,ot=fe.id,dt=normalizeToArray(ue.props.triggerTarget||M);dt.forEach(function(Ot){var Yt=Ot.getAttribute(xn);if(ue.state.isVisible)Ot.setAttribute(xn,Yt?Yt+" "+ot:ot);else{var Wt=Yt&&Yt.replace(ot,"").trim();Wt?Ot.setAttribute(xn,Wt):Ot.removeAttribute(xn)}})}}function Ze(){if(!(xe||!ue.props.aria.expanded)){var en=normalizeToArray(ue.props.triggerTarget||M);en.forEach(function(xn){ue.props.interactive?xn.setAttribute("aria-expanded",ue.state.isVisible&&xn===we()?"true":"false"):xn.removeAttribute("aria-expanded")})}}function lt(){Ae().removeEventListener("mousemove",te),mouseMoveListeners=mouseMoveListeners.filter(function(en){return en!==te})}function qe(en){if(!(currentInput.isTouch&&(Y||en.type==="mousedown"))){var xn=en.composedPath&&en.composedPath()[0]||en.target;if(!(ue.props.interactive&&actualContains(fe,xn))){if(normalizeToArray(ue.props.triggerTarget||M).some(function(ot){return actualContains(ot,xn)})){if(currentInput.isTouch||ue.state.isVisible&&ue.props.trigger.indexOf("click")>=0)return}else ze("onClickOutside",[ue,en]);ue.props.hideOnClick===!0&&(ue.clearDelayTimeouts(),ue.hide(),q=!0,setTimeout(function(){q=!1}),ue.state.isMounted||zt())}}}function Ve(){Y=!0}function At(){Y=!1}function Nt(){var en=Ae();en.addEventListener("mousedown",qe,!0),en.addEventListener("touchend",qe,TOUCH_OPTIONS),en.addEventListener("touchstart",At,TOUCH_OPTIONS),en.addEventListener("touchmove",Ve,TOUCH_OPTIONS)}function zt(){var en=Ae();en.removeEventListener("mousedown",qe,!0),en.removeEventListener("touchend",qe,TOUCH_OPTIONS),en.removeEventListener("touchstart",At,TOUCH_OPTIONS),en.removeEventListener("touchmove",Ve,TOUCH_OPTIONS)}function Ht(en,xn){Qt(en,function(){!ue.state.isVisible&&fe.parentNode&&fe.parentNode.contains(fe)&&xn()})}function qt(en,xn){Qt(en,xn)}function Qt(en,xn){var ot=ke().box;function dt(Ot){Ot.target===ot&&(updateTransitionEndListener(ot,"remove",dt),xn())}if(en===0)return xn();updateTransitionEndListener(ot,"remove",J),updateTransitionEndListener(ot,"add",dt),J=dt}function Jt(en,xn,ot){ot===void 0&&(ot=!1);var dt=normalizeToArray(ue.props.triggerTarget||M);dt.forEach(function(Ot){Ot.addEventListener(en,xn,ot),ee.push({node:Ot,eventType:en,handler:xn,options:ot})})}function yn(){ye()&&(Jt("touchstart",Hn,{passive:!0}),Jt("touchend",Fn,{passive:!0})),splitBySpaces(ue.props.trigger).forEach(function(en){if(en!=="manual")switch(Jt(en,Hn),en){case"mouseenter":Jt("mouseleave",Fn);break;case"focus":Jt(isIE11$1?"focusout":"blur",In);break;case"focusin":Jt("focusout",In);break}})}function _n(){ee.forEach(function(en){var xn=en.node,ot=en.eventType,dt=en.handler,Ot=en.options;xn.removeEventListener(ot,dt,Ot)}),ee=[]}function Hn(en){var xn,ot=!1;if(!(!ue.state.isEnabled||dn(en)||q)){var dt=((xn=G)==null?void 0:xn.type)==="focus";G=en,re=en.currentTarget,Ze(),!ue.state.isVisible&&isMouseEvent(en)&&mouseMoveListeners.forEach(function(Ot){return Ot(en)}),en.type==="click"&&(ue.props.trigger.indexOf("mouseenter")<0||U)&&ue.props.hideOnClick!==!1&&ue.state.isVisible?ot=!0:Pe(en),en.type==="click"&&(U=!ot),ot&&!dt&&Se(en)}}function On(en){var xn=en.target,ot=we().contains(xn)||fe.contains(xn);if(!(en.type==="mousemove"&&ot)){var dt=We().concat(fe).map(function(Ot){var Yt,Wt=Ot._tippy,gn=(Yt=Wt.popperInstance)==null?void 0:Yt.state;return gn?{popperRect:Ot.getBoundingClientRect(),popperState:gn,props:I}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(dt,en)&&(lt(),Se(en))}}function Fn(en){var xn=dn(en)||ue.props.trigger.indexOf("click")>=0&&U;if(!xn){if(ue.props.interactive){ue.hideWithInteractivity(en);return}Se(en)}}function In(en){ue.props.trigger.indexOf("focusin")<0&&en.target!==we()||ue.props.interactive&&en.relatedTarget&&fe.contains(en.relatedTarget)||Se(en)}function dn(en){return currentInput.isTouch?ye()!==en.type.indexOf("touch")>=0:!1}function kt(){Ye();var en=ue.props,xn=en.popperOptions,ot=en.placement,dt=en.offset,Ot=en.getReferenceClientRect,Yt=en.moveTransition,Wt=be()?getChildren(fe).arrow:null,gn=Ot?{getBoundingClientRect:Ot,contextElement:Ot.contextElement||we()}:M,Kn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Tt){var Lt=Tt.state;if(be()){var pn=ke(),mn=pn.box;["placement","reference-hidden","escaped"].forEach(function(En){En==="placement"?mn.setAttribute("data-placement",Lt.placement):Lt.attributes.popper["data-popper-"+En]?mn.setAttribute("data-"+En,""):mn.removeAttribute("data-"+En)}),Lt.attributes.popper={}}}},Ct=[{name:"offset",options:{offset:dt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Yt}},Kn];be()&&Wt&&Ct.push({name:"arrow",options:{element:Wt,padding:3}}),Ct.push.apply(Ct,(xn==null?void 0:xn.modifiers)||[]),ue.popperInstance=createPopper(gn,fe,Object.assign({},xn,{placement:ot,onFirstUpdate:Z,modifiers:Ct}))}function Ye(){ue.popperInstance&&(ue.popperInstance.destroy(),ue.popperInstance=null)}function _t(){var en=ue.props.appendTo,xn,ot=we();ue.props.interactive&&en===TIPPY_DEFAULT_APPEND_TO||en==="parent"?xn=ot.parentNode:xn=invokeWithArgsOrReturn(en,[ot]),xn.contains(fe)||xn.appendChild(fe),ue.state.isMounted=!0,kt()}function We(){return arrayFrom(fe.querySelectorAll("[data-tippy-root]"))}function Pe(en){ue.clearDelayTimeouts(),en&&ze("onTrigger",[ue,en]),Nt();var xn=Oe(!0),ot=oe(),dt=ot[0],Ot=ot[1];currentInput.isTouch&&dt==="hold"&&Ot&&(xn=Ot),xn?N=setTimeout(function(){ue.show()},xn):ue.show()}function Se(en){if(ue.clearDelayTimeouts(),ze("onUntrigger",[ue,en]),!ue.state.isVisible){zt();return}if(!(ue.props.trigger.indexOf("mouseenter")>=0&&ue.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(en.type)>=0&&U)){var xn=Oe(!1);xn?B=setTimeout(function(){ue.state.isVisible&&ue.hide()},xn):j=requestAnimationFrame(function(){ue.hide()})}}function $e(){ue.state.isEnabled=!0}function Ue(){ue.hide(),ue.state.isEnabled=!1}function Qe(){clearTimeout(N),clearTimeout(B),cancelAnimationFrame(j)}function mt(en){if(!ue.state.isDestroyed){ze("onBeforeUpdate",[ue,en]),_n();var xn=ue.props,ot=evaluateProps(M,Object.assign({},xn,removeUndefinedProps(en),{ignoreAttributes:!0}));ue.props=ot,yn(),xn.interactiveDebounce!==ot.interactiveDebounce&&(lt(),te=debounce$2(On,ot.interactiveDebounce)),xn.triggerTarget&&!ot.triggerTarget?normalizeToArray(xn.triggerTarget).forEach(function(dt){dt.removeAttribute("aria-expanded")}):ot.triggerTarget&&M.removeAttribute("aria-expanded"),Ze(),Me(),me&&me(xn,ot),ue.popperInstance&&(kt(),We().forEach(function(dt){requestAnimationFrame(dt._tippy.popperInstance.forceUpdate)})),ze("onAfterUpdate",[ue,en])}}function ht(en){ue.setProps({content:en})}function at(){var en=ue.state.isVisible,xn=ue.state.isDestroyed,ot=!ue.state.isEnabled,dt=currentInput.isTouch&&!ue.props.touch,Ot=getValueAtIndexOrReturn(ue.props.duration,0,defaultProps.duration);if(!(en||xn||ot||dt)&&!we().hasAttribute("disabled")&&(ze("onShow",[ue],!1),ue.props.onShow(ue)!==!1)){if(ue.state.isVisible=!0,be()&&(fe.style.visibility="visible"),Me(),Nt(),ue.state.isMounted||(fe.style.transition="none"),be()){var Yt=ke(),Wt=Yt.box,gn=Yt.content;setTransitionDuration([Wt,gn],0)}Z=function(){var Ct;if(!(!ue.state.isVisible||K)){if(K=!0,fe.offsetHeight,fe.style.transition=ue.props.moveTransition,be()&&ue.props.animation){var ft=ke(),Tt=ft.box,Lt=ft.content;setTransitionDuration([Tt,Lt],Ot),setVisibilityState([Tt,Lt],"visible")}Fe(),Ze(),pushIfUnique(mountedInstances,ue),(Ct=ue.popperInstance)==null||Ct.forceUpdate(),ze("onMount",[ue]),ue.props.animation&&be()&&qt(Ot,function(){ue.state.isShown=!0,ze("onShown",[ue])})}},_t()}}function ut(){var en=!ue.state.isVisible,xn=ue.state.isDestroyed,ot=!ue.state.isEnabled,dt=getValueAtIndexOrReturn(ue.props.duration,1,defaultProps.duration);if(!(en||xn||ot)&&(ze("onHide",[ue],!1),ue.props.onHide(ue)!==!1)){if(ue.state.isVisible=!1,ue.state.isShown=!1,K=!1,U=!1,be()&&(fe.style.visibility="hidden"),lt(),zt(),Me(!0),be()){var Ot=ke(),Yt=Ot.box,Wt=Ot.content;ue.props.animation&&(setTransitionDuration([Yt,Wt],dt),setVisibilityState([Yt,Wt],"hidden"))}Fe(),Ze(),ue.props.animation?be()&&Ht(dt,ue.unmount):ue.unmount()}}function Rt(en){Ae().addEventListener("mousemove",te),pushIfUnique(mouseMoveListeners,te),te(en)}function fn(){ue.state.isVisible&&ue.hide(),ue.state.isMounted&&(Ye(),We().forEach(function(en){en._tippy.unmount()}),fe.parentNode&&fe.parentNode.removeChild(fe),mountedInstances=mountedInstances.filter(function(en){return en!==ue}),ue.state.isMounted=!1,ze("onHidden",[ue]))}function Bn(){ue.state.isDestroyed||(ue.clearDelayTimeouts(),ue.unmount(),_n(),delete M._tippy,ue.state.isDestroyed=!0,ze("onDestroy",[ue]))}}function tippy(M,$){$===void 0&&($={});var I=defaultProps.plugins.concat($.plugins||[]);bindGlobalEventListeners();var N=Object.assign({},$,{plugins:I}),B=getArrayOfElements(M),j=B.reduce(function(U,q){var Y=q&&createTippy(q,N);return Y&&U.push(Y),U},[]);return isElement$3(M)?j[0]:j}tippy.defaultProps=defaultProps;tippy.setDefaultProps=setDefaultProps;tippy.currentInput=currentInput;Object.assign({},applyStyles$1,{effect:function($){var I=$.state,N={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(I.elements.popper.style,N.popper),I.styles=N,I.elements.arrow&&Object.assign(I.elements.arrow.style,N.arrow)}});tippy.setDefaultProps({render:render$3});class BubbleMenuView{constructor({editor:$,element:I,view:N,tippyOptions:B={},updateDelay:j=250,shouldShow:U}){this.preventHide=!1,this.shouldShow=({view:q,state:Y,from:K,to:G})=>{const{doc:J,selection:Z}=Y,{empty:ee}=Z,te=!J.textBetween(K,G).length&&isTextSelection(Y.selection),re=this.element.contains(document.activeElement);return!(!(q.hasFocus()||re)||ee||te||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:q})=>{var Y;if(this.preventHide){this.preventHide=!1;return}q!=null&&q.relatedTarget&&(!((Y=this.element.parentNode)===null||Y===void 0)&&Y.contains(q.relatedTarget))||this.hide()},this.tippyBlurHandler=q=>{this.blurHandler({event:q})},this.handleDebouncedUpdate=(q,Y)=>{this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(q,Y)},this.updateDelay)},this.updateHandler=(q,Y)=>{var K,G,J;const{state:Z,composing:ee}=q,{doc:te,selection:re}=Z,se=Y&&Y.doc.eq(te)&&Y.selection.eq(re);if(ee||se)return;this.createTooltip();const{ranges:ne}=re,le=Math.min(...ne.map(_e=>_e.$from.pos)),ge=Math.max(...ne.map(_e=>_e.$to.pos));if(!((K=this.shouldShow)===null||K===void 0?void 0:K.call(this,{editor:this.editor,view:q,state:Z,oldState:Y,from:le,to:ge}))){this.hide();return}(G=this.tippy)===null||G===void 0||G.setProps({getReferenceClientRect:((J=this.tippyOptions)===null||J===void 0?void 0:J.getReferenceClientRect)||(()=>{if(isNodeSelection(Z.selection)){let _e=q.nodeDOM(le);const fe=_e.dataset.nodeViewWrapper?_e:_e.querySelector("[data-node-view-wrapper]");if(fe&&(_e=fe.firstChild),_e)return _e.getBoundingClientRect()}return posToDOMRect(q,le,ge)})}),this.show()},this.editor=$,this.element=I,this.view=N,this.updateDelay=j,U&&(this.shouldShow=U),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=B,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:$}=this.editor.options,I=!!$.parentElement;this.tippy||!I||(this.tippy=tippy($,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update($,I){const{state:N}=$,B=N.selection.$from.pos!==N.selection.$to.pos;if(this.updateDelay>0&&B){this.handleDebouncedUpdate($,I);return}this.updateHandler($,I)}show(){var $;($=this.tippy)===null||$===void 0||$.show()}hide(){var $;($=this.tippy)===null||$===void 0||$.hide()}destroy(){var $,I;!(($=this.tippy)===null||$===void 0)&&$.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(I=this.tippy)===null||I===void 0||I.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const BubbleMenuPlugin=M=>new Plugin({key:typeof M.pluginKey=="string"?new PluginKey(M.pluginKey):M.pluginKey,view:$=>new BubbleMenuView({view:$,...M})});Extension.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[BubbleMenuPlugin({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});let FloatingMenuView$1=class{constructor({editor:$,element:I,view:N,tippyOptions:B={},shouldShow:j}){this.preventHide=!1,this.shouldShow=({view:U,state:q})=>{const{selection:Y}=q,{$anchor:K,empty:G}=Y,J=K.depth===1,Z=K.parent.isTextblock&&!K.parent.type.spec.code&&!K.parent.textContent;return!(!U.hasFocus()||!G||!J||!Z||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:U})=>{var q;if(this.preventHide){this.preventHide=!1;return}U!=null&&U.relatedTarget&&(!((q=this.element.parentNode)===null||q===void 0)&&q.contains(U.relatedTarget))||this.hide()},this.tippyBlurHandler=U=>{this.blurHandler({event:U})},this.editor=$,this.element=I,this.view=N,j&&(this.shouldShow=j),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=B,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:$}=this.editor.options,I=!!$.parentElement;this.tippy||!I||(this.tippy=tippy($,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update($,I){var N,B,j;const{state:U}=$,{doc:q,selection:Y}=U,{from:K,to:G}=Y;if(I&&I.doc.eq(q)&&I.selection.eq(Y))return;if(this.createTooltip(),!((N=this.shouldShow)===null||N===void 0?void 0:N.call(this,{editor:this.editor,view:$,state:U,oldState:I}))){this.hide();return}(B=this.tippy)===null||B===void 0||B.setProps({getReferenceClientRect:((j=this.tippyOptions)===null||j===void 0?void 0:j.getReferenceClientRect)||(()=>posToDOMRect($,K,G))}),this.show()}show(){var $;($=this.tippy)===null||$===void 0||$.show()}hide(){var $;($=this.tippy)===null||$===void 0||$.hide()}destroy(){var $,I;!(($=this.tippy)===null||$===void 0)&&$.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(I=this.tippy)===null||I===void 0||I.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}};const FloatingMenuPlugin$1=M=>new Plugin({key:typeof M.pluginKey=="string"?new PluginKey(M.pluginKey):M.pluginKey,view:$=>new FloatingMenuView$1({view:$,...M})});Extension.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[FloatingMenuPlugin$1({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const BubbleMenu={name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(BubbleMenuPlugin({updateDelay:this.updateDelay,editor:M,element:this.$el,pluginKey:this.pluginKey,shouldShow:this.shouldShow,tippyOptions:this.tippyOptions}))})}}},render(M){return M("div",{style:{visibility:"hidden"}},this.$slots.default)},beforeDestroy(){this.editor.unregisterPlugin(this.pluginKey)}};class Editor extends Editor$1{constructor(){super(...arguments),this.contentComponent=null}}const EditorContent={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(M){M&&M.options.element&&this.$nextTick(()=>{const $=this.$el;!$||!M.options.element.firstChild||($.append(...M.options.element.childNodes),M.contentComponent=this,M.setOptions({element:$}),M.createNodeViews())})}}},render(M){return M("div")},beforeDestroy(){const{editor:M}=this;if(!M||(M.isDestroyed||M.view.setProps({nodeViews:{}}),M.contentComponent=null,!M.options.element.firstChild))return;const $=document.createElement("div");$.append(...M.options.element.childNodes),M.setOptions({element:$})}},FloatingMenu$1={name:"FloatingMenu",props:{pluginKey:{type:[String,Object],default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(FloatingMenuPlugin$1({pluginKey:this.pluginKey,editor:M,element:this.$el,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))})}}},render(M){return M("div",{style:{visibility:"hidden"}},this.$slots.default)},beforeDestroy(){this.editor.unregisterPlugin(this.pluginKey)}},NodeViewContent={props:{as:{type:String,default:"div"}},render(M){return M(this.as,{style:{whiteSpace:"pre-wrap"},attrs:{"data-node-view-content":""}})}},NodeViewWrapper={props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(M){return M(this.as,{class:this.decorationClasses.value,style:{whiteSpace:"normal"},attrs:{"data-node-view-wrapper":""},on:{dragstart:this.onDragStart}},this.$slots.default)}};class VueRenderer{constructor($,I){const N=typeof $=="function"?$:Vue$3.extend($);this.ref=new N(I).$mount()}get element(){return this.ref.$el}updateProps($={}){var I,N,B;if(!this.ref.$props)return;const j=(B=(N=(I=this.ref.$props.editor)===null||I===void 0?void 0:I.contentComponent)===null||N===void 0?void 0:N.$options._base)!==null&&B!==void 0?B:Vue$3,U=j.config.silent;j.config.silent=!0,Object.entries($).forEach(([q,Y])=>{this.ref.$props[q]=Y}),j.config.silent=U}destroy(){this.ref.$destroy()}}const nodeViewProps={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0}};class VueNodeView extends NodeView{mount(){var $,I;const N={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(q={})=>this.updateAttributes(q),deleteNode:()=>this.deleteNode()},B=this.onDragStart.bind(this);this.decorationClasses=Vue$3.observable({value:this.getDecorationClasses()});const U=((I=($=this.editor.contentComponent)===null||$===void 0?void 0:$.$options._base)!==null&&I!==void 0?I:Vue$3).extend(this.component).extend({props:Object.keys(N),provide:()=>({onDragStart:B,decorationClasses:this.decorationClasses})});this.renderer=new VueRenderer(U,{parent:this.editor.contentComponent,propsData:N})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}update($,I){const N=B=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(B)};if(typeof this.options.update=="function"){const B=this.node,j=this.decorations;return this.node=$,this.decorations=I,this.options.update({oldNode:B,oldDecorations:j,newNode:$,newDecorations:I,updateProps:()=>N({node:$,decorations:I})})}return $.type!==this.node.type?!1:($===this.node&&this.decorations===I||(this.node=$,this.decorations=I,N({node:$,decorations:I})),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}getDecorationClasses(){return this.decorations.map($=>$.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy()}}function VueNodeViewRenderer(M,$){return I=>I.editor.contentComponent?new VueNodeView(M,I,$):{}}const vue2=Object.freeze(Object.defineProperty({__proto__:null,BubbleMenu,CommandManager,Editor,EditorContent,Extension,FloatingMenu:FloatingMenu$1,InputRule,Mark,Node:Node$1,NodeView,NodeViewContent,NodeViewWrapper,PasteRule,Tracker,VueNodeViewRenderer,VueRenderer,callOrReturn,combineTransactionSteps,createChainableState,createDocument,createNodeFromContent,createStyleTag,defaultBlockAt,deleteProps,elementFromString,escapeForRegEx,extensions,findChildren,findChildrenInRange,findDuplicates,findParentNode,findParentNodeClosestToPos,fromString,generateHTML,generateJSON,generateText,getAttributes,getAttributesFromExtensions,getChangedRanges,getDebugJSON,getExtensionField,getHTMLFromFragment,getMarkAttributes,getMarkRange,getMarkType,getMarksBetween,getNodeAttributes,getNodeType,getRenderedAttributes,getSchema,getSchemaByResolvedExtensions,getSchemaTypeByName,getSchemaTypeNameByName,getSplittedAttributes,getText,getTextBetween,getTextContentFromNodes,getTextSerializersFromSchema,injectExtensionAttributesToParseRule,inputRulesPlugin,isActive,isEmptyObject,isExtensionRulesEnabled,isFunction:isFunction$5,isList,isMacOS,isMarkActive,isNodeActive,isNodeEmpty,isNodeSelection,isNumber:isNumber$4,isPlainObject:isPlainObject$1,isRegExp:isRegExp$4,isString:isString$6,isTextSelection,isiOS,markInputRule,markPasteRule,mergeAttributes,mergeDeep,minMax,nodeInputRule,nodePasteRule,nodeViewProps,objectIncludes:objectIncludes$1,pasteRulesPlugin,posToDOMRect,removeDuplicates,resolveFocusPosition,selectionToInsertionEnd,splitExtensions,textInputRule,textPasteRule,textblockTypeInputRule,wrappingInputRule},Symbol.toStringTag,{value:"Module"}));class Bard{constructor($){this.instance=$,this.extensionCallbacks=[],this.extensionReplacementCallbacks=[],this.buttonCallbacks=[]}addExtension($){this.extensionCallbacks.push($)}replaceExtension($,I){this.extensionReplacementCallbacks.push({name:$,callback:I})}buttons($){this.buttonCallbacks.push($)}get tiptap(){return{core:core$2,vue2,pm:{state,model,view}}}}var mousetrap$1={exports:{}};(function(M){(function($,I,N){for(var B={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},j={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},U={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},q={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Y,K=1;K<20;++K)B[111+K]="f"+K;for(K=0;K<=9;++K)B[K+96]=K;function G(me,ve,xe){if(me.addEventListener){me.addEventListener(ve,xe,!1);return}me.attachEvent("on"+ve,xe)}function J(me){if(me.type=="keypress"){var ve=String.fromCharCode(me.which);return me.shiftKey||(ve=ve.toLowerCase()),ve}return B[me.which]?B[me.which]:j[me.which]?j[me.which]:String.fromCharCode(me.which).toLowerCase()}function Z(me,ve){return me.sort().join(",")===ve.sort().join(",")}function ee(me){var ve=[];return me.shiftKey&&ve.push("shift"),me.altKey&&ve.push("alt"),me.ctrlKey&&ve.push("ctrl"),me.metaKey&&ve.push("meta"),ve}function te(me){if(me.preventDefault){me.preventDefault();return}me.returnValue=!1}function re(me){if(me.stopPropagation){me.stopPropagation();return}me.cancelBubble=!0}function se(me){return me=="shift"||me=="ctrl"||me=="alt"||me=="meta"}function ne(){if(!Y){Y={};for(var me in B)me>95&&me<112||B.hasOwnProperty(me)&&(Y[B[me]]=me)}return Y}function le(me,ve,xe){return xe||(xe=ne()[me]?"keydown":"keypress"),xe=="keypress"&&ve.length&&(xe="keydown"),xe}function ge(me){return me==="+"?["+"]:(me=me.replace(/\+{2}/g,"+plus"),me.split("+"))}function ue(me,ve){var xe,oe,ye,be=[];for(xe=ge(me),ye=0;ye<xe.length;++ye)oe=xe[ye],q[oe]&&(oe=q[oe]),ve&&ve!="keypress"&&U[oe]&&(oe=U[oe],be.push("shift")),se(oe)&&be.push(oe);return ve=le(oe,be,ve),{key:oe,modifiers:be,action:ve}}function _e(me,ve){return me===null||me===I?!1:me===ve?!0:_e(me.parentNode,ve)}function fe(me){var ve=this;if(me=me||I,!(ve instanceof fe))return new fe(me);ve.target=me,ve._callbacks={},ve._directMap={};var xe={},oe,ye=!1,be=!1,we=!1;function Ae(lt){lt=lt||{};var qe=!1,Ve;for(Ve in xe){if(lt[Ve]){qe=!0;continue}xe[Ve]=0}qe||(we=!1)}function ke(lt,qe,Ve,At,Nt,zt){var Ht,qt,Qt=[],Jt=Ve.type;if(!ve._callbacks[lt])return[];for(Jt=="keyup"&&se(lt)&&(qe=[lt]),Ht=0;Ht<ve._callbacks[lt].length;++Ht)if(qt=ve._callbacks[lt][Ht],!(!At&&qt.seq&&xe[qt.seq]!=qt.level)&&Jt==qt.action&&(Jt=="keypress"&&!Ve.metaKey&&!Ve.ctrlKey||Z(qe,qt.modifiers))){var yn=!At&&qt.combo==Nt,_n=At&&qt.seq==At&&qt.level==zt;(yn||_n)&&ve._callbacks[lt].splice(Ht,1),Qt.push(qt)}return Qt}function Oe(lt,qe,Ve,At){ve.stopCallback(qe,qe.target||qe.srcElement,Ve,At)||lt(qe,Ve)===!1&&(te(qe),re(qe))}ve._handleKey=function(lt,qe,Ve){var At=ke(lt,qe,Ve),Nt,zt={},Ht=0,qt=!1;for(Nt=0;Nt<At.length;++Nt)At[Nt].seq&&(Ht=Math.max(Ht,At[Nt].level));for(Nt=0;Nt<At.length;++Nt){if(At[Nt].seq){if(At[Nt].level!=Ht)continue;qt=!0,zt[At[Nt].seq]=1,Oe(At[Nt].callback,Ve,At[Nt].combo,At[Nt].seq);continue}qt||Oe(At[Nt].callback,Ve,At[Nt].combo)}var Qt=Ve.type=="keypress"&&be;Ve.type==we&&!se(lt)&&!Qt&&Ae(zt),be=qt&&Ve.type=="keydown"};function Me(lt){typeof lt.which!="number"&&(lt.which=lt.keyCode);var qe=J(lt);if(qe){if(lt.type=="keyup"&&ye===qe){ye=!1;return}ve.handleKey(qe,ee(lt),lt)}}function ze(){clearTimeout(oe),oe=setTimeout(Ae,1e3)}function Fe(lt,qe,Ve,At){xe[lt]=0;function Nt(Jt){return function(){we=Jt,++xe[lt],ze()}}function zt(Jt){Oe(Ve,Jt,lt),At!=="keyup"&&(ye=J(Jt)),setTimeout(Ae,10)}for(var Ht=0;Ht<qe.length;++Ht){var qt=Ht+1===qe.length,Qt=qt?zt:Nt(At||ue(qe[Ht+1]).action);Ze(qe[Ht],Qt,At,lt,Ht)}}function Ze(lt,qe,Ve,At,Nt){ve._directMap[lt+":"+Ve]=qe,lt=lt.replace(/\s+/g," ");var zt=lt.split(" "),Ht;if(zt.length>1){Fe(lt,zt,qe,Ve);return}Ht=ue(lt,Ve),ve._callbacks[Ht.key]=ve._callbacks[Ht.key]||[],ke(Ht.key,Ht.modifiers,{type:Ht.action},At,lt,Nt),ve._callbacks[Ht.key][At?"unshift":"push"]({callback:qe,modifiers:Ht.modifiers,action:Ht.action,seq:At,level:Nt,combo:lt})}ve._bindMultiple=function(lt,qe,Ve){for(var At=0;At<lt.length;++At)Ze(lt[At],qe,Ve)},G(me,"keypress",Me),G(me,"keydown",Me),G(me,"keyup",Me)}fe.prototype.bind=function(me,ve,xe){var oe=this;return me=me instanceof Array?me:[me],oe._bindMultiple.call(oe,me,ve,xe),oe},fe.prototype.unbind=function(me,ve){var xe=this;return xe.bind.call(xe,me,function(){},ve)},fe.prototype.trigger=function(me,ve){var xe=this;return xe._directMap[me+":"+ve]&&xe._directMap[me+":"+ve]({},me),xe},fe.prototype.reset=function(){var me=this;return me._callbacks={},me._directMap={},me},fe.prototype.stopCallback=function(me,ve){var xe=this;return(" "+ve.className+" ").indexOf(" mousetrap ")>-1||_e(ve,xe.target)?!1:ve.tagName=="INPUT"||ve.tagName=="SELECT"||ve.tagName=="TEXTAREA"||ve.isContentEditable},fe.prototype.handleKey=function(){var me=this;return me._handleKey.apply(me,arguments)},fe.init=function(){var me=fe(I);for(var ve in me)ve.charAt(0)!=="_"&&(fe[ve]=function(xe){return function(){return me[xe].apply(me,arguments)}}(ve))},fe.init(),$.Mousetrap=fe,M.exports&&(M.exports=fe),typeof N=="function"&&N.amd&&N(function(){return fe})})(window,document)})(mousetrap$1);var mousetrapExports=mousetrap$1.exports;const mousetrap=getDefaultExportFromCjs(mousetrapExports);class Binding{constructor($){this.bindings=$}bind($,I){return typeof $=="string"&&($=[$]),$.forEach(N=>{this.bindings[N]=this.bindings[N]||[],this.bindings[N].push(I),this.bindMousetrap(N,I)}),this.bound=$,this}destroy(){this.bound.forEach($=>{this.bindings[$].pop();const I=this.bindings[$].slice(-1)[0];I?mousetrap.bind($,I):mousetrap.unbind($)})}stop($){mousetrap.prototype.stopCallback=$}bindMousetrap($,I){mousetrap.bind($,I)}}(function(M){var $={},I=M.prototype.stopCallback;M.prototype.stopCallback=function(N,B,j,U){var q=this;return q.paused?!0:$[j]||$[U]?!1:I.call(q,N,B,j)},M.prototype.bindGlobal=function(N,B,j){var U=this;if(U.bind(N,B,j),N instanceof Array){for(var q=0;q<N.length;q++)$[N[q]]=!0;return}$[N]=!0},M.init()})(Mousetrap);class GlobalBinding extends Binding{bindMousetrap($,I){mousetrap.bindGlobal($,I)}}class Keys{constructor(){this.bindings={},this.globals={}}bind($,I){return new Binding(this.bindings).bind($,I)}stop($){return new Binding(this.bindings).stop($)}bindGlobal($,I){return new GlobalBinding(this.globals).bind($,I)}}let Hooks$1=class{constructor(){this.hooks={}}on($,I,N=10){this.hooks[$]===void 0&&(this.hooks[$]=[]),this.hooks[$].push({callback:I,priority:N})}run($,I){return new Promise((N,B)=>{this.getCallbacks($).sort((j,U)=>U.priority-j.priority).map(j=>this.convertToPromiseCallback(j.callback,I)).reduce((j,U)=>j.then(q=>U().then(Array.prototype.concat.bind(q))),Promise.resolve([])).then(j=>N(j)).catch(j=>B(j))})}getCallbacks($){return this.hooks[$]||[]}convertToPromiseCallback($,I){return()=>new Promise((N,B)=>{$(N,B,I)})}};function getDefaults(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults$7=getDefaults();function changeDefaults(M){defaults$7=M}const escapeTest=/[&<>"']/,escapeReplace=new RegExp(escapeTest.source,"g"),escapeTestNoEncode=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode=new RegExp(escapeTestNoEncode.source,"g"),escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=M=>escapeReplacements[M];function escape$4(M,$){if($){if(escapeTest.test(M))return M.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(M))return M.replace(escapeReplaceNoEncode,getEscapeReplacement);return M}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$2(M){return M.replace(unescapeTest,($,I)=>(I=I.toLowerCase(),I==="colon"?":":I.charAt(0)==="#"?I.charAt(1)==="x"?String.fromCharCode(parseInt(I.substring(2),16)):String.fromCharCode(+I.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit(M,$){M=typeof M=="string"?M:M.source,$=$||"";const I={replace:(N,B)=>(B=B.source||B,B=B.replace(caret,"$1"),M=M.replace(N,B),I),getRegex:()=>new RegExp(M,$)};return I}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(M,$,I){if(M){let N;try{N=decodeURIComponent(unescape$2(I)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(N.indexOf("javascript:")===0||N.indexOf("vbscript:")===0||N.indexOf("data:")===0)return null}$&&!originIndependentUrl.test(I)&&(I=resolveUrl($,I));try{I=encodeURI(I).replace(/%25/g,"%")}catch{return null}return I}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(M,$){baseUrls[" "+M]||(justDomain.test(M)?baseUrls[" "+M]=M+"/":baseUrls[" "+M]=rtrim(M,"/",!0)),M=baseUrls[" "+M];const I=M.indexOf(":")===-1;return $.substring(0,2)==="//"?I?$:M.replace(protocol,"$1")+$:$.charAt(0)==="/"?I?$:M.replace(domain,"$1")+$:M+$}const noopTest={exec:function(){}};function splitCells(M,$){const I=M.replace(/\|/g,(j,U,q)=>{let Y=!1,K=U;for(;--K>=0&&q[K]==="\\";)Y=!Y;return Y?"|":" |"}),N=I.split(/ \|/);let B=0;if(N[0].trim()||N.shift(),N.length>0&&!N[N.length-1].trim()&&N.pop(),N.length>$)N.splice($);else for(;N.length<$;)N.push("");for(;B<N.length;B++)N[B]=N[B].trim().replace(/\\\|/g,"|");return N}function rtrim(M,$,I){const N=M.length;if(N===0)return"";let B=0;for(;B<N;){const j=M.charAt(N-B-1);if(j===$&&!I)B++;else if(j!==$&&I)B++;else break}return M.slice(0,N-B)}function findClosingBracket(M,$){if(M.indexOf($[1])===-1)return-1;const I=M.length;let N=0,B=0;for(;B<I;B++)if(M[B]==="\\")B++;else if(M[B]===$[0])N++;else if(M[B]===$[1]&&(N--,N<0))return B;return-1}function checkSanitizeDeprecation(M){M&&M.sanitize&&!M.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(M,$){if($<1)return"";let I="";for(;$>1;)$&1&&(I+=M),$>>=1,M+=M;return I+M}function outputLink(M,$,I,N){const B=$.href,j=$.title?escape$4($.title):null,U=M[1].replace(/\\([\[\]])/g,"$1");if(M[0].charAt(0)!=="!"){N.state.inLink=!0;const q={type:"link",raw:I,href:B,title:j,text:U,tokens:N.inlineTokens(U)};return N.state.inLink=!1,q}return{type:"image",raw:I,href:B,title:j,text:escape$4(U)}}function indentCodeCompensation(M,$){const I=M.match(/^(\s+)(?:```)/);if(I===null)return $;const N=I[1];return $.split(`
- `).map(B=>{const j=B.match(/^\s+/);if(j===null)return B;const[U]=j;return U.length>=N.length?B.slice(N.length):B}).join(`
- `)}class Tokenizer{constructor($){this.options=$||defaults$7}space($){const I=this.rules.block.newline.exec($);if(I&&I[0].length>0)return{type:"space",raw:I[0]}}code($){const I=this.rules.block.code.exec($);if(I){const N=I[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:I[0],codeBlockStyle:"indented",text:this.options.pedantic?N:rtrim(N,`
- `)}}}fences($){const I=this.rules.block.fences.exec($);if(I){const N=I[0],B=indentCodeCompensation(N,I[3]||"");return{type:"code",raw:N,lang:I[2]?I[2].trim().replace(this.rules.inline._escapes,"$1"):I[2],text:B}}}heading($){const I=this.rules.block.heading.exec($);if(I){let N=I[2].trim();if(/#$/.test(N)){const B=rtrim(N,"#");(this.options.pedantic||!B||/ $/.test(B))&&(N=B.trim())}return{type:"heading",raw:I[0],depth:I[1].length,text:N,tokens:this.lexer.inline(N)}}}hr($){const I=this.rules.block.hr.exec($);if(I)return{type:"hr",raw:I[0]}}blockquote($){const I=this.rules.block.blockquote.exec($);if(I){const N=I[0].replace(/^ *>[ \t]?/gm,""),B=this.lexer.state.top;this.lexer.state.top=!0;const j=this.lexer.blockTokens(N);return this.lexer.state.top=B,{type:"blockquote",raw:I[0],tokens:j,text:N}}}list($){let I=this.rules.block.list.exec($);if(I){let N,B,j,U,q,Y,K,G,J,Z,ee,te,re=I[1].trim();const se=re.length>1,ne={type:"list",raw:"",ordered:se,start:se?+re.slice(0,-1):"",loose:!1,items:[]};re=se?`\\d{1,9}\\${re.slice(-1)}`:`\\${re}`,this.options.pedantic&&(re=se?re:"[*+-]");const le=new RegExp(`^( {0,3}${re})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;$&&(te=!1,!(!(I=le.exec($))||this.rules.block.hr.test($)));){if(N=I[0],$=$.substring(N.length),G=I[2].split(`
- `,1)[0].replace(/^\t+/,ue=>" ".repeat(3*ue.length)),J=$.split(`
- `,1)[0],this.options.pedantic?(U=2,ee=G.trimLeft()):(U=I[2].search(/[^ ]/),U=U>4?1:U,ee=G.slice(U),U+=I[1].length),Y=!1,!G&&/^ *$/.test(J)&&(N+=J+`
- `,$=$.substring(J.length+1),te=!0),!te){const ue=new RegExp(`^ {0,${Math.min(3,U-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),_e=new RegExp(`^ {0,${Math.min(3,U-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fe=new RegExp(`^ {0,${Math.min(3,U-1)}}(?:\`\`\`|~~~)`),me=new RegExp(`^ {0,${Math.min(3,U-1)}}#`);for(;$&&(Z=$.split(`
- `,1)[0],J=Z,this.options.pedantic&&(J=J.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(fe.test(J)||me.test(J)||ue.test(J)||_e.test($)));){if(J.search(/[^ ]/)>=U||!J.trim())ee+=`
- `+J.slice(U);else{if(Y||G.search(/[^ ]/)>=4||fe.test(G)||me.test(G)||_e.test(G))break;ee+=`
- `+J}!Y&&!J.trim()&&(Y=!0),N+=Z+`
- `,$=$.substring(Z.length+1),G=J.slice(U)}}ne.loose||(K?ne.loose=!0:/\n *\n *$/.test(N)&&(K=!0)),this.options.gfm&&(B=/^\[[ xX]\] /.exec(ee),B&&(j=B[0]!=="[ ] ",ee=ee.replace(/^\[[ xX]\] +/,""))),ne.items.push({type:"list_item",raw:N,task:!!B,checked:j,loose:!1,text:ee}),ne.raw+=N}ne.items[ne.items.length-1].raw=N.trimRight(),ne.items[ne.items.length-1].text=ee.trimRight(),ne.raw=ne.raw.trimRight();const ge=ne.items.length;for(q=0;q<ge;q++)if(this.lexer.state.top=!1,ne.items[q].tokens=this.lexer.blockTokens(ne.items[q].text,[]),!ne.loose){const ue=ne.items[q].tokens.filter(fe=>fe.type==="space"),_e=ue.length>0&&ue.some(fe=>/\n.*\n/.test(fe.raw));ne.loose=_e}if(ne.loose)for(q=0;q<ge;q++)ne.items[q].loose=!0;return ne}}html($){const I=this.rules.block.html.exec($);if(I){const N={type:"html",raw:I[0],pre:!this.options.sanitizer&&(I[1]==="pre"||I[1]==="script"||I[1]==="style"),text:I[0]};if(this.options.sanitize){const B=this.options.sanitizer?this.options.sanitizer(I[0]):escape$4(I[0]);N.type="paragraph",N.text=B,N.tokens=this.lexer.inline(B)}return N}}def($){const I=this.rules.block.def.exec($);if(I){const N=I[1].toLowerCase().replace(/\s+/g," "),B=I[2]?I[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",j=I[3]?I[3].substring(1,I[3].length-1).replace(this.rules.inline._escapes,"$1"):I[3];return{type:"def",tag:N,raw:I[0],href:B,title:j}}}table($){const I=this.rules.block.table.exec($);if(I){const N={type:"table",header:splitCells(I[1]).map(B=>({text:B})),align:I[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:I[3]&&I[3].trim()?I[3].replace(/\n[ \t]*$/,"").split(`
- `):[]};if(N.header.length===N.align.length){N.raw=I[0];let B=N.align.length,j,U,q,Y;for(j=0;j<B;j++)/^ *-+: *$/.test(N.align[j])?N.align[j]="right":/^ *:-+: *$/.test(N.align[j])?N.align[j]="center":/^ *:-+ *$/.test(N.align[j])?N.align[j]="left":N.align[j]=null;for(B=N.rows.length,j=0;j<B;j++)N.rows[j]=splitCells(N.rows[j],N.header.length).map(K=>({text:K}));for(B=N.header.length,U=0;U<B;U++)N.header[U].tokens=this.lexer.inline(N.header[U].text);for(B=N.rows.length,U=0;U<B;U++)for(Y=N.rows[U],q=0;q<Y.length;q++)Y[q].tokens=this.lexer.inline(Y[q].text);return N}}}lheading($){const I=this.rules.block.lheading.exec($);if(I)return{type:"heading",raw:I[0],depth:I[2].charAt(0)==="="?1:2,text:I[1],tokens:this.lexer.inline(I[1])}}paragraph($){const I=this.rules.block.paragraph.exec($);if(I){const N=I[1].charAt(I[1].length-1)===`
- `?I[1].slice(0,-1):I[1];return{type:"paragraph",raw:I[0],text:N,tokens:this.lexer.inline(N)}}}text($){const I=this.rules.block.text.exec($);if(I)return{type:"text",raw:I[0],text:I[0],tokens:this.lexer.inline(I[0])}}escape($){const I=this.rules.inline.escape.exec($);if(I)return{type:"escape",raw:I[0],text:escape$4(I[1])}}tag($){const I=this.rules.inline.tag.exec($);if(I)return!this.lexer.state.inLink&&/^<a /i.test(I[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(I[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(I[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(I[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:I[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(I[0]):escape$4(I[0]):I[0]}}link($){const I=this.rules.inline.link.exec($);if(I){const N=I[2].trim();if(!this.options.pedantic&&/^</.test(N)){if(!/>$/.test(N))return;const U=rtrim(N.slice(0,-1),"\\");if((N.length-U.length)%2===0)return}else{const U=findClosingBracket(I[2],"()");if(U>-1){const Y=(I[0].indexOf("!")===0?5:4)+I[1].length+U;I[2]=I[2].substring(0,U),I[0]=I[0].substring(0,Y).trim(),I[3]=""}}let B=I[2],j="";if(this.options.pedantic){const U=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(B);U&&(B=U[1],j=U[3])}else j=I[3]?I[3].slice(1,-1):"";return B=B.trim(),/^</.test(B)&&(this.options.pedantic&&!/>$/.test(N)?B=B.slice(1):B=B.slice(1,-1)),outputLink(I,{href:B&&B.replace(this.rules.inline._escapes,"$1"),title:j&&j.replace(this.rules.inline._escapes,"$1")},I[0],this.lexer)}}reflink($,I){let N;if((N=this.rules.inline.reflink.exec($))||(N=this.rules.inline.nolink.exec($))){let B=(N[2]||N[1]).replace(/\s+/g," ");if(B=I[B.toLowerCase()],!B){const j=N[0].charAt(0);return{type:"text",raw:j,text:j}}return outputLink(N,B,N[0],this.lexer)}}emStrong($,I,N=""){let B=this.rules.inline.emStrong.lDelim.exec($);if(!B||B[3]&&N.match(/[\p{L}\p{N}]/u))return;const j=B[1]||B[2]||"";if(!j||j&&(N===""||this.rules.inline.punctuation.exec(N))){const U=B[0].length-1;let q,Y,K=U,G=0;const J=B[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(J.lastIndex=0,I=I.slice(-1*$.length+U);(B=J.exec(I))!=null;){if(q=B[1]||B[2]||B[3]||B[4]||B[5]||B[6],!q)continue;if(Y=q.length,B[3]||B[4]){K+=Y;continue}else if((B[5]||B[6])&&U%3&&!((U+Y)%3)){G+=Y;continue}if(K-=Y,K>0)continue;Y=Math.min(Y,Y+K+G);const Z=$.slice(0,U+B.index+(B[0].length-q.length)+Y);if(Math.min(U,Y)%2){const te=Z.slice(1,-1);return{type:"em",raw:Z,text:te,tokens:this.lexer.inlineTokens(te)}}const ee=Z.slice(2,-2);return{type:"strong",raw:Z,text:ee,tokens:this.lexer.inlineTokens(ee)}}}}codespan($){const I=this.rules.inline.code.exec($);if(I){let N=I[2].replace(/\n/g," ");const B=/[^ ]/.test(N),j=/^ /.test(N)&&/ $/.test(N);return B&&j&&(N=N.substring(1,N.length-1)),N=escape$4(N,!0),{type:"codespan",raw:I[0],text:N}}}br($){const I=this.rules.inline.br.exec($);if(I)return{type:"br",raw:I[0]}}del($){const I=this.rules.inline.del.exec($);if(I)return{type:"del",raw:I[0],text:I[2],tokens:this.lexer.inlineTokens(I[2])}}autolink($,I){const N=this.rules.inline.autolink.exec($);if(N){let B,j;return N[2]==="@"?(B=escape$4(this.options.mangle?I(N[1]):N[1]),j="mailto:"+B):(B=escape$4(N[1]),j=B),{type:"link",raw:N[0],text:B,href:j,tokens:[{type:"text",raw:B,text:B}]}}}url($,I){let N;if(N=this.rules.inline.url.exec($)){let B,j;if(N[2]==="@")B=escape$4(this.options.mangle?I(N[0]):N[0]),j="mailto:"+B;else{let U;do U=N[0],N[0]=this.rules.inline._backpedal.exec(N[0])[0];while(U!==N[0]);B=escape$4(N[0]),N[1]==="www."?j="http://"+N[0]:j=N[0]}return{type:"link",raw:N[0],text:B,href:j,tokens:[{type:"text",raw:B,text:B}]}}}inlineText($,I){const N=this.rules.inline.text.exec($);if(N){let B;return this.lexer.state.inRawBlock?B=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(N[0]):escape$4(N[0]):N[0]:B=escape$4(this.options.smartypants?I(N[0]):N[0]),{type:"text",raw:N[0],text:B}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal={...block};block.gfm={...block.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic={...block.normal,html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
- ]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal={...inline};inline.pedantic={...inline.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()};inline.gfm={...inline.normal,escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks={...inline.gfm,br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function smartypants(M){return M.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mangle(M){let $="",I,N;const B=M.length;for(I=0;I<B;I++)N=M.charCodeAt(I),Math.random()>.5&&(N="x"+N.toString(16)),$+="&#"+N+";";return $}class Lexer{constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||defaults$7,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const I={block:block.normal,inline:inline.normal};this.options.pedantic?(I.block=block.pedantic,I.inline=inline.pedantic):this.options.gfm&&(I.block=block.gfm,this.options.breaks?I.inline=inline.breaks:I.inline=inline.gfm),this.tokenizer.rules=I}static get rules(){return{block,inline}}static lex($,I){return new Lexer(I).lex($)}static lexInline($,I){return new Lexer(I).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
- `),this.blockTokens($,this.tokens);let I;for(;I=this.inlineQueue.shift();)this.inlineTokens(I.src,I.tokens);return this.tokens}blockTokens($,I=[]){this.options.pedantic?$=$.replace(/\t/g," ").replace(/^ +$/gm,""):$=$.replace(/^( *)(\t+)/gm,(q,Y,K)=>Y+" ".repeat(K.length));let N,B,j,U;for(;$;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(q=>(N=q.call({lexer:this},$,I))?($=$.substring(N.raw.length),I.push(N),!0):!1))){if(N=this.tokenizer.space($)){$=$.substring(N.raw.length),N.raw.length===1&&I.length>0?I[I.length-1].raw+=`
- `:I.push(N);continue}if(N=this.tokenizer.code($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&(B.type==="paragraph"||B.type==="text")?(B.raw+=`
- `+N.raw,B.text+=`
- `+N.text,this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N);continue}if(N=this.tokenizer.fences($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.heading($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.hr($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.blockquote($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.list($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.html($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.def($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&(B.type==="paragraph"||B.type==="text")?(B.raw+=`
- `+N.raw,B.text+=`
- `+N.raw,this.inlineQueue[this.inlineQueue.length-1].src=B.text):this.tokens.links[N.tag]||(this.tokens.links[N.tag]={href:N.href,title:N.title});continue}if(N=this.tokenizer.table($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.lheading($)){$=$.substring(N.raw.length),I.push(N);continue}if(j=$,this.options.extensions&&this.options.extensions.startBlock){let q=1/0;const Y=$.slice(1);let K;this.options.extensions.startBlock.forEach(function(G){K=G.call({lexer:this},Y),typeof K=="number"&&K>=0&&(q=Math.min(q,K))}),q<1/0&&q>=0&&(j=$.substring(0,q+1))}if(this.state.top&&(N=this.tokenizer.paragraph(j))){B=I[I.length-1],U&&B.type==="paragraph"?(B.raw+=`
- `+N.raw,B.text+=`
- `+N.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N),U=j.length!==$.length,$=$.substring(N.raw.length);continue}if(N=this.tokenizer.text($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&B.type==="text"?(B.raw+=`
- `+N.raw,B.text+=`
- `+N.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N);continue}if($){const q="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(q);break}else throw new Error(q)}}return this.state.top=!0,I}inline($,I=[]){return this.inlineQueue.push({src:$,tokens:I}),I}inlineTokens($,I=[]){let N,B,j,U=$,q,Y,K;if(this.tokens.links){const G=Object.keys(this.tokens.links);if(G.length>0)for(;(q=this.tokenizer.rules.inline.reflinkSearch.exec(U))!=null;)G.includes(q[0].slice(q[0].lastIndexOf("[")+1,-1))&&(U=U.slice(0,q.index)+"["+repeatString("a",q[0].length-2)+"]"+U.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(q=this.tokenizer.rules.inline.blockSkip.exec(U))!=null;)U=U.slice(0,q.index)+"["+repeatString("a",q[0].length-2)+"]"+U.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(q=this.tokenizer.rules.inline.escapedEmSt.exec(U))!=null;)U=U.slice(0,q.index+q[0].length-2)+"++"+U.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;$;)if(Y||(K=""),Y=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(G=>(N=G.call({lexer:this},$,I))?($=$.substring(N.raw.length),I.push(N),!0):!1))){if(N=this.tokenizer.escape($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.tag($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&N.type==="text"&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if(N=this.tokenizer.link($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.reflink($,this.tokens.links)){$=$.substring(N.raw.length),B=I[I.length-1],B&&N.type==="text"&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if(N=this.tokenizer.emStrong($,U,K)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.codespan($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.br($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.del($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.autolink($,mangle)){$=$.substring(N.raw.length),I.push(N);continue}if(!this.state.inLink&&(N=this.tokenizer.url($,mangle))){$=$.substring(N.raw.length),I.push(N);continue}if(j=$,this.options.extensions&&this.options.extensions.startInline){let G=1/0;const J=$.slice(1);let Z;this.options.extensions.startInline.forEach(function(ee){Z=ee.call({lexer:this},J),typeof Z=="number"&&Z>=0&&(G=Math.min(G,Z))}),G<1/0&&G>=0&&(j=$.substring(0,G+1))}if(N=this.tokenizer.inlineText(j,smartypants)){$=$.substring(N.raw.length),N.raw.slice(-1)!=="_"&&(K=N.raw.slice(-1)),Y=!0,B=I[I.length-1],B&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if($){const G="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(G);break}else throw new Error(G)}}return I}}let Renderer$1=class{constructor($){this.options=$||defaults$7}code($,I,N){const B=(I||"").match(/\S*/)[0];if(this.options.highlight){const j=this.options.highlight($,B);j!=null&&j!==$&&(N=!0,$=j)}return $=$.replace(/\n$/,"")+`
- `,B?'<pre><code class="'+this.options.langPrefix+escape$4(B)+'">'+(N?$:escape$4($,!0))+`</code></pre>
- `:"<pre><code>"+(N?$:escape$4($,!0))+`</code></pre>
- `}blockquote($){return`<blockquote>
- ${$}</blockquote>
- `}html($){return $}heading($,I,N,B){if(this.options.headerIds){const j=this.options.headerPrefix+B.slug(N);return`<h${I} id="${j}">${$}</h${I}>
- `}return`<h${I}>${$}</h${I}>
- `}hr(){return this.options.xhtml?`<hr/>
- `:`<hr>
- `}list($,I,N){const B=I?"ol":"ul",j=I&&N!==1?' start="'+N+'"':"";return"<"+B+j+`>
- `+$+"</"+B+`>
- `}listitem($){return`<li>${$}</li>
- `}checkbox($){return"<input "+($?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph($){return`<p>${$}</p>
- `}table($,I){return I&&(I=`<tbody>${I}</tbody>`),`<table>
- <thead>
- `+$+`</thead>
- `+I+`</table>
- `}tablerow($){return`<tr>
- ${$}</tr>
- `}tablecell($,I){const N=I.header?"th":"td";return(I.align?`<${N} align="${I.align}">`:`<${N}>`)+$+`</${N}>
- `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del($){return`<del>${$}</del>`}link($,I,N){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return N;let B='<a href="'+$+'"';return I&&(B+=' title="'+I+'"'),B+=">"+N+"</a>",B}image($,I,N){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return N;let B=`<img src="${$}" alt="${N}"`;return I&&(B+=` title="${I}"`),B+=this.options.xhtml?"/>":">",B}text($){return $}};class TextRenderer{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,I,N){return""+N}image($,I,N){return""+N}br(){return""}}class Slugger{constructor(){this.seen={}}serialize($){return $.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug($,I){let N=$,B=0;if(this.seen.hasOwnProperty(N)){B=this.seen[$];do B++,N=$+"-"+B;while(this.seen.hasOwnProperty(N))}return I||(this.seen[$]=B,this.seen[N]=0),N}slug($,I={}){const N=this.serialize($);return this.getNextSafeSlug(N,I.dryrun)}}class Parser{constructor($){this.options=$||defaults$7,this.options.renderer=this.options.renderer||new Renderer$1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse($,I){return new Parser(I).parse($)}static parseInline($,I){return new Parser(I).parseInline($)}parse($,I=!0){let N="",B,j,U,q,Y,K,G,J,Z,ee,te,re,se,ne,le,ge,ue,_e,fe;const me=$.length;for(B=0;B<me;B++){if(ee=$[B],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ee.type]&&(fe=this.options.extensions.renderers[ee.type].call({parser:this},ee),fe!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ee.type))){N+=fe||"";continue}switch(ee.type){case"space":continue;case"hr":{N+=this.renderer.hr();continue}case"heading":{N+=this.renderer.heading(this.parseInline(ee.tokens),ee.depth,unescape$2(this.parseInline(ee.tokens,this.textRenderer)),this.slugger);continue}case"code":{N+=this.renderer.code(ee.text,ee.lang,ee.escaped);continue}case"table":{for(J="",G="",q=ee.header.length,j=0;j<q;j++)G+=this.renderer.tablecell(this.parseInline(ee.header[j].tokens),{header:!0,align:ee.align[j]});for(J+=this.renderer.tablerow(G),Z="",q=ee.rows.length,j=0;j<q;j++){for(K=ee.rows[j],G="",Y=K.length,U=0;U<Y;U++)G+=this.renderer.tablecell(this.parseInline(K[U].tokens),{header:!1,align:ee.align[U]});Z+=this.renderer.tablerow(G)}N+=this.renderer.table(J,Z);continue}case"blockquote":{Z=this.parse(ee.tokens),N+=this.renderer.blockquote(Z);continue}case"list":{for(te=ee.ordered,re=ee.start,se=ee.loose,q=ee.items.length,Z="",j=0;j<q;j++)le=ee.items[j],ge=le.checked,ue=le.task,ne="",le.task&&(_e=this.renderer.checkbox(ge),se?le.tokens.length>0&&le.tokens[0].type==="paragraph"?(le.tokens[0].text=_e+" "+le.tokens[0].text,le.tokens[0].tokens&&le.tokens[0].tokens.length>0&&le.tokens[0].tokens[0].type==="text"&&(le.tokens[0].tokens[0].text=_e+" "+le.tokens[0].tokens[0].text)):le.tokens.unshift({type:"text",text:_e}):ne+=_e),ne+=this.parse(le.tokens,se),Z+=this.renderer.listitem(ne,ue,ge);N+=this.renderer.list(Z,te,re);continue}case"html":{N+=this.renderer.html(ee.text);continue}case"paragraph":{N+=this.renderer.paragraph(this.parseInline(ee.tokens));continue}case"text":{for(Z=ee.tokens?this.parseInline(ee.tokens):ee.text;B+1<me&&$[B+1].type==="text";)ee=$[++B],Z+=`
- `+(ee.tokens?this.parseInline(ee.tokens):ee.text);N+=I?this.renderer.paragraph(Z):Z;continue}default:{const ve='Token with "'+ee.type+'" type was not found.';if(this.options.silent){console.error(ve);return}else throw new Error(ve)}}}return N}parseInline($,I){I=I||this.renderer;let N="",B,j,U;const q=$.length;for(B=0;B<q;B++){if(j=$[B],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[j.type]&&(U=this.options.extensions.renderers[j.type].call({parser:this},j),U!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(j.type))){N+=U||"";continue}switch(j.type){case"escape":{N+=I.text(j.text);break}case"html":{N+=I.html(j.text);break}case"link":{N+=I.link(j.href,j.title,this.parseInline(j.tokens,I));break}case"image":{N+=I.image(j.href,j.title,j.text);break}case"strong":{N+=I.strong(this.parseInline(j.tokens,I));break}case"em":{N+=I.em(this.parseInline(j.tokens,I));break}case"codespan":{N+=I.codespan(j.text);break}case"br":{N+=I.br();break}case"del":{N+=I.del(this.parseInline(j.tokens,I));break}case"text":{N+=I.text(j.text);break}default:{const Y='Token with "'+j.type+'" type was not found.';if(this.options.silent){console.error(Y);return}else throw new Error(Y)}}}return N}}class Hooks{constructor($){this.options=$||defaults$7}preprocess($){return $}postprocess($){return $}}Wl(Hooks,"passThroughHooks",new Set(["preprocess","postprocess"]));function onError(M,$,I){return N=>{if(N.message+=`
- Please report this to https://github.com/markedjs/marked.`,M){const B="<p>An error occurred:</p><pre>"+escape$4(N.message+"",!0)+"</pre>";if($)return Promise.resolve(B);if(I){I(null,B);return}return B}if($)return Promise.reject(N);if(I){I(N);return}throw N}}function parseMarkdown(M,$){return(I,N,B)=>{typeof N=="function"&&(B=N,N=null);const j={...N};N={...marked.defaults,...j};const U=onError(N.silent,N.async,B);if(typeof I>"u"||I===null)return U(new Error("marked(): input parameter is undefined or null"));if(typeof I!="string")return U(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(I)+", string expected"));if(checkSanitizeDeprecation(N),N.hooks&&(N.hooks.options=N),B){const q=N.highlight;let Y;try{N.hooks&&(I=N.hooks.preprocess(I)),Y=M(I,N)}catch(J){return U(J)}const K=function(J){let Z;if(!J)try{N.walkTokens&&marked.walkTokens(Y,N.walkTokens),Z=$(Y,N),N.hooks&&(Z=N.hooks.postprocess(Z))}catch(ee){J=ee}return N.highlight=q,J?U(J):B(null,Z)};if(!q||q.length<3||(delete N.highlight,!Y.length))return K();let G=0;marked.walkTokens(Y,function(J){J.type==="code"&&(G++,setTimeout(()=>{q(J.text,J.lang,function(Z,ee){if(Z)return K(Z);ee!=null&&ee!==J.text&&(J.text=ee,J.escaped=!0),G--,G===0&&K()})},0))}),G===0&&K();return}if(N.async)return Promise.resolve(N.hooks?N.hooks.preprocess(I):I).then(q=>M(q,N)).then(q=>N.walkTokens?Promise.all(marked.walkTokens(q,N.walkTokens)).then(()=>q):q).then(q=>$(q,N)).then(q=>N.hooks?N.hooks.postprocess(q):q).catch(U);try{N.hooks&&(I=N.hooks.preprocess(I));const q=M(I,N);N.walkTokens&&marked.walkTokens(q,N.walkTokens);let Y=$(q,N);return N.hooks&&(Y=N.hooks.postprocess(Y)),Y}catch(q){return U(q)}}}function marked(M,$,I){return parseMarkdown(Lexer.lex,Parser.parse)(M,$,I)}marked.options=marked.setOptions=function(M){return marked.defaults={...marked.defaults,...M},changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults$7;marked.use=function(...M){const $=marked.defaults.extensions||{renderers:{},childTokens:{}};M.forEach(I=>{const N={...I};if(N.async=marked.defaults.async||N.async||!1,I.extensions&&(I.extensions.forEach(B=>{if(!B.name)throw new Error("extension name required");if(B.renderer){const j=$.renderers[B.name];j?$.renderers[B.name]=function(...U){let q=B.renderer.apply(this,U);return q===!1&&(q=j.apply(this,U)),q}:$.renderers[B.name]=B.renderer}if(B.tokenizer){if(!B.level||B.level!=="block"&&B.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");$[B.level]?$[B.level].unshift(B.tokenizer):$[B.level]=[B.tokenizer],B.start&&(B.level==="block"?$.startBlock?$.startBlock.push(B.start):$.startBlock=[B.start]:B.level==="inline"&&($.startInline?$.startInline.push(B.start):$.startInline=[B.start]))}B.childTokens&&($.childTokens[B.name]=B.childTokens)}),N.extensions=$),I.renderer){const B=marked.defaults.renderer||new Renderer$1;for(const j in I.renderer){const U=B[j];B[j]=(...q)=>{let Y=I.renderer[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.renderer=B}if(I.tokenizer){const B=marked.defaults.tokenizer||new Tokenizer;for(const j in I.tokenizer){const U=B[j];B[j]=(...q)=>{let Y=I.tokenizer[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.tokenizer=B}if(I.hooks){const B=marked.defaults.hooks||new Hooks;for(const j in I.hooks){const U=B[j];Hooks.passThroughHooks.has(j)?B[j]=q=>{if(marked.defaults.async)return Promise.resolve(I.hooks[j].call(B,q)).then(K=>U.call(B,K));const Y=I.hooks[j].call(B,q);return U.call(B,Y)}:B[j]=(...q)=>{let Y=I.hooks[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.hooks=B}if(I.walkTokens){const B=marked.defaults.walkTokens;N.walkTokens=function(j){let U=[];return U.push(I.walkTokens.call(this,j)),B&&(U=U.concat(B.call(this,j))),U}}marked.setOptions(N)})};marked.walkTokens=function(M,$){let I=[];for(const N of M)switch(I=I.concat($.call(marked,N)),N.type){case"table":{for(const B of N.header)I=I.concat(marked.walkTokens(B.tokens,$));for(const B of N.rows)for(const j of B)I=I.concat(marked.walkTokens(j.tokens,$));break}case"list":{I=I.concat(marked.walkTokens(N.items,$));break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[N.type]?marked.defaults.extensions.childTokens[N.type].forEach(function(B){I=I.concat(marked.walkTokens(N[B],$))}):N.tokens&&(I=I.concat(marked.walkTokens(N.tokens,$)))}return I};marked.parseInline=parseMarkdown(Lexer.lexInline,Parser.parseInline);marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer$1;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.Hooks=Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;const intervalRegexp=/^({\s*(\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*)\s*})|([\[\]])\s*(-Inf|\*|\-?\d+(\.\d+)?)\s*,\s*(\+?Inf|\*|\-?\d+(\.\d+)?)\s*([\[\]])$/,anyIntervalRegexp=/({\s*(\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*)\s*})|([\[\]])\s*(-Inf|\*|\-?\d+(\.\d+)?)\s*,\s*(\+?Inf|\*|\-?\d+(\.\d+)?)\s*([\[\]])/,testInterval=function(M,$){if(typeof $!="string")throw"Invalid interval: should be a string.";$=$.trim();var I=$.match(intervalRegexp);if(!I)throw"Invalid interval: "+$;if(I[2]){for(var N=I[2].split(","),B=0;B<N.length;B++)if(parseInt(N[B],10)===M)return!0}else{I=I.filter(function(K){return!!K});var j=I[1],U=convertNumber(I[2]);U===1/0&&(U=-1/0);var q=convertNumber(I[3]),Y=I[4];return(j==="["?M>=U:M>U)&&(Y==="]"?M<=q:M<q)}return!1};function convertNumber(M){return M==="-Inf"?-1/0:M==="+Inf"||M==="Inf"||M==="*"?1/0:parseInt(M,10)}function choose(M,$,I){let N=M.split("|"),B=[];for(let U=0;U<N.length;U++)if(N[U]=N[U].trim(),anyIntervalRegexp.test(N[U])){let q=N[U].split(/\s/);B.push(q.shift()),N[U]=q.join(" ")}if(N.length===1)return M;for(let U=0;U<B.length;U++)if(testInterval($,B[U]))return N[U];const j=getPluralForm($,I);return N[j]}const getPluralForm=function(M,$){switch($.includes("_")&&($=$.substr(0,$.indexOf("_"))),$){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return M==1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return M===0||M===1?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return M%10==1&&M%100!=11?0:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?1:2;case"cs":case"sk":return M==1?0:M>=2&&M<=4?1:2;case"ga":return M==1?0:M==2?1:2;case"lt":return M%10==1&&M%100!=11?0:M%10>=2&&(M%100<10||M%100>=20)?1:2;case"sl":return M%100==1?0:M%100==2?1:M%100==3||M%100==4?2:3;case"mk":return M%10==1?0:1;case"mt":return M==1?0:M===0||M%100>1&&M%100<11?1:M%100>10&&M%100<20?2:3;case"lv":return M===0?0:M%10==1&&M%100!=11?1:2;case"pl":return M==1?0:M%10>=2&&M%10<=4&&(M%100<12||M%100>14)?1:2;case"cy":return M==1?0:M==2?1:M==8||M==11?2:3;case"ro":return M==1?0:M===0||M%100>0&&M%100<20?1:2;case"ar":return M===0?0:M==1?1:M==2?2:M%100>=3&&M%100<=10?3:M%100>=11&&M%100<=99?4:5;default:return 0}},translate=function(M,$){let I=getLine(M);for(let N in $)I=I.split(":"+N).join($[N]);return I},translateChoice=function(M,$,I){I=typeof I<"u"?I:{},$=Array.isArray($)?$.length:$,I.count=$;let N=translate(M,I);return choose(N,$,Statamic.$config.get("translationLocale"))},getLine=function(M){const $=Statamic.$config.get("translations");return $[`*.${M}`]||$[M]||$[`statamic::${M}`]||$[`statamic::messages.${M}`]||M};function commonjsRequire(M){throw new Error('Could not dynamically require "'+M+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uniqid$2={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var pid=typeof process<"u"&&process.pid?process.pid.toString(36):"",address="";if(typeof __webpack_require__!="function"&&typeof commonjsRequire<"u"){var mac="",os$1=require$$0$1;if(os$1.networkInterfaces)var networkInterfaces=os$1.networkInterfaces();if(networkInterfaces){e:for(let M in networkInterfaces){const $=networkInterfaces[M],I=$.length;for(var i$2=0;i$2<I;i$2++)if($[i$2]!==void 0&&$[i$2].mac&&$[i$2].mac!="00:00:00:00:00:00"){mac=$[i$2].mac;break e}}address=mac?parseInt(mac.replace(/\:|\D+/gi,"")).toString(36):""}}uniqid$2.exports=uniqid$2.exports.default=function(M,$){return(M||"")+address+pid+now$2().toString(36)+($||"")};uniqid$2.exports.process=function(M,$){return(M||"")+pid+now$2().toString(36)+($||"")};uniqid$2.exports.time=function(M,$){return(M||"")+now$2().toString(36)+($||"")};function now$2(){var M=Date.now(),$=now$2.last||M;return now$2.last=M>$?M:$+1}var uniqidExports=uniqid$2.exports;const uniqid$1=getDefaultExportFromCjs(uniqidExports);class PreviewHtml{constructor($){this.html=$}}function cp_url$1(M){return M=Statamic.$config.get("cpUrl")+"/"+M,tidy_url(M)}function docs_url$1(M){return tidy_url("https://statamic.dev/"+M)}function resource_url$1(M){return M=Statamic.$config.get("resourceUrl")+"/"+M,tidy_url(M)}function tidy_url(M){return M.replace(/([^:])(\/\/+)/g,"$1/")}function relative_url(M){return M.replace(/^(?:\/\/|[^/]+)*\//,"/")}function dd(M){console.log(M)}function data_get$1(M,$,I=null){var N=Array.isArray($)?$:$.split("."),B=N.reduce((j,U)=>j&&j[U],M);return B!==void 0?B:I}function data_set(M,$,I){for(var N=$.split(".");N.length-1;){var B=N.shift(),j=N.length?new RegExp("^[0-9]+$").test(N[0]):!1;B in M||(M[B]=j?[]:{}),M=M[B]}M[N[0]]=I}function clone$4(M){if(M!==void 0)return JSON.parse(JSON.stringify(M))}function tailwind_width_class$1(M){return`${{25:"w-full @lg:w-1/4",33:"w-full @lg:w-1/3",50:"w-full @lg:w-1/2",66:"w-full @lg:w-2/3",75:"w-full @lg:w-3/4",100:"w-full"}[M]||"w-full"}`}function markdown$4(M){return marked(M)}function __$1(M,$){return translate(M,$)}function __n$1(M,$,I){return translateChoice(M,$,I)}function utf8btoa$1(M){const $=encodeURIComponent(M).replace(/%([0-9A-F]{2})/g,(I,N)=>String.fromCharCode(`0x${N}`));return btoa($)}function utf8atob$1(M){const $=atob(M);return decodeURIComponent($.split("").map(I=>"%"+("00"+I.charCodeAt(0).toString(16)).slice(-2)).join(""))}function uniqid(){return uniqid$1()}function truncate$1(M,$,I="..."){return M.length<=$?M:M.substring(0,$-I.length)+I}function escapeHtml$1(M){return M.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function replicatorPreviewHtml$1(M){return new PreviewHtml(M)}function closestVm(M,$){let I=M;for(;I&&!I.__vue__;)I=I.parentElement;let N=I.__vue__;for(;N!==N.$root;){if(!$||$===N.$options.name)return N;N=N.$parent}}const Globals=Object.freeze(Object.defineProperty({__proto__:null,__:__$1,__n:__n$1,clone:clone$4,closestVm,cp_url:cp_url$1,data_get:data_get$1,data_set,dd,docs_url:docs_url$1,escapeHtml:escapeHtml$1,markdown:markdown$4,relative_url,replicatorPreviewHtml:replicatorPreviewHtml$1,resource_url:resource_url$1,tailwind_width_class:tailwind_width_class$1,tidy_url,truncate:truncate$1,uniqid,utf8atob:utf8atob$1,utf8btoa:utf8btoa$1},Symbol.toStringTag,{value:"Module"}));class Reveal{element($){if(!$)return;let I=$;for(;I;)I.matches(".tab-panel")&&closestVm(I,"publish-tabs").setActive(I.dataset.tabHandle),I.matches(".replicator-set")&&closestVm(I,"replicator-fieldtype-set").expand(),I.matches(".bard-set")&&closestVm(I,"bard-fieldtype-set").expand(),I=I.parentElement;Vue$3.nextTick(()=>{$.scrollIntoView({block:"center"})})}invalid(){Vue$3.nextTick(()=>{const $=document.querySelector(".publish-field.has-error:not(:has(.publish-field.has-error))");$&&this.element($)})}}var VERSION$1="1.13.6",root=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ArrayProto=Array.prototype,ObjProto=Object.prototype,SymbolProto=typeof Symbol<"u"?Symbol.prototype:null,push$1=ArrayProto.push,slice$1=ArrayProto.slice,toString$3=ObjProto.toString,hasOwnProperty$2=ObjProto.hasOwnProperty,supportsArrayBuffer=typeof ArrayBuffer<"u",supportsDataView=typeof DataView<"u",nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,nativeIsView=supportsArrayBuffer&&ArrayBuffer.isView,_isNaN=isNaN,_isFinite=isFinite,hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(M,$){return $=$==null?M.length-1:+$,function(){for(var I=Math.max(arguments.length-$,0),N=Array(I),B=0;B<I;B++)N[B]=arguments[B+$];switch($){case 0:return M.call(this,N);case 1:return M.call(this,arguments[0],N);case 2:return M.call(this,arguments[0],arguments[1],N)}var j=Array($+1);for(B=0;B<$;B++)j[B]=arguments[B];return j[$]=N,M.apply(this,j)}}function isObject$5(M){var $=typeof M;return $==="function"||$==="object"&&!!M}function isNull(M){return M===null}function isUndefined$2(M){return M===void 0}function isBoolean$2(M){return M===!0||M===!1||toString$3.call(M)==="[object Boolean]"}function isElement$2(M){return!!(M&&M.nodeType===1)}function tagTester(M){var $="[object "+M+"]";return function(I){return toString$3.call(I)===$}}const isString$5=tagTester("String"),isNumber$3=tagTester("Number"),isDate$3=tagTester("Date"),isRegExp$3=tagTester("RegExp"),isError$1=tagTester("Error"),isSymbol$2=tagTester("Symbol"),isArrayBuffer$1=tagTester("ArrayBuffer");var isFunction$3=tagTester("Function"),nodelist=root.document&&root.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof nodelist!="function"&&(isFunction$3=function(M){return typeof M=="function"||!1});const isFunction$4=isFunction$3,hasObjectTag=tagTester("Object");var hasStringTagBug=supportsDataView&&hasObjectTag(new DataView(new ArrayBuffer(8))),isIE11=typeof Map<"u"&&hasObjectTag(new Map),isDataView=tagTester("DataView");function ie10IsDataView(M){return M!=null&&isFunction$4(M.getInt8)&&isArrayBuffer$1(M.buffer)}const isDataView$1=hasStringTagBug?ie10IsDataView:isDataView,isArray$8=nativeIsArray||tagTester("Array");function has$6(M,$){return M!=null&&hasOwnProperty$2.call(M,$)}var isArguments=tagTester("Arguments");(function(){isArguments(arguments)||(isArguments=function(M){return has$6(M,"callee")})})();const isArguments$1=isArguments;function isFinite$1(M){return!isSymbol$2(M)&&_isFinite(M)&&!isNaN(parseFloat(M))}function isNaN$1(M){return isNumber$3(M)&&_isNaN(M)}function constant(M){return function(){return M}}function createSizePropertyCheck(M){return function($){var I=M($);return typeof I=="number"&&I>=0&&I<=MAX_ARRAY_INDEX}}function shallowProperty(M){return function($){return $==null?void 0:$[M]}}const getByteLength=shallowProperty("byteLength"),isBufferLike=createSizePropertyCheck(getByteLength);var typedArrayPattern=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function isTypedArray$1(M){return nativeIsView?nativeIsView(M)&&!isDataView$1(M):isBufferLike(M)&&typedArrayPattern.test(toString$3.call(M))}const isTypedArray$2=supportsArrayBuffer?isTypedArray$1:constant(!1),getLength=shallowProperty("length");function emulatedSet(M){for(var $={},I=M.length,N=0;N<I;++N)$[M[N]]=!0;return{contains:function(B){return $[B]===!0},push:function(B){return $[B]=!0,M.push(B)}}}function collectNonEnumProps(M,$){$=emulatedSet($);var I=nonEnumerableProps.length,N=M.constructor,B=isFunction$4(N)&&N.prototype||ObjProto,j="constructor";for(has$6(M,j)&&!$.contains(j)&&$.push(j);I--;)j=nonEnumerableProps[I],j in M&&M[j]!==B[j]&&!$.contains(j)&&$.push(j)}function keys$2(M){if(!isObject$5(M))return[];if(nativeKeys)return nativeKeys(M);var $=[];for(var I in M)has$6(M,I)&&$.push(I);return hasEnumBug&&collectNonEnumProps(M,$),$}function isEmpty$1(M){if(M==null)return!0;var $=getLength(M);return typeof $=="number"&&(isArray$8(M)||isString$5(M)||isArguments$1(M))?$===0:getLength(keys$2(M))===0}function isMatch(M,$){var I=keys$2($),N=I.length;if(M==null)return!N;for(var B=Object(M),j=0;j<N;j++){var U=I[j];if($[U]!==B[U]||!(U in B))return!1}return!0}function _$1(M){if(M instanceof _$1)return M;if(!(this instanceof _$1))return new _$1(M);this._wrapped=M}_$1.VERSION=VERSION$1;_$1.prototype.value=function(){return this._wrapped};_$1.prototype.valueOf=_$1.prototype.toJSON=_$1.prototype.value;_$1.prototype.toString=function(){return String(this._wrapped)};function toBufferView(M){return new Uint8Array(M.buffer||M,M.byteOffset||0,getByteLength(M))}var tagDataView="[object DataView]";function eq(M,$,I,N){if(M===$)return M!==0||1/M===1/$;if(M==null||$==null)return!1;if(M!==M)return $!==$;var B=typeof M;return B!=="function"&&B!=="object"&&typeof $!="object"?!1:deepEq(M,$,I,N)}function deepEq(M,$,I,N){M instanceof _$1&&(M=M._wrapped),$ instanceof _$1&&($=$._wrapped);var B=toString$3.call(M);if(B!==toString$3.call($))return!1;if(hasStringTagBug&&B=="[object Object]"&&isDataView$1(M)){if(!isDataView$1($))return!1;B=tagDataView}switch(B){case"[object RegExp]":case"[object String]":return""+M==""+$;case"[object Number]":return+M!=+M?+$!=+$:+M==0?1/+M===1/$:+M==+$;case"[object Date]":case"[object Boolean]":return+M==+$;case"[object Symbol]":return SymbolProto.valueOf.call(M)===SymbolProto.valueOf.call($);case"[object ArrayBuffer]":case tagDataView:return deepEq(toBufferView(M),toBufferView($),I,N)}var j=B==="[object Array]";if(!j&&isTypedArray$2(M)){var U=getByteLength(M);if(U!==getByteLength($))return!1;if(M.buffer===$.buffer&&M.byteOffset===$.byteOffset)return!0;j=!0}if(!j){if(typeof M!="object"||typeof $!="object")return!1;var q=M.constructor,Y=$.constructor;if(q!==Y&&!(isFunction$4(q)&&q instanceof q&&isFunction$4(Y)&&Y instanceof Y)&&"constructor"in M&&"constructor"in $)return!1}I=I||[],N=N||[];for(var K=I.length;K--;)if(I[K]===M)return N[K]===$;if(I.push(M),N.push($),j){if(K=M.length,K!==$.length)return!1;for(;K--;)if(!eq(M[K],$[K],I,N))return!1}else{var G=keys$2(M),J;if(K=G.length,keys$2($).length!==K)return!1;for(;K--;)if(J=G[K],!(has$6($,J)&&eq(M[J],$[J],I,N)))return!1}return I.pop(),N.pop(),!0}function isEqual(M,$){return eq(M,$)}function allKeys(M){if(!isObject$5(M))return[];var $=[];for(var I in M)$.push(I);return hasEnumBug&&collectNonEnumProps(M,$),$}function ie11fingerprint(M){var $=getLength(M);return function(I){if(I==null)return!1;var N=allKeys(I);if(getLength(N))return!1;for(var B=0;B<$;B++)if(!isFunction$4(I[M[B]]))return!1;return M!==weakMapMethods||!isFunction$4(I[forEachName])}}var forEachName="forEach",hasName="has",commonInit=["clear","delete"],mapTail=["get",hasName,"set"],mapMethods=commonInit.concat(forEachName,mapTail),weakMapMethods=commonInit.concat(mapTail),setMethods=["add"].concat(commonInit,forEachName,hasName);const isMap$2=isIE11?ie11fingerprint(mapMethods):tagTester("Map"),isWeakMap$1=isIE11?ie11fingerprint(weakMapMethods):tagTester("WeakMap"),isSet$1=isIE11?ie11fingerprint(setMethods):tagTester("Set"),isWeakSet$1=tagTester("WeakSet");function values(M){for(var $=keys$2(M),I=$.length,N=Array(I),B=0;B<I;B++)N[B]=M[$[B]];return N}function pairs(M){for(var $=keys$2(M),I=$.length,N=Array(I),B=0;B<I;B++)N[B]=[$[B],M[$[B]]];return N}function invert(M){for(var $={},I=keys$2(M),N=0,B=I.length;N<B;N++)$[M[I[N]]]=I[N];return $}function functions(M){var $=[];for(var I in M)isFunction$4(M[I])&&$.push(I);return $.sort()}function createAssigner(M,$){return function(I){var N=arguments.length;if($&&(I=Object(I)),N<2||I==null)return I;for(var B=1;B<N;B++)for(var j=arguments[B],U=M(j),q=U.length,Y=0;Y<q;Y++){var K=U[Y];(!$||I[K]===void 0)&&(I[K]=j[K])}return I}}const extend$5=createAssigner(allKeys),extendOwn=createAssigner(keys$2),defaults$6=createAssigner(allKeys,!0);function ctor(){return function(){}}function baseCreate(M){if(!isObject$5(M))return{};if(nativeCreate)return nativeCreate(M);var $=ctor();$.prototype=M;var I=new $;return $.prototype=null,I}function create$1(M,$){var I=baseCreate(M);return $&&extendOwn(I,$),I}function clone$3(M){return isObject$5(M)?isArray$8(M)?M.slice():extend$5({},M):M}function tap(M,$){return $(M),M}function toPath$1(M){return isArray$8(M)?M:[M]}_$1.toPath=toPath$1;function toPath(M){return _$1.toPath(M)}function deepGet(M,$){for(var I=$.length,N=0;N<I;N++){if(M==null)return;M=M[$[N]]}return I?M:void 0}function get$4(M,$,I){var N=deepGet(M,toPath($));return isUndefined$2(N)?I:N}function has$5(M,$){$=toPath($);for(var I=$.length,N=0;N<I;N++){var B=$[N];if(!has$6(M,B))return!1;M=M[B]}return!!I}function identity(M){return M}function matcher(M){return M=extendOwn({},M),function($){return isMatch($,M)}}function property(M){return M=toPath(M),function($){return deepGet($,M)}}function optimizeCb(M,$,I){if($===void 0)return M;switch(I??3){case 1:return function(N){return M.call($,N)};case 3:return function(N,B,j){return M.call($,N,B,j)};case 4:return function(N,B,j,U){return M.call($,N,B,j,U)}}return function(){return M.apply($,arguments)}}function baseIteratee(M,$,I){return M==null?identity:isFunction$4(M)?optimizeCb(M,$,I):isObject$5(M)&&!isArray$8(M)?matcher(M):property(M)}function iteratee(M,$){return baseIteratee(M,$,1/0)}_$1.iteratee=iteratee;function cb(M,$,I){return _$1.iteratee!==iteratee?_$1.iteratee(M,$):baseIteratee(M,$,I)}function mapObject(M,$,I){$=cb($,I);for(var N=keys$2(M),B=N.length,j={},U=0;U<B;U++){var q=N[U];j[q]=$(M[q],q,M)}return j}function noop$1(){}function propertyOf(M){return M==null?noop$1:function($){return get$4(M,$)}}function times(M,$,I){var N=Array(Math.max(0,M));$=optimizeCb($,I,1);for(var B=0;B<M;B++)N[B]=$(B);return N}function random(M,$){return $==null&&($=M,M=0),M+Math.floor(Math.random()*($-M+1))}const now$1=Date.now||function(){return new Date().getTime()};function createEscaper(M){var $=function(j){return M[j]},I="(?:"+keys$2(M).join("|")+")",N=RegExp(I),B=RegExp(I,"g");return function(j){return j=j==null?"":""+j,N.test(j)?j.replace(B,$):j}}const escapeMap={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},escape$3=createEscaper(escapeMap),unescapeMap=invert(escapeMap),unescape$1=createEscaper(unescapeMap),templateSettings=_$1.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var noMatch=/(.)^/,escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},escapeRegExp$1=/\\|'|\r|\n|\u2028|\u2029/g;function escapeChar(M){return"\\"+escapes[M]}var bareIdentifier=/^\s*(\w|\$)+\s*$/;function template(M,$,I){!$&&I&&($=I),$=defaults$6({},$,_$1.templateSettings);var N=RegExp([($.escape||noMatch).source,($.interpolate||noMatch).source,($.evaluate||noMatch).source].join("|")+"|$","g"),B=0,j="__p+='";M.replace(N,function(K,G,J,Z,ee){return j+=M.slice(B,ee).replace(escapeRegExp$1,escapeChar),B=ee+K.length,G?j+=`'+
- ((__t=(`+G+`))==null?'':_.escape(__t))+
- '`:J?j+=`'+
- ((__t=(`+J+`))==null?'':__t)+
- '`:Z&&(j+=`';
- `+Z+`
- __p+='`),K}),j+=`';
- `;var U=$.variable;if(U){if(!bareIdentifier.test(U))throw new Error("variable is not a bare identifier: "+U)}else j=`with(obj||{}){
- `+j+`}
- `,U="obj";j=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
- `+j+`return __p;
- `;var q;try{q=new Function(U,"_",j)}catch(K){throw K.source=j,K}var Y=function(K){return q.call(this,K,_$1)};return Y.source="function("+U+`){
- `+j+"}",Y}function result(M,$,I){$=toPath($);var N=$.length;if(!N)return isFunction$4(I)?I.call(M):I;for(var B=0;B<N;B++){var j=M==null?void 0:M[$[B]];j===void 0&&(j=I,B=N),M=isFunction$4(j)?j.call(M):j}return M}var idCounter=0;function uniqueId(M){var $=++idCounter+"";return M?M+$:$}function chain(M){var $=_$1(M);return $._chain=!0,$}function executeBound(M,$,I,N,B){if(!(N instanceof $))return M.apply(I,B);var j=baseCreate(M.prototype),U=M.apply(j,B);return isObject$5(U)?U:j}var partial$1=restArguments(function(M,$){var I=partial$1.placeholder,N=function(){for(var B=0,j=$.length,U=Array(j),q=0;q<j;q++)U[q]=$[q]===I?arguments[B++]:$[q];for(;B<arguments.length;)U.push(arguments[B++]);return executeBound(M,N,this,this,U)};return N});partial$1.placeholder=_$1;const bind$6=restArguments(function(M,$,I){if(!isFunction$4(M))throw new TypeError("Bind must be called on a function");var N=restArguments(function(B){return executeBound(M,N,$,this,I.concat(B))});return N}),isArrayLike=createSizePropertyCheck(getLength);function flatten$1(M,$,I,N){if(N=N||[],!$&&$!==0)$=1/0;else if($<=0)return N.concat(M);for(var B=N.length,j=0,U=getLength(M);j<U;j++){var q=M[j];if(isArrayLike(q)&&(isArray$8(q)||isArguments$1(q)))if($>1)flatten$1(q,$-1,I,N),B=N.length;else for(var Y=0,K=q.length;Y<K;)N[B++]=q[Y++];else I||(N[B++]=q)}return N}const bindAll=restArguments(function(M,$){$=flatten$1($,!1,!1);var I=$.length;if(I<1)throw new Error("bindAll must be passed function names");for(;I--;){var N=$[I];M[N]=bind$6(M[N],M)}return M});function memoize(M,$){var I=function(N){var B=I.cache,j=""+($?$.apply(this,arguments):N);return has$6(B,j)||(B[j]=M.apply(this,arguments)),B[j]};return I.cache={},I}const delay=restArguments(function(M,$,I){return setTimeout(function(){return M.apply(null,I)},$)}),defer=partial$1(delay,_$1,1);function throttle$2(M,$,I){var N,B,j,U,q=0;I||(I={});var Y=function(){q=I.leading===!1?0:now$1(),N=null,U=M.apply(B,j),N||(B=j=null)},K=function(){var G=now$1();!q&&I.leading===!1&&(q=G);var J=$-(G-q);return B=this,j=arguments,J<=0||J>$?(N&&(clearTimeout(N),N=null),q=G,U=M.apply(B,j),N||(B=j=null)):!N&&I.trailing!==!1&&(N=setTimeout(Y,J)),U};return K.cancel=function(){clearTimeout(N),q=0,N=B=j=null},K}function debounce$1(M,$,I){var N,B,j,U,q,Y=function(){var G=now$1()-B;$>G?N=setTimeout(Y,$-G):(N=null,I||(U=M.apply(q,j)),N||(j=q=null))},K=restArguments(function(G){return q=this,j=G,B=now$1(),N||(N=setTimeout(Y,$),I&&(U=M.apply(q,j))),U});return K.cancel=function(){clearTimeout(N),N=j=q=null},K}function wrap(M,$){return partial$1($,M)}function negate(M){return function(){return!M.apply(this,arguments)}}function compose(){var M=arguments,$=M.length-1;return function(){for(var I=$,N=M[$].apply(this,arguments);I--;)N=M[I].call(this,N);return N}}function after(M,$){return function(){if(--M<1)return $.apply(this,arguments)}}function before(M,$){var I;return function(){return--M>0&&(I=$.apply(this,arguments)),M<=1&&($=null),I}}const once$1=partial$1(before,2);function findKey$1(M,$,I){$=cb($,I);for(var N=keys$2(M),B,j=0,U=N.length;j<U;j++)if(B=N[j],$(M[B],B,M))return B}function createPredicateIndexFinder(M){return function($,I,N){I=cb(I,N);for(var B=getLength($),j=M>0?0:B-1;j>=0&&j<B;j+=M)if(I($[j],j,$))return j;return-1}}const findIndex=createPredicateIndexFinder(1),findLastIndex=createPredicateIndexFinder(-1);function sortedIndex(M,$,I,N){I=cb(I,N,1);for(var B=I($),j=0,U=getLength(M);j<U;){var q=Math.floor((j+U)/2);I(M[q])<B?j=q+1:U=q}return j}function createIndexFinder(M,$,I){return function(N,B,j){var U=0,q=getLength(N);if(typeof j=="number")M>0?U=j>=0?j:Math.max(j+q,U):q=j>=0?Math.min(j+1,q):j+q+1;else if(I&&j&&q)return j=I(N,B),N[j]===B?j:-1;if(B!==B)return j=$(slice$1.call(N,U,q),isNaN$1),j>=0?j+U:-1;for(j=M>0?U:q-1;j>=0&&j<q;j+=M)if(N[j]===B)return j;return-1}}const indexOf$2=createIndexFinder(1,findIndex,sortedIndex),lastIndexOf=createIndexFinder(-1,findLastIndex);function find$1(M,$,I){var N=isArrayLike(M)?findIndex:findKey$1,B=N(M,$,I);if(B!==void 0&&B!==-1)return M[B]}function findWhere(M,$){return find$1(M,matcher($))}function each(M,$,I){$=optimizeCb($,I);var N,B;if(isArrayLike(M))for(N=0,B=M.length;N<B;N++)$(M[N],N,M);else{var j=keys$2(M);for(N=0,B=j.length;N<B;N++)$(M[j[N]],j[N],M)}return M}function map$1(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=Array(B),U=0;U<B;U++){var q=N?N[U]:U;j[U]=$(M[q],q,M)}return j}function createReduce(M){var $=function(I,N,B,j){var U=!isArrayLike(I)&&keys$2(I),q=(U||I).length,Y=M>0?0:q-1;for(j||(B=I[U?U[Y]:Y],Y+=M);Y>=0&&Y<q;Y+=M){var K=U?U[Y]:Y;B=N(B,I[K],K,I)}return B};return function(I,N,B,j){var U=arguments.length>=3;return $(I,optimizeCb(N,j,4),B,U)}}const reduce=createReduce(1),reduceRight=createReduce(-1);function filter(M,$,I){var N=[];return $=cb($,I),each(M,function(B,j,U){$(B,j,U)&&N.push(B)}),N}function reject(M,$,I){return filter(M,negate(cb($)),I)}function every(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=0;j<B;j++){var U=N?N[j]:j;if(!$(M[U],U,M))return!1}return!0}function some$1(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=0;j<B;j++){var U=N?N[j]:j;if($(M[U],U,M))return!0}return!1}function contains$1(M,$,I,N){return isArrayLike(M)||(M=values(M)),(typeof I!="number"||N)&&(I=0),indexOf$2(M,$,I)>=0}const invoke=restArguments(function(M,$,I){var N,B;return isFunction$4($)?B=$:($=toPath($),N=$.slice(0,-1),$=$[$.length-1]),map$1(M,function(j){var U=B;if(!U){if(N&&N.length&&(j=deepGet(j,N)),j==null)return;U=j[$]}return U==null?U:U.apply(j,I)})});function pluck$1(M,$){return map$1(M,property($))}function where(M,$){return filter(M,matcher($))}function max$3(M,$,I){var N=-1/0,B=-1/0,j,U;if($==null||typeof $=="number"&&typeof M[0]!="object"&&M!=null){M=isArrayLike(M)?M:values(M);for(var q=0,Y=M.length;q<Y;q++)j=M[q],j!=null&&j>N&&(N=j)}else $=cb($,I),each(M,function(K,G,J){U=$(K,G,J),(U>B||U===-1/0&&N===-1/0)&&(N=K,B=U)});return N}function min$3(M,$,I){var N=1/0,B=1/0,j,U;if($==null||typeof $=="number"&&typeof M[0]!="object"&&M!=null){M=isArrayLike(M)?M:values(M);for(var q=0,Y=M.length;q<Y;q++)j=M[q],j!=null&&j<N&&(N=j)}else $=cb($,I),each(M,function(K,G,J){U=$(K,G,J),(U<B||U===1/0&&N===1/0)&&(N=K,B=U)});return N}var reStrSymbol=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function toArray$2(M){return M?isArray$8(M)?slice$1.call(M):isString$5(M)?M.match(reStrSymbol):isArrayLike(M)?map$1(M,identity):values(M):[]}function sample(M,$,I){if($==null||I)return isArrayLike(M)||(M=values(M)),M[random(M.length-1)];var N=toArray$2(M),B=getLength(N);$=Math.max(Math.min($,B),0);for(var j=B-1,U=0;U<$;U++){var q=random(U,j),Y=N[U];N[U]=N[q],N[q]=Y}return N.slice(0,$)}function shuffle(M){return sample(M,1/0)}function sortBy(M,$,I){var N=0;return $=cb($,I),pluck$1(map$1(M,function(B,j,U){return{value:B,index:N++,criteria:$(B,j,U)}}).sort(function(B,j){var U=B.criteria,q=j.criteria;if(U!==q){if(U>q||U===void 0)return 1;if(U<q||q===void 0)return-1}return B.index-j.index}),"value")}function group(M,$){return function(I,N,B){var j=$?[[],[]]:{};return N=cb(N,B),each(I,function(U,q){var Y=N(U,q,I);M(j,U,Y)}),j}}const groupBy=group(function(M,$,I){has$6(M,I)?M[I].push($):M[I]=[$]}),indexBy=group(function(M,$,I){M[I]=$}),countBy=group(function(M,$,I){has$6(M,I)?M[I]++:M[I]=1}),partition=group(function(M,$,I){M[I?0:1].push($)},!0);function size$2(M){return M==null?0:isArrayLike(M)?M.length:keys$2(M).length}function keyInObj(M,$,I){return $ in I}const pick=restArguments(function(M,$){var I={},N=$[0];if(M==null)return I;isFunction$4(N)?($.length>1&&(N=optimizeCb(N,$[1])),$=allKeys(M)):(N=keyInObj,$=flatten$1($,!1,!1),M=Object(M));for(var B=0,j=$.length;B<j;B++){var U=$[B],q=M[U];N(q,U,M)&&(I[U]=q)}return I}),omit=restArguments(function(M,$){var I=$[0],N;return isFunction$4(I)?(I=negate(I),$.length>1&&(N=$[1])):($=map$1(flatten$1($,!1,!1),String),I=function(B,j){return!contains$1($,j)}),pick(M,I,N)});function initial(M,$,I){return slice$1.call(M,0,Math.max(0,M.length-($==null||I?1:$)))}function first(M,$,I){return M==null||M.length<1?$==null||I?void 0:[]:$==null||I?M[0]:initial(M,M.length-$)}function rest(M,$,I){return slice$1.call(M,$==null||I?1:$)}function last(M,$,I){return M==null||M.length<1?$==null||I?void 0:[]:$==null||I?M[M.length-1]:rest(M,Math.max(0,M.length-$))}function compact$1(M){return filter(M,Boolean)}function flatten(M,$){return flatten$1(M,$,!1)}const difference=restArguments(function(M,$){return $=flatten$1($,!0,!0),filter(M,function(I){return!contains$1($,I)})}),without=restArguments(function(M,$){return difference(M,$)});function uniq(M,$,I,N){isBoolean$2($)||(N=I,I=$,$=!1),I!=null&&(I=cb(I,N));for(var B=[],j=[],U=0,q=getLength(M);U<q;U++){var Y=M[U],K=I?I(Y,U,M):Y;$&&!I?((!U||j!==K)&&B.push(Y),j=K):I?contains$1(j,K)||(j.push(K),B.push(Y)):contains$1(B,Y)||B.push(Y)}return B}const union=restArguments(function(M){return uniq(flatten$1(M,!0,!0))});function intersection(M){for(var $=[],I=arguments.length,N=0,B=getLength(M);N<B;N++){var j=M[N];if(!contains$1($,j)){var U;for(U=1;U<I&&contains$1(arguments[U],j);U++);U===I&&$.push(j)}}return $}function unzip(M){for(var $=M&&max$3(M,getLength).length||0,I=Array($),N=0;N<$;N++)I[N]=pluck$1(M,N);return I}const zip=restArguments(unzip);function object(M,$){for(var I={},N=0,B=getLength(M);N<B;N++)$?I[M[N]]=$[N]:I[M[N][0]]=M[N][1];return I}function range(M,$,I){$==null&&($=M||0,M=0),I||(I=$<M?-1:1);for(var N=Math.max(Math.ceil(($-M)/I),0),B=Array(N),j=0;j<N;j++,M+=I)B[j]=M;return B}function chunk(M,$){if($==null||$<1)return[];for(var I=[],N=0,B=M.length;N<B;)I.push(slice$1.call(M,N,N+=$));return I}function chainResult(M,$){return M._chain?_$1($).chain():$}function mixin$1(M){return each(functions(M),function($){var I=_$1[$]=M[$];_$1.prototype[$]=function(){var N=[this._wrapped];return push$1.apply(N,arguments),chainResult(this,I.apply(_$1,N))}}),_$1}each(["pop","push","reverse","shift","sort","splice","unshift"],function(M){var $=ArrayProto[M];_$1.prototype[M]=function(){var I=this._wrapped;return I!=null&&($.apply(I,arguments),(M==="shift"||M==="splice")&&I.length===0&&delete I[0]),chainResult(this,I)}});each(["concat","join","slice"],function(M){var $=ArrayProto[M];_$1.prototype[M]=function(){var I=this._wrapped;return I!=null&&(I=$.apply(I,arguments)),chainResult(this,I)}});const allExports=Object.freeze(Object.defineProperty({__proto__:null,VERSION:VERSION$1,after,all:every,allKeys,any:some$1,assign:extendOwn,before,bind:bind$6,bindAll,chain,chunk,clone:clone$3,collect:map$1,compact:compact$1,compose,constant,contains:contains$1,countBy,create:create$1,debounce:debounce$1,default:_$1,defaults:defaults$6,defer,delay,detect:find$1,difference,drop:rest,each,escape:escape$3,every,extend:extend$5,extendOwn,filter,find:find$1,findIndex,findKey:findKey$1,findLastIndex,findWhere,first,flatten,foldl:reduce,foldr:reduceRight,forEach:each,functions,get:get$4,groupBy,has:has$5,head:first,identity,include:contains$1,includes:contains$1,indexBy,indexOf:indexOf$2,initial,inject:reduce,intersection,invert,invoke,isArguments:isArguments$1,isArray:isArray$8,isArrayBuffer:isArrayBuffer$1,isBoolean:isBoolean$2,isDataView:isDataView$1,isDate:isDate$3,isElement:isElement$2,isEmpty:isEmpty$1,isEqual,isError:isError$1,isFinite:isFinite$1,isFunction:isFunction$4,isMap:isMap$2,isMatch,isNaN:isNaN$1,isNull,isNumber:isNumber$3,isObject:isObject$5,isRegExp:isRegExp$3,isSet:isSet$1,isString:isString$5,isSymbol:isSymbol$2,isTypedArray:isTypedArray$2,isUndefined:isUndefined$2,isWeakMap:isWeakMap$1,isWeakSet:isWeakSet$1,iteratee,keys:keys$2,last,lastIndexOf,map:map$1,mapObject,matcher,matches:matcher,max:max$3,memoize,methods:functions,min:min$3,mixin:mixin$1,negate,noop:noop$1,now:now$1,object,omit,once:once$1,pairs,partial:partial$1,partition,pick,pluck:pluck$1,property,propertyOf,random,range,reduce,reduceRight,reject,rest,restArguments,result,sample,select:filter,shuffle,size:size$2,some:some$1,sortBy,sortedIndex,tail:rest,take:first,tap,template,templateSettings,throttle:throttle$2,times,toArray:toArray$2,toPath:toPath$1,transpose:unzip,unescape:unescape$1,union,uniq,unique:uniq,uniqueId,unzip,values,where,without,wrap,zip},Symbol.toStringTag,{value:"Module"}));var _=mixin$1(allExports);_._=_;class Component{constructor($,I,N){this.id=$,this.name=I,this.props=N,this.events={}}prop($,I){this.props[$]=I}on($,I){Vue$3.set(this.events,$,I)}destroy(){Statamic.$components.destroy(this.id)}}class Components{constructor($){this.$root=$}register($,I){Vue$3.component($,I)}append($,{props:I}){const N=`appended-${uniqid$1()}`,B=new Component(N,$,I);return this.$root.appendedComponents.push(B),B}get($){let I=this.getAppended($);if(I)return I}getAppended($){const I=this.$root.appendedComponents;return _.findWhere(I,{id:$})}destroy($){let I=this.getAppended($);if(I){const N=_.indexOf(this.$root.appendedComponents,I);this.$root.appendedComponents.splice(N,1)}}}let FieldConditions$1=class{add($,I){Statamic.$store.commit("statamic/condition",{name:$,condition:I})}};class Callbacks{constructor(){this.callbacks=[]}add($,I){this.callbacks[$]=I}call($,...I){if(this.callbacks[$])return this.callbacks[$](...I)}}const echo=new Echo,bard=new Bard,keys$1=new Keys,hooks$1=new Hooks$1,reveal=new Reveal,components=new Components,conditions=new FieldConditions$1,callbacks=new Callbacks,Statamic$1=new Vue$3({data(){return{bootingCallbacks:[],bootedCallbacks:[]}},computed:{$callbacks(){return callbacks},$components(){return components},$request(){return this.$axios},$echo(){return echo},$bard(){return bard},$hooks(){return hooks$1},$reveal(){return reveal},$conditions(){return conditions},$keys(){return keys$1},user(){return this.$config.get("user")}},methods:{booting(M){this.bootingCallbacks.push(M)},booted(M){this.bootedCallbacks.push(M)},app(M){this.$app=M},config(M){this.$store.commit("statamic/config",M)},start(){this.bootingCallbacks.forEach(M=>M(this)),this.bootingCallbacks=[],this.$app=new Vue$3(this.$app),this.$components.$root=this.$app,this.bootedCallbacks.forEach(M=>M(this)),this.bootedCallbacks=[]},component(M,$){Vue$3.component(M,$)}}});var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(M){queueJob(M)}function queueJob(M){queue.includes(M)||queue.push(M),queueFlush()}function dequeueJob(M){let $=queue.indexOf(M);$!==-1&&$>lastFlushedIndex&&queue.splice($,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let M=0;M<queue.length;M++)queue[M](),lastFlushedIndex=M;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect,release,raw,shouldSchedule=!0;function disableEffectScheduling(M){shouldSchedule=!1,M(),shouldSchedule=!0}function setReactivityEngine(M){reactive=M.reactive,release=M.release,effect=$=>M.effect($,{scheduler:I=>{shouldSchedule?scheduler(I):I()}}),raw=M.raw}function overrideEffect(M){effect=M}function elementBoundEffect(M){let $=()=>{};return[N=>{let B=effect(N);return M._x_effects||(M._x_effects=new Set,M._x_runEffects=()=>{M._x_effects.forEach(j=>j())}),M._x_effects.add(B),$=()=>{B!==void 0&&(M._x_effects.delete(B),release(B))},B},()=>{$()}]}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(M){onElAddeds.push(M)}function onElRemoved(M,$){typeof $=="function"?(M._x_cleanups||(M._x_cleanups=[]),M._x_cleanups.push($)):($=M,onElRemoveds.push($))}function onAttributesAdded(M){onAttributeAddeds.push(M)}function onAttributeRemoved(M,$,I){M._x_attributeCleanups||(M._x_attributeCleanups={}),M._x_attributeCleanups[$]||(M._x_attributeCleanups[$]=[]),M._x_attributeCleanups[$].push(I)}function cleanupAttributes(M,$){M._x_attributeCleanups&&Object.entries(M._x_attributeCleanups).forEach(([I,N])=>{($===void 0||$.includes(I))&&(N.forEach(B=>B()),delete M._x_attributeCleanups[I])})}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var recordQueue=[],willProcessRecordQueue=!1;function flushObserver(){recordQueue=recordQueue.concat(observer.takeRecords()),recordQueue.length&&!willProcessRecordQueue&&(willProcessRecordQueue=!0,queueMicrotask(()=>{processRecordQueue(),willProcessRecordQueue=!1}))}function processRecordQueue(){onMutate(recordQueue),recordQueue.length=0}function mutateDom(M){if(!currentlyObserving)return M();stopObservingMutations();let $=M();return startObservingMutations(),$}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(M){if(isCollecting){deferredMutations=deferredMutations.concat(M);return}let $=[],I=[],N=new Map,B=new Map;for(let j=0;j<M.length;j++)if(!M[j].target._x_ignoreMutationObserver&&(M[j].type==="childList"&&(M[j].addedNodes.forEach(U=>U.nodeType===1&&$.push(U)),M[j].removedNodes.forEach(U=>U.nodeType===1&&I.push(U))),M[j].type==="attributes")){let U=M[j].target,q=M[j].attributeName,Y=M[j].oldValue,K=()=>{N.has(U)||N.set(U,[]),N.get(U).push({name:q,value:U.getAttribute(q)})},G=()=>{B.has(U)||B.set(U,[]),B.get(U).push(q)};U.hasAttribute(q)&&Y===null?K():U.hasAttribute(q)?(G(),K()):G()}B.forEach((j,U)=>{cleanupAttributes(U,j)}),N.forEach((j,U)=>{onAttributeAddeds.forEach(q=>q(U,j))});for(let j of I)if(!$.includes(j)&&(onElRemoveds.forEach(U=>U(j)),j._x_cleanups))for(;j._x_cleanups.length;)j._x_cleanups.pop()();$.forEach(j=>{j._x_ignoreSelf=!0,j._x_ignore=!0});for(let j of $)I.includes(j)||j.isConnected&&(delete j._x_ignoreSelf,delete j._x_ignore,onElAddeds.forEach(U=>U(j)),j._x_ignore=!0,j._x_ignoreSelf=!0);$.forEach(j=>{delete j._x_ignoreSelf,delete j._x_ignore}),$=null,I=null,N=null,B=null}function scope(M){return mergeProxies(closestDataStack(M))}function addScopeToNode(M,$,I){return M._x_dataStack=[$,...closestDataStack(I||M)],()=>{M._x_dataStack=M._x_dataStack.filter(N=>N!==$)}}function refreshScope(M,$){let I=M._x_dataStack[0];Object.entries($).forEach(([N,B])=>{I[N]=B})}function closestDataStack(M){return M._x_dataStack?M._x_dataStack:typeof ShadowRoot=="function"&&M instanceof ShadowRoot?closestDataStack(M.host):M.parentNode?closestDataStack(M.parentNode):[]}function mergeProxies(M){let $=new Proxy({},{ownKeys:()=>Array.from(new Set(M.flatMap(I=>Object.keys(I)))),has:(I,N)=>M.some(B=>B.hasOwnProperty(N)),get:(I,N)=>(M.find(B=>{if(B.hasOwnProperty(N)){let j=Object.getOwnPropertyDescriptor(B,N);if(j.get&&j.get._x_alreadyBound||j.set&&j.set._x_alreadyBound)return!0;if((j.get||j.set)&&j.enumerable){let U=j.get,q=j.set,Y=j;U=U&&U.bind($),q=q&&q.bind($),U&&(U._x_alreadyBound=!0),q&&(q._x_alreadyBound=!0),Object.defineProperty(B,N,{...Y,get:U,set:q})}return!0}return!1})||{})[N],set:(I,N,B)=>{let j=M.find(U=>U.hasOwnProperty(N));return j?j[N]=B:M[M.length-1][N]=B,!0}});return $}function initInterceptors(M){let $=N=>typeof N=="object"&&!Array.isArray(N)&&N!==null,I=(N,B="")=>{Object.entries(Object.getOwnPropertyDescriptors(N)).forEach(([j,{value:U,enumerable:q}])=>{if(q===!1||U===void 0)return;let Y=B===""?j:`${B}.${j}`;typeof U=="object"&&U!==null&&U._x_interceptor?N[j]=U.initialize(M,Y,j):$(U)&&U!==N&&!(U instanceof Element)&&I(U,Y)})};return I(M)}function interceptor(M,$=()=>{}){let I={initialValue:void 0,_x_interceptor:!0,initialize(N,B,j){return M(this.initialValue,()=>get$3(N,B),U=>set$2(N,B,U),B,j)}};return $(I),N=>{if(typeof N=="object"&&N!==null&&N._x_interceptor){let B=I.initialize.bind(I);I.initialize=(j,U,q)=>{let Y=N.initialize(j,U,q);return I.initialValue=Y,B(j,U,q)}}else I.initialValue=N;return I}}function get$3(M,$){return $.split(".").reduce((I,N)=>I[N],M)}function set$2(M,$,I){if(typeof $=="string"&&($=$.split(".")),$.length===1)M[$[0]]=I;else{if($.length===0)throw error;return M[$[0]]||(M[$[0]]={}),set$2(M[$[0]],$.slice(1),I)}}var magics={};function magic(M,$){magics[M]=$}function injectMagics(M,$){return Object.entries(magics).forEach(([I,N])=>{Object.defineProperty(M,`$${I}`,{get(){let[B,j]=getElementBoundUtilities($);return B={interceptor,...B},onElRemoved($,j),N($,B)},enumerable:!1})}),M}function tryCatch(M,$,I,...N){try{return I(...N)}catch(B){handleError(B,M,$)}}function handleError(M,$,I=void 0){Object.assign(M,{el:$,expression:I}),console.warn(`Alpine Expression Error: ${M.message}
-
- ${I?'Expression: "'+I+`"
-
- `:""}`,$),setTimeout(()=>{throw M},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(M){let $=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1,M(),shouldAutoEvaluateFunctions=$}function evaluate(M,$,I={}){let N;return evaluateLater(M,$)(B=>N=B,I),N}function evaluateLater(...M){return theEvaluatorFunction(...M)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(M){theEvaluatorFunction=M}function normalEvaluator(M,$){let I={};injectMagics(I,M);let N=[I,...closestDataStack(M)],B=typeof $=="function"?generateEvaluatorFromFunction(N,$):generateEvaluatorFromString(N,$,M);return tryCatch.bind(null,M,$,B)}function generateEvaluatorFromFunction(M,$){return(I=()=>{},{scope:N={},params:B=[]}={})=>{let j=$.apply(mergeProxies([N,...M]),B);runIfTypeOfFunction(I,j)}}var evaluatorMemo={};function generateFunctionFromString(M,$){if(evaluatorMemo[M])return evaluatorMemo[M];let I=Object.getPrototypeOf(async function(){}).constructor,N=/^[\n\s]*if.*\(.*\)/.test(M)||/^(let|const)\s/.test(M)?`(async()=>{ ${M} })()`:M,j=(()=>{try{return new I(["__self","scope"],`with (scope) { __self.result = ${N} }; __self.finished = true; return __self.result;`)}catch(U){return handleError(U,$,M),Promise.resolve()}})();return evaluatorMemo[M]=j,j}function generateEvaluatorFromString(M,$,I){let N=generateFunctionFromString($,I);return(B=()=>{},{scope:j={},params:U=[]}={})=>{N.result=void 0,N.finished=!1;let q=mergeProxies([j,...M]);if(typeof N=="function"){let Y=N(N,q).catch(K=>handleError(K,I,$));N.finished?(runIfTypeOfFunction(B,N.result,q,U,I),N.result=void 0):Y.then(K=>{runIfTypeOfFunction(B,K,q,U,I)}).catch(K=>handleError(K,I,$)).finally(()=>N.result=void 0)}}}function runIfTypeOfFunction(M,$,I,N,B){if(shouldAutoEvaluateFunctions&&typeof $=="function"){let j=$.apply(I,N);j instanceof Promise?j.then(U=>runIfTypeOfFunction(M,U,I,N)).catch(U=>handleError(U,B,$)):M(j)}else typeof $=="object"&&$ instanceof Promise?$.then(j=>M(j)):M($)}var prefixAsString="x-";function prefix(M=""){return prefixAsString+M}function setPrefix(M){prefixAsString=M}var directiveHandlers={};function directive$1(M,$){return directiveHandlers[M]=$,{before(I){if(!directiveHandlers[I]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const N=directiveOrder.indexOf(I);directiveOrder.splice(N>=0?N:directiveOrder.indexOf("DEFAULT"),0,M)}}}function directives$1(M,$,I){if($=Array.from($),M._x_virtualDirectives){let j=Object.entries(M._x_virtualDirectives).map(([q,Y])=>({name:q,value:Y})),U=attributesOnly(j);j=j.map(q=>U.find(Y=>Y.name===q.name)?{name:`x-bind:${q.name}`,value:`"${q.value}"`}:q),$=$.concat(j)}let N={};return $.map(toTransformedAttributes((j,U)=>N[j]=U)).filter(outNonAlpineAttributes).map(toParsedDirectives(N,I)).sort(byPriority).map(j=>getDirectiveHandler(M,j))}function attributesOnly(M){return Array.from(M).map(toTransformedAttributes()).filter($=>!outNonAlpineAttributes($))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(M){isDeferringHandlers=!0;let $=Symbol();currentHandlerStackKey=$,directiveHandlerStacks.set($,[]);let I=()=>{for(;directiveHandlerStacks.get($).length;)directiveHandlerStacks.get($).shift()();directiveHandlerStacks.delete($)},N=()=>{isDeferringHandlers=!1,I()};M(I),N()}function getElementBoundUtilities(M){let $=[],I=q=>$.push(q),[N,B]=elementBoundEffect(M);return $.push(B),[{Alpine:alpine_default,effect:N,cleanup:I,evaluateLater:evaluateLater.bind(evaluateLater,M),evaluate:evaluate.bind(evaluate,M)},()=>$.forEach(q=>q())]}function getDirectiveHandler(M,$){let I=()=>{},N=directiveHandlers[$.type]||I,[B,j]=getElementBoundUtilities(M);onAttributeRemoved(M,$.original,j);let U=()=>{M._x_ignore||M._x_ignoreSelf||(N.inline&&N.inline(M,$,B),N=N.bind(N,M,$,B),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(N):N())};return U.runCleanups=j,U}var startingWith=(M,$)=>({name:I,value:N})=>(I.startsWith(M)&&(I=I.replace(M,$)),{name:I,value:N}),into=M=>M;function toTransformedAttributes(M=()=>{}){return({name:$,value:I})=>{let{name:N,value:B}=attributeTransformers.reduce((j,U)=>U(j),{name:$,value:I});return N!==$&&M(N,$),{name:N,value:B}}}var attributeTransformers=[];function mapAttributes(M){attributeTransformers.push(M)}function outNonAlpineAttributes({name:M}){return alpineAttributeRegex().test(M)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(M,$){return({name:I,value:N})=>{let B=I.match(alpineAttributeRegex()),j=I.match(/:([a-zA-Z0-9\-:]+)/),U=I.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],q=$||M[I]||I;return{type:B?B[1]:null,value:j?j[1]:null,modifiers:U.map(Y=>Y.replace(".","")),expression:N,original:q}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(M,$){let I=directiveOrder.indexOf(M.type)===-1?DEFAULT:M.type,N=directiveOrder.indexOf($.type)===-1?DEFAULT:$.type;return directiveOrder.indexOf(I)-directiveOrder.indexOf(N)}function dispatch(M,$,I={}){M.dispatchEvent(new CustomEvent($,{detail:I,bubbles:!0,composed:!0,cancelable:!0}))}function walk(M,$){if(typeof ShadowRoot=="function"&&M instanceof ShadowRoot){Array.from(M.children).forEach(B=>walk(B,$));return}let I=!1;if($(M,()=>I=!0),I)return;let N=M.firstElementChild;for(;N;)walk(N,$),N=N.nextElementSibling}function warn$3(M,...$){console.warn(`Alpine Warning: ${M}`,...$)}function start(){document.body||warn$3("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded($=>initTree($,walk)),onElRemoved($=>destroyTree($)),onAttributesAdded(($,I)=>{directives$1($,I).forEach(N=>N())});let M=$=>!closestRoot($.parentElement,!0);Array.from(document.querySelectorAll(allSelectors())).filter(M).forEach($=>{initTree($)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(M=>M())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(M=>M())}function addRootSelector(M){rootSelectorCallbacks.push(M)}function addInitSelector(M){initSelectorCallbacks.push(M)}function closestRoot(M,$=!1){return findClosest(M,I=>{if(($?allSelectors():rootSelectors()).some(B=>I.matches(B)))return!0})}function findClosest(M,$){if(M){if($(M))return M;if(M._x_teleportBack&&(M=M._x_teleportBack),!!M.parentElement)return findClosest(M.parentElement,$)}}function isRoot(M){return rootSelectors().some($=>M.matches($))}var initInterceptors2=[];function interceptInit(M){initInterceptors2.push(M)}function initTree(M,$=walk,I=()=>{}){deferHandlingDirectives(()=>{$(M,(N,B)=>{I(N,B),initInterceptors2.forEach(j=>j(N,B)),directives$1(N,N.attributes).forEach(j=>j()),N._x_ignore&&B()})})}function destroyTree(M){walk(M,$=>cleanupAttributes($))}var tickStack=[],isHolding=!1;function nextTick(M=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise($=>{tickStack.push(()=>{M(),$()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(M,$){return Array.isArray($)?setClassesFromString(M,$.join(" ")):typeof $=="object"&&$!==null?setClassesFromObject(M,$):typeof $=="function"?setClasses(M,$()):setClassesFromString(M,$)}function setClassesFromString(M,$){let I=B=>B.split(" ").filter(j=>!M.classList.contains(j)).filter(Boolean),N=B=>(M.classList.add(...B),()=>{M.classList.remove(...B)});return $=$===!0?$="":$||"",N(I($))}function setClassesFromObject(M,$){let I=q=>q.split(" ").filter(Boolean),N=Object.entries($).flatMap(([q,Y])=>Y?I(q):!1).filter(Boolean),B=Object.entries($).flatMap(([q,Y])=>Y?!1:I(q)).filter(Boolean),j=[],U=[];return B.forEach(q=>{M.classList.contains(q)&&(M.classList.remove(q),U.push(q))}),N.forEach(q=>{M.classList.contains(q)||(M.classList.add(q),j.push(q))}),()=>{U.forEach(q=>M.classList.add(q)),j.forEach(q=>M.classList.remove(q))}}function setStyles(M,$){return typeof $=="object"&&$!==null?setStylesFromObject(M,$):setStylesFromString(M,$)}function setStylesFromObject(M,$){let I={};return Object.entries($).forEach(([N,B])=>{I[N]=M.style[N],N.startsWith("--")||(N=kebabCase(N)),M.style.setProperty(N,B)}),setTimeout(()=>{M.style.length===0&&M.removeAttribute("style")}),()=>{setStyles(M,I)}}function setStylesFromString(M,$){let I=M.getAttribute("style",$);return M.setAttribute("style",$),()=>{M.setAttribute("style",I||"")}}function kebabCase(M){return M.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(M,$=()=>{}){let I=!1;return function(){I?$.apply(this,arguments):(I=!0,M.apply(this,arguments))}}directive$1("transition",(M,{value:$,modifiers:I,expression:N},{evaluate:B})=>{typeof N=="function"&&(N=B(N)),N?registerTransitionsFromClassString(M,N,$):registerTransitionsFromHelper(M,I,$)});function registerTransitionsFromClassString(M,$,I){registerTransitionObject(M,setClasses,""),{enter:B=>{M._x_transition.enter.during=B},"enter-start":B=>{M._x_transition.enter.start=B},"enter-end":B=>{M._x_transition.enter.end=B},leave:B=>{M._x_transition.leave.during=B},"leave-start":B=>{M._x_transition.leave.start=B},"leave-end":B=>{M._x_transition.leave.end=B}}[I]($)}function registerTransitionsFromHelper(M,$,I){registerTransitionObject(M,setStyles);let N=!$.includes("in")&&!$.includes("out")&&!I,B=N||$.includes("in")||["enter"].includes(I),j=N||$.includes("out")||["leave"].includes(I);$.includes("in")&&!N&&($=$.filter((ne,le)=>le<$.indexOf("out"))),$.includes("out")&&!N&&($=$.filter((ne,le)=>le>$.indexOf("out")));let U=!$.includes("opacity")&&!$.includes("scale"),q=U||$.includes("opacity"),Y=U||$.includes("scale"),K=q?0:1,G=Y?modifierValue($,"scale",95)/100:1,J=modifierValue($,"delay",0),Z=modifierValue($,"origin","center"),ee="opacity, transform",te=modifierValue($,"duration",150)/1e3,re=modifierValue($,"duration",75)/1e3,se="cubic-bezier(0.4, 0.0, 0.2, 1)";B&&(M._x_transition.enter.during={transformOrigin:Z,transitionDelay:J,transitionProperty:ee,transitionDuration:`${te}s`,transitionTimingFunction:se},M._x_transition.enter.start={opacity:K,transform:`scale(${G})`},M._x_transition.enter.end={opacity:1,transform:"scale(1)"}),j&&(M._x_transition.leave.during={transformOrigin:Z,transitionDelay:J,transitionProperty:ee,transitionDuration:`${re}s`,transitionTimingFunction:se},M._x_transition.leave.start={opacity:1,transform:"scale(1)"},M._x_transition.leave.end={opacity:K,transform:`scale(${G})`})}function registerTransitionObject(M,$,I={}){M._x_transition||(M._x_transition={enter:{during:I,start:I,end:I},leave:{during:I,start:I,end:I},in(N=()=>{},B=()=>{}){transition(M,$,{during:this.enter.during,start:this.enter.start,end:this.enter.end},N,B)},out(N=()=>{},B=()=>{}){transition(M,$,{during:this.leave.during,start:this.leave.start,end:this.leave.end},N,B)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(M,$,I,N){const B=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let j=()=>B(I);if($){M._x_transition&&(M._x_transition.enter||M._x_transition.leave)?M._x_transition.enter&&(Object.entries(M._x_transition.enter.during).length||Object.entries(M._x_transition.enter.start).length||Object.entries(M._x_transition.enter.end).length)?M._x_transition.in(I):j():M._x_transition?M._x_transition.in(I):j();return}M._x_hidePromise=M._x_transition?new Promise((U,q)=>{M._x_transition.out(()=>{},()=>U(N)),M._x_transitioning.beforeCancel(()=>q({isFromCancelledTransition:!0}))}):Promise.resolve(N),queueMicrotask(()=>{let U=closestHide(M);U?(U._x_hideChildren||(U._x_hideChildren=[]),U._x_hideChildren.push(M)):B(()=>{let q=Y=>{let K=Promise.all([Y._x_hidePromise,...(Y._x_hideChildren||[]).map(q)]).then(([G])=>G());return delete Y._x_hidePromise,delete Y._x_hideChildren,K};q(M).catch(Y=>{if(!Y.isFromCancelledTransition)throw Y})})})};function closestHide(M){let $=M.parentNode;if($)return $._x_hidePromise?$:closestHide($)}function transition(M,$,{during:I,start:N,end:B}={},j=()=>{},U=()=>{}){if(M._x_transitioning&&M._x_transitioning.cancel(),Object.keys(I).length===0&&Object.keys(N).length===0&&Object.keys(B).length===0){j(),U();return}let q,Y,K;performTransition(M,{start(){q=$(M,N)},during(){Y=$(M,I)},before:j,end(){q(),K=$(M,B)},after:U,cleanup(){Y(),K()}})}function performTransition(M,$){let I,N,B,j=once(()=>{mutateDom(()=>{I=!0,N||$.before(),B||($.end(),releaseNextTicks()),$.after(),M.isConnected&&$.cleanup(),delete M._x_transitioning})});M._x_transitioning={beforeCancels:[],beforeCancel(U){this.beforeCancels.push(U)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();j()}),finish:j},mutateDom(()=>{$.start(),$.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(I)return;let U=Number(getComputedStyle(M).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,q=Number(getComputedStyle(M).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;U===0&&(U=Number(getComputedStyle(M).animationDuration.replace("s",""))*1e3),mutateDom(()=>{$.before()}),N=!0,requestAnimationFrame(()=>{I||(mutateDom(()=>{$.end()}),releaseNextTicks(),setTimeout(M._x_transitioning.finish,U+q),B=!0)})})}function modifierValue(M,$,I){if(M.indexOf($)===-1)return I;const N=M[M.indexOf($)+1];if(!N||$==="scale"&&isNaN(N))return I;if($==="duration"){let B=N.match(/([0-9]+)ms/);if(B)return B[1]}return $==="origin"&&["top","right","left","center","bottom"].includes(M[M.indexOf($)+2])?[N,M[M.indexOf($)+2]].join(" "):N}var isCloning=!1;function skipDuringClone(M,$=()=>{}){return(...I)=>isCloning?$(...I):M(...I)}function onlyDuringClone(M){return(...$)=>isCloning&&M(...$)}function clone$2(M,$){$._x_dataStack||($._x_dataStack=M._x_dataStack),isCloning=!0,dontRegisterReactiveSideEffects(()=>{cloneTree($)}),isCloning=!1}function cloneTree(M){let $=!1;initTree(M,(N,B)=>{walk(N,(j,U)=>{if($&&isRoot(j))return U();$=!0,B(j,U)})})}function dontRegisterReactiveSideEffects(M){let $=effect;overrideEffect((I,N)=>{let B=$(I);return release(B),()=>{}}),M(),overrideEffect($)}function bind$5(M,$,I,N=[]){switch(M._x_bindings||(M._x_bindings=reactive({})),M._x_bindings[$]=I,$=N.includes("camel")?camelCase($):$,$){case"value":bindInputValue(M,I);break;case"style":bindStyles(M,I);break;case"class":bindClasses(M,I);break;default:bindAttribute(M,$,I);break}}function bindInputValue(M,$){if(M.type==="radio")M.attributes.value===void 0&&(M.value=$),window.fromModel&&(M.checked=checkedAttrLooseCompare(M.value,$));else if(M.type==="checkbox")Number.isInteger($)?M.value=$:!Number.isInteger($)&&!Array.isArray($)&&typeof $!="boolean"&&![null,void 0].includes($)?M.value=String($):Array.isArray($)?M.checked=$.some(I=>checkedAttrLooseCompare(I,M.value)):M.checked=!!$;else if(M.tagName==="SELECT")updateSelect(M,$);else{if(M.value===$)return;M.value=$}}function bindClasses(M,$){M._x_undoAddedClasses&&M._x_undoAddedClasses(),M._x_undoAddedClasses=setClasses(M,$)}function bindStyles(M,$){M._x_undoAddedStyles&&M._x_undoAddedStyles(),M._x_undoAddedStyles=setStyles(M,$)}function bindAttribute(M,$,I){[null,void 0,!1].includes(I)&&attributeShouldntBePreservedIfFalsy($)?M.removeAttribute($):(isBooleanAttr($)&&(I=$),setIfChanged(M,$,I))}function setIfChanged(M,$,I){M.getAttribute($)!=I&&M.setAttribute($,I)}function updateSelect(M,$){const I=[].concat($).map(N=>N+"");Array.from(M.options).forEach(N=>{N.selected=I.includes(N.value)})}function camelCase(M){return M.toLowerCase().replace(/-(\w)/g,($,I)=>I.toUpperCase())}function checkedAttrLooseCompare(M,$){return M==$}function isBooleanAttr(M){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(M)}function attributeShouldntBePreservedIfFalsy(M){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(M)}function getBinding(M,$,I){if(M._x_bindings&&M._x_bindings[$]!==void 0)return M._x_bindings[$];let N=M.getAttribute($);return N===null?typeof I=="function"?I():I:N===""?!0:isBooleanAttr($)?!![$,"true"].includes(N):N}function debounce(M,$){var I;return function(){var N=this,B=arguments,j=function(){I=null,M.apply(N,B)};clearTimeout(I),I=setTimeout(j,$)}}function throttle$1(M,$){let I;return function(){let N=this,B=arguments;I||(M.apply(N,B),I=!0,setTimeout(()=>I=!1,$))}}function plugin$3(M){M(alpine_default)}var stores={},isReactive=!1;function store(M,$){if(isReactive||(stores=reactive(stores),isReactive=!0),$===void 0)return stores[M];stores[M]=$,typeof $=="object"&&$!==null&&$.hasOwnProperty("init")&&typeof $.init=="function"&&stores[M].init(),initInterceptors(stores[M])}function getStores(){return stores}var binds={};function bind2(M,$){let I=typeof $!="function"?()=>$:$;M instanceof Element?applyBindingsObject(M,I()):binds[M]=I}function injectBindingProviders(M){return Object.entries(binds).forEach(([$,I])=>{Object.defineProperty(M,$,{get(){return(...N)=>I(...N)}})}),M}function applyBindingsObject(M,$,I){let N=[];for(;N.length;)N.pop()();let B=Object.entries($).map(([U,q])=>({name:U,value:q})),j=attributesOnly(B);B=B.map(U=>j.find(q=>q.name===U.name)?{name:`x-bind:${U.name}`,value:`"${U.value}"`}:U),directives$1(M,B,I).map(U=>{N.push(U.runCleanups),U()})}var datas={};function data(M,$){datas[M]=$}function injectDataProviders(M,$){return Object.entries(datas).forEach(([I,N])=>{Object.defineProperty(M,I,{get(){return(...B)=>N.bind($)(...B)},enumerable:!1})}),M}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect},get raw(){return raw},version:"3.12.0",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,findClosest,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive:directive$1,throttle:throttle$1,debounce,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin:plugin$3,magic,store,start,clone:clone$2,bound:getBinding,$data:scope,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(M,$){const I=Object.create(null),N=M.split(",");for(let B=0;B<N.length;B++)I[N[B]]=!0;return $?B=>!!I[B.toLowerCase()]:B=>!!I[B]}var EMPTY_OBJ=Object.freeze({}),extend$4=Object.assign,hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn$3=(M,$)=>hasOwnProperty$1.call(M,$),isArray$7=Array.isArray,isMap$1=M=>toTypeString(M)==="[object Map]",isString$4=M=>typeof M=="string",isSymbol$1=M=>typeof M=="symbol",isObject$4=M=>M!==null&&typeof M=="object",objectToString$1=Object.prototype.toString,toTypeString=M=>objectToString$1.call(M),toRawType=M=>toTypeString(M).slice(8,-1),isIntegerKey=M=>isString$4(M)&&M!=="NaN"&&M[0]!=="-"&&""+parseInt(M,10)===M,cacheStringFunction=M=>{const $=Object.create(null);return I=>$[I]||($[I]=M(I))},capitalize=cacheStringFunction(M=>M.charAt(0).toUpperCase()+M.slice(1)),hasChanged=(M,$)=>M!==$&&(M===M||$===$),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(M){return M&&M._isEffect===!0}function effect2(M,$=EMPTY_OBJ){isEffect(M)&&(M=M.raw);const I=createReactiveEffect(M,$);return $.lazy||I(),I}function stop(M){M.active&&(cleanup(M),M.options.onStop&&M.options.onStop(),M.active=!1)}var uid=0;function createReactiveEffect(M,$){const I=function(){if(!I.active)return M();if(!effectStack.includes(I)){cleanup(I);try{return enableTracking(),effectStack.push(I),activeEffect=I,M()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return I.id=uid++,I.allowRecurse=!!$.allowRecurse,I._isEffect=!0,I.active=!0,I.raw=M,I.deps=[],I.options=$,I}function cleanup(M){const{deps:$}=M;if($.length){for(let I=0;I<$.length;I++)$[I].delete(M);$.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const M=trackStack.pop();shouldTrack=M===void 0?!0:M}function track(M,$,I){if(!shouldTrack||activeEffect===void 0)return;let N=targetMap.get(M);N||targetMap.set(M,N=new Map);let B=N.get(I);B||N.set(I,B=new Set),B.has(activeEffect)||(B.add(activeEffect),activeEffect.deps.push(B),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:M,type:$,key:I}))}function trigger(M,$,I,N,B,j){const U=targetMap.get(M);if(!U)return;const q=new Set,Y=G=>{G&&G.forEach(J=>{(J!==activeEffect||J.allowRecurse)&&q.add(J)})};if($==="clear")U.forEach(Y);else if(I==="length"&&isArray$7(M))U.forEach((G,J)=>{(J==="length"||J>=N)&&Y(G)});else switch(I!==void 0&&Y(U.get(I)),$){case"add":isArray$7(M)?isIntegerKey(I)&&Y(U.get("length")):(Y(U.get(ITERATE_KEY)),isMap$1(M)&&Y(U.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$7(M)||(Y(U.get(ITERATE_KEY)),isMap$1(M)&&Y(U.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(M)&&Y(U.get(ITERATE_KEY));break}const K=G=>{G.options.onTrigger&&G.options.onTrigger({effect:G,target:M,key:I,type:$,newValue:N,oldValue:B,oldTarget:j}),G.options.scheduler?G.options.scheduler(G):G()};q.forEach(K)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(M=>Symbol[M]).filter(isSymbol$1)),get2=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations={};["includes","indexOf","lastIndexOf"].forEach(M=>{const $=Array.prototype[M];arrayInstrumentations[M]=function(...I){const N=toRaw(this);for(let j=0,U=this.length;j<U;j++)track(N,"get",j+"");const B=$.apply(N,I);return B===-1||B===!1?$.apply(N,I.map(toRaw)):B}});["push","pop","shift","unshift","splice"].forEach(M=>{const $=Array.prototype[M];arrayInstrumentations[M]=function(...I){pauseTracking();const N=$.apply(this,I);return resetTracking(),N}});function createGetter(M=!1,$=!1){return function(N,B,j){if(B==="__v_isReactive")return!M;if(B==="__v_isReadonly")return M;if(B==="__v_raw"&&j===(M?$?shallowReadonlyMap:readonlyMap:$?shallowReactiveMap:reactiveMap).get(N))return N;const U=isArray$7(N);if(!M&&U&&hasOwn$3(arrayInstrumentations,B))return Reflect.get(arrayInstrumentations,B,j);const q=Reflect.get(N,B,j);return(isSymbol$1(B)?builtInSymbols.has(B):isNonTrackableKeys(B))||(M||track(N,"get",B),$)?q:isRef(q)?!U||!isIntegerKey(B)?q.value:q:isObject$4(q)?M?readonly(q):reactive2(q):q}}var set2=createSetter(),shallowSet=createSetter(!0);function createSetter(M=!1){return function(I,N,B,j){let U=I[N];if(!M&&(B=toRaw(B),U=toRaw(U),!isArray$7(I)&&isRef(U)&&!isRef(B)))return U.value=B,!0;const q=isArray$7(I)&&isIntegerKey(N)?Number(N)<I.length:hasOwn$3(I,N),Y=Reflect.set(I,N,B,j);return I===toRaw(j)&&(q?hasChanged(B,U)&&trigger(I,"set",N,B,U):trigger(I,"add",N,B)),Y}}function deleteProperty(M,$){const I=hasOwn$3(M,$),N=M[$],B=Reflect.deleteProperty(M,$);return B&&I&&trigger(M,"delete",$,void 0,N),B}function has$4(M,$){const I=Reflect.has(M,$);return(!isSymbol$1($)||!builtInSymbols.has($))&&track(M,"has",$),I}function ownKeys(M){return track(M,"iterate",isArray$7(M)?"length":ITERATE_KEY),Reflect.ownKeys(M)}var mutableHandlers={get:get2,set:set2,deleteProperty,has:has$4,ownKeys},readonlyHandlers={get:readonlyGet,set(M,$){return console.warn(`Set operation on key "${String($)}" failed: target is readonly.`,M),!0},deleteProperty(M,$){return console.warn(`Delete operation on key "${String($)}" failed: target is readonly.`,M),!0}};extend$4({},mutableHandlers,{get:shallowGet,set:shallowSet});extend$4({},readonlyHandlers,{get:shallowReadonlyGet});var toReactive=M=>isObject$4(M)?reactive2(M):M,toReadonly=M=>isObject$4(M)?readonly(M):M,toShallow=M=>M,getProto$1=M=>Reflect.getPrototypeOf(M);function get$1$1(M,$,I=!1,N=!1){M=M.__v_raw;const B=toRaw(M),j=toRaw($);$!==j&&!I&&track(B,"get",$),!I&&track(B,"get",j);const{has:U}=getProto$1(B),q=N?toShallow:I?toReadonly:toReactive;if(U.call(B,$))return q(M.get($));if(U.call(B,j))return q(M.get(j));M!==B&&M.get($)}function has$1$1(M,$=!1){const I=this.__v_raw,N=toRaw(I),B=toRaw(M);return M!==B&&!$&&track(N,"has",M),!$&&track(N,"has",B),M===B?I.has(M):I.has(M)||I.has(B)}function size$1(M,$=!1){return M=M.__v_raw,!$&&track(toRaw(M),"iterate",ITERATE_KEY),Reflect.get(M,"size",M)}function add$2(M){M=toRaw(M);const $=toRaw(this);return getProto$1($).has.call($,M)||($.add(M),trigger($,"add",M,M)),this}function set$1$1(M,$){$=toRaw($);const I=toRaw(this),{has:N,get:B}=getProto$1(I);let j=N.call(I,M);j?checkIdentityKeys(I,N,M):(M=toRaw(M),j=N.call(I,M));const U=B.call(I,M);return I.set(M,$),j?hasChanged($,U)&&trigger(I,"set",M,$,U):trigger(I,"add",M,$),this}function deleteEntry(M){const $=toRaw(this),{has:I,get:N}=getProto$1($);let B=I.call($,M);B?checkIdentityKeys($,I,M):(M=toRaw(M),B=I.call($,M));const j=N?N.call($,M):void 0,U=$.delete(M);return B&&trigger($,"delete",M,void 0,j),U}function clear(){const M=toRaw(this),$=M.size!==0,I=isMap$1(M)?new Map(M):new Set(M),N=M.clear();return $&&trigger(M,"clear",void 0,void 0,I),N}function createForEach(M,$){return function(N,B){const j=this,U=j.__v_raw,q=toRaw(U),Y=$?toShallow:M?toReadonly:toReactive;return!M&&track(q,"iterate",ITERATE_KEY),U.forEach((K,G)=>N.call(B,Y(K),Y(G),j))}}function createIterableMethod(M,$,I){return function(...N){const B=this.__v_raw,j=toRaw(B),U=isMap$1(j),q=M==="entries"||M===Symbol.iterator&&U,Y=M==="keys"&&U,K=B[M](...N),G=I?toShallow:$?toReadonly:toReactive;return!$&&track(j,"iterate",Y?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:J,done:Z}=K.next();return Z?{value:J,done:Z}:{value:q?[G(J[0]),G(J[1])]:G(J),done:Z}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(M){return function(...$){{const I=$[0]?`on key "${$[0]}" `:"";console.warn(`${capitalize(M)} operation ${I}failed: target is readonly.`,toRaw(this))}return M==="delete"?!1:this}}var mutableInstrumentations={get(M){return get$1$1(this,M)},get size(){return size$1(this)},has:has$1$1,add:add$2,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},shallowInstrumentations={get(M){return get$1$1(this,M,!1,!0)},get size(){return size$1(this)},has:has$1$1,add:add$2,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},readonlyInstrumentations={get(M){return get$1$1(this,M,!0)},get size(){return size$1(this,!0)},has(M){return has$1$1.call(this,M,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},shallowReadonlyInstrumentations={get(M){return get$1$1(this,M,!0,!0)},get size(){return size$1(this,!0)},has(M){return has$1$1.call(this,M,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)},iteratorMethods=["keys","values","entries",Symbol.iterator];iteratorMethods.forEach(M=>{mutableInstrumentations[M]=createIterableMethod(M,!1,!1),readonlyInstrumentations[M]=createIterableMethod(M,!0,!1),shallowInstrumentations[M]=createIterableMethod(M,!1,!0),shallowReadonlyInstrumentations[M]=createIterableMethod(M,!0,!0)});function createInstrumentationGetter(M,$){const I=$?M?shallowReadonlyInstrumentations:shallowInstrumentations:M?readonlyInstrumentations:mutableInstrumentations;return(N,B,j)=>B==="__v_isReactive"?!M:B==="__v_isReadonly"?M:B==="__v_raw"?N:Reflect.get(hasOwn$3(I,B)&&B in N?I:N,B,j)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(M,$,I){const N=toRaw(I);if(N!==I&&$.call(M,N)){const B=toRawType(M);console.warn(`Reactive ${B} contains both the raw and reactive versions of the same object${B==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(M){switch(M){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(M){return M.__v_skip||!Object.isExtensible(M)?0:targetTypeMap(toRawType(M))}function reactive2(M){return M&&M.__v_isReadonly?M:createReactiveObject(M,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(M){return createReactiveObject(M,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(M,$,I,N,B){if(!isObject$4(M))return console.warn(`value cannot be made reactive: ${String(M)}`),M;if(M.__v_raw&&!($&&M.__v_isReactive))return M;const j=B.get(M);if(j)return j;const U=getTargetType(M);if(U===0)return M;const q=new Proxy(M,U===2?N:I);return B.set(M,q),q}function toRaw(M){return M&&toRaw(M.__v_raw)||M}function isRef(M){return!!(M&&M.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",M=>dispatch.bind(dispatch,M));magic("watch",(M,{evaluateLater:$,effect:I})=>(N,B)=>{let j=$(N),U=!0,q,Y=I(()=>j(K=>{JSON.stringify(K),U?q=K:queueMicrotask(()=>{B(K,q),q=K}),U=!1}));M._x_effects.delete(Y)});magic("store",getStores);magic("data",M=>scope(M));magic("root",M=>closestRoot(M));magic("refs",M=>(M._x_refs_proxy||(M._x_refs_proxy=mergeProxies(getArrayOfRefObject(M))),M._x_refs_proxy));function getArrayOfRefObject(M){let $=[],I=M;for(;I;)I._x_refs&&$.push(I._x_refs),I=I.parentNode;return $}var globalIdMemo={};function findAndIncrementId(M){return globalIdMemo[M]||(globalIdMemo[M]=0),++globalIdMemo[M]}function closestIdRoot(M,$){return findClosest(M,I=>{if(I._x_ids&&I._x_ids[$])return!0})}function setIdRoot(M,$){M._x_ids||(M._x_ids={}),M._x_ids[$]||(M._x_ids[$]=findAndIncrementId($))}magic("id",M=>($,I=null)=>{let N=closestIdRoot(M,$),B=N?N._x_ids[$]:findAndIncrementId($);return I?`${$}-${B}-${I}`:`${$}-${B}`});magic("el",M=>M);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(M,$,I){magic($,N=>warn$3(`You can't use [$${directiveName}] without first installing the "${M}" plugin here: https://alpinejs.dev/plugins/${I}`,N))}function entangle({get:M,set:$},{get:I,set:N}){let B=!0,j,U,q=effect(()=>{let Y,K;B?(Y=M(),N(Y),K=I(),B=!1):(Y=M(),K=I(),U=JSON.stringify(Y),JSON.stringify(K),U!==j?(K=I(),N(Y),K=Y):($(K),Y=K)),j=JSON.stringify(Y),JSON.stringify(K)});return()=>{release(q)}}directive$1("modelable",(M,{expression:$},{effect:I,evaluateLater:N,cleanup:B})=>{let j=N($),U=()=>{let G;return j(J=>G=J),G},q=N(`${$} = __placeholder`),Y=G=>q(()=>{},{scope:{__placeholder:G}}),K=U();Y(K),queueMicrotask(()=>{if(!M._x_model)return;M._x_removeModelListeners.default();let G=M._x_model.get,J=M._x_model.set,Z=entangle({get(){return G()},set(ee){J(ee)}},{get(){return U()},set(ee){Y(ee)}});B(Z)})});var teleportContainerDuringClone=document.createElement("div");directive$1("teleport",(M,{modifiers:$,expression:I},{cleanup:N})=>{M.tagName.toLowerCase()!=="template"&&warn$3("x-teleport can only be used on a <template> tag",M);let B=skipDuringClone(()=>document.querySelector(I),()=>teleportContainerDuringClone)();B||warn$3(`Cannot find x-teleport element for selector: "${I}"`);let j=M.content.cloneNode(!0).firstElementChild;M._x_teleport=j,j._x_teleportBack=M,M._x_forwardEvents&&M._x_forwardEvents.forEach(U=>{j.addEventListener(U,q=>{q.stopPropagation(),M.dispatchEvent(new q.constructor(q.type,q))})}),addScopeToNode(j,{},M),mutateDom(()=>{$.includes("prepend")?B.parentNode.insertBefore(j,B):$.includes("append")?B.parentNode.insertBefore(j,B.nextSibling):B.appendChild(j),initTree(j),j._x_ignore=!0}),N(()=>j.remove())});var handler=()=>{};handler.inline=(M,{modifiers:$},{cleanup:I})=>{$.includes("self")?M._x_ignoreSelf=!0:M._x_ignore=!0,I(()=>{$.includes("self")?delete M._x_ignoreSelf:delete M._x_ignore})};directive$1("ignore",handler);directive$1("effect",(M,{expression:$},{effect:I})=>I(evaluateLater(M,$)));function on(M,$,I,N){let B=M,j=Y=>N(Y),U={},q=(Y,K)=>G=>K(Y,G);if(I.includes("dot")&&($=dotSyntax($)),I.includes("camel")&&($=camelCase2($)),I.includes("passive")&&(U.passive=!0),I.includes("capture")&&(U.capture=!0),I.includes("window")&&(B=window),I.includes("document")&&(B=document),I.includes("prevent")&&(j=q(j,(Y,K)=>{K.preventDefault(),Y(K)})),I.includes("stop")&&(j=q(j,(Y,K)=>{K.stopPropagation(),Y(K)})),I.includes("self")&&(j=q(j,(Y,K)=>{K.target===M&&Y(K)})),(I.includes("away")||I.includes("outside"))&&(B=document,j=q(j,(Y,K)=>{M.contains(K.target)||K.target.isConnected!==!1&&(M.offsetWidth<1&&M.offsetHeight<1||M._x_isShown!==!1&&Y(K))})),I.includes("once")&&(j=q(j,(Y,K)=>{Y(K),B.removeEventListener($,j,U)})),j=q(j,(Y,K)=>{isKeyEvent($)&&isListeningForASpecificKeyThatHasntBeenPressed(K,I)||Y(K)}),I.includes("debounce")){let Y=I[I.indexOf("debounce")+1]||"invalid-wait",K=isNumeric(Y.split("ms")[0])?Number(Y.split("ms")[0]):250;j=debounce(j,K)}if(I.includes("throttle")){let Y=I[I.indexOf("throttle")+1]||"invalid-wait",K=isNumeric(Y.split("ms")[0])?Number(Y.split("ms")[0]):250;j=throttle$1(j,K)}return B.addEventListener($,j,U),()=>{B.removeEventListener($,j,U)}}function dotSyntax(M){return M.replace(/-/g,".")}function camelCase2(M){return M.toLowerCase().replace(/-(\w)/g,($,I)=>I.toUpperCase())}function isNumeric(M){return!Array.isArray(M)&&!isNaN(M)}function kebabCase2(M){return[" ","_"].includes(M)?M:M.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(M){return["keydown","keyup"].includes(M)}function isListeningForASpecificKeyThatHasntBeenPressed(M,$){let I=$.filter(j=>!["window","document","prevent","stop","once","capture"].includes(j));if(I.includes("debounce")){let j=I.indexOf("debounce");I.splice(j,isNumeric((I[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(I.includes("throttle")){let j=I.indexOf("throttle");I.splice(j,isNumeric((I[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(I.length===0||I.length===1&&keyToModifiers(M.key).includes(I[0]))return!1;const B=["ctrl","shift","alt","meta","cmd","super"].filter(j=>I.includes(j));return I=I.filter(j=>!B.includes(j)),!(B.length>0&&B.filter(U=>((U==="cmd"||U==="super")&&(U="meta"),M[`${U}Key`])).length===B.length&&keyToModifiers(M.key).includes(I[0]))}function keyToModifiers(M){if(!M)return[];M=kebabCase2(M);let $={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return $[M]=M,Object.keys($).map(I=>{if($[I]===M)return I}).filter(I=>I)}directive$1("model",(M,{modifiers:$,expression:I},{effect:N,cleanup:B})=>{let j=M;$.includes("parent")&&(j=M.parentNode);let U=evaluateLater(j,I),q;typeof I=="string"?q=evaluateLater(j,`${I} = __placeholder`):typeof I=="function"&&typeof I()=="string"?q=evaluateLater(j,`${I()} = __placeholder`):q=()=>{};let Y=()=>{let Z;return U(ee=>Z=ee),isGetterSetter(Z)?Z.get():Z},K=Z=>{let ee;U(te=>ee=te),isGetterSetter(ee)?ee.set(Z):q(()=>{},{scope:{__placeholder:Z}})};$.includes("fill")&&M.hasAttribute("value")&&(Y()===null||Y()==="")&&K(M.value),typeof I=="string"&&M.type==="radio"&&mutateDom(()=>{M.hasAttribute("name")||M.setAttribute("name",I)});var G=M.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(M.type)||$.includes("lazy")?"change":"input";let J=isCloning?()=>{}:on(M,G,$,Z=>{K(getInputValue(M,$,Z,Y()))});if(M._x_removeModelListeners||(M._x_removeModelListeners={}),M._x_removeModelListeners.default=J,B(()=>M._x_removeModelListeners.default()),M.form){let Z=on(M.form,"reset",[],ee=>{nextTick(()=>M._x_model&&M._x_model.set(M.value))});B(()=>Z())}M._x_model={get(){return Y()},set(Z){K(Z)}},M._x_forceModelUpdate=Z=>{Z=Z===void 0?Y():Z,Z===void 0&&typeof I=="string"&&I.match(/\./)&&(Z=""),window.fromModel=!0,mutateDom(()=>bind$5(M,"value",Z)),delete window.fromModel},N(()=>{let Z=Y();$.includes("unintrusive")&&document.activeElement.isSameNode(M)||M._x_forceModelUpdate(Z)})});function getInputValue(M,$,I,N){return mutateDom(()=>{if(I instanceof CustomEvent&&I.detail!==void 0)return typeof I.detail<"u"?I.detail:I.target.value;if(M.type==="checkbox")if(Array.isArray(N)){let B=$.includes("number")?safeParseNumber(I.target.value):I.target.value;return I.target.checked?N.concat([B]):N.filter(j=>!checkedAttrLooseCompare2(j,B))}else return I.target.checked;else{if(M.tagName.toLowerCase()==="select"&&M.multiple)return $.includes("number")?Array.from(I.target.selectedOptions).map(B=>{let j=B.value||B.text;return safeParseNumber(j)}):Array.from(I.target.selectedOptions).map(B=>B.value||B.text);{let B=I.target.value;return $.includes("number")?safeParseNumber(B):$.includes("trim")?B.trim():B}}})}function safeParseNumber(M){let $=M?parseFloat(M):null;return isNumeric2($)?$:M}function checkedAttrLooseCompare2(M,$){return M==$}function isNumeric2(M){return!Array.isArray(M)&&!isNaN(M)}function isGetterSetter(M){return M!==null&&typeof M=="object"&&typeof M.get=="function"&&typeof M.set=="function"}directive$1("cloak",M=>queueMicrotask(()=>mutateDom(()=>M.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive$1("init",skipDuringClone((M,{expression:$},{evaluate:I})=>typeof $=="string"?!!$.trim()&&I($,{},!1):I($,{},!1)));directive$1("text",(M,{expression:$},{effect:I,evaluateLater:N})=>{let B=N($);I(()=>{B(j=>{mutateDom(()=>{M.textContent=j})})})});directive$1("html",(M,{expression:$},{effect:I,evaluateLater:N})=>{let B=N($);I(()=>{B(j=>{mutateDom(()=>{M.innerHTML=j,M._x_ignoreSelf=!0,initTree(M),delete M._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));directive$1("bind",(M,{value:$,modifiers:I,expression:N,original:B},{effect:j})=>{if(!$){let q={};injectBindingProviders(q),evaluateLater(M,N)(K=>{applyBindingsObject(M,K,B)},{scope:q});return}if($==="key")return storeKeyForXFor(M,N);let U=evaluateLater(M,N);j(()=>U(q=>{q===void 0&&typeof N=="string"&&N.match(/\./)&&(q=""),mutateDom(()=>bind$5(M,$,q,I))}))});function storeKeyForXFor(M,$){M._x_keyExpression=$}addRootSelector(()=>`[${prefix("data")}]`);directive$1("data",skipDuringClone((M,{expression:$},{cleanup:I})=>{$=$===""?"{}":$;let N={};injectMagics(N,M);let B={};injectDataProviders(B,N);let j=evaluate(M,$,{scope:B});(j===void 0||j===!0)&&(j={}),injectMagics(j,M);let U=reactive(j);initInterceptors(U);let q=addScopeToNode(M,U);U.init&&evaluate(M,U.init),I(()=>{U.destroy&&evaluate(M,U.destroy),q()})}));directive$1("show",(M,{modifiers:$,expression:I},{effect:N})=>{let B=evaluateLater(M,I);M._x_doHide||(M._x_doHide=()=>{mutateDom(()=>{M.style.setProperty("display","none",$.includes("important")?"important":void 0)})}),M._x_doShow||(M._x_doShow=()=>{mutateDom(()=>{M.style.length===1&&M.style.display==="none"?M.removeAttribute("style"):M.style.removeProperty("display")})});let j=()=>{M._x_doHide(),M._x_isShown=!1},U=()=>{M._x_doShow(),M._x_isShown=!0},q=()=>setTimeout(U),Y=once(J=>J?U():j(),J=>{typeof M._x_toggleAndCascadeWithTransitions=="function"?M._x_toggleAndCascadeWithTransitions(M,J,U,j):J?q():j()}),K,G=!0;N(()=>B(J=>{!G&&J===K||($.includes("immediate")&&(J?q():j()),Y(J),K=J,G=!1)}))});directive$1("for",(M,{expression:$},{effect:I,cleanup:N})=>{let B=parseForExpression($),j=evaluateLater(M,B.items),U=evaluateLater(M,M._x_keyExpression||"index");M._x_prevKeys=[],M._x_lookup={},I(()=>loop(M,B,j,U)),N(()=>{Object.values(M._x_lookup).forEach(q=>q.remove()),delete M._x_prevKeys,delete M._x_lookup})});function loop(M,$,I,N){let B=U=>typeof U=="object"&&!Array.isArray(U),j=M;I(U=>{isNumeric3(U)&&U>=0&&(U=Array.from(Array(U).keys(),se=>se+1)),U===void 0&&(U=[]);let q=M._x_lookup,Y=M._x_prevKeys,K=[],G=[];if(B(U))U=Object.entries(U).map(([se,ne])=>{let le=getIterationScopeVariables($,ne,se,U);N(ge=>G.push(ge),{scope:{index:se,...le}}),K.push(le)});else for(let se=0;se<U.length;se++){let ne=getIterationScopeVariables($,U[se],se,U);N(le=>G.push(le),{scope:{index:se,...ne}}),K.push(ne)}let J=[],Z=[],ee=[],te=[];for(let se=0;se<Y.length;se++){let ne=Y[se];G.indexOf(ne)===-1&&ee.push(ne)}Y=Y.filter(se=>!ee.includes(se));let re="template";for(let se=0;se<G.length;se++){let ne=G[se],le=Y.indexOf(ne);if(le===-1)Y.splice(se,0,ne),J.push([re,se]);else if(le!==se){let ge=Y.splice(se,1)[0],ue=Y.splice(le-1,1)[0];Y.splice(se,0,ue),Y.splice(le,0,ge),Z.push([ge,ue])}else te.push(ne);re=ne}for(let se=0;se<ee.length;se++){let ne=ee[se];q[ne]._x_effects&&q[ne]._x_effects.forEach(dequeueJob),q[ne].remove(),q[ne]=null,delete q[ne]}for(let se=0;se<Z.length;se++){let[ne,le]=Z[se],ge=q[ne],ue=q[le],_e=document.createElement("div");mutateDom(()=>{ue.after(_e),ge.after(ue),ue._x_currentIfEl&&ue.after(ue._x_currentIfEl),_e.before(ge),ge._x_currentIfEl&&ge.after(ge._x_currentIfEl),_e.remove()}),refreshScope(ue,K[G.indexOf(le)])}for(let se=0;se<J.length;se++){let[ne,le]=J[se],ge=ne==="template"?j:q[ne];ge._x_currentIfEl&&(ge=ge._x_currentIfEl);let ue=K[le],_e=G[le],fe=document.importNode(j.content,!0).firstElementChild;addScopeToNode(fe,reactive(ue),j),mutateDom(()=>{ge.after(fe),initTree(fe)}),typeof _e=="object"&&warn$3("x-for key cannot be an object, it must be a string or an integer",j),q[_e]=fe}for(let se=0;se<te.length;se++)refreshScope(q[te[se]],K[G.indexOf(te[se])]);j._x_prevKeys=G})}function parseForExpression(M){let $=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,I=/^\s*\(|\)\s*$/g,N=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,B=M.match(N);if(!B)return;let j={};j.items=B[2].trim();let U=B[1].replace(I,"").trim(),q=U.match($);return q?(j.item=U.replace($,"").trim(),j.index=q[1].trim(),q[2]&&(j.collection=q[2].trim())):j.item=U,j}function getIterationScopeVariables(M,$,I,N){let B={};return/^\[.*\]$/.test(M.item)&&Array.isArray($)?M.item.replace("[","").replace("]","").split(",").map(U=>U.trim()).forEach((U,q)=>{B[U]=$[q]}):/^\{.*\}$/.test(M.item)&&!Array.isArray($)&&typeof $=="object"?M.item.replace("{","").replace("}","").split(",").map(U=>U.trim()).forEach(U=>{B[U]=$[U]}):B[M.item]=$,M.index&&(B[M.index]=I),M.collection&&(B[M.collection]=N),B}function isNumeric3(M){return!Array.isArray(M)&&!isNaN(M)}function handler2(){}handler2.inline=(M,{expression:$},{cleanup:I})=>{let N=closestRoot(M);N._x_refs||(N._x_refs={}),N._x_refs[$]=M,I(()=>delete N._x_refs[$])};directive$1("ref",handler2);directive$1("if",(M,{expression:$},{effect:I,cleanup:N})=>{let B=evaluateLater(M,$),j=()=>{if(M._x_currentIfEl)return M._x_currentIfEl;let q=M.content.cloneNode(!0).firstElementChild;return addScopeToNode(q,{},M),mutateDom(()=>{M.after(q),initTree(q)}),M._x_currentIfEl=q,M._x_undoIf=()=>{walk(q,Y=>{Y._x_effects&&Y._x_effects.forEach(dequeueJob)}),q.remove(),delete M._x_currentIfEl},q},U=()=>{M._x_undoIf&&(M._x_undoIf(),delete M._x_undoIf)};I(()=>B(q=>{q?j():U()})),N(()=>M._x_undoIf&&M._x_undoIf())});directive$1("id",(M,{expression:$},{evaluate:I})=>{I($).forEach(B=>setIdRoot(M,B))});mapAttributes(startingWith("@",into(prefix("on:"))));directive$1("on",skipDuringClone((M,{value:$,modifiers:I,expression:N},{cleanup:B})=>{let j=N?evaluateLater(M,N):()=>{};M.tagName.toLowerCase()==="template"&&(M._x_forwardEvents||(M._x_forwardEvents=[]),M._x_forwardEvents.includes($)||M._x_forwardEvents.push($));let U=on(M,$,I,q=>{j(()=>{},{scope:{$event:q},params:[q]})});B(()=>U())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(M,$,I){directive$1($,N=>warn$3(`You can't use [x-${$}] without first installing the "${M}" plugin here: https://alpinejs.dev/plugins/${I}`,N))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,cookies$1={exports:{}};(function(M,$){(function(I,N){var B=function(U){if(typeof U.document!="object")throw new Error("Cookies.js requires a `window` with a `document` object");var q=function(Y,K,G){return arguments.length===1?q.get(Y):q.set(Y,K,G)};return q._document=U.document,q._cacheKeyPrefix="cookey.",q._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),q.defaults={path:"/",secure:!1},q.get=function(Y){q._cachedDocumentCookie!==q._document.cookie&&q._renewCache();var K=q._cache[q._cacheKeyPrefix+Y];return K===N?N:decodeURIComponent(K)},q.set=function(Y,K,G){return G=q._getExtendedOptions(G),G.expires=q._getExpiresDate(K===N?-1:G.expires),q._document.cookie=q._generateCookieString(Y,K,G),q},q.expire=function(Y,K){return q.set(Y,N,K)},q._getExtendedOptions=function(Y){return{path:Y&&Y.path||q.defaults.path,domain:Y&&Y.domain||q.defaults.domain,expires:Y&&Y.expires||q.defaults.expires,secure:Y&&Y.secure!==N?Y.secure:q.defaults.secure}},q._isValidDate=function(Y){return Object.prototype.toString.call(Y)==="[object Date]"&&!isNaN(Y.getTime())},q._getExpiresDate=function(Y,K){if(K=K||new Date,typeof Y=="number"?Y=Y===1/0?q._maxExpireDate:new Date(K.getTime()+Y*1e3):typeof Y=="string"&&(Y=new Date(Y)),Y&&!q._isValidDate(Y))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return Y},q._generateCookieString=function(Y,K,G){Y=Y.replace(/[^#$&+\^`|]/g,encodeURIComponent),Y=Y.replace(/\(/g,"%28").replace(/\)/g,"%29"),K=(K+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),G=G||{};var J=Y+"="+K;return J+=G.path?";path="+G.path:"",J+=G.domain?";domain="+G.domain:"",J+=G.expires?";expires="+G.expires.toUTCString():"",J+=G.secure?";secure":"",J},q._getCacheFromString=function(Y){for(var K={},G=Y?Y.split("; "):[],J=0;J<G.length;J++){var Z=q._getKeyValuePairFromCookieString(G[J]);K[q._cacheKeyPrefix+Z.key]===N&&(K[q._cacheKeyPrefix+Z.key]=Z.value)}return K},q._getKeyValuePairFromCookieString=function(Y){var K=Y.indexOf("=");K=K<0?Y.length:K;var G=Y.substr(0,K),J;try{J=decodeURIComponent(G)}catch(Z){console&&typeof console.error=="function"&&console.error('Could not decode cookie with key "'+G+'"',Z)}return{key:J,value:Y.substr(K+1)}},q._renewCache=function(){q._cache=q._getCacheFromString(q._document.cookie),q._cachedDocumentCookie=q._document.cookie},q._areEnabled=function(){var Y="cookies.js",K=q.set(Y,1).get(Y)==="1";return q.expire(Y),K},q.enabled=q._areEnabled(),q},j=I&&typeof I.document=="object"?B(I):B;typeof N=="function"&&N.amd?N(function(){return j}):($=M.exports=j,$.Cookies=j)})(typeof window>"u"?commonjsGlobal:window)})(cookies$1,cookies$1.exports);var cookiesExports=cookies$1.exports;const Cookies$1=getDefaultExportFromCjs(cookiesExports);String.prototype.includes||(String.prototype.includes=function(M,$){return typeof $!="number"&&($=0),$+M.length>this.length?!1:this.indexOf(M,$)!==-1});_.mixin({objMap:function(M,$,I){return _.reduce(M,function(N,B,j){return N[j]=$.call(I,B,j,M),N},{},I)},objFilter:function(M,$,I){return _.reduce(M,function(N,B,j){return $.call(I,B,j,M)&&(N[j]=B),N},{},I)},objReject:function(M,$,I){return _.reduce(M,function(N,B,j){return $.call(I,B,j,M)||(N[j]=B),N},{},I)}});const CpUrl={install(M,$){M.prototype.cp_url=function(I){return cp_url(I)}}},DocsUrl={install(M,$){M.prototype.docs_url=function(I){return docs_url(I)}}},ResourceUrl={install(M,$){M.prototype.resource_url=function(I){return resource_url(I)}}},FileIcon$1={install(M,$){M.prototype.file_icon=function(I){return file_icon(I)}}},can=function(M){const $=JSON.parse(atob(Statamic.$config.get("permissions")));return $.includes("super")||$.includes(M)},Can={install(M,$){M.prototype.can=function(I){return can(I)}}};var speakingurl$1={exports:{}};(function(M){(function($){var I={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},N=["်","ް"],B={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},j={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},U={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},q=[";","?",":","@","&","=","+","$",",","/"].join(""),Y=[";","?",":","@","&","=","+","$",","].join(""),K=[".","!","~","*","'","(",")"].join(""),G=function(re,se){var ne="-",le="",ge="",ue=!0,_e={},fe,me,ve,xe,oe,ye,be,we,Ae,ke,Oe,Me,ze,Fe,Ze="";if(typeof re!="string")return"";if(typeof se=="string"&&(ne=se),be=U.en,we=j.en,typeof se=="object"){fe=se.maintainCase||!1,_e=se.custom&&typeof se.custom=="object"?se.custom:_e,ve=+se.truncate>1&&se.truncate||!1,xe=se.uric||!1,oe=se.uricNoSlash||!1,ye=se.mark||!1,ue=!(se.symbols===!1||se.lang===!1),ne=se.separator||ne,xe&&(Ze+=q),oe&&(Ze+=Y),ye&&(Ze+=K),be=se.lang&&U[se.lang]&&ue?U[se.lang]:ue?U.en:{},we=se.lang&&j[se.lang]?j[se.lang]:se.lang===!1||se.lang===!0?{}:j.en,se.titleCase&&typeof se.titleCase.length=="number"&&Array.prototype.toString.call(se.titleCase)?(se.titleCase.forEach(function(lt){_e[lt+""]=lt+""}),me=!0):me=!!se.titleCase,se.custom&&typeof se.custom.length=="number"&&Array.prototype.toString.call(se.custom)&&se.custom.forEach(function(lt){_e[lt+""]=lt+""}),Object.keys(_e).forEach(function(lt){var qe;lt.length>1?qe=new RegExp("\\b"+Z(lt)+"\\b","gi"):qe=new RegExp(Z(lt),"gi"),re=re.replace(qe,_e[lt])});for(Oe in _e)Ze+=Oe}for(Ze+=ne,Ze=Z(Ze),re=re.replace(/(^\s+|\s+$)/g,""),ze=!1,Fe=!1,ke=0,Me=re.length;ke<Me;ke++)Oe=re[ke],ee(Oe,_e)?ze=!1:we[Oe]?(Oe=ze&&we[Oe].match(/[A-Za-z0-9]/)?" "+we[Oe]:we[Oe],ze=!1):Oe in I?(ke+1<Me&&N.indexOf(re[ke+1])>=0?(ge+=Oe,Oe=""):Fe===!0?(Oe=B[ge]+I[Oe],ge=""):Oe=ze&&I[Oe].match(/[A-Za-z0-9]/)?" "+I[Oe]:I[Oe],ze=!1,Fe=!1):Oe in B?(ge+=Oe,Oe="",ke===Me-1&&(Oe=B[ge]),Fe=!0):be[Oe]&&!(xe&&q.indexOf(Oe)!==-1)&&!(oe&&Y.indexOf(Oe)!==-1)?(Oe=ze||le.substr(-1).match(/[A-Za-z0-9]/)?ne+be[Oe]:be[Oe],Oe+=re[ke+1]!==void 0&&re[ke+1].match(/[A-Za-z0-9]/)?ne:"",ze=!0):(Fe===!0?(Oe=B[ge]+Oe,ge="",Fe=!1):ze&&(/[A-Za-z0-9]/.test(Oe)||le.substr(-1).match(/A-Za-z0-9]/))&&(Oe=" "+Oe),ze=!1),le+=Oe.replace(new RegExp("[^\\w\\s"+Ze+"_-]","g"),ne);return me&&(le=le.replace(/(\w)(\S*)/g,function(lt,qe,Ve){var At=qe.toUpperCase()+(Ve!==null?Ve:"");return Object.keys(_e).indexOf(At.toLowerCase())<0?At:At.toLowerCase()})),le=le.replace(/\s+/g,ne).replace(new RegExp("\\"+ne+"+","g"),ne).replace(new RegExp("(^\\"+ne+"+|\\"+ne+"+$)","g"),""),ve&&le.length>ve&&(Ae=le.charAt(ve)===ne,le=le.slice(0,ve),Ae||(le=le.slice(0,le.lastIndexOf(ne)))),!fe&&!me&&(le=le.toLowerCase()),le},J=function(re){return function(ne){return G(ne,re)}},Z=function(re){return re.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},ee=function(te,re){for(var se in re)if(re[se]===te)return!0};if(M.exports)M.exports=G,M.exports.createSlug=J;else try{if($.getSlug||$.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";$.getSlug=G,$.createSlug=J}catch{}})(commonjsGlobal)})(speakingurl$1);var speakingurlExports=speakingurl$1.exports,speakingurl=speakingurlExports;const getSlug=getDefaultExportFromCjs(speakingurl),Slugify$1={install(M,$){M.prototype.$slugify=function(I,N,B){const j=Statamic.$config.get("selectedSite"),q=Statamic.$config.get("sites").find(K=>K.handle===j);B=B??(q==null?void 0:q.lang)??Statamic.$config.get("lang");const Y=Statamic.$config.get(`charmap.${B}`)??{};return Y["'"]="",Y["’"]="",Y[" - "]=" ",getSlug(I,{separator:N||"-",lang:B,custom:Y,symbols:Statamic.$config.get("asciiReplaceExtraSymbols")})}}};Vue$3.use(CpUrl);Vue$3.use(DocsUrl);Vue$3.use(ResourceUrl);Vue$3.use(FileIcon$1);Vue$3.use(Can);Vue$3.use(Slugify$1);function orderby(M,$,I){if(!$)return M;var N=I&&I<0?-1:1;return M.slice().sort(function(B,j){return $!=="$key"&&(Vue$3.util.isObject(B)&&"$value"in B&&(B=B.$value),Vue$3.util.isObject(j)&&"$value"in j&&(j=j.$value)),B=Vue$3.util.isObject(B)?Vue$3.parsers.path.getPath(B,$):B,j=Vue$3.util.isObject(j)?Vue$3.parsers.path.getPath(j,$):j,B=typeof B=="string"?B.toLowerCase():B,j=typeof j=="string"?j.toLowerCase():j,B===j?0:B>j?N:-N})}function deslugify(M){return M.replace(/[-_]/g," ")}function markdown$3(M){return markdown(M)}function parse$2(M){return JSON.parse(M)}function pre(M){return"<pre><code>"+JSON.stringify(M,null,2)+"</code></pre>"}function pluck(M,$){return M.map(function(I){return I[$]})}function reverse(M){return M.split("").reverse().join("")}var striptags$2={exports:{}};(function(M){(function($){if(typeof I!="function"){var I=function(te){return te};I.nonNative=!0}const N=I("plaintext"),B=I("html"),j=I("comment"),U=/<(\w*)>/g,q=/<\/?([^\s\/>]+)/;function Y(te,re,se){te=te||"",re=re||[],se=se||"";let ne=G(re,se);return J(te,ne)}function K(te,re){te=te||[],re=re||"";let se=G(te,re);return function(le){return J(le||"",se)}}Y.init_streaming_mode=K;function G(te,re){return te=Z(te),{allowable_tags:te,tag_replacement:re,state:N,tag_buffer:"",depth:0,in_quote_char:""}}function J(te,re){if(typeof te!="string")throw new TypeError("'html' parameter must be a string");let se=re.allowable_tags,ne=re.tag_replacement,le=re.state,ge=re.tag_buffer,ue=re.depth,_e=re.in_quote_char,fe="";for(let me=0,ve=te.length;me<ve;me++){let xe=te[me];if(le===N)switch(xe){case"<":le=B,ge+=xe;break;default:fe+=xe;break}else if(le===B)switch(xe){case"<":if(_e)break;ue++;break;case">":if(_e)break;if(ue){ue--;break}_e="",le=N,ge+=">",se.has(ee(ge))?fe+=ge:fe+=ne,ge="";break;case'"':case"'":xe===_e?_e="":_e=_e||xe,ge+=xe;break;case"-":ge==="<!-"&&(le=j),ge+=xe;break;case" ":case`
- `:if(ge==="<"){le=N,fe+="< ",ge="";break}ge+=xe;break;default:ge+=xe;break}else if(le===j)switch(xe){case">":ge.slice(-2)=="--"&&(le=N),ge="";break;default:ge+=xe;break}}return re.state=le,re.tag_buffer=ge,re.depth=ue,re.in_quote_char=_e,fe}function Z(te){let re=new Set;if(typeof te=="string"){let se;for(;se=U.exec(te);)re.add(se[1])}else!I.nonNative&&typeof te[I.iterator]=="function"?re=new Set(te):typeof te.forEach=="function"&&te.forEach(re.add,re);return re}function ee(te){let re=q.exec(te);return re?re[1].toLowerCase():null}M.exports?M.exports=Y:$.striptags=Y})(commonjsGlobal)})(striptags$2);var striptagsExports=striptags$2.exports;const striptags$1=getDefaultExportFromCjs(striptagsExports);function striptags(M){return striptags$1(M)}function titleize(M){if(!M.split)return M;var $=function(N){return N.charAt(0).toUpperCase()+N.slice(1).toLowerCase()},I=[];return M.split(" ").forEach(function(N){I.push($(N))}),I.join(" ")}Vue$3.filter("caseInsensitiveOrderBy",orderby);Vue$3.filter("deslugify",deslugify);Vue$3.filter("markdown",markdown$3);Vue$3.filter("parse",parse$2);Vue$3.filter("pre",pre);Vue$3.filter("pluck",pluck);Vue$3.filter("reverse",reverse);Vue$3.filter("striptags",striptags);Vue$3.filter("titleize",titleize);function normalizeComponent$3(M,$,I,N,B,j,U,q){var Y=typeof M=="function"?M.options:M;$&&(Y.render=$,Y.staticRenderFns=I,Y._compiled=!0),N&&(Y.functional=!0),j&&(Y._scopeId="data-v-"+j);var K;if(U?(K=function(Z){Z=Z||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!Z&&typeof __VUE_SSR_CONTEXT__<"u"&&(Z=__VUE_SSR_CONTEXT__),B&&B.call(this,Z),Z&&Z._registeredComponents&&Z._registeredComponents.add(U)},Y._ssrRegister=K):B&&(K=q?function(){B.call(this,(Y.functional?this.parent:this).$root.$options.shadowRoot)}:B),K)if(Y.functional){Y._injectStyles=K;var G=Y.render;Y.render=function(ee,te){return K.call(te),G(ee,te)}}else{var J=Y.beforeCreate;Y.beforeCreate=J?[].concat(J,K):[K]}return{exports:M,options:Y}}const _sfc_main$40={props:{value:{required:!0},config:{type:Object,default:()=>({})},handle:{type:String,required:!0},meta:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showFieldPreviews:{type:Boolean,default:!1},namePrefix:String,fieldPathPrefix:String},methods:{update(M){this.$emit("input",M)},updateDebounced:_.debounce(function(M){this.update(M)},150),updateMeta(M){this.$emit("meta-updated",M)}},computed:{name(){return this.namePrefix?`${this.namePrefix}[${this.handle}]`:this.handle},isReadOnly(){return this.readOnly||this.config.visibility==="read_only"||this.config.visibility==="computed"||!1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value},fieldPathKeys(){return(this.fieldPathPrefix||this.handle).split(".")},fieldId(){return(this.fieldPathPrefix?this.fieldPathPrefix+".":"")+"field_"+this.config.handle}},watch:{replicatorPreview:{immediate:!0,handler(M){!this.showFieldPreviews||!this.config.replicator_preview||this.$emit("replicator-preview-updated",M)}}}},_sfc_render$40=null,_sfc_staticRenderFns$40=null;var __component__$41=normalizeComponent$3(_sfc_main$40,_sfc_render$40,_sfc_staticRenderFns$40,!1,null,null,null,null);const Fieldtype$1=__component__$41.exports,_sfc_main$3$={props:{handle:{type:String,required:!0},value:{required:!0},values:{required:!0}}},_sfc_render$3$=null,_sfc_staticRenderFns$3$=null;var __component__$40=normalizeComponent$3(_sfc_main$3$,_sfc_render$3$,_sfc_staticRenderFns$3$,!1,null,null,null,null);const IndexFieldtype$1=__component__$40.exports,_sfc_main$3_={props:{button:Object,active:Boolean,config:Object,bard:{},editor:{}}};var _sfc_render$3_=function(){var $=this,I=$._self._c;return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.button.text,expression:"button.text"}],staticClass:"bard-toolbar-button",class:{active:$.active},attrs:{"aria-label":$.button.text},on:{click:function(N){return $.button.command($.editor,$.button.args)}}},[$.button.svg?I("svg-icon",{attrs:{name:$.button.svg}}):$._e(),$.button.html?I("div",{staticClass:"flex items-center",domProps:{innerHTML:$._s($.button.html)}}):$._e()],1)},_sfc_staticRenderFns$3_=[],__component__$3$=normalizeComponent$3(_sfc_main$3_,_sfc_render$3_,_sfc_staticRenderFns$3_,!1,null,null,null,null);const BardToolbarButton$1=__component__$3$.exports,HasActions={methods:{actionStarted(){this.loading=!0},actionCompleted(M=null,$={}){this.loading=!1,M!==!1&&(this.$events.$emit("clear-selections"),this.$events.$emit("reset-action-modals"),$.message!==!1&&this.$toast.success($.message||__("Action completed")),this.afterActionSuccessfullyCompleted())},afterActionSuccessfullyCompleted(){this.request()}}},HasFilters={data(){return{activeFilterBadges:{},activeFilters:{},activePreset:null,activePresetPayload:{},searchQuery:""}},computed:{activeFilterCount(){let M=Object.keys(this.activeFilters).length;return this.activeFilters.hasOwnProperty("fields")&&(M=M+Object.keys(this.activeFilters.fields).filter($=>$!="badge").length-1),M},canSave(){return this.isDirty&&this.preferencesPrefix},isDirty(){return this.isFiltering?this.activePreset?this.activePresetPayload.query!=this.searchQuery||!_.isEqual(this.activePresetPayload.filters||{},this.activeFilters):!0:!1},isFiltering(){return!_.isEmpty(this.activeFilters)||this.searchQuery||this.activePreset},hasActiveFilters(){return this.activeFilterCount>0},searchPlaceholder(){return this.activePreset?__("Searching in: ")+this.activePresetPayload.display:__("Search")}},created(){this.$keys.bind("f",M=>{M.preventDefault(),this.handleShowFilters()})},methods:{searchChanged(M){this.searchQuery=M},hasFields(M){for(const $ in M)if(M[$])return!0;return!1},filterChanged({handle:M,values:$},I=!0){$&&this.hasFields($)?Vue$3.set(this.activeFilters,M,$):Vue$3.delete(this.activeFilters,M),I&&this.unselectAllItems()},filtersChanged(M){this.activeFilters={};for(const $ in M){const I=M[$];this.filterChanged({handle:$,values:I},!1)}this.unselectAllItems()},filtersReset(){this.activePreset=null,this.activePresetPayload={},this.searchQuery="",this.activeFilters={},this.activeFilterBadges={}},unselectAllItems(){this.$refs.dataList&&this.$refs.dataList.clearSelections()},selectPreset(M,$){this.activePreset=M,this.activePresetPayload=$,this.searchQuery=$.query,this.filtersChanged($.filters)},autoApplyFilters(M){if(!M)return;let $={};M.filter(I=>!_.isEmpty(I.auto_apply)).forEach(I=>{$[I.handle]=I.auto_apply}),this.activeFilters=$}}},HasPagination={props:{initialPerPage:{type:Number,default(){return Statamic.$config.get("paginationSize")}}},data(){return{perPage:this.initialPerPage,page:1}},mounted(){this.setInitialPerPage()},methods:{setInitialPerPage(){this.hasPreferences&&(this.perPage=this.getPreference("per_page")||this.initialPerPage)},changePerPage(M){M=parseInt(M),(this.hasPreferences?this.setPreference("per_page",M!=this.initialPerPage?M:null):Promise.resolve()).then(I=>{this.perPage=M,this.resetPage()})},selectPage(M){this.page=M,this.$events.$emit("clear-selections")},resetPage(){this.page=1,this.$events.$emit("clear-selections")}}},HasPreferences={data(){return{preferencesPrefix:null}},computed:{hasPreferences(){return this.preferencesPrefix!==null}},methods:{preferencesKey(M){return`${this.preferencesPrefix}.${M}`},getPreference(M){return this.$preferences.get(this.preferencesKey(M))},setPreference(M,$){return this.$preferences.set(this.preferencesKey(M),$)},removePreference(M,$=null){return this.$preferences.remove(this.preferencesKey(M),$)}}},_sfc_main$3Z={mixins:[HasActions,HasFilters,HasPagination,HasPreferences],props:{initialSortColumn:String,initialSortDirection:String,initialColumns:{type:Array,default:()=>[]},filters:Array,actionUrl:String},data(){return{source:null,initializing:!0,loading:!0,items:[],columns:this.initialColumns,visibleColumns:this.initialColumns.filter(M=>M.visible),sortColumn:this.initialSortColumn,sortDirection:this.initialSortDirection,meta:null,pushQuery:!1,popping:!1}},computed:{parameterMap(){return{sort:"sortColumn",order:"sortDirection",page:"page",perPage:"perPage",search:"searchQuery",filters:"activeFilterParameters",columns:"visibleColumnParameters"}},parameters:{get(){return{...Object.fromEntries(Object.entries(this.parameterMap).map(([$,I])=>[$,this[I]]).filter(([$,I])=>I!=null&&I!=="")),...this.additionalParameters}},set(M){Object.entries(this.parameterMap).forEach(([$,I])=>{M.hasOwnProperty($)&&(this[I]=M[$])})}},activeFilterParameters:{get(){return _.isEmpty(this.activeFilters)?null:utf8btoa(JSON.stringify(this.activeFilters))},set(M){this.activeFilters=JSON.parse(utf8atob(M))}},visibleColumnParameters:{get(){return _.isEmpty(this.visibleColumns)?null:this.visibleColumns.map(M=>M.field).join(",")},set(M){this.visibleColumns=M.split(",").map($=>this.columns.find(I=>I.field===$))}},additionalParameters(){return{}},shouldRequestFirstPage(){return this.page>1&&this.items.length===0?(this.page=1,!0):!1}},created(){this.autoApplyFilters(this.filters),this.autoApplyState(),this.request()},mounted(){this.pushQuery&&(window.history.replaceState({parameters:this.parameters},""),window.addEventListener("popstate",this.popState))},beforeDestroy(){this.pushQuery&&window.removeEventListener("popstate",this.popState)},watch:{parameters:{deep:!0,handler(M,$){$.search===M.search&&JSON.stringify($)!==JSON.stringify(M)&&(this.request(),this.pushState())}},loading:{immediate:!0,handler(M){this.$progress.loading(this.listingKey,M)}},searchQuery(M){this.sortColumn=null,this.sortDirection=null,this.resetPage(),this.request(),this.pushState()}},methods:{request(){if(!this.requestUrl){this.loading=!1;return}this.loading=!0,this.source&&this.source.cancel(),this.source=this.$axios.CancelToken.source(),this.$axios.get(this.requestUrl,{params:this.parameters,cancelToken:this.source.token}).then(M=>{if(this.columns=M.data.meta.columns,this.activeFilterBadges={...M.data.meta.activeFilterBadges},this.items=Object.values(M.data.data),this.meta=M.data.meta,this.shouldRequestFirstPage)return this.request();this.loading=!1,this.initializing=!1,this.afterRequestCompleted(M)}).catch(M=>{this.$axios.isCancel(M)||(this.loading=!1,this.initializing=!1,!(M.request&&!M.response)&&this.$toast.error(M.response?M.response.data.message:__("Something went wrong"),{duration:null}))})},afterRequestCompleted(M){},sorted(M,$){this.sortColumn=M,this.sortDirection=$},removeRow(M){let $=M.id,I=_.indexOf(this.rows,_.findWhere(this.rows,{id:$}));this.rows.splice(I,1),this.rows.length===0&&location.reload()},popState(M){!this.pushQuery||!M.state||(this.popping=!0,this.parameters=M.state.parameters,this.$nextTick(()=>{this.popping=!1}))},pushState(){if(!this.pushQuery||this.popping)return;const M=this.parameters,$=Object.keys(this.parameterMap),I=new URLSearchParams(Object.fromEntries($.filter(N=>M.hasOwnProperty(N)).map(N=>[N,M[N]])));window.history.pushState({parameters:M},"","?"+I.toString())},autoApplyState(){if(!this.pushQuery||!window.location.search)return;const M=new URLSearchParams(window.location.search),$=Object.fromEntries(M.entries());this.popping=!0,this.parameters=$,this.$nextTick(()=>{this.popping=!1})}}},_sfc_render$3Z=null,_sfc_staticRenderFns$3Z=null;var __component__$3_=normalizeComponent$3(_sfc_main$3Z,_sfc_render$3Z,_sfc_staticRenderFns$3Z,!1,null,null,null,null);const Listing=__component__$3_.exports,HasInputOptions={methods:{normalizeInputOptions(M){return _.map(M,($,I)=>({value:Array.isArray(M)?$:I,label:__($)||I}))}}},KEYS=["if","if_any","show_when","show_when_any","unless","unless_any","hide_when","hide_when_any"],OPERATORS=["equals","not","contains","contains_any","===","!==",">",">=","<","<=","custom"],ALIASES={is:"equals","==":"equals",isnt:"not","!=":"not",includes:"contains",includes_any:"contains_any"};mixin$1({chain,filter,each});class Converter{fromBlueprint($,I=null){return map$1($,(N,B)=>this.splitRhs(B,N,I))}toBlueprint($){let I={};return each($,N=>{I[N.field]=this.combineRhs(N)}),I}splitRhs($,I,N=null){return{field:this.getScopedFieldHandle($,N),operator:this.getOperatorFromRhs(I),value:this.getValueFromRhs(I)}}getScopedFieldHandle($,I){return $.startsWith("root.")||!I?$:I+$}getOperatorFromRhs($){let I="==";return chain(this.getOperatorsAndAliases()).filter(N=>new RegExp(`^${N} [^=]`).test(this.normalizeConditionString($))).each(N=>I=N),this.normalizeOperator(I)}normalizeOperator($){return ALIASES[$]?ALIASES[$]:$}getValueFromRhs($){let I=this.normalizeConditionString($);return chain(this.getOperatorsAndAliases()).filter(N=>new RegExp(`^${N} [^=]`).test(I)).each(N=>I=I.replace(new RegExp(`^${N}[ ]*`),"")),I}combineRhs($){let I=$.operator?$.operator.trim():"",N=$.value.trim();return`${I} ${N}`.trim()}getOperatorsAndAliases(){return OPERATORS.concat(Object.keys(ALIASES))}normalizeConditionString($){return $===null?"null":$===""?"empty":$.toString()}}const _sfc_main$3Y={mixins:[HasInputOptions],props:{config:{type:Object,required:!0},condition:{type:Object,required:!0},index:{type:Number,required:!0},suggestableFields:{type:Array,required:!0}},computed:{field(){return this.suggestableFields.find(M=>M.handle===this.condition.field)},showValueToggle(){return this.field&&["toggle"].includes(this.field.config.type)&&["equals","not","===","!=="].includes(this.condition.operator)},showValueDropdown(){return this.field&&["button_group","checkboxes","radio","select"].includes(this.field.config.type)&&["equals","not","===","!=="].includes(this.condition.operator)},valueOptions(){if(this.showValueDropdown)return this.normalizeInputOptions(this.field.config.options)},fieldOptions(){return _$1(this.suggestableFields).reject(M=>M.handle===this.config.handle||this.condition.field===M.handle).map(M=>{let $=M.config.display;return $||($=M.handle.replace(/_/g," ").replace(/(?:^|\s)\S/g,function(I){return I.toUpperCase()})),{value:M.handle,label:$}})},operatorOptions(){return this.normalizeInputOptions({equals:__("equals"),not:__("not"),contains:__("contains"),contains_any:__("contains any"),"===":"===","!==":"!==",">":">",">=":">=","<":"<","<=":"<=",custom:__("custom")})}},methods:{fieldSelected(M){this.$emit("updated",{...this.condition,field:M})},fieldSelectBlur(){const M=this.$refs.fieldSelect.$refs.search.value;M&&this.fieldUpdated(M)},operatorSelected(M){this.$emit("updated",{...this.condition,operator:M})},valueUpdated(M){this.$emit("updated",{...this.condition,value:M.toString()})},valueSelectBlur(){const M=this.$refs.valueSelect.$refs.search.value;M&&this.valueUpdated(M)},remove(){this.$emit("removed")}}};var _sfc_render$3Y=function(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-wrap items-center py-4 border-t"},[$.index===0?I("div",{staticClass:"help-block",domProps:{textContent:$._s($.__("messages.field_conditions_field_instructions"))}}):$._e(),I("v-select",{ref:"fieldSelect",staticClass:"w-full md:w-1/3 mb-2 md:mb-0",attrs:{value:$.condition.field,options:$.fieldOptions,placeholder:$.__("Field"),taggable:!0,"push-tags":!0,reduce:N=>N.value,"create-option":N=>({value:N,label:N})},on:{input:$.fieldSelected,"search:blur":$.fieldSelectBlur},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"hidden"})]},proxy:!0},{key:"option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[I("span",{domProps:{textContent:$._s(N.label)}}),I("span",{staticClass:"font-mono text-2xs text-gray-500",class:{"ml-2":N.label},domProps:{textContent:$._s(N.value)}})])]}}])}),I("select-input",{staticClass:"rtl:md:mr-4 ltr:md:ml-4",attrs:{value:$.condition.operator,options:$.operatorOptions,placeholder:!1},on:{input:$.operatorSelected}}),$.showValueToggle?I("toggle-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.condition.value==="true"},on:{input:$.valueUpdated}}):$.showValueDropdown?I("v-select",{ref:"valueSelect",staticClass:"rtl:mr-4 ltr:ml-4 w-full md:w-52 mb-2 md:mb-0",attrs:{value:$.condition.value,options:$.valueOptions,placeholder:$.__("Option"),taggable:!1,"push-tags":!0,reduce:N=>N.value,"create-option":N=>({value:N,label:N})},on:{input:$.valueUpdated,"search:blur":$.valueSelectBlur},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"hidden"})]},proxy:!0}])}):I("text-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.condition.value},on:{input:$.valueUpdated}}),I("button",{staticClass:"btn-close rtl:mr-2 ltr:ml-2 group",on:{click:$.remove}},[I("svg-icon",{staticClass:"w-4 h-4 group-hover:text-red-500",attrs:{name:"micro/trash"}})],1)],1)},_sfc_staticRenderFns$3Y=[],__component__$3Z=normalizeComponent$3(_sfc_main$3Y,_sfc_render$3Y,_sfc_staticRenderFns$3Y,!1,null,null,null,null);const Condition=__component__$3Z.exports,_sfc_main$3X={mixins:[HasInputOptions],components:{Condition},props:{config:{required:!0},suggestableFields:{required:!0}},data(){return{when:"always",type:"all",customMethod:null,conditions:[],alwaysSave:!1}},computed:{whenOptions(){return this.normalizeInputOptions({always:__$1("Always show"),if:__$1("Show when"),unless:__$1("Hide when")})},typeOptions(){return this.normalizeInputOptions({all:__$1("All of the following conditions pass"),any:__$1("Any of the following conditions pass"),custom:__$1("Custom method passes")})},hasConditions(){return this.when!=="always"},isStandard(){return this.hasConditions&&!this.isCustom},isCustom(){return this.type==="custom"},saveableConditions(){var M={};let $=this.type==="any"?`${this.when}_any`:this.when,I=this.prepareSaveableConditions(this.conditions);return this.isStandard&&!_.isEmpty(I)?M[$]=I:this.isCustom&&this.customMethod&&(M[$]=this.customMethod),M}},watch:{saveableConditions:{deep:!0,handler(M){this.$emit("updated",M)}},alwaysSave(M){this.$emit("updated-always-save",M)}},created(){this.add(),this.getInitialConditions(),this.getInitialAlwaysSaveState()},methods:{add(){this.conditions.push({_id:uniqid$1(),field:null,operator:"equals",value:null})},remove(M){this.conditions.splice(M,1)},updated(M,$){this.conditions.splice(M,1,$)},getInitialConditions(){let M=_.chain(KEYS).filter(I=>this.config[I]).first().value(),$=this.config[M];if($){if(this.when=M.startsWith("unless")||M.startsWith("hide_when")?"unless":"if",this.type=M.endsWith("_any")?"any":"all",typeof $=="string"){this.type="custom",this.customMethod=$;return}this.conditions=this.prepareEditableConditions($)}},getInitialAlwaysSaveState(){this.alwaysSave=data_get(this.config,"always_save",!1)},prepareEditableConditions(M){return new Converter().fromBlueprint(M).map($=>($._id=uniqid$1(),$.operator=this.prepareEditableOperator($.operator),$))},prepareSaveableConditions(M){return M=_.reject(M,$=>!$.field||!$.value),new Converter().toBlueprint(M)},prepareEditableOperator(M){switch(M){case"is":case"==":return"";case"isnt":case"!=":return"not"}return M}}};var _sfc_render$3X=function(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Conditions")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_conditions_instructions")))])]),I("div",{staticClass:"flex items-center mb-6"},[I("select-input",{attrs:{options:$.whenOptions,placeholder:!1},model:{value:$.when,callback:function(N){$.when=N},expression:"when"}}),$.hasConditions?I("select-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.typeOptions,placeholder:!1},model:{value:$.type,callback:function(N){$.type=N},expression:"type"}}):$._e(),$.hasConditions&&$.isCustom?I("text-input",{staticClass:"rtl:mr-4 ltr:ml-4 flex-1",model:{value:$.customMethod,callback:function(N){$.customMethod=N},expression:"customMethod"}}):$._e()],1),$._l($.conditions,function(N,B){return $.hasConditions&&$.isStandard?I("condition",{key:N._id,attrs:{index:B,config:$.config,condition:N,"suggestable-fields":$.suggestableFields},on:{updated:function(j){return $.updated(B,j)},removed:function(j){return $.remove(B)}}}):$._e()}),$.hasConditions&&$.isStandard?I("div",{staticClass:"border-t pt-6"},[I("button",{staticClass:"btn-default",domProps:{textContent:$._s($.__("Add Condition"))},on:{click:$.add}})]):$._e()],2),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Always Save")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_conditions_always_save_instructions")))])]),I("toggle-input",{model:{value:$.alwaysSave,callback:function(N){$.alwaysSave=N},expression:"alwaysSave"}})],1)])},_sfc_staticRenderFns$3X=[],__component__$3Y=normalizeComponent$3(_sfc_main$3X,_sfc_render$3X,_sfc_staticRenderFns$3X,!1,null,null,null,null);const FieldConditionsBuilder=__component__$3Y.exports;mixin$1({chain,map:map$1,each,filter,reject,first,isEmpty:isEmpty$1});const NUMBER_SPECIFIC_COMPARISONS=[">",">=","<","<="];class Validator{constructor(M,$,I,N){this.field=M,this.values=$,this.rootValues=I?I.state.publish[N].values:!1,this.store=I,this.storeName=N,this.passOnAny=!1,this.showOnPass=!0,this.converter=new Converter}passesConditions(M){let $=M||this.getConditions();if($===void 0)return!0;if(this.isCustomConditionWithoutTarget($))return this.passesCustomCondition(this.prepareCondition($));let I=this.passOnAny?this.passesAnyConditions($):this.passesAllConditions($);return this.showOnPass?I:!I}getConditions(){let M=chain(KEYS).filter(I=>this.field[I]).first().value();if(!M)return;M.includes("any")&&(this.passOnAny=!0),(M.includes("unless")||M.includes("hide_when"))&&(this.showOnPass=!1);let $=this.field[M];return this.isCustomConditionWithoutTarget($)?$:this.converter.fromBlueprint($,this.field.prefix)}isCustomConditionWithoutTarget(M){return isString$5(M)}passesAllConditions(M){return chain(M).map($=>this.prepareCondition($)).reject($=>this.passesCondition($)).isEmpty().value()}passesAnyConditions(M){return!chain(M).map($=>this.prepareCondition($)).filter($=>this.passesCondition($)).isEmpty().value()}prepareCondition(M){if(isString$5(M)||M.operator==="custom")return this.prepareCustomCondition(M);let $=this.prepareOperator(M.operator),I=this.prepareLhs(M.field,$),N=this.prepareRhs(M.value,$);return{lhs:I,operator:$,rhs:N}}prepareOperator(M){switch(M){case null:case"":case"is":case"equals":return"==";case"isnt":case"not":case"¯\\_(ツ)_/¯":return"!=";case"includes":case"contains":return"includes";case"includes_any":case"contains_any":return"includes_any"}return M}prepareLhs(M,$){let I=this.getFieldValue(M);return NUMBER_SPECIFIC_COMPARISONS.includes($)?Number(I):$==="includes"&&!isObject$5(I)?I?I.toString():"":(isString$5(I)&&isEmpty$1(I)&&(I=null),isString$5(I)?JSON.stringify(I.trim()):I)}prepareRhs(M,$){switch(M){case"null":return null;case"true":return!0;case"false":return!1}return NUMBER_SPECIFIC_COMPARISONS.includes($)?Number(M):M==="empty"||$==="includes"||$==="includes_any"?M:isString$5(M)?JSON.stringify(M.trim()):M}prepareCustomCondition(M){let $=this.prepareFunctionName(M.value||M),I=this.prepareParams(M.value||M),N=M.field?this.getFieldValue(M.field):null,B=M.field;return{functionName:$,params:I,target:N,targetHandle:B}}prepareFunctionName(M){return M.replace(new RegExp("^custom "),"").split(":")[0]}prepareParams(M){let $=M.split(":")[1];return $?$.split(",").map(I=>I.trim()):[]}getFieldValue(M){return M.startsWith("root.")?data_get$1(this.rootValues,M.replace(new RegExp("^root."),"")):data_get$1(this.values,M)}passesCondition(condition){return condition.functionName?this.passesCustomCondition(condition):condition.operator==="includes"?this.passesIncludesCondition(condition):condition.operator==="includes_any"?this.passesIncludesAnyCondition(condition):(condition.rhs==="empty"&&(condition.lhs=isEmpty$1(condition.lhs),condition.rhs=!0),isObject$5(condition.lhs)?!1:eval(`${condition.lhs} ${condition.operator} ${condition.rhs}`))}passesIncludesCondition(M){return M.lhs.includes(M.rhs)}passesIncludesAnyCondition(M){let $=M.rhs.split(",").map(I=>I.trim());return Array.isArray(M.lhs)?intersection(M.lhs,$).length:new RegExp($.join("|")).test(M.lhs)}passesCustomCondition(M){let $=data_get$1(this.store.state.statamic.conditions,M.functionName);if(typeof $!="function")return console.error(`Statamic field condition [${M.functionName}] was not properly defined.`),!1;let I=$({params:M.params,target:M.target,targetHandle:M.targetHandle,values:this.values,root:this.rootValues,store:this.store,storeName:this.storeName});return this.showOnPass?I:!I}passesNonRevealerConditions(M){let $=this.getConditions();if(this.isCustomConditionWithoutTarget($))return this.passesConditions($);let I=data_get$1(this.store.state.publish[this.storeName],"revealerFields",[]),N=chain(this.getConditions()).reject(B=>I.includes(this.relativeLhsToAbsoluteFieldPath(B.field,M))).value();return this.passesConditions(N)}relativeLhsToAbsoluteFieldPath(M,$){return $?M.startsWith("root.")?M.replace(/^root\./,""):$+"."+M:M}}const ValidatesFieldConditions={inject:{storeName:{default:"base"}},methods:{showField(M,$){let I=$||M.handle,N=$?$.replace(new RegExp("."+M.handle+"$"),""):"";if(M.visibility==="hidden"||this.shouldForceHiddenField(I))return this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:"force",omitValue:!1}),!1;let B=new Validator(M,this.values,this.$store,this.storeName),j=B.passesConditions();return M.always_save===!0?(this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:!j,omitValue:!1}),j):(this.$nextTick(()=>{this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:!j,omitValue:M.type==="revealer"||!B.passesNonRevealerConditions(N)})}),j)},shouldForceHiddenField(M){return data_get$1(this.$store.state.publish[this.storeName].hiddenFields[M],"hidden")==="force"}}},FieldConditions=Object.freeze(Object.defineProperty({__proto__:null,FIELD_CONDITIONS_ALIASES:ALIASES,FIELD_CONDITIONS_KEYS:KEYS,FIELD_CONDITIONS_OPERATORS:OPERATORS,FieldConditionsBuilder,FieldConditionsConverter:Converter,FieldConditionsValidator:Validator,ValidatesFieldConditions},Symbol.toStringTag,{value:"Module"}));window.Fieldtype=Fieldtype$1;window.IndexFieldtype=IndexFieldtype$1;window.BardToolbarButton=BardToolbarButton$1;window.Listing=Listing;window.FieldConditions=FieldConditions;Vue$3.mixin({methods:{__(M,$){return __(M,$)},__n(M,$,I){return __n(M,$,I)},translate(M,$){return __(M,$)},$wait(M){return new Promise($=>{setTimeout($,M)})}}});var vueSelect={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(typeof self<"u"?self:commonjsGlobal,function(){return(()=>{var I={646:U=>{U.exports=function(q){if(Array.isArray(q)){for(var Y=0,K=new Array(q.length);Y<q.length;Y++)K[Y]=q[Y];return K}}},713:U=>{U.exports=function(q,Y,K){return Y in q?Object.defineProperty(q,Y,{value:K,enumerable:!0,configurable:!0,writable:!0}):q[Y]=K,q}},860:U=>{U.exports=function(q){if(Symbol.iterator in Object(q)||Object.prototype.toString.call(q)==="[object Arguments]")return Array.from(q)}},206:U=>{U.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(U,q,Y)=>{var K=Y(646),G=Y(860),J=Y(206);U.exports=function(Z){return K(Z)||G(Z)||J()}},8:U=>{function q(Y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U.exports=q=function(K){return typeof K}:U.exports=q=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},q(Y)}U.exports=q}},N={};function B(U){var q=N[U];if(q!==void 0)return q.exports;var Y=N[U]={exports:{}};return I[U](Y,Y.exports,B),Y.exports}B.n=U=>{var q=U&&U.__esModule?()=>U.default:()=>U;return B.d(q,{a:q}),q},B.d=(U,q)=>{for(var Y in q)B.o(q,Y)&&!B.o(U,Y)&&Object.defineProperty(U,Y,{enumerable:!0,get:q[Y]})},B.o=(U,q)=>Object.prototype.hasOwnProperty.call(U,q),B.r=U=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})};var j={};return(()=>{B.r(j),B.d(j,{VueSelect:()=>me,default:()=>xe,mixins:()=>ve});var U=B(319),q=B.n(U),Y=B(8),K=B.n(Y),G=B(713),J=B.n(G);const Z={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(oe){var ye=this;this.autoscroll&&oe&&this.$nextTick(function(){return ye.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var oe,ye=((oe=this.$refs.dropdownMenu)===null||oe===void 0?void 0:oe.children[this.typeAheadPointer])||!1;if(ye){var be=this.getDropdownViewport(),we=ye.getBoundingClientRect(),Ae=we.top,ke=we.bottom,Oe=we.height;if(Ae<be.top)return this.$refs.dropdownMenu.scrollTop=ye.offsetTop;if(ke>be.bottom)return this.$refs.dropdownMenu.scrollTop=ye.offsetTop-(be.height-Oe)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},ee={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var oe=0;oe<this.filteredOptions.length;oe++)if(this.selectable(this.filteredOptions[oe])){this.typeAheadPointer=oe;break}},open:function(oe){oe&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var oe=this.typeAheadPointer-1;oe>=0;oe--)if(this.selectable(this.filteredOptions[oe])){this.typeAheadPointer=oe;break}},typeAheadDown:function(){for(var oe=this.typeAheadPointer+1;oe<this.filteredOptions.length;oe++)if(this.selectable(this.filteredOptions[oe])){this.typeAheadPointer=oe;break}},typeAheadSelect:function(){var oe=this.filteredOptions[this.typeAheadPointer];oe&&this.selectable(oe)&&this.select(oe)},typeAheadToLastSelected:function(){var oe=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;oe!==-1&&(this.typeAheadPointer=oe)}}},te={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(oe){this.mutableLoading=oe}},methods:{toggleLoading:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=oe??!this.mutableLoading}}};function re(oe,ye,be,we,Ae,ke,Oe,Me){var ze,Fe=typeof oe=="function"?oe.options:oe;if(ye&&(Fe.render=ye,Fe.staticRenderFns=be,Fe._compiled=!0),we&&(Fe.functional=!0),ke&&(Fe._scopeId="data-v-"+ke),Oe?(ze=function(qe){(qe=qe||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(qe=__VUE_SSR_CONTEXT__),Ae&&Ae.call(this,qe),qe&&qe._registeredComponents&&qe._registeredComponents.add(Oe)},Fe._ssrRegister=ze):Ae&&(ze=Me?function(){Ae.call(this,(Fe.functional?this.parent:this).$root.$options.shadowRoot)}:Ae),ze)if(Fe.functional){Fe._injectStyles=ze;var Ze=Fe.render;Fe.render=function(qe,Ve){return ze.call(Ve),Ze(qe,Ve)}}else{var lt=Fe.beforeCreate;Fe.beforeCreate=lt?[].concat(lt,ze):[ze]}return{exports:oe,options:Fe}}const se={Deselect:re({},function(){var oe=this.$createElement,ye=this._self._c||oe;return ye("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[ye("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:re({},function(){var oe=this.$createElement,ye=this._self._c||oe;return ye("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[ye("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},ne={inserted:function(oe,ye,be){var we=be.context;if(we.appendToBody){var Ae=we.$refs.toggle.getBoundingClientRect(),ke=Ae.height,Oe=Ae.top,Me=Ae.left,ze=Ae.width,Fe=window.scrollX||window.pageXOffset,Ze=window.scrollY||window.pageYOffset;oe.unbindPosition=we.calculatePosition(oe,we,{width:ze+"px",left:Fe+Me+"px",top:Ze+Oe+ke+"px"}),document.body.appendChild(oe)}},unbind:function(oe,ye,be){be.context.appendToBody&&(oe.unbindPosition&&typeof oe.unbindPosition=="function"&&oe.unbindPosition(),oe.parentNode&&oe.parentNode.removeChild(oe))}},le=function(oe){var ye={};return Object.keys(oe).sort().forEach(function(be){ye[be]=oe[be]}),JSON.stringify(ye)};var ge=0;const ue=function(){return++ge};function _e(oe,ye){var be=Object.keys(oe);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(oe);ye&&(we=we.filter(function(Ae){return Object.getOwnPropertyDescriptor(oe,Ae).enumerable})),be.push.apply(be,we)}return be}function fe(oe){for(var ye=1;ye<arguments.length;ye++){var be=arguments[ye]!=null?arguments[ye]:{};ye%2?_e(Object(be),!0).forEach(function(we){J()(oe,we,be[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors(be)):_e(Object(be)).forEach(function(we){Object.defineProperty(oe,we,Object.getOwnPropertyDescriptor(be,we))})}return oe}const me=re({components:fe({},se),directives:{appendToBody:ne},mixins:[Z,ee,te],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(oe){return oe}},selectable:{type:Function,default:function(oe){return!0}},getOptionLabel:{type:Function,default:function(oe){return K()(oe)==="object"?oe.hasOwnProperty(this.label)?oe[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(oe),`.
- `)+"https://vue-select.org/api/props.html#getoptionlabel"):oe}},getOptionKey:{type:Function,default:function(oe){if(K()(oe)!=="object")return oe;try{return oe.hasOwnProperty("id")?oe.id:le(oe)}catch(ye){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
- https://vue-select.org/api/props.html#getoptionkey`,oe,ye)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(oe,ye,be){return(ye||"").toLocaleLowerCase().indexOf(be.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(oe,ye){var be=this;return oe.filter(function(we){var Ae=be.getOptionLabel(we);return typeof Ae=="number"&&(Ae=Ae.toString()),be.filterBy(we,Ae,ye)})}},createOption:{type:Function,default:function(oe){return K()(this.optionList[0])==="object"?J()({},this.label,oe):oe}},resetOnOptionsChange:{default:!1,validator:function(oe){return["function","boolean"].includes(K()(oe))}},clearSearchOnBlur:{type:Function,default:function(oe){var ye=oe.clearSearchOnSelect,be=oe.multiple;return ye&&!be}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(oe,ye){return oe}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(oe,ye,be){var we=be.width,Ae=be.top,ke=be.left;oe.style.top=Ae,oe.style.left=ke,oe.style.width=we}},dropdownShouldOpen:{type:Function,default:function(oe){var ye=oe.noDrop,be=oe.open,we=oe.mutableLoading;return!ye&&be&&!we}},uid:{type:[String,Number],default:function(){return ue()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var oe=this.value;return this.isTrackingValues&&(oe=this.$data._value),oe!=null&&oe!==""?[].concat(oe):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var oe=this,ye={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:fe({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return oe.isComposing=!0},compositionend:function(){return oe.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(be){return oe.search=be.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:ye,listFooter:ye,header:fe({},ye,{deselect:this.deselect}),footer:fe({},ye,{deselect:this.deselect})}},childComponents:function(){return fe({},se,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var oe=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return oe;var ye=this.search.length?this.filter(oe,this.search,this):oe;if(this.taggable&&this.search.length){var be=this.createOption(this.search);this.optionExists(be)||ye.unshift(be)}return ye},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(oe,ye){var be=this;!this.taggable&&(typeof be.resetOnOptionsChange=="function"?be.resetOnOptionsChange(oe,ye,be.selectedValue):be.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(oe){this.isTrackingValues&&this.setInternalValueFromOptions(oe)}},multiple:function(){this.clearSelection()},open:function(oe){this.$emit(oe?"open":"close")},search:function(oe){oe.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(oe){var ye=this;Array.isArray(oe)?this.$data._value=oe.map(function(be){return ye.findOptionFromReducedValue(be)}):this.$data._value=this.findOptionFromReducedValue(oe)},select:function(oe){this.$emit("option:selecting",oe),this.isOptionSelected(oe)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(oe):(this.taggable&&!this.optionExists(oe)&&this.$emit("option:created",oe),this.multiple&&(oe=this.selectedValue.concat(oe)),this.updateValue(oe),this.$emit("option:selected",oe)),this.onAfterSelect(oe)},deselect:function(oe){var ye=this;this.$emit("option:deselecting",oe),this.updateValue(this.selectedValue.filter(function(be){return!ye.optionComparator(be,oe)})),this.$emit("option:deselected",oe)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(oe){var ye=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return ye.$refs.search.focus()})},updateValue:function(oe){var ye=this;this.value===void 0&&(this.$data._value=oe),oe!==null&&(oe=Array.isArray(oe)?oe.map(function(be){return ye.reduce(be)}):this.reduce(oe)),this.$emit("input",oe)},toggleDropdown:function(oe){var ye=oe.target!==this.searchEl;ye&&oe.preventDefault();var be=[].concat(q()(this.$refs.deselectButtons||[]),q()([this.$refs.clearButton]));this.searchEl===void 0||be.filter(Boolean).some(function(we){return we.contains(oe.target)||we===oe.target})?oe.preventDefault():this.open&&ye?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(oe){var ye=this;return this.selectedValue.some(function(be){return ye.optionComparator(be,oe)})},isOptionDeselectable:function(oe){return this.isOptionSelected(oe)&&this.deselectFromDropdown},optionComparator:function(oe,ye){return this.getOptionKey(oe)===this.getOptionKey(ye)},findOptionFromReducedValue:function(oe){var ye=this,be=[].concat(q()(this.options),q()(this.pushedTags)).filter(function(we){return JSON.stringify(ye.reduce(we))===JSON.stringify(oe)});return be.length===1?be[0]:be.find(function(we){return ye.optionComparator(we,ye.$data._value)})||oe},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var oe=null;this.multiple&&(oe=q()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(oe)}},optionExists:function(oe){var ye=this;return this.optionList.some(function(be){return ye.optionComparator(be,oe)})},normalizeOptionForSlot:function(oe){return K()(oe)==="object"?oe:J()({},this.label,oe)},pushTag:function(oe){this.pushedTags.push(oe)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var oe=this.clearSearchOnSelect,ye=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:oe,multiple:ye})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(oe){var ye=this,be=function(ke){return ke.preventDefault(),!ye.isComposing&&ye.typeAheadSelect()},we={8:function(ke){return ye.maybeDeleteValue()},9:function(ke){return ye.onTab()},27:function(ke){return ye.onEscape()},38:function(ke){if(ke.preventDefault(),ye.open)return ye.typeAheadUp();ye.open=!0},40:function(ke){if(ke.preventDefault(),ye.open)return ye.typeAheadDown();ye.open=!0}};this.selectOnKeyCodes.forEach(function(ke){return we[ke]=be});var Ae=this.mapKeydown(we,this);if(typeof Ae[oe.keyCode]=="function")return Ae[oe.keyCode](oe)},onSearchKeyPress:function(oe){this.open||oe.keyCode!==32||(oe.preventDefault(),this.open=!0)}}},function(){var oe=this,ye=oe.$createElement,be=oe._self._c||ye;return be("div",{staticClass:"v-select",class:oe.stateClasses,attrs:{dir:oe.dir}},[oe._t("header",null,null,oe.scope.header),oe._v(" "),be("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+oe.uid+"__combobox",role:"combobox","aria-expanded":oe.dropdownOpen.toString(),"aria-owns":"vs"+oe.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(we){return oe.toggleDropdown(we)}}},[be("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[oe._l(oe.selectedValue,function(we){return oe._t("selected-option-container",[be("span",{key:oe.getOptionKey(we),staticClass:"vs__selected"},[oe._t("selected-option",[oe._v(`
- `+oe._s(oe.getOptionLabel(we))+`
- `)],null,oe.normalizeOptionForSlot(we)),oe._v(" "),oe.multiple?be("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:oe.disabled,type:"button",title:"Deselect "+oe.getOptionLabel(we),"aria-label":"Deselect "+oe.getOptionLabel(we)},on:{click:function(Ae){return oe.deselect(we)}}},[be(oe.childComponents.Deselect,{tag:"component"})],1):oe._e()],2)],{option:oe.normalizeOptionForSlot(we),deselect:oe.deselect,multiple:oe.multiple,disabled:oe.disabled})}),oe._v(" "),oe._t("search",[be("input",oe._g(oe._b({staticClass:"vs__search"},"input",oe.scope.search.attributes,!1),oe.scope.search.events))],null,oe.scope.search)],2),oe._v(" "),be("div",{ref:"actions",staticClass:"vs__actions"},[be("button",{directives:[{name:"show",rawName:"v-show",value:oe.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:oe.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:oe.clearSelection}},[be(oe.childComponents.Deselect,{tag:"component"})],1),oe._v(" "),oe._t("open-indicator",[oe.noDrop?oe._e():be(oe.childComponents.OpenIndicator,oe._b({tag:"component"},"component",oe.scope.openIndicator.attributes,!1))],null,oe.scope.openIndicator),oe._v(" "),oe._t("spinner",[be("div",{directives:[{name:"show",rawName:"v-show",value:oe.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[oe._v("Loading...")])],null,oe.scope.spinner)],2)]),oe._v(" "),be("transition",{attrs:{name:oe.transition}},[oe.dropdownOpen?be("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+oe.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+oe.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(we){return we.preventDefault(),oe.onMousedown(we)},mouseup:oe.onMouseUp}},[oe._t("list-header",null,null,oe.scope.listHeader),oe._v(" "),oe._l(oe.filteredOptions,function(we,Ae){return be("li",{key:oe.getOptionKey(we),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":oe.isOptionDeselectable(we)&&Ae===oe.typeAheadPointer,"vs__dropdown-option--selected":oe.isOptionSelected(we),"vs__dropdown-option--highlight":Ae===oe.typeAheadPointer,"vs__dropdown-option--disabled":!oe.selectable(we)},attrs:{id:"vs"+oe.uid+"__option-"+Ae,role:"option","aria-selected":Ae===oe.typeAheadPointer||null},on:{mouseover:function(ke){oe.selectable(we)&&(oe.typeAheadPointer=Ae)},click:function(ke){ke.preventDefault(),ke.stopPropagation(),oe.selectable(we)&&oe.select(we)}}},[oe._t("option",[oe._v(`
- `+oe._s(oe.getOptionLabel(we))+`
- `)],null,oe.normalizeOptionForSlot(we))],2)}),oe._v(" "),oe.filteredOptions.length===0?be("li",{staticClass:"vs__no-options"},[oe._t("no-options",[oe._v(`
- Sorry, no matching options.
- `)],null,oe.scope.noOptions)],2):oe._e(),oe._v(" "),oe._t("list-footer",null,null,oe.scope.listFooter)],2):be("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+oe.uid+"__listbox",role:"listbox"}})]),oe._v(" "),oe._t("footer",null,null,oe.scope.footer)],2)},[],!1,null,null,null).exports,ve={ajax:te,pointer:ee,pointerScroll:Z},xe=me})(),j})()})})(vueSelect);var vueSelectExports=vueSelect.exports;const vSelect=getDefaultExportFromCjs(vueSelectExports),_sfc_main$3W={props:{initialContainer:Object,initialPath:String,initialEditingAssetId:String,actions:Array,canCreateContainers:Boolean,createContainerUrl:String},data(){return{container:this.initialContainer,path:this.initialPath,selectedAssets:[]}},mounted(){this.bindBrowserNavigation()},methods:{bindBrowserNavigation(){window.history.replaceState({container:this.container,path:this.path},""),window.onpopstate=M=>{this.container=M.state.container,this.path=M.state.path}},pushState(){let M=cp_url("assets/browse/"+this.container.id);this.path!=="/"&&(M+="/"+this.path),window.history.pushState({container:this.container,path:this.path},"",M)},navigate(M,$){this.container=M,this.path=$,this.pushState(),this.selectedAssets=[]},updateSelections(M){this.selectedAssets=M},editAsset(M){event.preventDefault(),this.$refs.browser.edit(M.id)}}};var _sfc_render$3W=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-manager"},[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.__($.container.title)))]),$.container.can_edit||$.container.can_delete?I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4"},[$.container.can_edit?I("dropdown-item",{attrs:{redirect:$.container.edit_url},domProps:{textContent:$._s($.__("Edit Container"))}}):$._e(),I("dropdown-item",{attrs:{redirect:$.container.blueprint_url},domProps:{textContent:$._s($.__("Edit Blueprint"))}}),$.container.can_delete?I("dropdown-item",{staticClass:"warning",domProps:{textContent:$._s($.__("Delete Container"))},on:{click:function(N){return $.$refs.deleter.confirm()}}},[I("resource-deleter",{ref:"deleter",attrs:{"resource-title":$.__($.container.title),route:$.container.delete_url}})],1):$._e()],1):$._e(),$.canCreateContainers?I("a",{staticClass:"btn rtl:mr-4 ltr:ml-4",attrs:{href:$.createContainerUrl}},[$._v($._s($.__("Create Container")))]):$._e()],1),I("asset-browser",{ref:"browser",attrs:{"initial-container":$.container,"initial-per-page":$.$config.get("paginationSize"),"initial-editing-asset-id":$.initialEditingAssetId,"selected-path":$.path,"selected-assets":$.selectedAssets},on:{navigated:$.navigate,"selections-updated":$.updateSelections,"asset-doubleclicked":$.editAsset,"edit-asset":$.editAsset}})],1)},_sfc_staticRenderFns$3W=[],__component__$3X=normalizeComponent$3(_sfc_main$3W,_sfc_render$3W,_sfc_staticRenderFns$3W,!1,null,null,null,null);const AssetManager=__component__$3X.exports,_sfc_main$3V={props:{asset:Object,square:{default:!1,type:Boolean}},computed:{showSvg(){return this.asset.extension==="svg"}}};var _sfc_render$3V=function M(){var $=this,I=$._self._c;return I("div",{},[$.asset.is_image?I("img",{staticClass:"asset-thumbnail max-h-8 max-w-full mx-auto rounded",class:{"w-8 h-8 object-cover":$.square},attrs:{src:$.asset.thumbnail,loading:"lazy"}}):$.asset.is_svg?I("img",{staticClass:"asset-thumbnail h-8 max-w-full mx-auto rounded",attrs:{src:$.asset.url,loading:"lazy"}}):I("file-icon",{staticClass:"p-px asset-thumbnail rounded w-8 h-8",attrs:{extension:$.asset.extension}})],1)},_sfc_staticRenderFns$3V=[],__component__$3W=normalizeComponent$3(_sfc_main$3V,_sfc_render$3V,_sfc_staticRenderFns$3V,!1,null,null,null,null);const AssetThumbnail=__component__$3W.exports,_sfc_main$3U={props:{config:{type:Object,required:!0},value:{required:!0},meta:{},errors:{type:Array},readOnly:Boolean,syncable:Boolean,namePrefix:String,fieldPathPrefix:String},inject:{storeName:{default:null},isInsideConfigFields:{default:!1}},computed:{fieldtypeComponent(){return`${this.config.component||this.config.type}-fieldtype`},fieldtypeComponentExists(){return Vue$3.options.components[this.fieldtypeComponent]!==void 0},instructions(){return this.config.instructions?this.renderMarkdownAndLinks(__(this.config.instructions)):null},hasError(){return this.errors&&this.errors.length>0},isReadOnly(){return this.storeState.isRoot===!1&&!this.config.localizable?!0:this.isLocked||this.readOnly||this.config.visibility==="read_only"||!1},isLocalizable(){return this.$config.get("sites").length>1&&this.config.localizable},isTab(){return this.config.type==="tab"},isSection(){return this.config.type==="section"},classes(){return["form-group publish-field","publish-field__"+this.config.handle,`${this.config.component||this.config.type}-fieldtype`,,this.isReadOnly?"read-only-field":"",this.isInsideConfigFields?"config-field":`${tailwind_width_class(this.config.width)}`,this.config.classes||"",this.config.full_width_setting?"full-width-setting":"",{"has-error":this.hasError||this.hasNestedError}]},fieldId(){return"field_"+this.config.handle},locks(){return this.storeState.fieldLocks||{}},isLocked(){return Object.keys(this.locks).includes(this.config.handle)},lockingUser(){if(this.isLocked){let M=this.locks[this.config.handle];if(typeof M=="object")return M}},isSynced(){if(this.syncable)return!this.storeState.localizedFields.includes(this.config.handle)},storeState(){return this.$store.state.publish[this.storeName]||{}},hasNestedError(){const M=`${this.fieldPathPrefix||this.config.handle}.`;return Object.keys(this.storeState.errors??[]).some($=>$.startsWith(M))},labelText(){return this.config.display||Vue$3.$options.filters.titleize(Vue$3.$options.filters.deslugify(this.config.handle))},showLabelText(){return!this.config.hide_display},showLabel(){return this.showLabelText||this.isReadOnly||this.config.required||this.isLocked||this.isLocalizable||this.syncable}},methods:{focused(){this.isLocked||this.$emit("focus")},blurred(){this.isLocked||this.$emit("blur")},renderMarkdownAndLinks(M){var $=new marked.Renderer;return $.link=function(I,N,B){var j=marked.Renderer.prototype.link.call(this,I,N,B);return j.replace("<a","<a target='_blank' ")},marked.setOptions({renderer:$}),marked(M)}}};var _sfc_render$3U=function M(){var $=this,I=$._self._c;return I("publish-field-meta",{attrs:{config:$.config,"initial-value":$.value,"initial-meta":$.meta},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return I("div",{class:$.classes},[I("div",{staticClass:"field-inner"},[$.showLabel?I("label",{staticClass:"publish-field-label",class:{"font-bold":$.config.bold},attrs:{for:$.fieldId}},[$.showLabelText?I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.config.handle,delay:500,autoHide:!1},expression:"{content: config.handle, delay: 500, autoHide: false}"}],staticClass:"rtl:ml-1 ltr:mr-1",class:{"text-gray-600":$.syncable&&$.isSynced},domProps:{textContent:$._s($.__($.labelText))}}):$._e(),$.showLabelText&&$.config.required?I("i",{staticClass:"required rtl:ml-1 ltr:mr-1"},[$._v("*")]):$._e(),$.isLocked?I("avatar",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.lockingUser.name,expression:"lockingUser.name"}],staticClass:"w-6 h-6 rounded-full -mt-px rtl:mr-2 ltr:ml-2 rtl:ml-2 ltr:mr-2",attrs:{user:$.lockingUser}}):$._e(),$.isReadOnly&&!$.isTab&&!$.isSection?I("span",{staticClass:"text-gray-500 font-normal text-2xs rtl:ml-1 ltr:mr-1"},[$._v(" "+$._s($.isLocked?$.__("Locked"):$.__("Read Only"))+" ")]):$._e(),$.isLocalizable&&!$.isTab?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("Localizable field"),expression:"__('Localizable field')",modifiers:{top:!0}}],staticClass:"h-4 rtl:ml-1 ltr:mr-1 w-4 text-gray-600",attrs:{name:"translate"}}):$._e(),!$.isReadOnly&&!$.isTab?I("button",{directives:[{name:"show",rawName:"v-show",value:$.syncable&&$.isSynced,expression:"syncable && isSynced"}],staticClass:"outline-none",class:{flex:$.syncable&&$.isSynced},on:{click:function(U){return $.$emit("desynced")}}},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("messages.field_synced_with_origin"),expression:"__('messages.field_synced_with_origin')",modifiers:{top:!0}}],staticClass:"h-4 w-4 rtl:ml-1.5 ltr:mr-1.5 mb-1 text-gray-600",attrs:{name:"light/hyperlink"}})],1):$._e(),!$.isReadOnly&&!$.isTab?I("button",{directives:[{name:"show",rawName:"v-show",value:$.syncable&&!$.isSynced,expression:"syncable && !isSynced"}],staticClass:"outline-none",class:{flex:$.syncable&&!$.isSynced},on:{click:function(U){return $.$emit("synced")}}},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("messages.field_desynced_from_origin"),expression:"__('messages.field_desynced_from_origin')",modifiers:{top:!0}}],staticClass:"h-4 w-4 rtl:ml-1.5 ltr:mr-1.5 mb-1 text-gray-600",attrs:{name:"light/hyperlink-broken"}})],1):$._e()],1):$._e(),$.instructions&&$.config.instructions_position!=="below"?I("div",{staticClass:"help-block",class:{"-mt-2":$.showLabel},domProps:{innerHTML:$._s($.instructions)}}):$._e()]),j?I("loading-graphic",{attrs:{size:16,inline:!0}}):$._e(),j?$._e():$._t("fieldtype",function(){return[$.fieldtypeComponentExists?I($.fieldtypeComponent,{tag:"component",attrs:{config:$.config,value:B,meta:N,handle:$.config.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPathPrefix,"read-only":$.isReadOnly},on:{input:function(U){return $.$emit("input",U)},"meta-updated":function(U){return $.$emit("meta-updated",U)},focus:$.focused,blur:$.blurred}}):I("div",{staticClass:"text-xs text-red-500"},[$._v("Component "),I("code",{domProps:{textContent:$._s($.fieldtypeComponent)}}),$._v(" does not exist.")])]}),$.instructions&&$.config.instructions_position==="below"?I("div",{staticClass:"help-block mt-2",domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.hasError?I("div",$._l($.errors,function(U,q){return I("small",{key:q,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(U)}})}),0):$._e()],2)}}],null,!0)})},_sfc_staticRenderFns$3U=[],__component__$3V=normalizeComponent$3(_sfc_main$3U,_sfc_render$3U,_sfc_staticRenderFns$3U,!1,null,null,null,null);const PublishField=__component__$3V.exports,_sfc_main$3T={components:{PublishField},mixins:[ValidatesFieldConditions],inject:["storeName"],props:{fields:{type:Array,required:!0},readOnly:Boolean,syncable:Boolean,syncableFields:Array,namePrefix:String},computed:{state(){return this.$store.state.publish[this.storeName]},values(){return this.state.values},meta(){return this.state.meta},errors(){return this.state.errors}},methods:{isSyncableField(M){return this.syncable?this.syncableFields?this.syncableFields.includes(M.handle):!0:!1}}};var _sfc_render$3T=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-fields @container"},$._l($.fields,function(N){return I("publish-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N),expression:"showField(field)"}],key:N.handle,attrs:{config:N,value:$.values[N.handle],meta:$.meta[N.handle],errors:$.errors[N.handle],"read-only":$.readOnly,syncable:$.isSyncableField(N),"name-prefix":$.namePrefix},on:{input:function(B){return $.$emit("updated",N.handle,B)},"meta-updated":function(B){return $.$emit("meta-updated",N.handle,B)},synced:function(B){return $.$emit("synced",N.handle)},desynced:function(B){return $.$emit("desynced",N.handle)},focus:function(B){return $.$emit("focus",N.handle)},blur:function(B){return $.$emit("blur",N.handle)}}})}),1)},_sfc_staticRenderFns$3T=[],__component__$3U=normalizeComponent$3(_sfc_main$3T,_sfc_render$3T,_sfc_staticRenderFns$3T,!1,null,null,null,null);const Fields$1=__component__$3U.exports,_sfc_main$3S={components:{PublishFields:Fields$1},props:{action:{type:Object,required:!0},selections:{type:Number,required:!0},errors:{type:Object}},data(){return{confirming:!1,fieldset:{tabs:[{fields:this.action.fields}]},values:this.action.values}},computed:{confirmationText(){if(this.action.confirmationText)return __n(this.action.confirmationText,this.selections)},warningText(){if(this.action.warningText)return __n(this.action.warningText,this.selections)},runButtonText(){return __n(this.action.buttonText,this.selections)}},created(){this.$events.$on("reset-action-modals",this.reset)},destroyed(){this.$events.$off("reset-action-modals",this.reset)},methods:{select(){if(this.action.confirm){this.confirming=!0;return}this.$emit("selected",this.action,this.values)},confirm(){this.$emit("selected",this.action,this.values)},reset(){this.confirming=!1,this.values=clone(this.action.values)}}};var _sfc_render$3S=function M(){var $=this,I=$._self._c;return I("span",[$._t("default",null,{action:$.action,select:$.select}),$.confirming?I("confirmation-modal",{attrs:{title:$.action.title,danger:$.action.dangerous,buttonText:$.runButtonText},on:{confirm:$.confirm,cancel:$.reset}},[$.confirmationText?I("div",{class:{"mb-4":$.warningText||$.action.fields.length},domProps:{textContent:$._s($.confirmationText)}}):$._e(),$.warningText?I("div",{staticClass:"text-red-500",class:{"mb-4":$.action.fields.length},domProps:{textContent:$._s($.warningText)}}):$._e(),$.action.fields.length?I("publish-container",{attrs:{name:"confirm-action",blueprint:$.fieldset,values:$.values,meta:$.action.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{attrs:{fields:$.action.fields},on:{updated:N,"meta-updated":B}})}}],null,!1,3839930647)}):$._e()],1):$._e()],2)},_sfc_staticRenderFns$3S=[],__component__$3T=normalizeComponent$3(_sfc_main$3S,_sfc_render$3S,_sfc_staticRenderFns$3S,!1,null,null,null,null);const DataListAction=__component__$3T.exports,Actions={components:{DataListAction},props:{url:String},data(){return{errors:{}}},computed:{sortedActions(){let M=_.sortBy(this.actions,"title");return[...M.filter($=>!$.dangerous),...M.filter($=>$.dangerous)]}},methods:{run(M,$){this.$emit("started"),this.errors={};const I={action:M.handle,context:M.context,selections:this.selections,values:$};this.$axios.post(this.url,I,{responseType:"blob"}).then(N=>{N.headers["content-disposition"]?this.handleFileDownload(N):this.handleActionSuccess(N)}).catch(N=>this.handleActionError(N.response))},handleActionSuccess(M){M.data.text().then($=>{$=JSON.parse($),$.redirect&&(window.location=$.redirect),$.callback&&Statamic.$callbacks.call($.callback[0],...$.callback.slice(1)),this.$emit("completed",!0,$)})},handleActionError(M){M.data.text().then($=>{$=JSON.parse($),M.status==422&&(this.errors=$.errors),this.$toast.error($.message),this.$emit("completed",!1,$)})},handleFileDownload(M){const $=M.headers["content-disposition"].match(/^attachment.+filename\*?=(?:UTF-8'')?"?([^"]+)"?/i)||[];if(!$.length)return;const I=$.length>=2?$[1]:"file.txt",N=window.URL.createObjectURL(new Blob([M.data])),B=document.createElement("a");B.href=N,B.setAttribute("download",I),document.body.appendChild(B),B.click(),this.$emit("completed",!0)}}},_sfc_main$3R={mixins:[Actions],props:{actions:{type:Array,required:!0},id:{type:String,required:!0}},computed:{selections(){return[this.id]}},created(){this.$events.$on("editor-action-selected",this.actionSelected)},methods:{findActionComponent(M){return _.find(this.$refs.actions,$=>$.action.handle===M)},actionSelected(M){this.findActionComponent(M.action).confirming=!0}}};var _sfc_render$3R=function M(){var $=this,I=$._self._c;return I("div",$._l($.actions,function(N){return I("data-list-action",{key:N.handle,ref:"actions",refInFor:!0,attrs:{action:N,selections:1,errors:$.errors},on:{selected:$.run}})}),1)},_sfc_staticRenderFns$3R=[],__component__$3S=normalizeComponent$3(_sfc_main$3R,_sfc_render$3R,_sfc_staticRenderFns$3R,!1,null,null,null,null);const EditorActions=__component__$3S.exports,_sfc_main$3Q={props:["x","y","z","imageUrl","imageDimensions"],data(){return{frameDimensions:{w:100,h:100}}},mounted(){const M=this.$refs.frame;this.frameDimensions={w:M.clientWidth,h:M.clientHeight}},computed:{bgImageDimensions(){const M=({w:$,h:I})=>$/I;return M(this.imageDimensions)>M(this.frameDimensions)?{h:this.frameDimensions.h,w:this.frameDimensions.h/this.imageDimensions.h*this.imageDimensions.w}:{w:this.frameDimensions.w,h:this.frameDimensions.w/this.imageDimensions.w*this.imageDimensions.h}},frameWidthPercent(){return this.frameDimensions.w/this.bgImageDimensions.w*100},frameHeightPercent(){return this.frameDimensions.h/this.bgImageDimensions.h*100},relOffsetLeft(){let M=this.x-this.frameWidthPercent/2;return M=Math.max(M,0),Math.min(M,100-this.frameWidthPercent)},offsetLeft(){return this.relOffsetLeft*this.bgImageDimensions.w/100},relOffsetTop(){let M=this.y-this.frameHeightPercent/2;return M=Math.max(M,0),Math.min(M,100-this.frameHeightPercent)},offsetTop(){return this.relOffsetTop*this.bgImageDimensions.h/100},backgroundPosition(){return`-${this.offsetLeft}px -${this.offsetTop}px`},transformOrigin(){const M={x:(this.x-this.relOffsetLeft)/this.frameWidthPercent*100,y:(this.y-this.relOffsetTop)/this.frameHeightPercent*100};return`${M.x}% ${M.y}%`}}};var _sfc_render$3Q=function M(){var $=this,I=$._self._c;return I("div",{ref:"frame",staticClass:"frame-image",style:{backgroundImage:`url('${encodeURI($.imageUrl)}')`,backgroundPosition:$.backgroundPosition,transform:`scale(${$.z})`,transformOrigin:$.transformOrigin}})},_sfc_staticRenderFns$3Q=[],__component__$3R=normalizeComponent$3(_sfc_main$3Q,_sfc_render$3Q,_sfc_staticRenderFns$3Q,!1,null,null,null,null);const FocalPointPreviewFrame=__component__$3R.exports,_sfc_main$3P={components:{FocalPointPreviewFrame},props:["data","image"],data(){return{x:50,y:50,z:1,imageDimensions:null}},mounted(){const $=(this.data||"50-50-1").split("-");this.x=$[0],this.y=$[1],this.z=$[2]||1},computed:{reticleSize(){return!this.imageDimensions||!this.z?0:Math.min(this.imageDimensions.w,this.imageDimensions.h)/this.z}},methods:{setImageDimensions(){const M=this.$refs.image;this.imageDimensions={w:M.clientWidth,h:M.clientHeight}},define(M){var $=M.target.getBoundingClientRect(),I=$.width,N=$.height,B=M.clientX-$.left,j=M.clientY-$.top;this.x=(B/I*100).toFixed(),this.y=(j/N*100).toFixed()},select(){this.$emit("selected",this.x+"-"+this.y+"-"+this.z),this.close()},close(){this.$emit("closed")},reset(){this.x=50,this.y=50,this.z=1}}};var _sfc_render$3P=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"focal-point"}},[I("div",{staticClass:"focal-point"},[I("div",{staticClass:"focal-point-toolbox card p-0"},[I("div",{staticClass:"p-4"},[I("label",[$._v($._s($.__("Focal Point")))]),I("small",{staticClass:"help-block"},[$._v($._s($.__("messages.focal_point_instructions")))]),I("div",{staticClass:"focal-point-image"},[I("img",{ref:"image",attrs:{src:$.image},on:{click:$.define,load:$.setImageDimensions}}),I("div",{staticClass:"focal-point-reticle",class:{zoomed:$.z>1},style:{top:`${$.y}%`,left:`${$.x}%`,width:`${$.reticleSize}px`,height:`${$.reticleSize}px`,marginTop:`-${$.reticleSize/2}px`,marginLeft:`-${$.reticleSize/2}px`}})])]),I("div",{staticClass:"flex items-center text-sm justify-center mb-4"},[I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("X")]),I("div",{staticClass:"value"},[$._v($._s($.x)),I("sup",[$._v("%")])])]),I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("Y")]),I("div",{staticClass:"value"},[$._v($._s($.y)),I("sup",[$._v("%")])])]),I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("Z")]),I("div",{staticClass:"value"},[$._v($._s($.z))])])]),I("div",{staticClass:"px-4"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.z,expression:"z"}],staticClass:"w-full mb-4",attrs:{type:"range",min:"1",max:"10",step:"0.1"},domProps:{value:$.z},on:{__r:function(N){$.z=N.target.value}}}),I("div",{staticClass:"mb-2 flex flex-wrap items-center justify-center"},[I("button",{staticClass:"btn mb-2",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}},[$._v($._s($.__("Cancel")))]),I("button",{staticClass:"btn mb-2 btn-default mx-2",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.reset.apply(null,arguments)}}},[$._v($._s($.__("Reset")))]),I("button",{staticClass:"btn mb-2 btn-primary",attrs:{type:"button"},on:{click:$.select}},[$._v($._s($.__("Finish")))])])]),I("h6",{staticClass:"p-4 text-center bg-gray-300 rounded-b"},[$._v($._s($.__("messages.focal_point_previews_are_examples")))])]),$._l(9,function(N){return I("div",{key:N,class:`frame frame-${N}`},[$.imageDimensions?I("focal-point-preview-frame",{attrs:{x:$.x,y:$.y,z:$.z,"image-url":$.image,"image-dimensions":$.imageDimensions}}):$._e()],1)})],2)])},_sfc_staticRenderFns$3P=[],__component__$3Q=normalizeComponent$3(_sfc_main$3P,_sfc_render$3P,_sfc_staticRenderFns$3P,!1,null,null,null,null);const FocalPointEditor=__component__$3Q.exports;var pdfobject={exports:{}};/**
- * PDFObject v2.2.8
- * https://github.com/pipwerks/PDFObject
- * @license
- * Copyright (c) 2008-2022 Philip Hutchison
- * MIT-style license: http://pipwerks.mit-license.org/
- * UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js
- */(function(M){(function($,I){M.exports?M.exports=I():$.PDFObject=I()})(commonjsGlobal,function(){if(typeof window>"u"||window.navigator===void 0||window.navigator.userAgent===void 0||window.navigator.mimeTypes===void 0)return!1;let $="2.2.8",I=window.navigator,N=window.navigator.userAgent,B="ActiveXObject"in window,j=window.Promise!==void 0,U=I.mimeTypes["application/pdf"]!==void 0,Y=I.platform!==void 0&&I.platform==="MacIntel"&&I.maxTouchPoints!==void 0&&I.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(N),K=!Y&&I.vendor!==void 0&&/Apple/.test(I.vendor)&&/Safari/.test(N),G=!Y&&/irefox/.test(N)&&N.split("rv:").length>1?parseInt(N.split("rv:")[1].split(".")[0],10)>18:!1,J=function(ue){var _e;try{_e=new ActiveXObject(ue)}catch{_e=null}return _e},ee=!Y&&(j||G||U||B&&function(){return!!(J("AcroPDF.PDF")||J("PDF.PdfCtrl"))}()),te=function(ue){let _e="",fe;if(ue){for(fe in ue)ue.hasOwnProperty(fe)&&(_e+=encodeURIComponent(fe)+"="+encodeURIComponent(ue[fe])+"&");_e&&(_e="#"+_e,_e=_e.slice(0,_e.length-1))}return _e},re=function(ue,_e){return _e||console.log("[PDFObject] "+ue),!1},se=function(ue){for(;ue.firstChild;)ue.removeChild(ue.firstChild)},ne=function(ue){let _e=document.body;return typeof ue=="string"?_e=document.querySelector(ue):window.jQuery!==void 0&&ue instanceof jQuery&&ue.length?_e=ue.get(0):ue.nodeType!==void 0&&ue.nodeType===1&&(_e=ue),_e},le=function(ue,_e,fe,me,ve,xe,oe,ye,be,we){se(_e);let Ae=fe;if(ue==="pdfjs"){let Me=we.indexOf("?")!==-1?"&":"?";Ae=we+Me+"file="+encodeURIComponent(fe)+me}let ke=ue==="pdfjs"||ue==="iframe"?"iframe":"embed",Oe=document.createElement(ke);if(Oe.className="pdfobject",Oe.type="application/pdf",Oe.title=ye,Oe.src=Ae,oe&&(Oe.id=oe),ke==="iframe"&&(Oe.allow="fullscreen",Oe.frameborder="0"),!be){let Me=ke==="embed"?"overflow: auto;":"border: none;";_e!==document.body?Me+="width: "+ve+"; height: "+xe+";":Me+="position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",Oe.style.cssText=Me}return _e.classList.add("pdfobject-container"),_e.appendChild(Oe),_e.getElementsByTagName(ke)[0]},ge=function(ue,_e,fe){let me=_e||!1,ve=fe||{},xe=typeof ve.id=="string"?ve.id:"",oe=ve.page||!1,ye=ve.pdfOpenParams||{},be=typeof ve.fallbackLink=="string"||typeof ve.fallbackLink=="boolean"?ve.fallbackLink:!0,we=ve.width||"100%",Ae=ve.height||"100%",ke=ve.title||"Embedded PDF",Oe=typeof ve.assumptionMode=="boolean"?ve.assumptionMode:!0,Me=typeof ve.forcePDFJS=="boolean"?ve.forcePDFJS:!1,ze=typeof ve.supportRedirect=="boolean"?ve.supportRedirect:!1,Fe=typeof ve.omitInlineStyles=="boolean"?ve.omitInlineStyles:!1,Ze=typeof ve.suppressConsole=="boolean"?ve.suppressConsole:!1,lt=typeof ve.forceIframe=="boolean"?ve.forceIframe:!1,qe=ve.PDFJS_URL||!1,Ve=ne(me),At="",Nt="",zt="<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>";return typeof ue!="string"?re("URL is not valid",Ze):Ve?(oe&&(ye.page=oe),Nt=te(ye),Me&&qe?le("pdfjs",Ve,ue,Nt,we,Ae,xe,ke,Fe,qe):ee||Oe&&!Y?le(lt||ze||K?"iframe":"embed",Ve,ue,Nt,we,Ae,xe,ke,Fe):qe?le("pdfjs",Ve,ue,Nt,we,Ae,xe,ke,Fe,qe):(be&&(At=typeof be=="string"?be:zt,Ve.innerHTML=At.replace(/\[url\]/g,ue)),re("This browser does not support embedded PDFs",Ze))):re("Target element cannot be determined",Ze)};return{embed:function(ue,_e,fe){return ge(ue,_e,fe)},pdfobjectversion:function(){return $}(),supportsPDFs:function(){return ee}()}})})(pdfobject);var pdfobjectExports=pdfobject.exports;const PDFObject=getDefaultExportFromCjs(pdfobjectExports),_sfc_main$3O={props:{src:{required:!0}},mounted(){PDFObject.embed(this.src,"#pdfViewer")}};var _sfc_render$3O=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full text-white text-center flex flex-col justify-center items-center",attrs:{id:"pdfViewer"}})},_sfc_staticRenderFns$3O=[],__component__$3P=normalizeComponent$3(_sfc_main$3O,_sfc_render$3O,_sfc_staticRenderFns$3O,!1,null,null,null,null);const PdfViewer=__component__$3P.exports;function data_delete(M,$){for(var I=$.split(".");I.length-1;){var N=I.shift(),B=I.length?new RegExp("^[0-9]+$").test(I[0]):!1;N in M||(M[N]=B?[]:{}),M=M[N]}delete M[I[0]]}class Values{constructor($,I){this.values=clone$4($),this.jsonFields=clone$4(I||[]).filter((N,B)=>I.indexOf(N)===B).sort()}get($){let I=new this.constructor(clone$4(this.values),this.jsonFields).jsonDecode().values;return data_get$1(I,$)}set($,I){return this.jsonDecode().setValue($,I).jsonEncode(),this}mergeDottedKeys($,I){let N=new this.constructor(clone$4(I.values),I.jsonFields).jsonDecode().values;return this.jsonDecode(),$.forEach(B=>{data_set(this.values,B,data_get$1(N,B))}),this.jsonEncode(),this}except($){return this.jsonDecode().rejectValuesByKey($).jsonEncode().all()}all(){return this.values}jsonDecode(){return this.jsonFields.forEach($=>{this.jsonDecodeValue($)}),this}jsonEncode(){return clone$4(this.jsonFields).reverse().forEach($=>{this.jsonEncodeValue($)}),this}dottedKeyToJsPath($){return $.split(".").map(I=>new RegExp(/^\d+.*/).test(I)?'["'+I+'"]':I).join(".").replace(/\.\[/g,"[")}missingValue($){var I=Array.isArray($)?$:$.split("."),N=I.reduce((B,j)=>B&&B[j],clone$4(this.values));return N===void 0}jsonDecodeValue($){if(this.missingValue($))return;let I=clone$4(this.values),N=data_get$1(I,$),B=JSON.parse(N);data_set(I,$,B),this.values=I}jsonEncodeValue($){if(this.missingValue($))return;let I=clone$4(this.values),N=data_get$1(I,$),B=JSON.stringify(N);data_set(I,$,B),this.values=I}setValue($,I){return data_set(this.values,$,I),this}rejectValuesByKey($){return $.forEach(I=>{this.forgetValue(I)}),this}forgetValue($){if(this.missingValue($))return;let I=clone$4(this.values);data_delete(I,$),this.values=I}}const HasHiddenFields={computed:{hiddenFields(){return this.$store.state.publish[this.publishContainer].hiddenFields},jsonSubmittingFields(){return this.$store.state.publish[this.publishContainer].jsonSubmittingFields},revealerFields(){return this.$store.state.publish[this.publishContainer].revealerFields},visibleValues(){let M=_.chain(this.hiddenFields).pick($=>$.omitValue).keys().value();return new Values(this.values,this.jsonSubmittingFields).except(M)}},methods:{resetValuesFromResponse(M){if(!M)return this.values;let $=["id"].concat(this.revealerFields),I=new Values(this.values,this.jsonSubmittingFields),N=new Values(M,this.jsonSubmittingFields);return N.mergeDottedKeys($,I),N.all()}}},_sfc_main$3N={mixins:[HasHiddenFields],components:{EditorActions,FocalPointEditor,PdfViewer,PublishFields:Fields$1},props:{id:{required:!0},readOnly:{type:Boolean},showToolbar:{type:Boolean,default:!0},allowDeleting:{type:Boolean,default(){return!0}}},data(){return{loading:!0,saving:!1,asset:null,publishContainer:"asset",values:{},meta:{},fields:null,fieldset:null,showFocalPointEditor:!1,error:null,errors:{},actions:[]}},computed:{isImage(){return this.asset?this.asset.isImage:!1},hasErrors:function(){return this.error||Object.keys(this.errors).length},canUseGoogleDocsViewer(){return Statamic.$config.get("googleDocsViewer")},isFocalPointEditorEnabled(){return Statamic.$config.get("focalPointEditorEnabled")},isToolbarVisible(){return!this.readOnly&&this.showToolbar}},mounted(){this.$modal.show("asset-editor"),this.load()},events:{"close-child-editor":function(){this.closeFocalPointEditor(),this.closeImageEditor(),this.closeRenamer()}},methods:{load(){this.loading=!0;const M=cp_url(`assets/${utf8btoa(this.id)}`);this.$axios.get(M).then($=>{const I=$.data.data;this.asset=I,this.values=_.isArray(I.values)?{}:I.values,this.meta=I.meta,this.actionUrl=I.actionUrl,this.actions=I.actions,this.fieldset=I.blueprint,this.fields=_.chain(this.fieldset.tabs).map(N=>N.sections).flatten(!0).map(N=>N.fields).flatten(!0).value(),this.loading=!1})},openFocalPointEditor(){this.showFocalPointEditor=!0},closeFocalPointEditor(){this.showFocalPointEditor=!1},selectFocalPoint(M){M=M==="50-50-1"?null:M,this.$set(this.values,"focus",M),this.$dirty.add(this.publishContainer)},save(){this.saving=!0;const M=cp_url(`assets/${utf8btoa(this.id)}`);this.$axios.patch(M,this.visibleValues).then($=>{this.$emit("saved",$.data.asset),this.$toast.success(__("Saved")),this.saving=!1,this.clearErrors()}).catch($=>{if(this.saving=!1,$.response&&$.response.status===422){const{message:I,errors:N,error:B}=$.response.data;this.error=I,this.errors=N,this.$toast.error(B)}else $.response?this.$toast.error($.response.data.message):this.$toast.error(__("Something went wrong"))})},clearErrors(){this.error=null,this.errors={}},close(){this.$modal.hide("asset-editor"),this.$emit("closed")},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))},open(){window.open(this.asset.url,"_blank")},download(){window.open(this.asset.downloadUrl)},canRunAction(M){return _.find(this.actions,$=>$.handle==M)},runAction(M){this.$events.$emit("editor-action-selected",{action:M,selection:this.id})},actionStarted(M){this.$events.$emit("editor-action-started")},actionCompleted(M,$){this.$events.$emit("editor-action-completed",M,$),this.$emit("action-completed",M,$),M&&this.close()}}};var _sfc_render$3N=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{name:"asset-editor","before-close":$.shouldClose,full:!0},on:{closed:$.close}},[I("div",{staticClass:"asset-editor flex flex-col relative bg-gray-100 h-full rounded",class:$.isImage?"is-image":"is-file"},[$.loading?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),$.loading?$._e():[I("div",{staticClass:"flex justify-between w-full px-2 relative",attrs:{id:"asset-editor-header"}},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:$.__("Open in a new window"),expression:"__('Open in a new window')",modifiers:{right:!0}}],staticClass:"flex items-center p-4 group",attrs:{"aria-label":$.__("Open in a new window")},on:{click:$.open}},[I("svg-icon",{staticClass:"text-gray-700 h-5 w-5",attrs:{name:"folder-image"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 text-sm text-gray-800 group-hover:text-blue"},[$._v($._s($.asset.path))]),I("svg-icon",{staticClass:"text-gray-700 h-5 w-5 group-hover:text-blue rtl:rotate-180",attrs:{name:"micro/chevron-right"}})],1),I("button",{staticClass:"btn-close absolute top-2 rtl:left-2.5 ltr:right-2.5",attrs:{"aria-label":$.__("Close Editor")},on:{click:$.close}},[$._v("×")])]),I("div",{staticClass:"flex flex-1 flex-col md:flex-row md:justify-between grow overflow-scroll"},[I("div",{staticClass:"editor-preview bg-gray-800 rtl:md:rounded-tl-md ltr:md:rounded-tr-md flex flex-col justify-between flex-1 min-h-[45vh] md:min-h-auto md:flex-auto md:grow w-full md:w-1/2 lg:w-2/3 shadow-[inset_0px_4px_3px_0px_black]"},[$.isToolbarVisible?I("div",{staticClass:"@container/toolbar flex items-center justify-center py-4 px-2 text-2xs text-white text-center space-x-1 sm:space-x-3",attrs:{id:"asset-editor-toolbar"}},[$.isImage&&$.isFocalPointEditorEnabled?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center justify-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.openFocalPointEditor.apply(null,arguments)}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"focal-point"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Focal Point")))])],1):$._e(),$.canRunAction("rename_asset")?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("rename_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"rename-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Rename")))])],1):$._e(),$.canRunAction("move_asset")?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("move_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"move-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Move")))])],1):$._e(),$.canRunAction("replace_asset")?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("replace_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"swap"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Replace")))])],1):$._e(),$.canRunAction("reupload_asset")?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("reupload_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"upload-cloud"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Reupload")))])],1):$._e(),$.asset.allowDownloading?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-yellow-light rounded items-center px-3 py-1.5",attrs:{"aria-label":$.__("Download file")},on:{click:$.download}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"download-desktop"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Download")))])],1):$._e(),$.allowDeleting&&$.canRunAction("delete")?I("button",{staticClass:"flex bg-gray-750 hover:bg-gray-900 hover:text-red-400 rounded items-center text-center px-3 py-1.5",on:{click:function(N){return $.runAction("delete")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"trash"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Delete")))])],1):$._e()]):$._e(),$.asset.isImage||$.asset.isSvg||$.asset.isAudio||$.asset.isVideo?I("div",{staticClass:"editor-preview-image"},[I("div",{staticClass:"image-wrapper"},[$.asset.isImage?I("img",{staticClass:"asset-thumb",attrs:{src:$.asset.preview}}):$.asset.isSvg?I("div",{staticClass:"bg-checkerboard h-full w-full flex flex-col"},[I("div",{staticClass:"flex border-b-2 border-gray-900"},[I("div",{staticClass:"flex-1 order-r p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-4 h-4",attrs:{src:$.asset.url}})]),I("div",{staticClass:"flex-1 rtl:border-r ltr:border-l rtl:border-l ltr:border-r p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-12 h-12",attrs:{src:$.asset.url}})]),I("div",{staticClass:"flex-1 rtl:border-r ltr:border-l p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-24 h-24",attrs:{src:$.asset.url}})])]),I("div",{staticClass:"min-h-0 h-full p-4 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-2/3 max-w-full max-h-full",attrs:{src:$.asset.url}})])]):$.asset.isAudio?I("div",{staticClass:"w-full shadow-none"},[I("audio",{staticClass:"w-full",attrs:{src:$.asset.url,controls:"",preload:"auto"}})]):$.asset.isVideo?I("div",{staticClass:"w-full shadow-none"},[I("video",{staticClass:"w-full",attrs:{src:$.asset.url,controls:""}})]):$._e()])]):$.asset.isPdf?I("div",{staticClass:"h-full"},[I("pdf-viewer",{attrs:{src:$.asset.pdfUrl}})],1):$.asset.isPreviewable&&$.canUseGoogleDocsViewer?I("div",{staticClass:"h-full"},[I("iframe",{staticClass:"h-full w-full",attrs:{frameborder:"0",src:"https://docs.google.com/gview?url="+$.asset.permalink+"&embedded=true"}})]):$._e()]),$.fields?I("publish-container",{attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values={...N,focus:$.values.focus}}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{staticClass:"w-full sm:p-4 md:pt-px md:w-1/3 md:grow h-1/2 md:h-full overflow-scroll"},[$.saving?I("div",{staticClass:"loading"},[I("loading-graphic",{attrs:{text:"Saving"}})],1):$._e(),$.error?I("div",{staticClass:"bg-red-500 text-white p-4 shadow mb-4",domProps:{textContent:$._s($.error)}}):$._e(),I("publish-sections",{attrs:{sections:$.fieldset.tabs[0].sections,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,2184877992)}):$._e()],1),I("div",{staticClass:"bg-gray-200 w-full border-t flex items-center justify-end py-3 px-4 rounded-b"},[I("div",{staticClass:"flex-1 hidden sm:flex space-x-3 py-1 h-full text-xs text-gray-800",attrs:{id:"asset-meta-data"}},[$.isImage?I("div",{staticClass:"flex items-center bg-gray-400 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"image-picture"}}),I("div",{},[$._v($._s($.__("messages.width_x_height",{width:$.asset.width,height:$.asset.height})))])],1):$._e(),I("div",{staticClass:"flex items-center bg-gray-400 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"sd-card"}}),I("div",{},[$._v($._s($.asset.size))])],1),I("div",{staticClass:"flex items-center bg-gray-400 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"thumbprint"}}),I("div",{attrs:{title:$.asset.lastModified}},[$._v($._s($.asset.lastModifiedRelative))])],1)]),I("div",{staticClass:"flex items-center space-x-3"},[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),$.readOnly?$._e():I("button",{staticClass:"btn-primary",attrs:{type:"button"},on:{click:$.save}},[$._v(" "+$._s($.__("Save"))+" ")])])])],$.actions.length?I("editor-actions",{attrs:{id:$.id,actions:$.actions,url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}):$._e(),$.showFocalPointEditor&&$.isFocalPointEditorEnabled?I("focal-point-editor",{attrs:{data:$.values.focus,image:$.asset.preview},on:{selected:$.selectFocalPoint,closed:$.closeFocalPointEditor}}):$._e()],2)])},_sfc_staticRenderFns$3N=[],__component__$3O=normalizeComponent$3(_sfc_main$3N,_sfc_render$3N,_sfc_staticRenderFns$3N,!1,null,null,null,null);const AssetEditor=__component__$3O.exports,_sfc_main$3M={props:{path:String},computed:{pathParts(){let M=["/"];return this.path==="/"?M:M.concat(this.path.split("/"))}},methods:{selectFolder(M){const $=M===0?"/":this.pathParts.slice(1,M+1).join("/");this.$emit("navigated",$)}}};var _sfc_render$3M=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"px-4 py-2 flex flex-wrap text-sm bg-gray-200 border-t border-b shadow-inner"},$._l($.pathParts,function(N,B){return I("a",{key:B,staticClass:"group flex items-center",on:{click:function(j){return $.selectFolder(B)}}},[B!==0?I("svg-icon",{staticClass:"text-gray-700 h-4 w-4 rtl:ml-1 ltr:mr-1 rtl:rotate-180",attrs:{name:"micro/chevron-right"}}):$._e(),N==="/"?I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-5 w-5 text-blue-400 group-hover:text-blue-600",attrs:{name:"folder-home"}}):I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-5 w-5 text-blue-400 group-hover:text-blue-600",attrs:{name:"folder"}}),N!=="/"?I("span",{staticClass:"text-gray-700 text-2xs group-hover:text-gray-800",domProps:{textContent:$._s(N)}}):$._e()],1)}),0)},_sfc_staticRenderFns$3M=[],__component__$3N=normalizeComponent$3(_sfc_main$3M,_sfc_render$3M,_sfc_staticRenderFns$3M,!1,null,null,null,null);const Breadcrumbs$1=__component__$3N.exports,_sfc_main$3L={props:{initialDirectory:String,container:Object,path:String},data(){return{modalTitle:__("Create Folder"),buttonText:__("Create"),directory:this.initialDirectory,errors:{}}},methods:{cancel(){this.$emit("closed")},submit(){const M=cp_url(`asset-containers/${this.container.id}/folders`),$={path:this.path,directory:this.directory,title:this.title};this.$axios.post(M,$).then(I=>{this.$toast.success(__("Folder created")),this.$emit("created",I.data)}).catch(I=>{this.handleErrors(I)})},handleErrors(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.errors=I,this.$toast.error($),this.saving=!1}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal("enter",this.submit),this.$keys.bindGlobal("esc",this.cancel)}};var _sfc_render$3L=function M(){var $=this,I=$._self._c;return I("confirmation-modal",{attrs:{name:"folder-editor",title:$.modalTitle},on:{cancel:$.cancel,confirm:$.submit}},[I("div",{staticClass:"publish-fields @container"},[$.initialDirectory?$._e():I("form-group",{attrs:{handle:"directory",display:$.__("Folder Name"),errors:$.errors.directory,instructions:$.__("messages.asset_folders_directory_instructions"),focus:!0,required:!0,config:{debounce:!1}},model:{value:$.directory,callback:function(N){$.directory=N},expression:"directory"}})],1)])},_sfc_staticRenderFns$3L=[],__component__$3M=normalizeComponent$3(_sfc_main$3L,_sfc_render$3L,_sfc_staticRenderFns$3L,!1,null,null,null,null);const CreateFolder=__component__$3M.exports;var lib$1={},Upload$2={},browser$1=typeof self=="object"?self.FormData:window.FormData,__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Upload$2,"__esModule",{value:!0});Upload$2.Upload=void 0;const form_data_1=__importDefault(browser$1);let Upload$1=class{constructor($){if(this.events={state:new Set,error:new Set,progress:new Set},this.withCredentials=!1,this._uploadedBytes=0,this._totalBytes=0,this._state="new",!$)throw new Error("Options are required.");if(!$.url||typeof $.url!="string")throw new Error("Destination URL is missing or invalid.");this.form=$.form,this.url=$.url,this.headers=$.headers,this.withCredentials=$.withCredentials}upload(){return new Promise(($,I)=>{if(typeof window<"u"&&typeof XMLHttpRequest<"u"){if(this.xhr=new XMLHttpRequest,this.withCredentials&&(this.xhr.withCredentials=!0),this.xhr.open("POST",this.url,!0),typeof this.headers=="object")for(const N of Object.keys(this.headers))this.xhr.setRequestHeader(N,this.headers[N]);if(this.xhr.addEventListener("loadstart",()=>{this.setState("started")}),this.xhr.upload&&this.xhr.upload.addEventListener("progress",N=>{this._totalBytes!==N.total&&this.setTotalBytes(N.total),this.setUploadedBytes(N.loaded)}),this.xhr.addEventListener("load",()=>{if(this.xhr){this.setUploadedBytes(this.totalBytes),this.setState("successful");const N={},B=this.xhr.getAllResponseHeaders().replace(/\r/g,"").split(`
- `),j={};for(const U of B){const q=U.split(":");q.length==2&&(j[q[0].trim()]=q[1].trim())}switch(N.headers=j,N.status=this.xhr.status,N.xhr=this.xhr,this.xhr.responseType){case"json":N.data=JSON.stringify(this.xhr.response);break;default:N.data=this.xhr.response}$(N)}}),this.xhr.addEventListener("error",()=>{this.setState("failed"),this.emit("error"),I()}),this.xhr.addEventListener("abort",()=>{this.setState("aborted")}),this.form instanceof FormData)this.xhr.send(this.form);else{const N=this.form,B=new FormData;for(const j of Object.keys(this.form))B.set(j,N[j]);this.xhr.send(B)}}else{const N=(q,Y)=>{if(q)this.setState("failed"),this.emit("error"),I();else{this.setUploadedBytes(this.totalBytes),this.setState("successful");let K="";Y.on("readable",()=>{const G=Y.read();G&&(K+=G)}),Y.on("end",()=>{const G={};G.data=K,G.headers=Y.headers,$(G)})}},B=new URL(this.url),j={hostname:B.hostname,port:B.port,path:B.pathname,method:"POST",headers:this.headers};let U;if(this.form instanceof form_data_1.default)U=this.form;else{const q=this.form;U=new form_data_1.default;for(const Y of Object.keys(this.form))U.append(Y,q[Y])}U.getLength((q,Y)=>{this.setTotalBytes(Y)}),U.on("data",q=>{this.state==="new"&&this.setState("started"),q.hasOwnProperty("length")&&this.increaseUploadedBytes(q.length)}),U.submit(j,N)}})}abort(){var $;($=this.xhr)===null||$===void 0||$.abort()}get uploadedBytes(){return this._uploadedBytes}setUploadedBytes($){this._uploadedBytes=$,this.emit("progress",this.progress)}increaseUploadedBytes($){this._uploadedBytes+=$,this.emit("progress",this.progress)}get totalBytes(){return this._totalBytes}setTotalBytes($){this._totalBytes=$,this.emit("progress",this.progress)}get progress(){return this._totalBytes===0?0:this._uploadedBytes/this._totalBytes}get state(){return this._state}setState($){const I=this._state;this._state=$,I!==this._state&&this.emit("state",this._state)}on($,I){this.events[$].add(I)}off($,I){this.events[$].delete(I)}emit($,...I){for(const N of this.events[$])N.apply(this,I)}};Upload$2.Upload=Upload$1;var UploadFunction={},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(M,$,I,N){function B(j){return j instanceof I?j:new I(function(U){U(j)})}return new(I||(I=Promise))(function(j,U){function q(G){try{K(N.next(G))}catch(J){U(J)}}function Y(G){try{K(N.throw(G))}catch(J){U(J)}}function K(G){G.done?j(G.value):B(G.value).then(q,Y)}K((N=N.apply(M,$||[])).next())})};Object.defineProperty(UploadFunction,"__esModule",{value:!0});UploadFunction.upload=void 0;const Upload_1=Upload$2;function upload(M,$,I,N=!1){return __awaiter(this,void 0,void 0,function*(){const B=new Upload_1.Upload(Object.assign({url:M,form:$,withCredentials:N},I));return I!=null&&I.onProgress&&B.on("progress",I.onProgress),yield B.upload()})}UploadFunction.upload=upload;(function(M){var $=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(N,B,j,U){U===void 0&&(U=j),Object.defineProperty(N,U,{enumerable:!0,get:function(){return B[j]}})}:function(N,B,j,U){U===void 0&&(U=j),N[U]=B[j]}),I=commonjsGlobal&&commonjsGlobal.__exportStar||function(N,B){for(var j in N)j!=="default"&&!B.hasOwnProperty(j)&&$(B,N,j)};Object.defineProperty(M,"__esModule",{value:!0}),I(Upload$2,M),I(UploadFunction,M)})(lib$1);const _sfc_main$3K={render(M){const $=M("input",{class:{hidden:!0},attrs:{type:"file",multiple:!0},ref:"nativeFileField"});return M("div",{on:{dragenter:this.dragenter,dragover:this.dragover,dragleave:this.dragleave,drop:this.drop}},[M("div",{class:{"pointer-events-none":this.dragging}},[$,...this.$scopedSlots.default({dragging:this.enabled?this.dragging:!1})])])},props:{enabled:{type:Boolean,default:()=>!0},container:String,path:String,url:{type:String,default:()=>cp_url("assets")}},data(){return{dragging:!1,uploads:[]}},computed:{extraData(){return{container:this.container,folder:this.path,_token:Statamic.$config.get("csrfToken")}}},mounted(){this.$refs.nativeFileField.addEventListener("change",this.addNativeFileFieldSelections)},beforeDestroy(){this.$refs.nativeFileField.removeEventListener("change",this.addNativeFileFieldSelections)},watch:{uploads(M){this.$emit("updated",M),this.processUploadQueue()}},methods:{browse(){this.$refs.nativeFileField.click()},addNativeFileFieldSelections(M){for(let $=0;$<M.target.files.length;$++)this.addFile(M.target.files[$])},dragenter(M){M.stopPropagation(),M.preventDefault(),this.dragging=!0},dragover(M){M.stopPropagation(),M.preventDefault()},dragleave(M){M.target===M.currentTarget&&(this.dragging=!1)},drop(M){M.stopPropagation(),M.preventDefault(),this.dragging=!1;for(let $=0;$<M.dataTransfer.files.length;$++)this.addFile(M.dataTransfer.files[$])},addFile(M){if(!this.enabled)return;const $=uniqid$1(),I=this.makeUpload($,M);this.uploads.push({id:$,basename:M.name,extension:M.name.split(".").pop(),percent:0,errorMessage:null,instance:I})},findUpload(M){return this.uploads.find($=>$.id===M)},findUploadIndex(M){return this.uploads.findIndex($=>$.id===M)},makeUpload(M,$){const I=new lib$1.Upload({url:this.url,form:this.makeFormData($),headers:{Accept:"application/json"}});return I.on("progress",N=>{this.findUpload(M).percent=N*100}),I},makeFormData(M){const $=new FormData;$.append("file",M);for(let I in this.extraData)$.append(I,this.extraData[I]);return $},processUploadQueue(){if(this.uploads.length===0)return;const M=this.uploads[0],$=M.id;M.instance.upload().then(I=>{let N=null;try{N=JSON.parse(I.data)}catch{}I.status===200?this.handleUploadSuccess($,N):this.handleUploadError($,status,N)})},handleUploadSuccess(M,$){this.$emit("upload-complete",$.data,this.uploads),this.uploads.splice(this.findUploadIndex(M),1)},handleUploadError(M,$,I){const N=this.findUpload(M);let B=I==null?void 0:I.message;B||($===413?B=__("Upload failed. The file is larger than is allowed by your server."):B=__("Upload failed. The file might be larger than is allowed by your server.")),N.errorMessage=B,this.$emit("error",N,this.uploads)}}},_sfc_render$3K=null,_sfc_staticRenderFns$3K=null;var __component__$3L=normalizeComponent$3(_sfc_main$3K,_sfc_render$3K,_sfc_staticRenderFns$3K,!1,null,null,null,null);const Uploader=__component__$3L.exports,_sfc_main$3J={props:["extension","basename","percent","error"],computed:{status(){return this.error?"error":this.percent===100?"pending":"uploading"}},methods:{clear(){this.$emit("clear")}}};var _sfc_render$3J=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center my-4",class:{"text-red-500":$.status=="error"}},[I("div",{staticClass:"mx-2 flex items-center"},[$.status==="error"?I("svg-icon",{staticClass:"text-red-500 h-4 w-4",attrs:{name:"micro/warning"}}):I("loading-graphic",{attrs:{inline:!0,text:""}})],1),I("div",{staticClass:"filename"},[$._v($._s($.basename))]),$.status!=="error"?I("div",{staticClass:"bg-white flex-1 h-4 mx-2 rounded"},[I("div",{staticClass:"bg-blue h-full rounded",style:{width:$.percent+"%"}})]):$._e(),$.status==="error"?I("div",{staticClass:"px-2"},[$._v(" "+$._s($.error)+" "),I("button",{staticClass:"flex items-center text-gray-700 hover:text-gray-800",on:{click:function(N){return N.preventDefault(),$.clear.apply(null,arguments)}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"micro/circle-with-cross"}})],1)]):$._e()])},_sfc_staticRenderFns$3J=[],__component__$3K=normalizeComponent$3(_sfc_main$3J,_sfc_render$3J,_sfc_staticRenderFns$3J,!1,null,null,null,null);const Upload=__component__$3K.exports,_sfc_main$3I={props:["uploads"],components:{Upload},methods:{clearUpload(M){this.uploads.splice(M,1)}}};var _sfc_render$3I=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bg-gray-400 text-xs p-2"},$._l($.uploads,function(N,B){return I("upload",{key:N.id,attrs:{basename:N.basename,extension:N.extension,percent:N.percent,error:N.errorMessage},on:{clear:function(j){return $.clearUpload(B)}}})}),1)},_sfc_staticRenderFns$3I=[],__component__$3J=normalizeComponent$3(_sfc_main$3I,_sfc_render$3I,_sfc_staticRenderFns$3I,!1,null,null,null,null);const Uploads=__component__$3J.exports,_sfc_main$3H={mixins:[HasActions,HasPagination,HasPreferences],components:{AssetThumbnail,AssetEditor,Breadcrumbs:Breadcrumbs$1,Uploader,Uploads,CreateFolder},props:{initialContainer:{},selectedPath:String,restrictContainerNavigation:Boolean,restrictFolderNavigation:Boolean,selectedAssets:Array,maxFiles:Number,queryScopes:Array,initialEditingAssetId:String,autoselectUploads:Boolean,autofocusSearch:Boolean},data(){return{columns:[{label:__("File"),field:"basename",visible:!0,sortable:!0},{label:__("Size"),field:"size",value:"size_formatted",visible:!0,sortable:!0},{label:__("Last Modified"),field:"last_modified",value:"last_modified_relative",visible:!0,sortable:!0}],containers:[],container:{},initializing:!0,loading:!0,assets:[],path:this.selectedPath,folders:[],folder:{},searchQuery:"",editedAssetId:this.initialEditingAssetId,creatingFolder:!1,uploads:[],page:1,preferencesPrefix:null,meta:{},sortColumn:this.initialContainer.sort_field,sortDirection:this.initialContainer.sort_direction,mode:"table",actionUrl:null,folderActionUrl:null,shifting:!1,lastItemClicked:null,actionOpened:null}},computed:{selectedContainer(){return typeof this.initialContainer=="object"?this.initialContainer.id:this.initialContainer},actionContext(){return{container:this.selectedContainer}},showContainerTabs(){return!this.restrictContainerNavigation&&Object.keys(this.containers).length>1},showAssetEditor(){return!!this.editedAssetId},canEdit(){return this.can("edit "+this.container.id+" assets")||this.can("configure asset containers")},canUpload(){return this.folder&&this.container.allow_uploads&&(this.can("upload "+this.container.id+" assets")||this.can("configure asset containers"))},canCreateFolders(){return this.folder&&this.container.create_folders&&!this.restrictFolderNavigation&&(this.can("upload "+this.container.id+" assets")||this.can("configure asset containers"))},parameters(){return{page:this.page,perPage:this.perPage,sort:this.sortColumn,order:this.sortDirection,search:this.searchQuery,queryScopes:this.queryScopes}},hasMaxFiles(){return this.maxFiles!==void 0&&this.maxFiles!==1/0},reachedSelectionLimit(){return this.selectedAssets.length>=this.maxFiles},hasSelections(){return this.selectedAssets.length>0},containerIsEmpty(){return this.assets.length===0&&this.folders.length===0&&(!this.folder||!this.folder.parent_path)},editedAssetBasename(){let M=_.find(this.assets,$=>$.id==this.editedAssetId);return M?M.basename:null},modeClass(){return"mode-"+this.mode}},mounted(){this.loadContainers()},created(){this.$events.$on("editor-action-started",this.actionStarted),this.$events.$on("editor-action-completed",this.actionCompleted)},destroyed(){this.$events.$off("editor-action-started",this.actionStarted),this.$events.$off("editor-action-completed",this.actionCompleted)},watch:{initialContainer(){this.container=this.initialContainer},container(M){this.initializing=!0,this.preferencesPrefix=`assets.${M.id}`,this.mode=this.getPreference("mode")||"table",this.setInitialPerPage(),this.loadAssets()},path(){this.loadAssets()},parameters(M,$){this.initializing||JSON.stringify($)===JSON.stringify(M)||this.loadAssets()},initializing(M,$){$&&this.autofocusSearch&&this.$nextTick(()=>this.$refs.search.focus())},loading(M){this.$progress.loading("asset-browser",M)},editedAssetId(M){let $=M?[this.path,this.editedAssetBasename].filter(I=>I!="/").join("/")+"/edit":this.path;this.$emit("navigated",this.container,$)},searchQuery(){this.page=1}},methods:{afterActionSuccessfullyCompleted(){this.loadAssets()},loadContainers(){this.$axios.get(cp_url("asset-containers")).then(M=>{this.containers=_.chain(M.data).indexBy("id").value(),this.container=this.containers[this.selectedContainer]})},loadAssets(){this.loading=!0;const M=this.searchQuery?cp_url(`assets/browse/search/${this.container.id}/${this.restrictFolderNavigation?this.path:""}`).replace(/\/$/,""):cp_url(`assets/browse/folders/${this.container.id}/${this.path||""}`).replace(/\/$/,"");this.$axios.get(M,{params:this.parameters}).then($=>{const I=$.data;this.assets=I.data.assets,this.meta=I.meta,this.searchQuery?(this.folder=null,this.folders=[]):(this.folder=I.data.folder,this.folders=I.data.folder.folders,this.actionUrl=I.links.asset_action,this.folderActionUrl=I.links.folder_action),this.loading=!1,this.initializing=!1}).catch($=>{this.$toast.error($.response.data.message,{action:null,duration:null}),this.assets=[],this.folders=[],this.loading=!1,this.initializing=!1})},selectFolder(M){this.path=M,this.page=1,this.$emit("navigated",this.container,this.path)},selectContainer(M){this.container=this.containers[M],this.path="/",this.page=1,this.$emit("navigated",this.container,this.path)},setMode(M){this.mode=M,this.setPreference("mode",M=="table"?null:M)},edit(M){this.editedAssetId=M},closeAssetEditor(){this.editedAssetId=null},assetSaved(){this.closeAssetEditor(),this.loadAssets()},assetDeleted(){this.closeAssetEditor(),this.loadAssets()},uploadsUpdated(M){this.uploads=M},uploadCompleted(M){this.autoselectUploads&&(this.sortColumn="last_modified",this.sortDirection="desc",this.selectedAssets.push(M.id),this.$emit("selections-updated",this.selectedAssets)),this.loadAssets(),this.$toast.success(__(":file uploaded",{file:M.basename}))},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},openFileBrowser(){this.$refs.uploader.browse()},folderCreated(M){this.folders.push(M),this.folders=_.sortBy(this.folders,"title"),this.creatingFolder=!1},sorted(M,$){this.sortColumn=M,this.sortDirection=$},isSelected(M){return this.selectedAssets.includes(M)},toggleSelection(M,$,I){const N=this.selectedAssets.indexOf(M);this.$refs.browser.focus(),N!=-1?this.selectedAssets.splice(N,1):this.reachedSelectionLimit||(I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.selectedAssets.push(M)),this.$emit("selections-updated",this.selectedAssets),this.lastItemClicked=$},folderActions(M){return M.actions||this.folder.actions||[]},selectRange(M,$){for(var I=M;I<=$;I++){let N=this.assets[I].id;!this.selectedAssets.includes(N)&&!this.reachedSelectionLimit&&this.selectedAssets.push(N),this.$emit("selections-updated",this.selectedAssets)}},shiftDown(){this.shifting=!0},clearShift(){this.shifting=!1}}};var _sfc_render$3H=function M(){var $=this,I=$._self._c;return I("div",{ref:"browser",staticClass:"min-h-screen",on:{keydown:function(N){return N.shiftKey?$.shiftDown.apply(null,arguments):null},keyup:$.clearShift}},[$.initializing?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("uploader",{ref:"uploader",attrs:{container:$.container.id,path:$.path,enabled:$.canUpload},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadCompleted,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"min-h-screen"},[I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 m-4",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop File to Upload")))])],1),$.showContainerTabs?I("div",{staticClass:"publish-tabs tabs rounded-none rounded-t mb-3 shadow-none"},$._l($.containers,function(B){return I("button",{key:B.id,staticClass:"tab-button",class:{active:B.id===$.container.id,"border-b border-gray-300":B.id!==$.container.id},domProps:{textContent:$._s($.__(B.title))},on:{click:function(j){return $.selectContainer(B.id)}}})}),0):$._e(),$.initializing?$._e():I("data-list",{attrs:{rows:$.assets,columns:$.columns,selections:$.selectedAssets,"max-selections":$.maxFiles,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"selections-updated":B=>$.$emit("selections-updated",B)},scopedSlots:$._u([{key:"default",fn:function({filteredRows:B}){return I("div",{class:$.modeClass},[I("div",{staticClass:"card overflow-hidden p-0",class:{"select-none":$.shifting}},[I("div",{staticClass:"relative w-full"},[I("div",{staticClass:"flex items-center justify-between p-2 text-sm"},[I("data-list-search",{ref:"search",staticClass:"h-8",model:{value:$.searchQuery,callback:function(j){$.searchQuery=j},expression:"searchQuery"}}),$.canCreateFolders?I("button",{staticClass:"btn btn-sm rtl:mr-3 ltr:ml-3",on:{click:function(j){$.creatingFolder=!0}}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"folder-add"}}),I("span",[$._v($._s($.__("Create Folder")))])],1):$._e(),$.canUpload?I("button",{staticClass:"btn btn-sm rtl:mr-3 ltr:ml-3",on:{click:$.openFileBrowser}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 text-current",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Upload")))])],1):$._e(),I("div",{staticClass:"btn-group rtl:mr-3 ltr:ml-3"},[I("button",{staticClass:"btn btn-sm",class:{active:$.mode==="grid"},on:{click:function(j){return $.setMode("grid")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-grid"}})],1),I("button",{staticClass:"btn btn-sm",class:{active:$.mode==="table"},on:{click:function(j){return $.setMode("table")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)])],1),$.restrictFolderNavigation?$._e():I("breadcrumbs",{attrs:{path:$.path},on:{navigated:$.selectFolder}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext,"show-always":$.mode==="grid"},on:{started:$.actionStarted,completed:$.actionCompleted}})],1),$.uploads.length?I("uploads",{staticClass:"-mt-px",attrs:{uploads:$.uploads}}):$._e(),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[$.mode==="table"&&!$.containerIsEmpty?I("data-list-table",{attrs:{"allow-bulk-actions":!0,loading:$.loading,rows:B,"toggle-selection-on-row-click":!0},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-basename",fn:function({row:j,checkboxId:U}){return[I("div",{staticClass:"flex items-center w-fit-content group"},[I("asset-thumbnail",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 cursor-pointer",attrs:{asset:j,square:!0},nativeOn:{click:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}}),I("label",{staticClass:"cursor-pointer select-none group-hover:text-blue normal-nums",attrs:{for:U},on:{click:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}},[$._v(" "+$._s(j.basename)+" ")])],1)]}},{key:"actions",fn:function({row:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__($.canEdit?"Edit":"View")},on:{click:function(U){return $.edit(j.id)}}}),j.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:j.id,url:$.actionUrl,actions:j.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)},[I("template",{slot:"tbody-start"},[$.folder&&$.folder.parent_path&&!$.restrictFolderNavigation?I("tr",[I("td"),I("td",{on:{click:function(j){return $.selectFolder($.folder.parent_path)}}},[I("a",{staticClass:"flex items-center cursor-pointer group"},[I("file-icon",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 inline-block text-blue-400 group-hover:text-blue",attrs:{extension:"folder"}}),$._v(" .. ")],1)]),I("td",{attrs:{colspan:$.columns.length}})]):$._e(),$._l($.folders,function(j,U){return!$.restrictFolderNavigation&&$.page===1?I("tr",{key:j.path},[I("td"),I("td",{on:{click:function(q){return $.selectFolder(j.path)}}},[I("a",{staticClass:"flex items-center cursor-pointer group"},[I("file-icon",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 inline-block text-blue-400 group-hover:text-blue",attrs:{extension:"folder"}}),$._v(" "+$._s(j.basename)+" ")],1)]),I("td"),I("td"),I("th",{staticClass:"actions-column",attrs:{colspan:$.columns.length}},[$.folderActions(j).length?I("dropdown-list",{attrs:{placement:"left-start"}},[I("data-list-inline-actions",{attrs:{item:j.path,url:$.folderActionUrl,actions:$.folderActions(j)},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()],1)]):$._e()})],2)],2):$._e()],1),$.mode==="grid"&&!$.containerIsEmpty?I("div",[I("div",{staticClass:"asset-grid-listing px-4 pt-2"},[$.folder&&$.folder.parent_path&&!$.restrictFolderNavigation?I("div",{staticClass:"asset-tile"},[I("div",{staticClass:"asset-thumb-container"},[I("button",{on:{click:function(j){return $.selectFolder($.folder.parent_path)}}},[I("div",{staticClass:"asset-thumb"},[I("file-icon",{staticClass:"w-full h-full text-blue-400 hover:text-blue",attrs:{extension:"folder"}})],1)])]),I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename text-center w-full px-2 py-1"},[$._v("..")])])]):$._e(),$._l($.folders,function(j,U){return $.restrictFolderNavigation?$._e():I("div",{key:j.path,staticClass:"asset-tile group relative"},[I("div",{staticClass:"asset-thumb-container"},[I("button",{on:{click:function(q){return $.selectFolder(j.path)}}},[I("div",{staticClass:"asset-thumb"},[I("file-icon",{staticClass:"w-full h-full text-blue-400 hover:text-blue",attrs:{extension:"folder"}})],1)])]),I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename text-center w-full px-2 py-1",attrs:{title:j.basename},domProps:{textContent:$._s(j.basename)}})]),$.folderActions(j).length?I("dropdown-list",{staticClass:"absolute top-1 rtl:left-2 ltr:right-2 opacity-0 group-hover:opacity-100",class:{"opacity-100":$.actionOpened===j.path},on:{opened:function(q){$.actionOpened=j.path},closed:function(q){$.actionOpened=null}}},[I("data-list-inline-actions",{attrs:{item:j.path,url:$.folderActionUrl,actions:$.folderActions(j)},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()],1)}),$._l($.assets,function(j,U){return I("button",{key:j.id,staticClass:"asset-tile outline-none group relative",class:{selected:$.isSelected(j.id)}},[I("div",{staticClass:"w-full",on:{click:function(q){return q.stopPropagation(),$.toggleSelection(j.id,U,q)},dblclick:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}},[I("div",{staticClass:"asset-thumb-container"},[I("div",{staticClass:"asset-thumb",class:{"bg-checkerboard":j.can_be_transparent}},[j.is_image?I("img",{class:{"p-4 h-full w-full":j.extension==="svg"},attrs:{src:j.thumbnail,loading:"lazy"}}):I("file-icon",{staticClass:"p-4 h-full w-full",attrs:{extension:j.extension}})],1)]),I("div",{staticClass:"asset-meta"},[I("div",{staticClass:"asset-filename px-2 py-1 text-center",attrs:{title:j.basename},domProps:{textContent:$._s(j.basename)}})])]),I("dropdown-list",{staticClass:"absolute top-1 rtl:left-2 ltr:right-2 opacity-0 group-hover:opacity-100",class:{"opacity-100":$.actionOpened===j.id},on:{opened:function(q){$.actionOpened=j.id},closed:function(q){$.actionOpened=null}}},[I("dropdown-item",{attrs:{text:$.__($.canEdit?"Edit":"View")},on:{click:function(q){return $.edit(j.id)}}}),j.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:j.id,url:$.actionUrl,actions:j.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)],1)})],2)]):$._e(),$.containerIsEmpty?I("div",{staticClass:"p-4 text-gray-700",domProps:{textContent:$._s($.searchQuery?$.__("No results"):$.__("This container is empty"))}}):$._e()],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage},on:{"page-selected":function(j){$.page=j},"per-page-changed":$.changePerPage}})],1)}}],null,!0)})],1)}}],null,!1,2237107607)}),$.showAssetEditor?I("asset-editor",{attrs:{id:$.editedAssetId,"read-only":!$.canEdit},on:{closed:$.closeAssetEditor,saved:$.assetSaved}}):$._e(),$.creatingFolder?I("create-folder",{attrs:{container:$.container,path:$.path},on:{closed:function(N){$.creatingFolder=!1},created:$.folderCreated}}):$._e()],1)},_sfc_staticRenderFns$3H=[],__component__$3I=normalizeComponent$3(_sfc_main$3H,_sfc_render$3H,_sfc_staticRenderFns$3H,!1,null,null,null,null);const Browser=__component__$3I.exports,_sfc_main$3G={computed:{count(){return this.$store.state.updates.count}},created(){this.registerVuexModule(),this.getCount()},methods:{registerVuexModule(){this.$store.state.updates||this.$store.registerModule("updates",{namespaced:!0,state:{count:0,requested:!1},mutations:{count:(M,$)=>M.count=$,requested:M=>M.requested=!0}})},getCount(){this.$store.state.updates.requested||(this.$axios.get(cp_url("updater/count")).then(M=>this.$store.commit("updates/count",isNaN(M.data)?0:M.data)),this.$store.commit("updates/requested"))}}};var _sfc_render$3G=function M(){var $=this,I=$._self._c;return $.count?I("span",{staticClass:"badge-sm bg-red-500"},[$._v(" "+$._s($.count)+" ")]):$._e()},_sfc_staticRenderFns$3G=[],__component__$3H=normalizeComponent$3(_sfc_main$3G,_sfc_render$3G,_sfc_staticRenderFns$3G,!1,null,null,null,null);const UpdatesBadge=__component__$3H.exports,_sfc_main$3F={model:{prop:"values",event:"updated"},props:{reference:{type:String},name:{type:String,required:!0},blueprint:{type:Object,default:()=>{}},values:{type:Object,default:()=>{}},meta:{type:Object,default:()=>{}},errors:{type:Object},site:{type:String},localizedFields:{type:Array},isRoot:{},trackDirtyState:{type:Boolean,default:!0}},data(){return{components:[]}},created(){this.registerVuexModule(),this.$events.$emit("publish-container-created",this)},destroyed(){this.removeVuexModule(),this.clearDirtyState(),this.$events.$emit("publish-container-destroyed",this)},provide(){return{storeName:this.name}},methods:{registerVuexModule(){const M=this,$={blueprint:_.clone(this.blueprint),values:_.clone(this.values),meta:_.clone(this.meta),localizedFields:_.clone(this.localizedFields),site:this.site,isRoot:this.isRoot,reference:this.reference};if(this.$store.state.hasOwnProperty("publish")&&this.$store.state.publish.hasOwnProperty(this.name)){this.$store.commit(`publish/${this.name}/initialize`,$);return}this.$store.registerModule(["publish",this.name],{namespaced:!0,state:{blueprint:$.blueprint,values:$.values,hiddenFields:{},jsonSubmittingFields:[],revealerFields:[],meta:$.meta,localizedFields:$.localizedFields,site:$.site,fieldLocks:{},errors:{},isRoot:$.isRoot,preloadedAssets:[],autosaveInterval:null,reference:$.reference},mutations:{setFieldValue(I,N){const{handle:B,value:j}=N;I.values[B]=j},setValues(I,N){I.values=N},setHiddenField(I,N){I.hiddenFields[N.dottedKey]={hidden:N.hidden,omitValue:N.omitValue}},setFieldSubmitsJson(I,N){I.jsonSubmittingFields.indexOf(N)===-1&&I.jsonSubmittingFields.push(N)},unsetFieldSubmitsJson(I,N){const B=I.jsonSubmittingFields.indexOf(N);B!==-1&&I.jsonSubmittingFields.splice(B,1)},setRevealerField(I,N){I.revealerFields.indexOf(N)===-1&&I.revealerFields.push(N)},unsetRevealerField(I,N){const B=I.revealerFields.indexOf(N);B!==-1&&I.revealerFields.splice(B,1)},setMeta(I,N){I.meta=N},setFieldMeta(I,N){const{handle:B,value:j}=N;I.meta[B]=j},setIsRoot(I,N){I.isRoot=N},setBlueprint(I,N){I.blueprint=N},setErrors(I,N){I.errors=N},setSite(I,N){I.site=N},setLocalizedFields(I,N){I.localizedFields=N},lockField(I,{handle:N,user:B}){Vue$3.set(I.fieldLocks,N,B||!0)},unlockField(I,N){Vue$3.delete(I.fieldLocks,N)},initialize(I,N){I.blueprint=N.blueprint,I.values=N.values,I.meta=N.meta,I.site=N.site},setPreloadedAssets(I,N){I.preloadedAssets=N},setAutosaveInterval(I,N){I.autosaveInterval&&clearInterval(I.autosaveInterval),I.autosaveInterval=N},clearAutosaveInterval(I){clearInterval(I.autosaveInterval)}},actions:{setFieldValue(I,N){I.commit("setFieldValue",N),M.emitUpdatedEvent(I.state.values)},setFieldMeta(I,N){I.commit("setFieldMeta",N)},setValues(I,N){I.commit("setValues",N),M.emitUpdatedEvent(I.state.values)},setMeta(I,N){I.commit("setMeta",N)}}})},removeVuexModule(){this.$store.unregisterModule(["publish",this.name])},emitUpdatedEvent(M){this.$emit("updated",M),this.dirty()},saving(){this.$events.$emit(`container.${this.name}.saving`)},saved(){this.clearDirtyState()},clearDirtyState(){this.$dirty.remove(this.name)},pushComponent(M,{props:$}){const I=new Component(uniqid$1(),M,$);return this.components.push(I),I},setFieldValue(M,$){this.$store.dispatch(`publish/${this.name}/setFieldValue`,{handle:M,value:$,user:Statamic.user.id})},setFieldMeta(M,$){this.$store.dispatch(`publish/${this.name}/setFieldMeta`,{handle:M,value:$,user:Statamic.user.id})},dirty(){this.trackDirtyState&&this.$dirty.add(this.name)}},watch:{values:{deep:!0,handler(M,$){_.isEqual($,M)||this.$store.commit(`publish/${this.name}/setValues`,M)}},meta:{deep:!0,handler(M,$){_.isEqual($,M)||this.$store.commit(`publish/${this.name}/setMeta`,M)}},isRoot(M){this.$store.commit(`publish/${this.name}/setIsRoot`,M)},blueprint:{deep:!0,handler(M){this.$store.commit(`publish/${this.name}/setBlueprint`,M)}},site(M){this.$store.commit(`publish/${this.name}/setSite`,M)},errors(M){this.$store.commit(`publish/${this.name}/setErrors`,M)},localizedFields(M){this.$store.commit(`publish/${this.name}/setLocalizedFields`,M)}},render(){return this.$scopedSlots.default({values:this.$store.state.publish[this.name].values,container:this._self,components:this.components,setFieldValue:this.setFieldValue,setFieldMeta:this.setFieldMeta})}},_sfc_render$3F=null,_sfc_staticRenderFns$3F=null;var __component__$3G=normalizeComponent$3(_sfc_main$3F,_sfc_render$3F,_sfc_staticRenderFns$3F,!1,null,null,null,null);const Container=__component__$3G.exports,_sfc_main$3E={props:{blueprint:{required:!0,type:Object},meta:{required:!0,type:Object},values:{required:!0,type:Object},title:{required:!0,type:String},name:{type:String,default:"base"},breadcrumbs:Array,action:String,method:{type:String,default:"post"},readOnly:{type:Boolean,default:!1}},data(){return{currentValues:this.values,error:null,errors:{},hasSidebar:this.blueprint.tabs.map(M=>M.handle).includes("sidebar")}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.action&&(this.saving=!0,this.clearErrors(),this.$axios[this.method](this.action,this.currentValues).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved(),this.$emit("saved",M)}).catch(M=>this.handleAxiosError(M)))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else{const $=data_get(M,"response.data.message");this.$toast.error($||M),console.log(M)}}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$3E=function M(){var $=this,I=$._self._c;return I("publish-container",{ref:"container",attrs:{name:$.name,blueprint:$.blueprint,reference:"collection",meta:$.meta,errors:$.errors},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return[I("div",[$.breadcrumbs?I("breadcrumbs",{attrs:{crumbs:$.breadcrumbs}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.title))]),$.action?I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))]):$._e()]),I("publish-tabs",{attrs:{"enable-sidebar":$.hasSidebar,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)]}}]),model:{value:$.currentValues,callback:function(N){$.currentValues=N},expression:"currentValues"}})},_sfc_staticRenderFns$3E=[],__component__$3F=normalizeComponent$3(_sfc_main$3E,_sfc_render$3E,_sfc_staticRenderFns$3E,!1,null,null,null,null);const PublishForm=__component__$3F.exports,_sfc_main$3D={};var _sfc_render$3D=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-fields @container"},[$._t("default")],2)},_sfc_staticRenderFns$3D=[],__component__$3E=normalizeComponent$3(_sfc_main$3D,_sfc_render$3D,_sfc_staticRenderFns$3D,!1,null,null,null,null);const FieldsContainer=__component__$3E.exports,_sfc_main$3C={props:{config:Object,initialValue:{},initialMeta:{}},data(){return{meta:this.initialMeta,value:this.initialValue,loading:!1}},computed:{isPreloadable(){return this.$config.get("preloadableFieldtypes").includes(this.config.type)}},render(M){return this.$scopedSlots.default({meta:this.meta,value:this.value,loading:this.loading})},created(){this.isPreloadable&&this.initialMeta===void 0&&this.load()},watch:{initialValue(M){this.value=M},initialMeta(M){this.meta=M}},methods:{load(){this.loading=!0;const M={config:utf8btoa(JSON.stringify(this.config)),value:this.value};this.$axios.get(cp_url("fields/field-meta"),{params:M}).then($=>{this.meta=$.data.meta,this.value=$.data.value,this.loading=!1})}}},_sfc_render$3C=null,_sfc_staticRenderFns$3C=null;var __component__$3D=normalizeComponent$3(_sfc_main$3C,_sfc_render$3C,_sfc_staticRenderFns$3C,!1,null,null,null,null);const FieldMeta=__component__$3D.exports,_sfc_main$3B={inject:["storeName"],props:{readOnly:Boolean,syncable:Boolean},data(){return{active:this.$store.state.publish[this.storeName].blueprint.tabs[0].handle,containerWidth:null}},computed:{state(){return this.$store.state.publish[this.storeName]},tabs(){return this.state.blueprint.tabs},mainTabs(){return this.shouldShowSidebar?(this.active==="sidebar"&&(this.active=this.state.blueprint.tabs[0].handle),_.filter(this.tabs,M=>M.handle!="sidebar")):this.tabs},actionsPortal(){return`publish-actions-${this.storeName}`}}};var _sfc_render$3B=function M(){var $=this,I=$._self._c;return I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",[$._l($.mainTabs,function(N){return I("div",{key:N.handle},[I("div",{staticClass:"mb-2 content"},[I("h2",{staticClass:"text-base",domProps:{textContent:$._s(N.display)}}),I("p",{domProps:{innerHTML:$._s(N.instructions)}})]),I("div",{},[I("publish-sections",{attrs:{sections:N.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(B,j)=>$.$emit("updated",B,j),"meta-updated":(B,j)=>$.$emit("meta-updated",B,j),synced:function(B){return $.$emit("synced",B)},desynced:function(B){return $.$emit("desynced",B)},focus:function(B){return $.$emit("focus",B)},blur:function(B){return $.$emit("blur",B)}}})],1)])}),I("portal-target",{staticClass:"publish-tab publish-tab-actions-footer",attrs:{name:$.actionsPortal}})],2)])},_sfc_staticRenderFns$3B=[],__component__$3C=normalizeComponent$3(_sfc_main$3B,_sfc_render$3B,_sfc_staticRenderFns$3B,!1,null,null,null,null);const ConfigureTabs=__component__$3C.exports,_sfc_main$3A={inject:["storeName"],mixins:[ValidatesFieldConditions],props:{readOnly:Boolean,syncable:Boolean,enableSidebar:{type:Boolean,default:!0}},data(){return{active:this.$store.state.publish[this.storeName].blueprint.tabs[0].handle,layoutReady:!1,shouldShowSidebar:!1,hiddenTabs:[],tabsAreScrolled:!1,canScrollLeft:!1,canScrollRight:!1}},computed:{state(){return this.$store.state.publish[this.storeName]},tabs(){return this.state.blueprint.tabs.filter(M=>this.tabHasVisibleFields(M))},inStack(){return this.actionsPortal!=="publish-actions-base"},mainTabs(){return this.layoutReady&&!this.shouldShowSidebar?this.tabs:this.tabs.filter(M=>M.handle!=="sidebar")},sidebarTab(){return this.tabs.find(M=>M.handle==="sidebar")},numberOfTabs(){return this.mainTabs.length},showTabs(){return this.layoutReady&&this.numberOfTabs>1},showHiddenTabsDropdown(){return this.hiddenTabs.length>0},errors(){return this.state.errors},tabsWithErrors(){let M={};Object.values(this.tabs).forEach(I=>{I.sections.forEach(N=>{N.fields.forEach(B=>{M[B.handle]=I.handle})})});let $=Object.keys(this.errors).map(I=>I.split(".")[0]).filter(I=>M[I]).map(I=>M[I]);return uniq($)},actionsPortal(){return`publish-actions-${this.storeName}`},values(){return this.state.values}},beforeUpdate(){this.shouldShowSidebar&&this.active==="sidebar"&&(this.active=this.tabAt(0))},watch:{layoutReady(M){M&&this.$nextTick(()=>this.setActiveTabFromHash())}},methods:{tabHasError(M){return this.tabsWithErrors.includes(M)},tabHasVisibleFields(M){let $=0;return M.sections.forEach(I=>{I.fields.forEach(N=>{this.showField(N)&&$++})}),$>0},setActive(M){this.active=M,this.inStack||(window.location.hash=M);const $=this.getTabNode(M);if(!$){console.error(`Tab '${M}' not found`);return}this.scrollTabIntoView($),$.focus(),this.$events.$emit("tab-switched",M)},isActive(M){return M===this.active},tabIndex(M){return this.mainTabs.findIndex($=>$.handle===(M||this.active))},tabAt(M){const $=this.mainTabs[M];return $?$.handle:void 0},setActiveTabFromHash(){if(this.inStack||window.location.hash.length===0)return;const M=window.location.hash.substr(1);this.tabIndex(M)>=0?this.setActive(M):window.location.hash=""},activateNextTab(){this.activateTabAt((this.tabIndex()+1)%this.numberOfTabs)},activatePreviousTab(){this.activateTabAt((this.tabIndex()-1+this.numberOfTabs)%this.numberOfTabs)},activateFirstTab(){this.activateTabAt(0)},activateLastTab(){this.activateTabAt(this.numberOfTabs-1)},activateTabAt(M){this.setActive(this.tabAt(M))},tabId(M){return`${this.pascalCase(M)}Tab`},tabPanelId(M){return`${this.pascalCase(M)}TabPanel`},pascalCase(M){return M.split("_").map($=>$.slice(0,1).toUpperCase()+$.slice(1)).join("")},getTabNode(M){return this.$refs.tabs.childNodes[this.tabIndex(M)]},scrollTabs(M){this.$refs.tabs&&(this.$refs.tabs.scrollLeft+=M.deltaY,this.updateHiddenTabs())},scrollTabIntoView(M){if(typeof M=="string"&&(M=this.getTabNode(M)),!M){console.error(`Tab '${M}' not found`);return}const $=this.tabIsOutsideView(M);if(!$)return;const I=20;$==="left"?this.$refs.tabs.scrollLeft=M.offsetLeft-I:this.$refs.tabs.scrollLeft=M.offsetLeft+M.offsetWidth-this.$refs.tabs.clientWidth+I+8,this.updateHiddenTabs()},updateScrollHints(){this.canScrollLeft=this.$refs.tabs&&this.$refs.tabs.scrollLeft>0,this.canScrollRight=this.$refs.tabs&&this.$refs.tabs.scrollLeft<this.$refs.tabs.scrollWidth-this.$refs.tabs.clientWidth},containerWasResized(M){const{width:$}=M;this.layoutReady=$!==null,this.shouldShowSidebar=this.enableSidebar&&$>920,this.layoutReady&&this.$nextTick(()=>{this.updateScrollHints(),this.updateHiddenTabs()})},updateHiddenTabs(){if(!this.$refs.tabs)return;const M=[];this.$refs.tabs.childNodes.forEach(($,I)=>{this.tabIsOutsideView($,20)&&M.push(I)}),JSON.stringify(M)!==JSON.stringify(this.hiddenTabs)&&(this.hiddenTabs=M)},tabIsOutsideView(M,$=0){const I=this.$refs.tabs.getBoundingClientRect(),N=M.getBoundingClientRect();return I.left-N.left>$?"left":N.right-I.right>$?"right":!1},shouldShowInDropdown(M){return this.hiddenTabs.includes(M)}}};var _sfc_render$3A=function M(){var $=this,I=$._self._c;return I("element-container",{on:{resized:$.containerWasResized}},[I("div",[$.showTabs?I("div",{staticClass:"tabs-container flex items-center"},[I("div",{ref:"tabs",staticClass:"publish-tabs tabs",class:{"tabs-scrolled":$.canScrollLeft},attrs:{role:"tablist","aria-label":$.__("Edit Content")},on:{keydown:[function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-left",void 0,N.key,void 0)?null:(N.preventDefault(),$.activatePreviousTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-right",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateNextTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-up",void 0,N.key,void 0)?null:(N.preventDefault(),$.activatePreviousTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-down",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateNextTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"home",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateFirstTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"end",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateLastTab.apply(null,arguments))}],mousewheel:function(N){return N.preventDefault(),$.scrollTabs.apply(null,arguments)},scroll:$.updateScrollHints}},$._l($.mainTabs,function(N){return I("button",{key:N.handle,ref:N.handle+"-tab",refInFor:!0,staticClass:"tab-button",class:{active:$.isActive(N.handle),"has-error":$.tabHasError(N.handle)},attrs:{role:"tab",id:$.tabId(N.handle),"aria-controls":$.tabPanelId(N.handle),"aria-selected":$.isActive(N.handle),tabindex:$.isActive(N.handle)?0:-1},domProps:{textContent:$._s($.__(N.display||`${N.handle[0].toUpperCase()}${N.handle.slice(1)}`))},on:{click:function(B){return $.setActive(N.handle)}}})}),0),$.canScrollLeft?I("div",{staticClass:"fade-left"}):$._e(),$.canScrollRight?I("div",{staticClass:"fade-right",class:{"mr-8":$.showHiddenTabsDropdown}}):$._e(),$.showHiddenTabsDropdown?I("dropdown-list",{staticClass:"rtl:mr-2 ltr:ml-2"},$._l($.mainTabs,function(N,B){return I("dropdown-item",{directives:[{name:"show",rawName:"v-show",value:$.shouldShowInDropdown(B),expression:"shouldShowInDropdown(index)"}],key:N.handle,attrs:{text:$.__(N.display||`${N.handle[0].toUpperCase()}${N.handle.slice(1)}`)},on:{click:function(j){return j.preventDefault(),$.setActive(N.handle)}}})}),1):$._e()],1):$._e(),I("div",{staticClass:"publish-tab-outer"},[I("div",{ref:"publishTabWrapper",staticClass:"publish-tab-wrapper w-full min-w-0"},$._l($.mainTabs,function(N){return I("div",{directives:[{name:"show",rawName:"v-show",value:$.isActive(N.handle),expression:"isActive(tab.handle)"}],key:N.handle,staticClass:"publish-tab tab-panel w-full",class:$.showTabs,attrs:{role:$.showTabs&&"tabpanel",id:$.showTabs&&$.tabPanelId(N.handle),"aria-labelledby":$.showTabs&&$.tabId(N.handle),"data-tab-handle":N.handle,tabindex:"0"}},[I("publish-sections",{attrs:{sections:N.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(B,j)=>$.$emit("updated",B,j),"meta-updated":(B,j)=>$.$emit("meta-updated",B,j),synced:function(B){return $.$emit("synced",B)},desynced:function(B){return $.$emit("desynced",B)},focus:function(B){return $.$emit("focus",B)},blur:function(B){return $.$emit("blur",B)}}})],1)}),0),I("div",{class:{"publish-sidebar":$.shouldShowSidebar}},[I("div",{staticClass:"publish-tab"},[I("div",{staticClass:"publish-tab-actions",class:{"as-sidebar":$.shouldShowSidebar}},[I("v-portal",{attrs:{to:$.actionsPortal,disabled:$.shouldShowSidebar}},[$._t("actions",null,{shouldShowSidebar:$.shouldShowSidebar})],2)],1),$.layoutReady&&$.shouldShowSidebar&&$.sidebarTab?I("publish-sections",{attrs:{sections:$.sidebarTab.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(N,B)=>$.$emit("updated",N,B),"meta-updated":(N,B)=>$.$emit("meta-updated",N,B),synced:function(N){return $.$emit("synced",N)},desynced:function(N){return $.$emit("desynced",N)},focus:function(N){return $.$emit("focus",N)},blur:function(N){return $.$emit("blur",N)}}}):$._e()],1)])]),I("portal-target",{staticClass:"publish-tab publish-tab-actions-footer",attrs:{name:$.actionsPortal}})],1)])},_sfc_staticRenderFns$3A=[],__component__$3B=normalizeComponent$3(_sfc_main$3A,_sfc_render$3A,_sfc_staticRenderFns$3A,!1,null,null,null,null);const PublishTabs=__component__$3B.exports,_sfc_main$3z={mixins:[ValidatesFieldConditions],props:{sections:{type:Array,required:!0},readOnly:Boolean,syncable:Boolean,syncableFields:Array,namePrefix:String},computed:{state(){return this.$store.state.publish[this.storeName]},values(){return this.state.values},visibleSections(){return this.sections.filter(M=>this.sectionHasVisibleFields(M))}},methods:{sectionHasVisibleFields(M){let $=0;return M.fields.forEach(I=>{this.showField(I)&&$++}),$>0}}};var _sfc_render$3z=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-sections"},$._l($.visibleSections,function(N,B){return I("div",{key:B,staticClass:"publish-sections-section"},[I("div",{staticClass:"p-0 card"},[N.display?I("header",{staticClass:"publish-section-header @container"},[I("div",{staticClass:"publish-section-header-inner"},[I("label",{staticClass:"text-base font-semibold",domProps:{textContent:$._s($.__(N.display))}}),N.instructions?I("div",{staticClass:"help-block"},[I("p",{domProps:{innerHTML:$._s($.$options.filters.markdown($.__(N.instructions)))}})]):$._e()])]):$._e(),I("publish-fields",{attrs:{fields:N.fields,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(j,U)=>$.$emit("updated",j,U),"meta-updated":(j,U)=>$.$emit("meta-updated",j,U),synced:function(j){return $.$emit("synced",j)},desynced:function(j){return $.$emit("desynced",j)},focus:function(j){return $.$emit("focus",j)},blur:function(j){return $.$emit("blur",j)}}})],1)])}),0)},_sfc_staticRenderFns$3z=[],__component__$3A=normalizeComponent$3(_sfc_main$3z,_sfc_render$3z,_sfc_staticRenderFns$3z,!1,null,null,null,null);const PublishSections=__component__$3A.exports,_sfc_main$3y={inject:["storeName"],computed:{errors(){return this.$store.state.publish[this.storeName].errors}}};var _sfc_render$3y=function M(){var $=this,I=$._self._c;return I("validation-errors",{attrs:{errors:$.errors}})},_sfc_staticRenderFns$3y=[],__component__$3z=normalizeComponent$3(_sfc_main$3y,_sfc_render$3y,_sfc_staticRenderFns$3y,!1,null,null,null,null);const PublishValidationErrors=__component__$3z.exports,_sfc_main$3x={components:{PublishField},props:{value:{},fieldtype:{type:String,default:"text"},handle:{type:String,required:!0},display:{type:String,required:!0},instructions:{type:String},width:{default:100},focus:{type:Boolean},autoselect:{type:Boolean},errors:{type:Array},error:{type:String},config:{type:Object}},computed:{fieldConfig(){return{...this.config,type:this.fieldtype,handle:this.handle,display:this.display,instructions:this.instructions,width:this.width,focus:this.focus,autoselect:this.autoselect}},fieldErrors(){return this.error?[this.error]:this.errors}}};var _sfc_render$3x=function M(){var $=this,I=$._self._c;return I("publish-field",{attrs:{config:$.fieldConfig,value:$.value,errors:$.fieldErrors},on:{input:function(N){return $.$emit("input",N)}}})},_sfc_staticRenderFns$3x=[],__component__$3y=normalizeComponent$3(_sfc_main$3x,_sfc_render$3x,_sfc_staticRenderFns$3x,!1,null,null,null,null);const FormGroup=__component__$3y.exports,_sfc_main$3w={props:{variables:Object},provide(){return this.variables},render(){return this.$scopedSlots.default({})}},_sfc_render$3w=null,_sfc_staticRenderFns$3w=null;var __component__$3x=normalizeComponent$3(_sfc_main$3w,_sfc_render$3w,_sfc_staticRenderFns$3w,!1,null,null,null,null);const Provider=__component__$3x.exports,_sfc_main$3v={methods:{resizeStart(){this.$emit("resize-start"),window.addEventListener("mousemove",this.resizing),window.addEventListener("mouseup",this.resizeEnd)},resizeEnd(){this.$emit("resize-end"),window.removeEventListener("mousemove",this.resizing,!1),window.removeEventListener("mouseup",this.resizeEnd,!1)},resizing(M){M.preventDefault();let $=M.clientX;if($<16)return this.$emit("collapsed");$=$<350?350:$,this.$emit("resized",$)}}};var _sfc_render$3v=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"live-preview-resizer",on:{mousedown:$.resizeStart}})},_sfc_staticRenderFns$3v=[],__component__$3w=normalizeComponent$3(_sfc_main$3v,_sfc_render$3v,_sfc_staticRenderFns$3v,!1,null,null,null,null);const Resizer=__component__$3w.exports,hasIframeSourceChanged=(M,$)=>(M=new URL(M),$=new URL($),M.searchParams.delete("live-preview"),$.searchParams.delete("live-preview"),M.toString()!==$.toString()),postMessageToIframe=(M,$,I)=>{var B;const N=/^https?:\/\//.test($)?(B=new URL($))==null?void 0:B.origin:window.origin;M.firstChild.contentWindow.postMessage({name:"statamic.preview.updated",url:$,...I},N)},UpdatesIframe={data(){return{previousUrl:null}},methods:{updateIframeContents(M,$,I){const N=document.createElement("iframe");N.setAttribute("frameborder","0"),N.setAttribute("src",M),N.setAttribute("id","live-preview-iframe"),this.setIframeAttributes(N);const B=this.$refs.contents;let j=new URL(M),U=j.host+j.pathname;if(!B.firstChild){B.appendChild(N),this.previousUrl=U;return}let q=$.refresh;if(hasIframeSourceChanged(B.firstChild.src,N.src)&&(q=!0),!q){postMessageToIframe(B,M,I);return}let K=(M.startsWith("/")||j.host===window.location.host)&&U===this.previousUrl,G=K?[B.firstChild.contentWindow.scrollX??0,B.firstChild.contentWindow.scrollY??0]:null;if(B.replaceChild(N,B.firstChild),K){let J=N.contentWindow;const Z=ee=>{J.scrollTo(...G)};J.addEventListener("DOMContentLoaded",Z,!0),J.addEventListener("load",Z,!0)}this.previousUrl=U},setIframeAttributes(M){}}};let source$3;const widthLocalStorageKey="statamic.live-preview.editor-width",_sfc_main$3u={mixins:[UpdatesIframe],components:{Provider,Resizer},props:{url:String,previewing:Boolean,targets:Array,values:Object,name:String,blueprint:String,reference:String},data(){return{portalEnabled:!1,panesVisible:!1,headerVisible:!1,editorWidth:null,editorResizing:!1,editorCollapsed:!1,previewDevice:null,provides:{storeName:this.name},channel:null,poppedOut:!1,popoutWindow:null,popoutResponded:!1,loading:!0,extras:{},keybinding:null,token:null,target:0,previousUrl:null}},computed:{payload(){return{blueprint:this.blueprint,preview:this.values,extras:this.extras}},targetSelectOptions(){return Object.values(_.mapObject(this.targets,(M,$)=>({value:$,label:__(M.label)})))},deviceSelectOptions(){let M=Object.values(_.mapObject(this.$config.get("livePreview.devices"),($,I)=>({value:I,label:__(I)})));return M.unshift({value:null,label:__("Responsive")}),M},previewDeviceWidth(){if(this.previewDevice)return`${this.$config.get("livePreview.devices")[this.previewDevice].width}px`},previewDeviceHeight(){if(this.previewDevice)return`${this.$config.get("livePreview.devices")[this.previewDevice].height}px`},inputs(){return this.$config.get("livePreview.inputs",{})},livePreviewFieldsPortal(){return`live-preview-fields-${this.storeName}`},canPopOut(){return typeof BroadcastChannel=="function"},tokenizedUrl(){let M=this.url;return M+=(M.includes("?")?"&":"?")+`target=${this.target}`,this.token&&(M+=`&token=${this.token}`),M}},watch:{previewing(M,$){$&&!M?this.$nextTick(()=>this.portalEnabled=!1):this.portalEnabled=M,M&&(this.update(),this.animateIn())},payload:{deep:!0,handler(M){this.previewing&&this.update()}},target(){this.update()},previewDevice(){this.setIframeAttributes(document.getElementById("live-preview-iframe"))}},created(){this.editorWidth=localStorage.getItem(widthLocalStorageKey)||400,this.keybinding=this.$keys.bindGlobal("mod+shift+p",()=>{this.previewing?this.close():this.$emit("opened-via-keyboard")}),this.$events.$on(`live-preview.${this.name}.refresh`,()=>{this.update()})},beforeDestroy(){this.closePopout()},destroyed(){this.keybinding.destroy()},methods:{update:_.debounce(function(){source$3&&source$3.cancel(),source$3=this.$axios.CancelToken.source(),this.loading=!0,this.$axios.post(this.tokenizedUrl,this.payload,{cancelToken:source$3.token}).then(M=>{this.token=M.data.token;const $=M.data.url,I=this.targets[this.target],N={token:this.token,reference:this.reference};this.poppedOut?this.channel.postMessage({event:"updated",url:$,target:I,payload:N}):this.updateIframeContents($,I,N),this.loading=!1}).catch(M=>{if(!this.$axios.isCancel(M))throw M})},150),setIframeAttributes(M){M.setAttribute("frameborder","0"),M.setAttribute("class",this.previewDevice?"device":"responsive"),this.previewDevice?M.setAttribute("style",`width: ${this.previewDeviceWidth}; height: ${this.previewDeviceHeight}`):M.removeAttribute("style")},close(){this.poppedOut&&this.closePopout(),this.animateOut().then(()=>this.$emit("closed"))},animateIn(){return this.$wait(100).then(()=>(this.headerVisible=!0,this.$wait(200))).then(()=>(this.panesVisible=!0,this.$wait(300))).then(()=>{window.dispatchEvent(new Event("resize"))})},animateOut(){return this.panesVisible=!1,this.headerVisible=!1,this.$wait(300)},setEditorWidth(M){this.editorCollapsed=!1,this.editorWidth=M,localStorage.setItem(widthLocalStorageKey,M)},collapseEditor(){this.editorCollapsed=!0,this.editorWidth=16},popout(){this.poppedOut=!0,this.channel=this.channel||new BroadcastChannel("livepreview"),this.channel.onmessage=N=>{switch(N.data.event){case"popout.opened":this.listenForPopoutClose(),this.update();break;case"popout.closed":this.poppedOut=!1,this.update();case"popout.pong":this.popoutResponded=!0;break}};const M=this.$refs.contents.clientWidth,$=this.$refs.contents.clientHeight,I=screen.width-M;this.popoutWindow=window.open(this.url,"livepreview",`width=${M},height=${$},top=0,left=${I}`)},closePopout(){this.poppedOut&&this.popoutWindow.close()},listenForPopoutClose(){this.channel.postMessage({event:"ping"}),setTimeout(()=>{this.popoutResponded?this.listenForPopoutClose():(this.poppedOut=!1,this.update()),this.popoutResponded=!1},500)},componentUpdated(M,$){Vue$3.set(this.extras,M,$)}}};var _sfc_render$3u=function M(){var $=this,I=$._self._c;return I("div",[I("v-portal",{attrs:{to:$.livePreviewFieldsPortal,disabled:!$.portalEnabled}},[I("provider",{attrs:{variables:$.provides}},[$._t("default")],2)],1),$.previewing?I("portal",{attrs:{name:"live-preview","target-class":"live-preview-portal"}},[I("div",{staticClass:"live-preview fixed flex flex-col"},[I("transition",{attrs:{name:"live-preview-header-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.headerVisible,expression:"headerVisible"}],staticClass:"live-preview-header"},[I("div",{staticClass:"text-base text-gray-700 font-medium rtl:ml-4 ltr:mr-4"},[$._v($._s($.__("Live Preview")))]),I("div",{staticClass:"flex items-center"},[$.canPopOut&&!$.poppedOut?I("button",{staticClass:"btn",on:{click:$.popout}},[$._v($._s($.__("Pop out")))]):$._e(),$.poppedOut?I("button",{staticClass:"btn",on:{click:$.closePopout}},[$._v($._s($.__("Pop in")))]):$._e(),I("select-input",{directives:[{name:"show",rawName:"v-show",value:!$.poppedOut,expression:"!poppedOut"}],staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.deviceSelectOptions},model:{value:$.previewDevice,callback:function(N){$.previewDevice=N},expression:"previewDevice"}}),$.targets.length>1?I("select-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.targetSelectOptions},model:{value:$.target,callback:function(N){$.target=N},expression:"target"}}):$._e(),$._l($.inputs,function(N,B){return I(N,{key:B,tag:"component",staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.extras[B],loading:$.loading},on:{input:function(j){return $.componentUpdated(B,j)}}})}),$._t("buttons"),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.close}})],2)])]),I("div",{staticClass:"live-preview-main"},[I("transition",{attrs:{name:"live-preview-editor-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.panesVisible,expression:"panesVisible"}],staticClass:"live-preview-editor @container/live-preview",style:{width:$.poppedOut?"100%":`${$.editorWidth}px`}},[I("div",{staticClass:"live-preview-fields flex-1 h-full overflow-scroll"},[I("portal-target",{attrs:{name:$.livePreviewFieldsPortal}})],1),I("resizer",{directives:[{name:"show",rawName:"v-show",value:!$.poppedOut,expression:"!poppedOut"}],on:{resized:$.setEditorWidth,"resize-start":function(N){$.editorResizing=!0},"resize-end":function(N){$.editorResizing=!1},collapsed:$.collapseEditor}})],1)]),I("transition",{attrs:{name:"live-preview-contents-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.panesVisible,expression:"panesVisible"}],ref:"contents",staticClass:"live-preview-contents items-center justify-center overflow-auto",class:{"pointer-events-none":$.editorResizing}})])],1)],1)]):$._e()],1)},_sfc_staticRenderFns$3u=[],__component__$3v=normalizeComponent$3(_sfc_main$3u,_sfc_render$3u,_sfc_staticRenderFns$3u,!1,null,null,null,null);const LivePreview=__component__$3v.exports,_sfc_main$3t={mixins:[UpdatesIframe],data(){return{channel:null}},created(){this.channel=new BroadcastChannel("livepreview"),this.channel.onmessage=M=>{switch(M.data.event){case"updated":this.updateIframeContents(M.data.url,M.data.target,M.data.payload);break;case"ping":this.channel.postMessage({event:"popout.pong"});break}},this.channel.postMessage({event:"popout.opened"})},methods:{setIframeAttributes(M){M.setAttribute("class","min-h-screen")}}};var _sfc_render$3t=function M(){var $=this,I=$._self._c;return I("div",{ref:"contents",staticClass:"live-preview-contents min-h-screen"})},_sfc_staticRenderFns$3t=[],__component__$3u=normalizeComponent$3(_sfc_main$3t,_sfc_render$3t,_sfc_staticRenderFns$3t,!1,null,null,null,null);const Popout=__component__$3u.exports,_sfc_main$3s={props:{actions:Object,published:Boolean,collection:String,reference:String,publishContainer:String,canManagePublishState:Boolean},data(){return{action:this.canManagePublishState?"publish":"revision",revisionMessage:null,saving:!1}},computed:{options(){const M=[];return this.canManagePublishState&&(M.push({value:"publish",label:__("Publish Now")}),this.published&&M.push({value:"unpublish",label:__("Unpublish")})),M.push({value:"revision",label:__("Create Revision")}),M},actionInfoText(){switch(this.action){case"publish":return __("messages.publish_actions_publish");case"schedule":return __("messages.publish_actions_schedule");case"unpublish":return __("messages.publish_actions_unpublish");case"revision":return __("messages.publish_actions_create_revision")}},submitButtonText(){return _.findWhere(this.options,{value:this.action}).label}},methods:{submit(){this.saving=!0,this.$emit("saving");const M="submit"+this.action.charAt(0).toUpperCase()+this.action.substring(1);this[M]()},submitPublish(){this.runBeforePublishHook()},runBeforePublishHook(){Statamic.$hooks.run("entry.publishing",{collection:this.collection,message:this.revisionMessage,storeName:this.publishContainer}).then(this.performPublishRequest).catch(M=>{this.saving=!1,this.$toast.error(M||__("Something went wrong"))})},performPublishRequest(){const M={message:this.revisionMessage};this.$axios.post(this.actions.publish,M).then($=>{this.saving=!1,this.$toast.success(__("Published")),this.runAfterPublishHook($)}).catch($=>this.handleAxiosError($))},runAfterPublishHook(M){Statamic.$hooks.run("entry.published",{collection:this.collection,reference:this.reference,message:this.revisionMessage,response:M}).then(()=>{this.revisionMessage=null,this.$emit("saved",{published:!0,isWorkingCopy:!1,response:M})}).catch($=>{})},submitSchedule(){},submitUnpublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.unpublish,{data:M}).then($=>{this.$toast.success(__("Unpublished")),this.revisionMessage=null,this.$emit("saved",{published:!1,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitRevision(){const M={message:this.revisionMessage};this.$axios.post(this.actions.createRevision,M).then($=>{this.$toast.success(__("Revision created")),this.revisionMessage=null,this.$emit("saved",{isWorkingCopy:!0,response:$})}).catch($=>this.handleAxiosError($))},handleAxiosError(M){this.saving=!1,this.$toast.error(M||__("Something went wrong"))}}};var _sfc_render$3s=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"publish-options"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-6 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Publish"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[$.saving?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic",{attrs:{text:""}})],1):[I("select-input",{staticClass:"mb-6",attrs:{options:$.options},model:{value:$.action,callback:function(B){$.action=B},expression:"action"}}),$.action?I("div",[$.action=="schedule"?I("date-fieldtype",{staticClass:"mb-6",attrs:{name:"publishTime",value:$.publishTime}}):$._e(),I("textarea-input",{staticClass:"mb-6 text-sm",attrs:{placeholder:$.__("Notes about this revision"),focus:!0},on:{keydown:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.submit.apply(null,arguments)}},model:{value:$.revisionMessage,callback:function(B){$.revisionMessage=B},expression:"revisionMessage"}}),I("button",{staticClass:"btn-primary w-full mb-6",domProps:{textContent:$._s($.submitButtonText)},on:{click:$.submit}}),I("div",{staticClass:"text-gray text-xs flex mb-6"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.actionInfoText)}})]),$.action==="schedule"?I("div",{staticClass:"text-gray text-xs flex mb-6 text-red-500"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.__("messages.publish_actions_current_becomes_draft_because_scheduled"))}})]):$._e()],1):$._e()]],2)])}}])})},_sfc_staticRenderFns$3s=[],__component__$3t=normalizeComponent$3(_sfc_main$3s,_sfc_render$3s,_sfc_staticRenderFns$3s,!1,null,null,null,null);const PublishActions$1=__component__$3t.exports,SaveButtonOptions_vue_vue_type_style_index_0_lang="",_sfc_main$3r={props:{showOptions:{type:Boolean,default:!0},buttonClass:{default:"btn-primary"},preferencesPrefix:{type:String,required:!0}},data(){return{currentOption:null}},computed:{options(){return{options:{listing:__("Go To Listing"),continue_editing:__("Continue Editing"),create_another:__("Create Another")}}},buttonIcon(){switch(!0){case this.currentOption==="listing":return{name:"micro/arrow-go-back",class:"w-3"};case this.currentOption==="continue_editing":return{name:"micro/chevron-down-xs",class:"w-2"};case this.currentOption==="create_another":return{name:"micro/add-circle",class:"w-3"}}},preferencesKey(){return`${this.preferencesPrefix}.after_save`}},mounted(){this.setInitialValue(),this.$watch("currentOption",M=>this.setPreference(M))},methods:{setInitialValue(){this.currentOption=this.$preferences.get(this.preferencesKey)||"listing"},setPreference(M){M!==this.$preferences.get(this.preferencesKey)&&(M==="listing"?this.$preferences.remove(this.preferencesKey):this.$preferences.set(this.preferencesKey,M))}}};var _sfc_render$3r=function M(){var $=this,I=$._self._c;return I("div",{class:{"btn-group":$.showOptions}},[$._t("default"),$.showOptions?I("dropdown-list",{staticClass:"rtl:text-right ltr:text-left",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"rtl:rounded-r-none ltr:rounded-l-none",class:$.buttonClass},[$.buttonIcon?I("svg-icon",{class:$.buttonIcon.class,attrs:{name:$.buttonIcon.name}}):$._e()],1)]},proxy:!0}],null,!1,1229956584)},[I("h6",{staticClass:"p-2",domProps:{textContent:$._s($.__("After Saving"))}}),I("div",{staticClass:"publish-fields px-2"},[I("div",{staticClass:"publish-field save-and-continue-options"},[I("radio-fieldtype",{attrs:{handle:"save_and_continue_options",config:$.options},model:{value:$.currentOption,callback:function(N){$.currentOption=N},expression:"currentOption"}})],1)])]):$._e()],2)},_sfc_staticRenderFns$3r=[],__component__$3s=normalizeComponent$3(_sfc_main$3r,_sfc_render$3r,_sfc_staticRenderFns$3r,!1,null,null,null,null);const SaveButtonOptions=__component__$3s.exports,_sfc_main$3q={props:{revision:Object,url:String,reference:String},data(){return{confirming:!1}},methods:{restore(){const M={revision:this.revision.date};this.$axios.post(this.url,M).then($=>{Statamic.$hooks.run("revision.restored",{reference:this.reference}).then(()=>{this.$dirty.disableWarning(),window.location.reload()})})}}};var _sfc_render$3q=function M(){var $=this,I=$._self._c;return I("div",[I("button",{staticClass:"btn",domProps:{textContent:$._s($.__("Restore"))},on:{click:function(N){$.confirming=!0}}}),$.confirming?I("confirmation-modal",{attrs:{title:$.__("Restore Revision"),buttonText:$.__("Restore")},on:{confirm:$.restore,cancel:function(N){$.confirming=!1}}},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to restore this revision?"))}}),I("p",{staticClass:"mb-6",domProps:{textContent:$._s($.__("Your working copy will be replaced by the contents of this revision."))}})]):$._e()],1)},_sfc_staticRenderFns$3q=[],__component__$3r=normalizeComponent$3(_sfc_main$3q,_sfc_render$3q,_sfc_staticRenderFns$3q,!1,null,null,null,null);const RestoreRevision=__component__$3r.exports,_sfc_main$3p={props:{component:String,componentProps:Object},data(){return{loading:!0,readOnly:!1,componentPropValues:{}}},computed:{publishContainer(){return`relate-fieldtype-inline-${this._uid}`}},created(){this.getItem()},methods:{getItem(){this.$axios.get(this.itemUrl).then(M=>{for(const $ in this.componentProps){const I=data_get(M.data,this.componentProps[$]);this.$set(this.componentPropValues,$,I)}this.loading=!1}).catch(M=>{M.response.status===500&&(this.$toast.error(M.response.data.message),this.close()),M.response.status===403&&(this.$toast.error(__("This action is unauthorized.")),this.close())})},close(){this.$emit("closed")},confirmClose(){this.shouldClose()&&this.close()},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))}}};var _sfc_render$3p=function M(){var $=this,I=$._self._c;return I("div",[I("stack",{attrs:{name:"inline-editor","before-close":$.shouldClose},on:{closed:$.close}},[I("div",{staticClass:"h-full overflow-scroll overflow-x-auto p-6 bg-gray-300"},[$.loading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.loading?$._e():I($.component,$._b({tag:"component",staticClass:"max-w-3xl mx-auto",attrs:{method:$.method,"is-creating":$.creating,"is-inline":!0,"publish-container":$.publishContainer},on:{saved:$.saved}},"component",$.componentPropValues,!1),[I("template",{slot:"action-buttons-right"},[$._t("action-buttons-right"),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.confirmClose}})],2)],2)],1)])],1)},_sfc_staticRenderFns$3p=[],__component__$3q=normalizeComponent$3(_sfc_main$3p,_sfc_render$3p,_sfc_staticRenderFns$3p,!1,null,null,null,null);const InlinePublishForm=__component__$3q.exports,_sfc_main$3o={mixins:[InlinePublishForm],props:{revision:Object},data(){return{creating:!1,readOnly:!0,method:"patch",action:"update",itemUrl:`${this.revision.attributes.id}/revisions/${this.revision.id}`}},computed:{title(){var M;return((M=this.revision.attributes.data)==null?void 0:M.title)??""}},methods:{saved(M){}}},_sfc_render$3o=null,_sfc_staticRenderFns$3o=null;var __component__$3p=normalizeComponent$3(_sfc_main$3o,_sfc_render$3o,_sfc_staticRenderFns$3o,!1,null,null,null,null);const RevisionPreview=__component__$3p.exports,_sfc_main$3n={components:{RevisionPreview,RestoreRevision},props:{revision:Object,restoreUrl:String,reference:String},data(){return{showDetails:!1,componentProps:{initialActions:"actions",collectionTitle:"collection.title",collectionUrl:"collection.url",initialTitle:"title",initialReference:"reference",initialFieldset:"blueprint",initialValues:"values",initialLocalizedFields:"localizedFields",initialMeta:"meta",initialPublished:"published",initialPermalink:"permalink",initialLocalizations:"localizations",initialHasOrigin:"hasOrigin",initialOriginValues:"originValues",initialOriginMeta:"originMeta",initialSite:"locale",initialIsWorkingCopy:"hasWorkingCopy",initialIsRoot:"isRoot",initialReadOnly:"readOnly"}}},computed:{date(){return moment.unix(this.revision.date)}},methods:{open(){if(this.revision.working){this.$emit("working-copy-selected");return}this.showDetails=!0}}};var _sfc_render$3n=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"revision-item",class:{"status-working-copy":$.revision.working,"status-published":$.revision.attributes.published},on:{click:$.open}},[$.revision.message?I("div",{staticClass:"revision-item-note truncate",domProps:{textContent:$._s($.revision.message)}}):$._e(),I("div",{staticClass:"flex items-center"},[$.revision.user?I("avatar",{staticClass:"shrink-0 rtl:ml-2 ltr:mr-2 w-6",attrs:{user:$.revision.user}}):$._e(),I("div",{staticClass:"revision-item-content w-full flex"},[I("div",{staticClass:"flex-1"},[I("div",{staticClass:"revision-author text-gray-700 text-2xs"},[$.revision.user?[$._v($._s($.revision.user.name||$.revision.user.email)+" –")]:$._e(),$._v(" "+$._s($.date.toDate().toLocaleTimeString($.$config.get("locale").replace("_","-"),{hour:"numeric",minute:"2-digit"}))+" ")],2)]),$.revision.working?I("span",{staticClass:"badge",domProps:{textContent:$._s($.__("Working Copy"))}}):I("span",{staticClass:"badge",class:$.revision.action,domProps:{textContent:$._s($.__($.revision.action))}}),$.revision.attributes.current?I("span",{staticClass:"badge bg-orange",domProps:{textContent:$._s($.__("Current"))}}):$._e(),$.showDetails?I("revision-preview",{attrs:{revision:$.revision,component:"entry-publish-form","component-props":$.componentProps},on:{closed:function(N){$.showDetails=!1}}},[I("template",{slot:"action-buttons-right"},[I("restore-revision",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{revision:$.revision,url:$.restoreUrl,reference:$.reference}})],1)],2):$._e()],1)],1)])},_sfc_staticRenderFns$3n=[],__component__$3o=normalizeComponent$3(_sfc_main$3n,_sfc_render$3n,_sfc_staticRenderFns$3n,!1,null,null,null,null);const Revision=__component__$3o.exports,_sfc_main$3m={components:{Revision},props:{indexUrl:String,restoreUrl:String,reference:String},data(){return{revisions:[],loading:!0,escBinding:null}},mounted(){this.$axios.get(this.indexUrl).then(M=>{this.loading=!1,this.revisions=M.data.reverse()}),this.escBinding=this.$keys.bindGlobal(["esc"],M=>{this.close()})},beforeDestroy(){this.escBinding.destroy()},methods:{close(){this.$emit("closed")}}};var _sfc_render$3m=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-4 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Revision History"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.close}})]),I("div",{staticClass:"flex-1 overflow-auto"},[$.loading?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic")],1):$._e(),!$.loading&&$.revisions.length===0?I("div",{staticClass:"p-4 text-gray text-sm"},[$._v(" "+$._s($.__("No revisions"))+" ")]):$._e(),$._l($.revisions,function(N){return I("div",{key:N.day},[I("h6",{staticClass:"revision-date",domProps:{textContent:$._s($.$moment.unix(N.day).isBefore($.$moment().startOf("day"))?$.$moment.unix(N.day).toDate().toLocaleDateString($.$config.get("locale").replace("_","-"),{month:"long",day:"numeric",year:"numeric"}):$.__("Today"))}}),I("div",{staticClass:"revision-list"},$._l(N.revisions,function(B){return I("revision",{key:B.date,attrs:{revision:B,"restore-url":$.restoreUrl,reference:$.reference},on:{"working-copy-selected":$.close}})}),1)])})],2)])},_sfc_staticRenderFns$3m=[],__component__$3n=normalizeComponent$3(_sfc_main$3m,_sfc_render$3m,_sfc_staticRenderFns$3m,!1,null,null,null,null);const RevisionHistory=__component__$3n.exports,_sfc_main$3l={mixins:[HasPreferences,HasHiddenFields],components:{PublishActions:PublishActions$1,SaveButtonOptions,RevisionHistory},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialTitle:String,initialLocalizations:Array,initialLocalizedFields:Array,originBehavior:String,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,initialIsWorkingCopy:Boolean,collectionHandle:String,breadcrumbs:Array,initialActions:Object,method:String,isCreating:Boolean,isInline:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,initialPermalink:String,revisionsEnabled:Boolean,preloadedAssets:Array,canEditBlueprint:Boolean,canManagePublishState:Boolean,createAnotherUrl:String,initialListingUrl:String,collectionHasRoutes:Boolean,previewTargets:Array,autosaveInterval:Number},data(){return{actions:this.initialActions,saving:!1,localizing:!1,trackDirtyState:!0,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,selectingOrigin:!1,selectedOrigin:null,isWorkingCopy:this.initialIsWorkingCopy,error:null,errors:{},isPreviewing:!1,tabsVisible:!0,state:"new",revisionMessage:null,showRevisionHistory:!1,preferencesPrefix:`collections.${this.collectionHandle}`,initialPublished:this.initialValues.published,confirmingPublish:!1,readOnly:this.initialReadOnly,isRoot:this.initialIsRoot,permalink:this.initialPermalink,saveKeyBinding:null,quickSaveKeyBinding:null,quickSave:!1,isAutosave:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return!this.readOnly&&!this.somethingIsLoading},canPublish(){return!(!this.revisionsEnabled||this.readOnly||this.isCreating||this.somethingIsLoading||this.isDirty)},published(){return this.values.published},listingUrl(){return`${this.initialListingUrl}?site=${this.site}`},livePreviewUrl(){return _.findWhere(this.localizations,{active:!0}).livePreviewUrl},showLivePreviewButton(){return!this.isCreating&&this.isBase&&this.livePreviewUrl},showVisitUrlButton(){return!!this.permalink},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},saveText(){switch(!0){case this.revisionsEnabled:return __("Save Changes");case this.isUnpublishing:return __("Save & Unpublish");case this.isDraft:return __("Save Draft");default:return __("Save & Publish")}},isUnpublishing(){return this.initialPublished&&!this.published&&!this.isCreating},isDraft(){return!this.published},saveButtonClass(){return{btn:this.revisionsEnabled,"btn-primary":this.isCreating||!this.revisionsEnabled}},afterSaveOption(){return this.getPreference("after_save")},originOptions(){return this.localizations.filter(M=>M.exists).map(M=>({value:M.handle,label:M.name}))}},watch:{saving(M){this.$progress.loading(`${this.publishContainer}-entry-publish-form`,M)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){if(!this.canSave){this.quickSave=!1;return}this.saving=!0,this.clearErrors(),setTimeout(()=>this.runBeforeSaveHook(),151)},runBeforeSaveHook(){this.$refs.container.saving(),Statamic.$hooks.run("entry.saving",{collection:this.collectionHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,_blueprint:this.fieldset.handle,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error(__("Couldn't save entry"));this.title=$.data.data.title,this.isWorkingCopy=!0,this.isBase&&(document.title=this.title+" ‹ "+this.breadcrumbs[1].text+" ‹ "+this.breadcrumbs[0].text+" ‹ Statamic"),this.revisionsEnabled||(this.permalink=$.data.data.permalink),!this.isCreating&&!this.isAutosave&&this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},runAfterSaveHook(M){Statamic.$hooks.run("entry.saved",{collection:this.collectionHandle,reference:this.initialReference,response:M}).then(()=>{if(this.revisionsEnabled){clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(M.data.data.values),this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,350),this.$nextTick(()=>this.$emit("saved",M));return}let $=this.quickSave||this.isAutosave?"continue_editing":this.afterSaveOption;!this.isInline&&$==="create_another"?window.location=this.createAnotherUrl:!this.isInline&&$===null?window.location=this.listingUrl:(clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(M.data.data.values),this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,350),this.initialPublished=M.data.data.published,this.activeLocalization.published=M.data.data.published,this.activeLocalization.status=M.data.data.status,this.$nextTick(()=>this.$emit("saved",M))),this.quickSave=!1,this.isAutosave=!1}).catch($=>console.error($))},confirmPublish(){this.canPublish&&(this.confirmingPublish=!0)},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else M.response?this.$toast.error(M.response.data.message):this.$toast.error(M||"Something went wrong")},localizationSelected(M){if(!this.canSave){M.exists&&this.editLocalization(M);return}M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.$dirty.remove(this.publishContainer),this.localizing=M,M.exists?this.editLocalization(M):this.localizations.length>2&&this.originBehavior==="select"?this.selectingOrigin=!0:this.createLocalization(M),this.isBase&&window.history.replaceState({},"",M.url))},editLocalization(M){return this.$axios.get(M.url).then($=>{clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1;const I=$.data;this.values=I.values,this.originValues=I.originValues,this.originMeta=I.originMeta,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.publishUrl=I.actions[this.action],this.collection=I.collection,this.title=I.editing?I.values.title:this.title,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.permalink=I.permalink,this.site=M.handle,this.localizing=!1,this.initialPublished=I.values.published,this.readOnly=I.readOnly,this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,300)})},createLocalization(M){if(this.selectingOrigin=!1,this.isCreating){this.$nextTick(()=>window.location=M.url);return}const I=this.localizations.find(N=>N.handle===this.selectedOrigin).url+"/localize";this.$axios.post(I,{site:M.handle}).then(N=>{this.editLocalization(N.data).then(()=>{this.$events.$emit("localization.created",{store:this.publishContainer}),this.originValues.published&&this.setFieldValue("published",!0)})})},cancelLocalization(){this.selectingOrigin=!1,this.localizing=!1},localizationStatusText(M){return M.exists?M.published?"This entry exists in this site, and is published.":"This entry exists in this site, but is not published.":"This entry does not exist for this site."},openLivePreview(){this.tabsVisible=!1,this.$wait(200).then(()=>(this.isPreviewing=!0,this.$wait(300))).then(()=>this.tabsVisible=!0)},closeLivePreview(){this.isPreviewing=!1,this.tabsVisible=!0},publishActionCompleted({published:M,isWorkingCopy:$,response:I}){this.saving=!1,M!==void 0&&(this.$refs.container.setFieldValue("published",M),this.initialPublished=M),this.$refs.container.saved(),this.isWorkingCopy=$,this.confirmingPublish=!1,this.title=I.data.data.title,this.activeLocalization.title=I.data.data.title,this.activeLocalization.published=I.data.data.published,this.activeLocalization.status=I.data.data.status,this.permalink=I.data.data.permalink,this.$nextTick(()=>this.$emit("saved",I))},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm("Are you sure? This field's value will be replaced by the value in the original entry.")&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()},setAutosaveInterval(){const M=setInterval(()=>{this.isDirty&&(this.isAutosave=!0,this.save())},this.autosaveInterval);this.$store.commit(`publish/${this.publishContainer}/setAutosaveInterval`,M)}},mounted(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+return"],M=>{M.preventDefault(),!this.confirmingPublish&&this.save()}),this.quickSaveKeyBinding=this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.quickSave=!0,this.save())}),this.$store.commit(`publish/${this.publishContainer}/setPreloadedAssets`,this.preloadedAssets),typeof this.autosaveInterval=="number"&&this.setAutosaveInterval()},created(){var M,$;window.history.replaceState({},document.title,document.location.href.replace("created=true","")),this.selectedOrigin=this.originBehavior==="active"?(M=this.localizations.find(I=>I.active))==null?void 0:M.handle:($=this.localizations.find(I=>I.root))==null?void 0:$.handle},unmounted(){clearTimeout(this.trackDirtyStateTimeout)},beforeDestroy(){this.$store.commit(`publish/${this.publishContainer}/clearAutosaveInterval`)},destroyed(){this.saveKeyBinding.destroy(),this.quickSaveKeyBinding.destroy()}};var _sfc_render$3l=function M(){var $=this,I=$._self._c;return I("div",[$.breadcrumbs?I("breadcrumb",{attrs:{url:$.breadcrumbs[1].url,title:$.breadcrumbs[1].text}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("div",{staticClass:"flex items-center"},[$.isCreating?$._e():I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__($.activeLocalization.status),expression:"__(activeLocalization.status)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.activeLocalization.status}),I("span",{domProps:{innerHTML:$._s($.$options.filters.striptags($.__($.title)))}})])]),$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}})],1):$._e(),$.readOnly?I("div",{staticClass:"pt-px text-2xs text-gray-600 flex rtl:ml-4 ltr:mr-4"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1):$._e(),I("div",{staticClass:"hidden md:flex items-center"},[$.readOnly?$._e():I("save-button-options",{attrs:{"show-options":!$.revisionsEnabled&&!$.isInline,"button-class":$.saveButtonClass,"preferences-prefix":$.preferencesPrefix}},[I("button",{class:$.saveButtonClass,attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})]),$.revisionsEnabled&&!$.isCreating?I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",[$._v($._s($.__("Publish"))+"…")])]):$._e()],1),$._t("action-buttons-right")],2),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot,"track-dirty-state":$.trackDirtyState},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("live-preview",{attrs:{name:$.publishContainer,url:$.livePreviewUrl,previewing:$.isPreviewing,targets:$.previewTargets,values:$.values,blueprint:$.fieldset.handle,reference:$.initialReference},on:{"opened-via-keyboard":$.openLivePreview,closed:$.closeLivePreview},scopedSlots:$._u([{key:"buttons",fn:function(){return[$.readOnly?$._e():I("button",{staticClass:"rtl:mr-4 ltr:ml-4",class:{btn:$.revisionsEnabled,"btn-primary":$.isCreating||!$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(U){return U.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled&&!$.isCreating?I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},on:{click:function(U){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]},proxy:!0}],null,!1,45162120)},[I("div",[$._l(B,function(U){return I(U.name,$._g($._b({key:U.id,tag:"component",attrs:{container:N}},"component",U.props,!1),U.events))}),I("transition",{attrs:{name:"live-preview-tabs-drop"}},[I("publish-tabs",{directives:[{name:"show",rawName:"v-show",value:$.tabsVisible,expression:"tabsVisible"}],attrs:{"read-only":$.readOnly,syncable:$.hasOrigin},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}},scopedSlots:$._u([{key:"actions",fn:function({shouldShowSidebar:U}){return[I("div",{staticClass:"card p-0 mb-5"},[$.collectionHasRoutes?I("div",{class:{hi:!U}},[$.showLivePreviewButton||$.showVisitUrlButton?I("div",{staticClass:"p-3 flex items-center space-x-2"},[$.showLivePreviewButton?I("button",{staticClass:"flex items-center justify-center btn w-full",on:{click:$.openLivePreview}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/synchronize"}}),I("span",[$._v($._s($.__("Live Preview")))])],1):$._e(),$.showVisitUrlButton?I("a",{staticClass:"flex items-center justify-center btn w-full",attrs:{href:$.permalink,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/external-link"}}),I("span",[$._v($._s($.__("Visit URL")))])],1):$._e()]):$._e()]):$._e(),$.revisionsEnabled?$._e():I("div",{staticClass:"flex items-center justify-between px-4 py-2",class:{"border-t":$.showLivePreviewButton||$.showVisitUrlButton}},[I("label",{staticClass:"publish-field-label font-medium",domProps:{textContent:$._s($.__("Published"))}}),I("toggle-input",{attrs:{value:$.published,"read-only":!$.canManagePublishState},on:{input:function(q){return $.setFieldValue("published",q)}}})],1),$.revisionsEnabled&&!$.isCreating?I("div",{staticClass:"p-4",class:{"border-t":$.showLivePreviewButton||$.showVisitUrlButton}},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Revisions"))}}),$.published?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-green-600 w-6 text-center"},[$._v("✓")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Entry has a published version"))}})]):I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-orange w-6 text-center"},[$._v("!")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Entry has not been published"))}})]),!$.isWorkingCopy&&$.published?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-green-600 w-6 text-center"},[$._v("✓")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("This is the published version"))}})]):$._e(),$.isDirty?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-orange w-6 text-center"},[$._v("!")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Unsaved changes"))}})]):$._e(),!$.isCreating&&$.revisionsEnabled?I("button",{staticClass:"flex items-center justify-center mt-4 btn-flat px-2 w-full",on:{click:function(q){$.showRevisionHistory=!0}}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/history"}}),I("span",[$._v($._s($.__("View History")))])],1):$._e()]):$._e(),$.localizations.length>1?I("div",{staticClass:"p-4 border-t"},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Sites"))}}),$._l($.localizations,function(q){return I("div",{key:q.handle,staticClass:"text-sm flex items-center -mx-4 px-4 py-2",class:[q.active?"bg-blue-100":"hover:bg-gray-200",!$.canSave&&!q.exists?"cursor-not-allowed":"cursor-pointer"],on:{click:function(Y){return $.localizationSelected(q)}}},[I("div",{staticClass:"flex-1 flex items-center",class:{"line-through":!q.exists}},[I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:{"bg-green-600":q.published,"bg-gray-500":!q.published,"bg-red-500":!q.exists}}),$._v(" "+$._s($.__(q.name))+" "),$.localizing&&$.localizing.handle===q.handle?I("loading-graphic",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{size:14,text:""}}):$._e()],1),q.origin?I("div",{staticClass:"badge-sm bg-orange",domProps:{textContent:$._s($.__("Origin"))}}):$._e(),q.active?I("div",{staticClass:"badge-sm bg-blue",domProps:{textContent:$._s($.__("Active"))}}):$._e(),q.root&&!q.origin&&!q.active?I("div",{staticClass:"badge-sm bg-purple",domProps:{textContent:$._s($.__("Root"))}}):$._e()])})],2):$._e()])]}}],null,!0)})],1)],2)])}}],null,!1,3375549618)}):$._e(),I("div",{staticClass:"md:hidden mt-6 flex items-center"},[$.readOnly?$._e():I("button",{staticClass:"btn-lg",class:{"btn-primary w-full":!$.revisionsEnabled,"btn w-1/2 rtl:ml-4 ltr:mr-4":$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__($.revisionsEnabled?"Save Changes":"Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-2 ltr:ml-2 btn btn-lg justify-center btn-primary flex items-center w-1/2",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]),$.showRevisionHistory?I("stack",{attrs:{name:"revision-history",narrow:!0},on:{closed:function(N){$.showRevisionHistory=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("revision-history",{attrs:{"index-url":$.actions.revisions,"restore-url":$.actions.restore,reference:$.initialReference},on:{closed:N}})}}],null,!1,2848092550)}):$._e(),$.confirmingPublish?I("publish-actions",{attrs:{actions:$.actions,published:$.published,collection:$.collectionHandle,reference:$.initialReference,"publish-container":$.publishContainer,"can-manage-publish-state":$.canManagePublishState},on:{closed:function(N){$.confirmingPublish=!1},saving:function(N){$.saving=!0},saved:$.publishActionCompleted}}):$._e(),$.selectingOrigin?I("confirmation-modal",{attrs:{title:$.__("Create Localization"),buttonText:$.__("Create")},on:{cancel:function(N){return $.cancelLocalization()},confirm:function(N){return $.createLocalization($.localizing)}}},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group publish-field field-w-full"},[I("label",{domProps:{textContent:$._s($.__("Origin"))}}),I("div",{staticClass:"help-block -mt-2",domProps:{textContent:$._s($.__("messages.entry_origin_instructions"))}}),I("select-input",{attrs:{options:$.originOptions,placeholder:!1},model:{value:$.selectedOrigin,callback:function(N){$.selectedOrigin=N},expression:"selectedOrigin"}})],1)])]):$._e()],1)},_sfc_staticRenderFns$3l=[],__component__$3m=normalizeComponent$3(_sfc_main$3l,_sfc_render$3l,_sfc_staticRenderFns$3l,!1,null,null,null,null);const EntryPublishForm=__component__$3m.exports,_sfc_main$3k={props:{actions:Object,published:Boolean,canManagePublishState:Boolean},data(){return{action:this.canManagePublishState?"publish":"revision",revisionMessage:null,saving:!1}},computed:{options(){const M=[];return this.canManagePublishState&&(M.push({value:"publish",label:__("Publish Now")}),this.published&&M.push({value:"unpublish",label:__("Unpublish")})),M.push({value:"revision",label:__("Create Revision")}),M},actionInfoText(){switch(this.action){case"publish":return"Changes to the working copy will applied to the entry and it will be published immediately.";case"schedule":return"Changes to the working copy will applied to the entry and it will be appear published on the selected date.";case"unpublish":return"The current revision will be unpublished.";case"revision":return"A revision will be created based off the working copy. The current revision will not change."}},submitButtonText(){return _.findWhere(this.options,{value:this.action}).label}},methods:{submit(){this.saving=!0,this.$emit("saving");const M="submit"+this.action.charAt(0).toUpperCase()+this.action.substring(1);this[M]()},submitPublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.publish,M).then($=>{this.$toast.success(__("Published")),this.revisionMessage=null,this.$emit("saved",{published:!0,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitSchedule(){},submitUnpublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.unpublish,{data:M}).then($=>{this.$toast.success(__("Unpublished")),this.revisionMessage=null,this.$emit("saved",{published:!1,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitRevision(){const M={message:this.revisionMessage};this.$axios.post(this.actions.createRevision,M).then($=>{this.$toast.success(__("Revision created")),this.revisionMessage=null,this.$emit("saved",{isWorkingCopy:!0,response:$})}).catch($=>this.handleAxiosError($))},handleAxiosError(M){this.saving=!1,this.$toast.error(__("Something went wrong"))}}};var _sfc_render$3k=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"publish-options"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-6 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Publish"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[$.saving?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic",{attrs:{text:""}})],1):$._e(),I("select-input",{staticClass:"mb-6",attrs:{options:$.options},model:{value:$.action,callback:function(B){$.action=B},expression:"action"}}),$.action?I("div",[$.action=="schedule"?I("date-fieldtype",{staticClass:"mb-6",attrs:{name:"publishTime",value:$.publishTime}}):$._e(),I("textarea-input",{staticClass:"mb-6 text-sm",attrs:{placeholder:$.__("Notes about this revision"),focus:!0},on:{keydown:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.submit.apply(null,arguments)}},model:{value:$.revisionMessage,callback:function(B){$.revisionMessage=B},expression:"revisionMessage"}}),I("button",{staticClass:"btn-primary w-full mb-6",domProps:{textContent:$._s($.submitButtonText)},on:{click:$.submit}}),I("div",{staticClass:"text-gray text-xs flex mb-6"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.actionInfoText)}})]),$.action==="schedule"?I("div",{staticClass:"text-gray text-xs flex mb-6 text-red-500"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1"},[$._v(" Since the current revision is published and you've selected a date in the future, once you submit, the revision will act like a draft until the selected date. ")])]):$._e()],1):$._e()],1)])}}])})},_sfc_staticRenderFns$3k=[],__component__$3l=normalizeComponent$3(_sfc_main$3k,_sfc_render$3k,_sfc_staticRenderFns$3k,!1,null,null,null,null);const PublishActions=__component__$3l.exports,_sfc_main$3j={mixins:[HasPreferences,HasHiddenFields],components:{PublishActions,SaveButtonOptions,RevisionHistory},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialTitle:String,initialLocalizations:Array,initialLocalizedFields:Array,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,initialIsWorkingCopy:Boolean,taxonomyHandle:String,breadcrumbs:Array,initialActions:Object,method:String,initialPublished:Boolean,isCreating:Boolean,isInline:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,initialPermalink:String,revisionsEnabled:Boolean,preloadedAssets:Array,canEditBlueprint:Boolean,createAnotherUrl:String,listingUrl:String,previewTargets:Array},data(){return{actions:this.initialActions,saving:!1,localizing:!1,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,isWorkingCopy:this.initialIsWorkingCopy,error:null,errors:{},isPreviewing:!1,tabsVisible:!0,state:"new",revisionMessage:null,showRevisionHistory:!1,published:this.initialPublished,confirmingPublish:!1,readOnly:this.initialReadOnly,isRoot:this.initialIsRoot,permalink:this.initialPermalink,preferencesPrefix:`taxonomies.${this.taxonomyHandle}`,saveKeyBinding:null,quickSaveKeyBinding:null,quickSave:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return!this.readOnly&&this.isDirty&&!this.somethingIsLoading},canPublish(){return this.revisionsEnabled?!this.readOnly&&!this.isCreating&&!this.canSave&&!this.somethingIsLoading&&this.isWorkingCopy:!1},livePreviewUrl(){return _.findWhere(this.localizations,{active:!0}).livePreviewUrl},showLivePreviewButton(){return!this.isCreating&&this.isBase&&this.livePreviewUrl},showVisitUrlButton(){return!!this.permalink},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},saveText(){return this.revisionsEnabled?__("Save Changes"):this.published?__("Save & Publish"):!this.published&&this.initialPublished?__("Save & Unpublish"):__("Save")},saveButtonClass(){return{btn:this.revisionsEnabled,"btn-primary":!this.revisionsEnabled}},afterSaveOption(){return this.getPreference("after_save")}},watch:{published(M){this.$refs.container.dirty()},saving(M){this.$progress.loading(`${this.publishContainer}-entry-publish-form`,M)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){if(!this.canSave){this.quickSave=!1;return}this.saving=!0,this.clearErrors(),this.runBeforeSaveHook()},runBeforeSaveHook(){Statamic.$hooks.run("term.saving",{taxonomy:this.taxonomyHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,_blueprint:this.fieldset.handle,published:this.published,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error(__("Couldn't save term"));this.title=$.data.data.title,this.permalink=$.data.data.permalink,this.isWorkingCopy=!0,this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},confirmPublish(){this.canPublish&&(this.confirmingPublish=!0)},runAfterSaveHook(M){Statamic.$hooks.run("term.saved",{taxonomy:this.taxonomyHandle,reference:this.initialReference,response:M}).then(()=>{if(this.revisionsEnabled){this.$nextTick(()=>this.$emit("saved",M));return}let $=this.quickSave?"continue_editing":this.afterSaveOption;!this.isInline&&this.afterSaveOption==="create_another"?window.location=this.createAnotherUrl:!this.isInline&&$===null?window.location=this.listingUrl:this.$nextTick(()=>this.$emit("saved",M)),this.quickSave=!1}).catch($=>{})},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else this.$toast.error(__("Something went wrong"))},localizationSelected(M){M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.localizing=M.handle,M.exists?this.editLocalization(M):this.createLocalization(M),this.publishContainer==="base"&&window.history.replaceState({},"",M.url))},editLocalization(M){this.$axios.get(M.url).then($=>{const I=$.data;this.values=I.values,this.originValues=I.originValues,this.originMeta=I.originMeta,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.publishUrl=I.actions[this.action],this.taxonomy=I.taxonomy,this.title=I.editing?I.values.title:this.title,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.site=M.handle,this.localizing=!1,this.$nextTick(()=>this.$refs.container.clearDirtyState())})},createLocalization(M){const $=this.activeLocalization.url+"/localize";this.$axios.post($,{site:M.handle}).then(I=>{this.editLocalization(I.data)})},localizationStatusText(M){return M.exists?M.published?"This entry exists in this site, and is published.":"This entry exists in this site, but is not published.":"This entry does not exist for this site."},openLivePreview(){this.tabsVisible=!1,this.$wait(200).then(()=>(this.isPreviewing=!0,this.$wait(300))).then(()=>this.tabsVisible=!0)},closeLivePreview(){this.isPreviewing=!1,this.tabsVisible=!0},publishActionCompleted({published:M,isWorkingCopy:$,response:I}){this.saving=!1,this.$refs.container.saved(),M!==void 0&&(this.published=M),this.isWorkingCopy=$,this.confirmingPublish=!1,this.permalink=I.data.data.permalink,this.$nextTick(()=>this.$emit("saved",I))},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm(__("Are you sure? This field's value will be replaced by the value in the original entry."))&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()}},mounted(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+return"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.canPublish?this.confirmPublish():this.save())}),this.quickSaveKeyBinding=this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.quickSave=!0,this.canPublish?this.confirmPublish():this.save())}),this.$store.commit(`publish/${this.publishContainer}/setPreloadedAssets`,this.preloadedAssets)},created(){window.history.replaceState({},document.title,document.location.href.replace("created=true",""))},destroyed(){this.saveKeyBinding.destroy(),this.quickSaveKeyBinding.destroy()}};var _sfc_render$3j=function M(){var $=this,I=$._self._c;return I("div",[$.breadcrumbs?I("breadcrumb",{attrs:{url:$.breadcrumbs[1].url,title:$.breadcrumbs[1].text}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("div",{staticClass:"flex items-center"},[$.isCreating?$._e():I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:{"bg-green-600":$.published,"bg-gray-600":!$.published}}),I("span",{domProps:{innerHTML:$._s($.$options.filters.striptags($.title))}})])]),$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}})],1):$._e(),$.readOnly?I("div",{staticClass:"pt-px text-2xs text-gray-600 flex rtl:ml-4 ltr:mr-4"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1):$._e(),I("div",{staticClass:"hidden md:flex items-center"},[$.readOnly?$._e():I("save-button-options",{attrs:{"show-options":!$.revisionsEnabled&&!$.isInline,"button-class":$.saveButtonClass,"preferences-prefix":$.preferencesPrefix}},[I("button",{class:$.saveButtonClass,attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})]),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()],1),$._t("action-buttons-right")],2),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("live-preview",{attrs:{name:$.publishContainer,url:$.livePreviewUrl,previewing:$.isPreviewing,targets:$.previewTargets,values:$.values,blueprint:$.fieldset.handle,reference:$.initialReference},on:{"opened-via-keyboard":$.openLivePreview,closed:$.closeLivePreview}},[I("div",[$._l(B,function(U){return I(U.name,$._b({key:U.name,tag:"component",attrs:{container:N}},"component",U.props,!1))}),I("transition",{attrs:{name:"live-preview-tabs-drop"}},[I("publish-tabs",{directives:[{name:"show",rawName:"v-show",value:$.tabsVisible,expression:"tabsVisible"}],attrs:{"read-only":$.readOnly,syncable:$.hasOrigin},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}},scopedSlots:$._u([{key:"actions",fn:function({shouldShowSidebar:U}){return[I("div",{staticClass:"card p-0",class:{"mb-5":$.showLivePreviewButton||$.showVisitUrlButton||$.localizations.length>1}},[I("div",{class:{hi:!U}},[$.showLivePreviewButton||$.showVisitUrlButton?I("div",{staticClass:"p-4 flex items-center -mx-2"},[$.showLivePreviewButton?I("button",{staticClass:"flex items-center justify-center btn-flat w-full mx-2 px-2",on:{click:$.openLivePreview}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/synchronize"}}),I("span",[$._v($._s($.__("Live Preview")))])],1):$._e(),$.showVisitUrlButton?I("a",{staticClass:"flex items-center justify-center btn-flat w-full mx-2 px-2",attrs:{href:$.permalink,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/external-link"}}),I("span",[$._v($._s($.__("Visit URL")))])],1):$._e()]):$._e()]),$.localizations.length>1?I("div",{staticClass:"p-4 border-t"},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Sites"))}}),$._l($.localizations,function(q){return I("div",{key:q.handle,staticClass:"text-sm flex items-center -mx-4 px-4 py-2 cursor-pointer",class:q.active?"bg-blue-100":"hover:bg-gray-200",on:{click:function(Y){return $.localizationSelected(q)}}},[I("div",{staticClass:"flex-1 flex items-center",class:{"line-through":!q.exists}},[I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:{"bg-green-600":q.published,"bg-gray-500":!q.published,"bg-red-500":!q.exists}}),$._v(" "+$._s($.__(q.name))+" "),$.localizing===q.handle?I("loading-graphic",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{size:14,text:""}}):$._e()],1),q.origin?I("div",{staticClass:"badge-sm bg-orange",domProps:{textContent:$._s($.__("Origin"))}}):$._e(),q.active?I("div",{staticClass:"badge-sm bg-blue",domProps:{textContent:$._s($.__("Active"))}}):$._e(),q.root&&!q.origin&&!q.active?I("div",{staticClass:"badge-sm bg-purple",domProps:{textContent:$._s($.__("Root"))}}):$._e()])})],2):$._e()])]}}],null,!0)})],1)],2)])}}],null,!1,262094550)}):$._e(),I("div",{staticClass:"md:hidden mt-6 flex items-center"},[$.readOnly?$._e():I("button",{staticClass:"btn-lg",class:{"btn-primary w-full":!$.revisionsEnabled,"btn w-1/2 rtl:ml-4 ltr:mr-4":$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__($.revisionsEnabled?"Save Changes":"Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-2 ltr:ml-2 btn-primary btn-lg justify-center flex items-center w-1/2",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]),$.showRevisionHistory?I("stack",{attrs:{name:"revision-history",narrow:!0},on:{closed:function(N){$.showRevisionHistory=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("revision-history",{attrs:{"index-url":$.actions.revisions,"restore-url":$.actions.restore},on:{closed:N}})}}],null,!1,1726120270)}):$._e(),$.confirmingPublish?I("publish-actions",{attrs:{actions:$.actions,published:$.published,"can-manage-publish-state":$.canManagePublishState},on:{closed:function(N){$.confirmingPublish=!1},saving:function(N){$.saving=!0},saved:$.publishActionCompleted}}):$._e()],1)},_sfc_staticRenderFns$3j=[],__component__$3k=normalizeComponent$3(_sfc_main$3j,_sfc_render$3j,_sfc_staticRenderFns$3j,!1,null,null,null,null);const TermPublishForm=__component__$3k.exports,_sfc_main$3i={props:{saveUrl:String,requiresCurrentPassword:Boolean},data(){return{saving:!1,error:null,errors:{},currentPassword:null,password:null,confirmation:null,reveal:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},inputType(){return this.reveal?"text":"password"}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.saving=!0,this.$axios.patch(this.saveUrl,{current_password:this.currentPassword,password:this.password,password_confirmation:this.confirmation}).then(M=>{this.$toast.success(__("Password changed")),this.$refs.popper.close(),this.saving=!1,this.password=null,this.currentPassword=null,this.confirmation=null}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.saving=!1}else this.$toast.error(__("Unable to change password")),this.saving=!1})}}};var _sfc_render$3i=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popper",attrs:{placement:"bottom"}},[I("button",{staticClass:"btn",attrs:{slot:"trigger"},domProps:{textContent:$._s($.__("Change Password"))},slot:"trigger"}),$.saving?I("div",{staticClass:"saving-overlay flex justify-center text-center"},[I("loading-graphic",{attrs:{text:$.__("Saving")}})],1):$._e(),I("div",{staticClass:"publish-fields p-4 pb-0 w-96"},[$.requiresCurrentPassword?I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"password",display:$.__("Current Password"),errors:$.errors.current_password,config:{input_type:this.inputType}},model:{value:$.currentPassword,callback:function(N){$.currentPassword=N},expression:"currentPassword"}}):$._e(),I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"password",display:$.__("Password"),errors:$.errors.password,config:{input_type:this.inputType}},model:{value:$.password,callback:function(N){$.password=N},expression:"password"}}),I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"confirmation",display:$.__("Password Confirmation"),config:{input_type:this.inputType}},model:{value:$.confirmation,callback:function(N){$.confirmation=N},expression:"confirmation"}})],1),I("div",{staticClass:"flex items-center bg-gray-21 border-t rounded-b px-4 py-2"},[I("button",{staticClass:"btn-primary",on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}},[$._v($._s($.__("Change Password")))]),I("label",{staticClass:"rtl:mr-4 ltr:ml-4"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.reveal,expression:"reveal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.reveal)?$._i($.reveal,null)>-1:$.reveal},on:{change:function(N){var B=$.reveal,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.reveal=B.concat([q])):Y>-1&&($.reveal=B.slice(0,Y).concat(B.slice(Y+1)))}else $.reveal=U}}}),$._v(" "+$._s($.__("Reveal Password"))+" ")])])])},_sfc_staticRenderFns$3i=[],__component__$3j=normalizeComponent$3(_sfc_main$3i,_sfc_render$3i,_sfc_staticRenderFns$3i,!1,null,null,null,null);const ChangePassword=__component__$3j.exports,_sfc_main$3h={mixins:[HasHiddenFields],components:{ChangePassword},props:{publishContainer:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialReference:String,initialTitle:String,actions:Object,method:String,canEditPassword:Boolean,canEditBlueprint:Boolean,requiresCurrentPassword:Boolean},data(){return{fieldset:_.clone(this.initialFieldset),values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),error:null,errors:{},title:this.initialTitle}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.actions.save,this.visibleValues).then(M=>{if(this.title=M.data.title,!M.data.saved)return this.$toast.error("Couldn't save user");this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.$nextTick(()=>this.$emit("saved",M))}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else this.$toast.error(__("Something went wrong"))})}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$3h=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.cp_url("users"),title:$.__("Users")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.title)}}),$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}})],1):$._e(),$.canEditPassword?I("change-password",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{"save-url":$.actions.password,"requires-current-password":$.requiresCurrentPassword}}):$._e(),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$._t("action-buttons-right")],2)],1),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,setFieldValue:B,setFieldMeta:j}){return I("div",{},[I("publish-tabs",{attrs:{"enable-sidebar":!1},on:{updated:B,"meta-updated":j,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],1)}}],null,!1,1371828665)}):$._e()],1)},_sfc_staticRenderFns$3h=[],__component__$3i=normalizeComponent$3(_sfc_main$3h,_sfc_render$3h,_sfc_staticRenderFns$3h,!1,null,null,null,null);const UserPublishForm=__component__$3i.exports;var fuse={exports:{}};/*!
- * Fuse.js v3.6.1 - Lightweight fuzzy-search (http://fusejs.io)
- *
- * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
- * All Rights Reserved. Apache Software License 2.0
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- */(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){return function(I){var N={};function B(j){if(N[j])return N[j].exports;var U=N[j]={i:j,l:!1,exports:{}};return I[j].call(U.exports,U,U.exports,B),U.l=!0,U.exports}return B.m=I,B.c=N,B.d=function(j,U,q){B.o(j,U)||Object.defineProperty(j,U,{enumerable:!0,get:q})},B.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},B.t=function(j,U){if(1&U&&(j=B(j)),8&U||4&U&&typeof j=="object"&&j&&j.__esModule)return j;var q=Object.create(null);if(B.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:j}),2&U&&typeof j!="string")for(var Y in j)B.d(q,Y,(function(K){return j[K]}).bind(null,Y));return q},B.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return B.d(U,"a",U),U},B.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},B.p="",B(B.s=0)}([function(I,N,B){function j(Z){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee})(Z)}function U(Z,ee){for(var te=0;te<ee.length;te++){var re=ee[te];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Z,re.key,re)}}var q=B(1),Y=B(7),K=Y.get,G=(Y.deepValue,Y.isArray),J=function(){function Z(re,se){var ne=se.location,le=ne===void 0?0:ne,ge=se.distance,ue=ge===void 0?100:ge,_e=se.threshold,fe=_e===void 0?.6:_e,me=se.maxPatternLength,ve=me===void 0?32:me,xe=se.caseSensitive,oe=xe!==void 0&&xe,ye=se.tokenSeparator,be=ye===void 0?/ +/g:ye,we=se.findAllMatches,Ae=we!==void 0&&we,ke=se.minMatchCharLength,Oe=ke===void 0?1:ke,Me=se.id,ze=Me===void 0?null:Me,Fe=se.keys,Ze=Fe===void 0?[]:Fe,lt=se.shouldSort,qe=lt===void 0||lt,Ve=se.getFn,At=Ve===void 0?K:Ve,Nt=se.sortFn,zt=Nt===void 0?function(dn,kt){return dn.score-kt.score}:Nt,Ht=se.tokenize,qt=Ht!==void 0&&Ht,Qt=se.matchAllTokens,Jt=Qt!==void 0&&Qt,yn=se.includeMatches,_n=yn!==void 0&&yn,Hn=se.includeScore,On=Hn!==void 0&&Hn,Fn=se.verbose,In=Fn!==void 0&&Fn;(function(dn,kt){if(!(dn instanceof kt))throw new TypeError("Cannot call a class as a function")})(this,Z),this.options={location:le,distance:ue,threshold:fe,maxPatternLength:ve,isCaseSensitive:oe,tokenSeparator:be,findAllMatches:Ae,minMatchCharLength:Oe,id:ze,keys:Ze,includeMatches:_n,includeScore:On,shouldSort:qe,getFn:At,sortFn:zt,verbose:In,tokenize:qt,matchAllTokens:Jt},this.setCollection(re),this._processKeys(Ze)}var ee,te;return ee=Z,(te=[{key:"setCollection",value:function(re){return this.list=re,re}},{key:"_processKeys",value:function(re){if(this._keyWeights={},this._keyNames=[],re.length&&typeof re[0]=="string")for(var se=0,ne=re.length;se<ne;se+=1){var le=re[se];this._keyWeights[le]=1,this._keyNames.push(le)}else{for(var ge=null,ue=null,_e=0,fe=0,me=re.length;fe<me;fe+=1){var ve=re[fe];if(!ve.hasOwnProperty("name"))throw new Error('Missing "name" property in key object');var xe=ve.name;if(this._keyNames.push(xe),!ve.hasOwnProperty("weight"))throw new Error('Missing "weight" property in key object');var oe=ve.weight;if(oe<0||oe>1)throw new Error('"weight" property in key must bein the range of [0, 1)');ue=ue==null?oe:Math.max(ue,oe),ge=ge==null?oe:Math.min(ge,oe),this._keyWeights[xe]=oe,_e+=oe}if(_e>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`---------
- Search pattern: "`.concat(re,'"'));var ne=this._prepareSearchers(re),le=ne.tokenSearchers,ge=ne.fullSearcher,ue=this._search(le,ge);return this._computeScore(ue),this.options.shouldSort&&this._sort(ue),se.limit&&typeof se.limit=="number"&&(ue=ue.slice(0,se.limit)),this._format(ue)}},{key:"_prepareSearchers",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",se=[];if(this.options.tokenize)for(var ne=re.split(this.options.tokenSeparator),le=0,ge=ne.length;le<ge;le+=1)se.push(new q(ne[le],this.options));return{tokenSearchers:se,fullSearcher:new q(re,this.options)}}},{key:"_search",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1?arguments[1]:void 0,ne=this.list,le={},ge=[];if(typeof ne[0]=="string"){for(var ue=0,_e=ne.length;ue<_e;ue+=1)this._analyze({key:"",value:ne[ue],record:ue,index:ue},{resultMap:le,results:ge,tokenSearchers:re,fullSearcher:se});return ge}for(var fe=0,me=ne.length;fe<me;fe+=1)for(var ve=ne[fe],xe=0,oe=this._keyNames.length;xe<oe;xe+=1){var ye=this._keyNames[xe];this._analyze({key:ye,value:this.options.getFn(ve,ye),record:ve,index:fe},{resultMap:le,results:ge,tokenSearchers:re,fullSearcher:se})}return ge}},{key:"_analyze",value:function(re,se){var ne=this,le=re.key,ge=re.arrayIndex,ue=ge===void 0?-1:ge,_e=re.value,fe=re.record,me=re.index,ve=se.tokenSearchers,xe=ve===void 0?[]:ve,oe=se.fullSearcher,ye=se.resultMap,be=ye===void 0?{}:ye,we=se.results,Ae=we===void 0?[]:we;(function ke(Oe,Me,ze,Fe){if(Me!=null){if(typeof Me=="string"){var Ze=!1,lt=-1,qe=0;ne._log(`
- Key: `.concat(le===""?"--":le));var Ve=oe.search(Me);if(ne._log('Full text: "'.concat(Me,'", score: ').concat(Ve.score)),ne.options.tokenize){for(var At=Me.split(ne.options.tokenSeparator),Nt=At.length,zt=[],Ht=0,qt=xe.length;Ht<qt;Ht+=1){var Qt=xe[Ht];ne._log(`
- Pattern: "`.concat(Qt.pattern,'"'));for(var Jt=!1,yn=0;yn<Nt;yn+=1){var _n=At[yn],Hn=Qt.search(_n),On={};Hn.isMatch?(On[_n]=Hn.score,Ze=!0,Jt=!0,zt.push(Hn.score)):(On[_n]=1,ne.options.matchAllTokens||zt.push(1)),ne._log('Token: "'.concat(_n,'", score: ').concat(On[_n]))}Jt&&(qe+=1)}lt=zt[0];for(var Fn=zt.length,In=1;In<Fn;In+=1)lt+=zt[In];lt/=Fn,ne._log("Token score average:",lt)}var dn=Ve.score;lt>-1&&(dn=(dn+lt)/2),ne._log("Score average:",dn);var kt=!ne.options.tokenize||!ne.options.matchAllTokens||qe>=xe.length;if(ne._log(`
- Check Matches: `.concat(kt)),(Ze||Ve.isMatch)&&kt){var Ye={key:le,arrayIndex:Oe,value:Me,score:dn};ne.options.includeMatches&&(Ye.matchedIndices=Ve.matchedIndices);var _t=be[Fe];_t?_t.output.push(Ye):(be[Fe]={item:ze,output:[Ye]},Ae.push(be[Fe]))}}else if(G(Me))for(var We=0,Pe=Me.length;We<Pe;We+=1)ke(We,Me[We],ze,Fe)}})(ue,_e,fe,me)}},{key:"_computeScore",value:function(re){this._log(`
-
- Computing score:
- `);for(var se=this._keyWeights,ne=!!Object.keys(se).length,le=0,ge=re.length;le<ge;le+=1){for(var ue=re[le],_e=ue.output,fe=_e.length,me=1,ve=0;ve<fe;ve+=1){var xe=_e[ve],oe=xe.key,ye=ne?se[oe]:1,be=xe.score===0&&se&&se[oe]>0?Number.EPSILON:xe.score;me*=Math.pow(be,ye)}ue.score=me,this._log(ue)}}},{key:"_sort",value:function(re){this._log(`
-
- Sorting....`),re.sort(this.options.sortFn)}},{key:"_format",value:function(re){var se=[];if(this.options.verbose){var ne=[];this._log(`
-
- Output:
-
- `,JSON.stringify(re,function(xe,oe){if(j(oe)==="object"&&oe!==null){if(ne.indexOf(oe)!==-1)return;ne.push(oe)}return oe},2)),ne=null}var le=[];this.options.includeMatches&&le.push(function(xe,oe){var ye=xe.output;oe.matches=[];for(var be=0,we=ye.length;be<we;be+=1){var Ae=ye[be];if(Ae.matchedIndices.length!==0){var ke={indices:Ae.matchedIndices,value:Ae.value};Ae.key&&(ke.key=Ae.key),Ae.hasOwnProperty("arrayIndex")&&Ae.arrayIndex>-1&&(ke.arrayIndex=Ae.arrayIndex),oe.matches.push(ke)}}}),this.options.includeScore&&le.push(function(xe,oe){oe.score=xe.score});for(var ge=0,ue=re.length;ge<ue;ge+=1){var _e=re[ge];if(this.options.id&&(_e.item=this.options.getFn(_e.item,this.options.id)[0]),le.length){for(var fe={item:_e.item},me=0,ve=le.length;me<ve;me+=1)le[me](_e,fe);se.push(fe)}else se.push(_e.item)}return se}},{key:"_log",value:function(){var re;this.options.verbose&&(re=console).log.apply(re,arguments)}}])&&U(ee.prototype,te),Z}();I.exports=J},function(I,N,B){function j(G,J){for(var Z=0;Z<J.length;Z++){var ee=J[Z];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(G,ee.key,ee)}}var U=B(2),q=B(3),Y=B(6),K=function(){function G(ee,te){var re=te.location,se=re===void 0?0:re,ne=te.distance,le=ne===void 0?100:ne,ge=te.threshold,ue=ge===void 0?.6:ge,_e=te.maxPatternLength,fe=_e===void 0?32:_e,me=te.isCaseSensitive,ve=me!==void 0&&me,xe=te.tokenSeparator,oe=xe===void 0?/ +/g:xe,ye=te.findAllMatches,be=ye!==void 0&&ye,we=te.minMatchCharLength,Ae=we===void 0?1:we,ke=te.includeMatches,Oe=ke!==void 0&&ke;(function(Me,ze){if(!(Me instanceof ze))throw new TypeError("Cannot call a class as a function")})(this,G),this.options={location:se,distance:le,threshold:ue,maxPatternLength:fe,isCaseSensitive:ve,tokenSeparator:oe,findAllMatches:be,includeMatches:Oe,minMatchCharLength:Ae},this.pattern=ve?ee:ee.toLowerCase(),this.pattern.length<=fe&&(this.patternAlphabet=Y(this.pattern))}var J,Z;return J=G,(Z=[{key:"search",value:function(ee){var te=this.options,re=te.isCaseSensitive,se=te.includeMatches;if(re||(ee=ee.toLowerCase()),this.pattern===ee){var ne={isMatch:!0,score:0};return se&&(ne.matchedIndices=[[0,ee.length-1]]),ne}var le=this.options,ge=le.maxPatternLength,ue=le.tokenSeparator;if(this.pattern.length>ge)return U(ee,this.pattern,ue);var _e=this.options,fe=_e.location,me=_e.distance,ve=_e.threshold,xe=_e.findAllMatches,oe=_e.minMatchCharLength;return q(ee,this.pattern,this.patternAlphabet,{location:fe,distance:me,threshold:ve,findAllMatches:xe,minMatchCharLength:oe,includeMatches:se})}}])&&j(J.prototype,Z),G}();I.exports=K},function(I,N){var B=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;I.exports=function(j,U){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,Y=new RegExp(U.replace(B,"\\$&").replace(q,"|")),K=j.match(Y),G=!!K,J=[];if(G)for(var Z=0,ee=K.length;Z<ee;Z+=1){var te=K[Z];J.push([j.indexOf(te),te.length-1])}return{score:G?.5:1,isMatch:G,matchedIndices:J}}},function(I,N,B){var j=B(4),U=B(5);I.exports=function(q,Y,K,G){for(var J=G.location,Z=J===void 0?0:J,ee=G.distance,te=ee===void 0?100:ee,re=G.threshold,se=re===void 0?.6:re,ne=G.findAllMatches,le=ne!==void 0&&ne,ge=G.minMatchCharLength,ue=ge===void 0?1:ge,_e=G.includeMatches,fe=_e!==void 0&&_e,me=Z,ve=q.length,xe=se,oe=q.indexOf(Y,me),ye=Y.length,be=[],we=0;we<ve;we+=1)be[we]=0;if(oe!==-1){var Ae=j(Y,{errors:0,currentLocation:oe,expectedLocation:me,distance:te});if(xe=Math.min(Ae,xe),(oe=q.lastIndexOf(Y,me+ye))!==-1){var ke=j(Y,{errors:0,currentLocation:oe,expectedLocation:me,distance:te});xe=Math.min(ke,xe)}}oe=-1;for(var Oe=[],Me=1,ze=ye+ve,Fe=1<<(ye<=31?ye-1:30),Ze=0;Ze<ye;Ze+=1){for(var lt=0,qe=ze;lt<qe;)j(Y,{errors:Ze,currentLocation:me+qe,expectedLocation:me,distance:te})<=xe?lt=qe:ze=qe,qe=Math.floor((ze-lt)/2+lt);ze=qe;var Ve=Math.max(1,me-qe+1),At=le?ve:Math.min(me+qe,ve)+ye,Nt=Array(At+2);Nt[At+1]=(1<<Ze)-1;for(var zt=At;zt>=Ve;zt-=1){var Ht=zt-1,qt=K[q.charAt(Ht)];if(qt&&(be[Ht]=1),Nt[zt]=(Nt[zt+1]<<1|1)&qt,Ze!==0&&(Nt[zt]|=(Oe[zt+1]|Oe[zt])<<1|1|Oe[zt+1]),Nt[zt]&Fe&&(Me=j(Y,{errors:Ze,currentLocation:Ht,expectedLocation:me,distance:te}))<=xe){if(xe=Me,(oe=Ht)<=me)break;Ve=Math.max(1,2*me-oe)}}if(j(Y,{errors:Ze+1,currentLocation:me,expectedLocation:me,distance:te})>xe)break;Oe=Nt}var Qt={isMatch:oe>=0,score:Me===0?.001:Me};return fe&&(Qt.matchedIndices=U(be,ue)),Qt}},function(I,N){I.exports=function(B,j){var U=j.errors,q=U===void 0?0:U,Y=j.currentLocation,K=Y===void 0?0:Y,G=j.expectedLocation,J=G===void 0?0:G,Z=j.distance,ee=Z===void 0?100:Z,te=q/B.length,re=Math.abs(J-K);return ee?te+re/ee:re?1:te}},function(I,N){I.exports=function(){for(var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=[],q=-1,Y=-1,K=0,G=B.length;K<G;K+=1){var J=B[K];J&&q===-1?q=K:J||q===-1||((Y=K-1)-q+1>=j&&U.push([q,Y]),q=-1)}return B[K-1]&&K-q>=j&&U.push([q,K-1]),U}},function(I,N){I.exports=function(B){for(var j={},U=B.length,q=0;q<U;q+=1)j[B.charAt(q)]=0;for(var Y=0;Y<U;Y+=1)j[B.charAt(Y)]|=1<<U-Y-1;return j}},function(I,N){var B=function(Y){return Array.isArray?Array.isArray(Y):Object.prototype.toString.call(Y)==="[object Array]"},j=function(Y){return Y==null?"":function(K){if(typeof K=="string")return K;var G=K+"";return G=="0"&&1/K==-1/0?"-0":G}(Y)},U=function(Y){return typeof Y=="string"},q=function(Y){return typeof Y=="number"};I.exports={get:function(Y,K){var G=[];return function J(Z,ee){if(ee){var te=ee.indexOf("."),re=ee,se=null;te!==-1&&(re=ee.slice(0,te),se=ee.slice(te+1));var ne=Z[re];if(ne!=null)if(se||!U(ne)&&!q(ne))if(B(ne))for(var le=0,ge=ne.length;le<ge;le+=1)J(ne[le],se);else se&&J(ne,se);else G.push(j(ne))}else G.push(Z)}(Y,K),G},isArray:B,isString:U,isNum:q,toString:j}}])})})(fuse);var fuseExports=fuse.exports;const Fuse=getDefaultExportFromCjs(fuseExports),_sfc_main$3g={props:{columns:{type:Array,default:()=>[]},rows:{type:Array,required:!0},searchQuery:{type:String,default:""},selections:{type:Array,default:()=>[]},maxSelections:{type:Number},sort:{type:Boolean,default:!0},sortColumn:String,sortDirection:{type:String,default:"asc"}},provide(){return{sharedState:this.sharedState}},data(){return{sharedState:{searchQuery:this.searchQuery,columns:this.columns,sortColumn:null,sortDirection:this.sortDirection,rows:[],originalRows:this.rows,selections:this.selections,maxSelections:this.maxSelections}}},computed:{filteredRows(){let M=this.rows;return M=this.filterBySearch(M),this.sortRows(M)},visibleColumns(){return this.sharedState.columns.filter(M=>M.visible)},searchableColumns(){return this.visibleColumns.length?this.visibleColumns.map(M=>M.field):Object.keys(rows[0])}},watch:{filteredRows:{immediate:!0,handler:function(M){this.sharedState.rows=M}},selections(M){this.sharedState.selections=M},"sharedState.selections":function(M){this.$emit("selections-updated",M)},columns(M){this.sharedState.columns=M},sortColumn(M){this.sharedState.sortColumn=M},visibleColumns(M){this.$emit("visible-columns-updated",M)}},created(){this.setInitialSortColumn(),this.$events.$on("clear-selections",this.clearSelections)},destroyed(){this.$events.$off("clear-selections",this.clearSelections)},methods:{setInitialSortColumn(){const M=this.sharedState.columns;if(M.length===0)return;let $=this.visibleColumns[0];$=$?$.field:M[0].field,this.sharedState.sortColumn=this.sortColumn||(this.sort?$:null)},filterBySearch(M){return this.searchQuery?new Fuse(M,{findAllMatches:!0,threshold:.1,minMatchCharLength:2,keys:this.searchableColumns}).search(this.searchQuery):M},sortRows(M){return!this.sort||!this.sharedState.sortColumn||(M=_.sortBy(M,this.sharedState.sortColumn),this.sharedState.sortDirection==="desc"&&(M=M.reverse())),M},clearSelections(){this.sharedState.selections=[]}},render(){return this.$scopedSlots.default({rows:this.filteredRows,hasSelections:this.sharedState.selections.length>0})}},_sfc_render$3g=null,_sfc_staticRenderFns$3g=null;var __component__$3h=normalizeComponent$3(_sfc_main$3g,_sfc_render$3g,_sfc_staticRenderFns$3g,!1,null,null,null,null);const DataList=__component__$3h.exports,_sfc_main$3f={props:{value:{required:!0}},data(){return{truncateAt:50}},computed:{text(){let M=this.value;return M===0?0:M?typeof M!="string"?JSON.stringify(M):(M=M.replace(/<\/?[^>]+(>|$)/g,""),M.length>this.truncateAt&&(M=M.substring(0,this.truncateAt)+"…"),M):""}},render(M){return M("div",{domProps:{innerHTML:this.text}})}},_sfc_render$3f=null,_sfc_staticRenderFns$3f=null;var __component__$3g=normalizeComponent$3(_sfc_main$3f,_sfc_render$3f,_sfc_staticRenderFns$3f,!1,null,null,null,null);const DefaultField=__component__$3g.exports,_sfc_main$3e={components:{DefaultField},props:{handle:{type:String,required:!0},value:{required:!0},values:{required:!0},fieldtype:String},computed:{component(){const M="DefaultField",$=`${this.fieldtype}-fieldtype-index`;return this.fieldtype&&Vue$3.options.components[$]?$:M},cssClass(){return this.fieldtype?`${this.fieldtype}-index-field`:""}}};var _sfc_render$3e=function M(){var $=this,I=$._self._c;return I("div",[I($.component,{tag:"component",class:$.cssClass,attrs:{handle:$.handle,value:$.value,values:$.values}})],1)},_sfc_staticRenderFns$3e=[],__component__$3f=normalizeComponent$3(_sfc_main$3e,_sfc_render$3e,_sfc_staticRenderFns$3e,!1,null,null,null,null);const TableField=__component__$3f.exports;var draggable_bundle={exports:{}};(function(M,$){(function(N,B){M.exports=B()})(window,function(){return function(I){var N={};function B(j){if(N[j])return N[j].exports;var U=N[j]={i:j,l:!1,exports:{}};return I[j].call(U.exports,U,U.exports,B),U.l=!0,U.exports}return B.m=I,B.c=N,B.d=function(j,U,q){B.o(j,U)||Object.defineProperty(j,U,{enumerable:!0,get:q})},B.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},B.t=function(j,U){if(U&1&&(j=B(j)),U&8||U&4&&typeof j=="object"&&j&&j.__esModule)return j;var q=Object.create(null);if(B.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:j}),U&2&&typeof j!="string")for(var Y in j)B.d(q,Y,(function(K){return j[K]}).bind(null,Y));return q},B.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return B.d(U,"a",U),U},B.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},B.p="",B(B.s=72)}([function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(66),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(70),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(57);Object.defineProperty(N,"closest",{enumerable:!0,get:function(){return K(j).default}});var U=B(55);Object.defineProperty(N,"requestNextAnimationFrame",{enumerable:!0,get:function(){return K(U).default}});var q=B(53);Object.defineProperty(N,"distance",{enumerable:!0,get:function(){return K(q).default}});var Y=B(51);Object.defineProperty(N,"touchCoords",{enumerable:!0,get:function(){return K(Y).default}});function K(G){return G&&G.__esModule?G:{default:G}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(46);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(49),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(14);Object.keys(j).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return j[Z]}})});var U=B(13);Object.keys(U).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return U[Z]}})});var q=B(12);Object.keys(q).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return q[Z]}})});var Y=B(6);Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return Y[Z]}})});var K=B(39),G=J(K);function J(Z){return Z&&Z.__esModule?Z:{default:Z}}N.default=G.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(4);Object.defineProperty(N,"Sensor",{enumerable:!0,get:function(){return J(j).default}});var U=B(48);Object.defineProperty(N,"MouseSensor",{enumerable:!0,get:function(){return J(U).default}});var q=B(45);Object.defineProperty(N,"TouchSensor",{enumerable:!0,get:function(){return J(q).default}});var Y=B(43);Object.defineProperty(N,"DragSensor",{enumerable:!0,get:function(){return J(Y).default}});var K=B(41);Object.defineProperty(N,"ForceTouchSensor",{enumerable:!0,get:function(){return J(K).default}});var G=B(3);Object.keys(G).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return G[Z]}})});function J(Z){return Z&&Z.__esModule?Z:{default:Z}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(20);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(25);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(29);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(32);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(35);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(68);Object.defineProperty(N,"Announcement",{enumerable:!0,get:function(){return K(j).default}}),Object.defineProperty(N,"defaultAnnouncementOptions",{enumerable:!0,get:function(){return j.defaultOptions}});var U=B(65);Object.defineProperty(N,"Focusable",{enumerable:!0,get:function(){return K(U).default}});var q=B(63);Object.defineProperty(N,"Mirror",{enumerable:!0,get:function(){return K(q).default}}),Object.defineProperty(N,"defaultMirrorOptions",{enumerable:!0,get:function(){return q.defaultOptions}});var Y=B(59);Object.defineProperty(N,"Scrollable",{enumerable:!0,get:function(){return K(Y).default}}),Object.defineProperty(N,"defaultScrollableOptions",{enumerable:!0,get:function(){return Y.defaultOptions}});function K(G){return G&&G.__esModule?G:{default:G}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(69);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(71);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(re){for(var se=1;se<arguments.length;se++){var ne=arguments[se];for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&(re[le]=ne[le])}return re},U=B(0),q=Y(U);function Y(re){return re&&re.__esModule?re:{default:re}}const K=Symbol("onSortableSorted"),G=Symbol("onSortableSort"),J=N.defaultOptions={duration:150,easingFunction:"ease-in-out"};class Z extends q.default{constructor(se){super(se),this.options=j({},J,this.getOptions()),this.lastAnimationFrame=null,this.lastElements=[],this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("sortable:sort",this[G]),this.draggable.on("sortable:sorted",this[K])}detach(){this.draggable.off("sortable:sort",this[G]),this.draggable.off("sortable:sorted",this[K])}getOptions(){return this.draggable.options.sortAnimation||{}}[G]({dragEvent:se}){const{sourceContainer:ne}=se,le=this.draggable.getDraggableElementsForContainer(ne);this.lastElements=Array.from(le).map(ge=>({domEl:ge,offsetTop:ge.offsetTop,offsetLeft:ge.offsetLeft}))}[K]({oldIndex:se,newIndex:ne}){if(se===ne)return;const le=[];let ge,ue,_e;se>ne?(ge=ne,ue=se-1,_e=1):(ge=se+1,ue=ne,_e=-1);for(let fe=ge;fe<=ue;fe++){const me=this.lastElements[fe],ve=this.lastElements[fe+_e];le.push({from:me,to:ve})}cancelAnimationFrame(this.lastAnimationFrame),this.lastAnimationFrame=requestAnimationFrame(()=>{le.forEach(fe=>ee(fe,this.options))})}}N.default=Z;function ee({from:re,to:se},{duration:ne,easingFunction:le}){const ge=re.domEl,ue=re.offsetLeft-se.offsetLeft,_e=re.offsetTop-se.offsetTop;ge.style.pointerEvents="none",ge.style.transform=`translate3d(${ue}px, ${_e}px, 0)`,requestAnimationFrame(()=>{ge.addEventListener("transitionend",te),ge.style.transition=`transform ${ne}ms ${le}`,ge.style.transform=""})}function te(re){re.target.style.transition="",re.target.style.pointerEvents="",re.target.removeEventListener("transitionend",te)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(15),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(te){for(var re=1;re<arguments.length;re++){var se=arguments[re];for(var ne in se)Object.prototype.hasOwnProperty.call(se,ne)&&(te[ne]=se[ne])}return te},U=B(0),q=Y(U);function Y(te){return te&&te.__esModule?te:{default:te}}const K=Symbol("onSortableSorted"),G=N.defaultOptions={duration:150,easingFunction:"ease-in-out",horizontal:!1};class J extends q.default{constructor(re){super(re),this.options=j({},G,this.getOptions()),this.lastAnimationFrame=null,this[K]=this[K].bind(this)}attach(){this.draggable.on("sortable:sorted",this[K])}detach(){this.draggable.off("sortable:sorted",this[K])}getOptions(){return this.draggable.options.swapAnimation||{}}[K]({oldIndex:re,newIndex:se,dragEvent:ne}){const{source:le,over:ge}=ne;cancelAnimationFrame(this.lastAnimationFrame),this.lastAnimationFrame=requestAnimationFrame(()=>{re>=se?Z(le,ge,this.options):Z(ge,le,this.options)})}}N.default=J;function Z(te,re,{duration:se,easingFunction:ne,horizontal:le}){for(const ge of[te,re])ge.style.pointerEvents="none";if(le){const ge=te.offsetWidth;te.style.transform=`translate3d(${ge}px, 0, 0)`,re.style.transform=`translate3d(-${ge}px, 0, 0)`}else{const ge=te.offsetHeight;te.style.transform=`translate3d(0, ${ge}px, 0)`,re.style.transform=`translate3d(0, -${ge}px, 0)`}requestAnimationFrame(()=>{for(const ge of[te,re])ge.addEventListener("transitionend",ee),ge.style.transition=`transform ${se}ms ${ne}`,ge.style.transform=""})}function ee(te){te.target.style.transition="",te.target.style.pointerEvents="",te.target.removeEventListener("transitionend",ee)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(17),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(0),U=Y(j),q=B(7);function Y(se){return se&&se.__esModule?se:{default:se}}const K=Symbol("onDragStart"),G=Symbol("onDragStop"),J=Symbol("onDragOver"),Z=Symbol("onDragOut"),ee=Symbol("onMirrorCreated"),te=Symbol("onMirrorDestroy");class re extends U.default{constructor(ne){super(ne),this.firstSource=null,this.mirror=null,this[K]=this[K].bind(this),this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){this.draggable.on("drag:start",this[K]).on("drag:stop",this[G]).on("drag:over",this[J]).on("drag:out",this[Z]).on("droppable:over",this[J]).on("droppable:out",this[Z]).on("mirror:created",this[ee]).on("mirror:destroy",this[te])}detach(){this.draggable.off("drag:start",this[K]).off("drag:stop",this[G]).off("drag:over",this[J]).off("drag:out",this[Z]).off("droppable:over",this[J]).off("droppable:out",this[Z]).off("mirror:created",this[ee]).off("mirror:destroy",this[te])}[K](ne){ne.canceled()||(this.firstSource=ne.source)}[G](){this.firstSource=null}[J](ne){if(ne.canceled())return;const le=ne.source||ne.dragEvent.source;if(le===this.firstSource){this.firstSource=null;return}const ge=new q.SnapInEvent({dragEvent:ne,snappable:ne.over||ne.droppable});this.draggable.trigger(ge),!ge.canceled()&&(this.mirror&&(this.mirror.style.display="none"),le.classList.remove(...this.draggable.getClassNamesFor("source:dragging")),le.classList.add(...this.draggable.getClassNamesFor("source:placed")),setTimeout(()=>{le.classList.remove(...this.draggable.getClassNamesFor("source:placed"))},this.draggable.options.placedTimeout))}[Z](ne){if(ne.canceled())return;const le=ne.source||ne.dragEvent.source,ge=new q.SnapOutEvent({dragEvent:ne,snappable:ne.over||ne.droppable});this.draggable.trigger(ge),!ge.canceled()&&(this.mirror&&(this.mirror.style.display=""),le.classList.add(...this.draggable.getClassNamesFor("source:dragging")))}[ee]({mirror:ne}){this.mirror=ne}[te](){this.mirror=null}}N.default=re},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SnapOutEvent=N.SnapInEvent=N.SnapEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}get snappable(){return this.data.snappable}}N.SnapEvent=Y,Y.type="snap";class K extends Y{}N.SnapInEvent=K,K.type="snap:in",K.cancelable=!0;class G extends Y{}N.SnapOutEvent=G,G.type="snap:out",G.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(7);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(19),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(se){for(var ne=1;ne<arguments.length;ne++){var le=arguments[ne];for(var ge in le)Object.prototype.hasOwnProperty.call(le,ge)&&(se[ge]=le[ge])}return se},U=B(0),q=K(U),Y=B(2);function K(se){return se&&se.__esModule?se:{default:se}}const G=Symbol("onMirrorCreated"),J=Symbol("onMirrorDestroy"),Z=Symbol("onDragOver"),ee=Symbol("resize"),te=N.defaultOptions={};class re extends q.default{constructor(ne){super(ne),this.options=j({},te,this.getOptions()),this.lastWidth=0,this.lastHeight=0,this.mirror=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this)}attach(){this.draggable.on("mirror:created",this[G]).on("drag:over",this[Z]).on("drag:over:container",this[Z])}detach(){this.draggable.off("mirror:created",this[G]).off("mirror:destroy",this[J]).off("drag:over",this[Z]).off("drag:over:container",this[Z])}getOptions(){return this.draggable.options.resizeMirror||{}}[G]({mirror:ne}){this.mirror=ne}[J](){this.mirror=null}[Z](ne){this[ee](ne)}[ee]({overContainer:ne,over:le}){requestAnimationFrame(()=>{if(!this.mirror.parentNode)return;this.mirror.parentNode!==ne&&ne.appendChild(this.mirror);const ge=le||this.draggable.getDraggableElementsForContainer(ne)[0];ge&&(0,Y.requestNextAnimationFrame)(()=>{const ue=ge.getBoundingClientRect();this.lastHeight===ue.height&&this.lastWidth===ue.width||(this.mirror.style.width=`${ue.width}px`,this.mirror.style.height=`${ue.height}px`,this.lastWidth=ue.width,this.lastHeight=ue.height)})})}}N.default=re},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(22),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(0),U=K(j),q=B(2),Y=B(8);function K(te){return te&&te.__esModule?te:{default:te}}const G=Symbol("onDragMove"),J=Symbol("onDragStop"),Z=Symbol("onRequestAnimationFrame");class ee extends U.default{constructor(re){super(re),this.currentlyCollidingElement=null,this.lastCollidingElement=null,this.currentAnimationFrame=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this)}attach(){this.draggable.on("drag:move",this[G]).on("drag:stop",this[J])}detach(){this.draggable.off("drag:move",this[G]).off("drag:stop",this[J])}getCollidables(){const re=this.draggable.options.collidables;return typeof re=="string"?Array.prototype.slice.call(document.querySelectorAll(re)):re instanceof NodeList||re instanceof Array?Array.prototype.slice.call(re):re instanceof HTMLElement?[re]:typeof re=="function"?re():[]}[G](re){const se=re.sensorEvent.target;this.currentAnimationFrame=requestAnimationFrame(this[Z](se)),this.currentlyCollidingElement&&re.cancel();const ne=new Y.CollidableInEvent({dragEvent:re,collidingElement:this.currentlyCollidingElement}),le=new Y.CollidableOutEvent({dragEvent:re,collidingElement:this.lastCollidingElement}),ge=!!(this.currentlyCollidingElement&&this.lastCollidingElement!==this.currentlyCollidingElement),ue=!!(!this.currentlyCollidingElement&&this.lastCollidingElement);ge?(this.lastCollidingElement&&this.draggable.trigger(le),this.draggable.trigger(ne)):ue&&this.draggable.trigger(le),this.lastCollidingElement=this.currentlyCollidingElement}[J](re){const se=this.currentlyCollidingElement||this.lastCollidingElement,ne=new Y.CollidableOutEvent({dragEvent:re,collidingElement:se});se&&this.draggable.trigger(ne),this.lastCollidingElement=null,this.currentlyCollidingElement=null}[Z](re){return()=>{const se=this.getCollidables();this.currentlyCollidingElement=(0,q.closest)(re,ne=>se.includes(ne))}}}N.default=ee},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.CollidableOutEvent=N.CollidableInEvent=N.CollidableEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.CollidableEvent=Y,Y.type="collidable";class K extends Y{get collidingElement(){return this.data.collidingElement}}N.CollidableInEvent=K,K.type="collidable:in";class G extends Y{get collidingElement(){return this.data.collidingElement}}N.CollidableOutEvent=G,G.type="collidable:out"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(8);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(24),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(26);Object.defineProperty(N,"Collidable",{enumerable:!0,get:function(){return G(j).default}});var U=B(23);Object.defineProperty(N,"ResizeMirror",{enumerable:!0,get:function(){return G(U).default}}),Object.defineProperty(N,"defaultResizeMirrorOptions",{enumerable:!0,get:function(){return U.defaultOptions}});var q=B(21);Object.defineProperty(N,"Snappable",{enumerable:!0,get:function(){return G(q).default}});var Y=B(18);Object.defineProperty(N,"SwapAnimation",{enumerable:!0,get:function(){return G(Y).default}}),Object.defineProperty(N,"defaultSwapAnimationOptions",{enumerable:!0,get:function(){return Y.defaultOptions}});var K=B(16);Object.defineProperty(N,"SortAnimation",{enumerable:!0,get:function(){return G(K).default}}),Object.defineProperty(N,"defaultSortAnimationOptions",{enumerable:!0,get:function(){return K.defaultOptions}});function G(J){return J&&J.__esModule?J:{default:J}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(fe){for(var me=1;me<arguments.length;me++){var ve=arguments[me];for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&(fe[xe]=ve[xe])}return fe},U=B(5),q=K(U),Y=B(9);function K(fe){return fe&&fe.__esModule?fe:{default:fe}}const G=Symbol("onDragStart"),J=Symbol("onDragOverContainer"),Z=Symbol("onDragOver"),ee=Symbol("onDragStop");function te({dragEvent:fe}){const me=fe.source.textContent.trim()||fe.source.id||"sortable element";if(fe.over){const ve=fe.over.textContent.trim()||fe.over.id||"sortable element";return fe.source.compareDocumentPosition(fe.over)&Node.DOCUMENT_POSITION_FOLLOWING?`Placed ${me} after ${ve}`:`Placed ${me} before ${ve}`}else return`Placed ${me} into a different container`}const re={"sortable:sorted":te};class se extends q.default{constructor(me=[],ve={}){super(me,j({},ve,{announcements:j({},re,ve.announcements||{})})),this.startIndex=null,this.startContainer=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this.on("drag:start",this[G]).on("drag:over:container",this[J]).on("drag:over",this[Z]).on("drag:stop",this[ee])}destroy(){super.destroy(),this.off("drag:start",this[G]).off("drag:over:container",this[J]).off("drag:over",this[Z]).off("drag:stop",this[ee])}index(me){return this.getSortableElementsForContainer(me.parentNode).indexOf(me)}getSortableElementsForContainer(me){return[...me.querySelectorAll(this.options.draggable)].filter(xe=>xe!==this.originalSource&&xe!==this.mirror&&xe.parentNode===me)}[G](me){this.startContainer=me.source.parentNode,this.startIndex=this.index(me.source);const ve=new Y.SortableStartEvent({dragEvent:me,startIndex:this.startIndex,startContainer:this.startContainer});this.trigger(ve),ve.canceled()&&me.cancel()}[J](me){if(me.canceled())return;const{source:ve,over:xe,overContainer:oe}=me,ye=this.index(ve),be=new Y.SortableSortEvent({dragEvent:me,currentIndex:ye,source:ve,over:xe});if(this.trigger(be),be.canceled())return;const we=this.getSortableElementsForContainer(oe),Ae=le({source:ve,over:xe,overContainer:oe,children:we});if(!Ae)return;const{oldContainer:ke,newContainer:Oe}=Ae,Me=this.index(me.source),ze=new Y.SortableSortedEvent({dragEvent:me,oldIndex:ye,newIndex:Me,oldContainer:ke,newContainer:Oe});this.trigger(ze)}[Z](me){if(me.over===me.originalSource||me.over===me.source)return;const{source:ve,over:xe,overContainer:oe}=me,ye=this.index(ve),be=new Y.SortableSortEvent({dragEvent:me,currentIndex:ye,source:ve,over:xe});if(this.trigger(be),be.canceled())return;const we=this.getDraggableElementsForContainer(oe),Ae=le({source:ve,over:xe,overContainer:oe,children:we});if(!Ae)return;const{oldContainer:ke,newContainer:Oe}=Ae,Me=this.index(ve),ze=new Y.SortableSortedEvent({dragEvent:me,oldIndex:ye,newIndex:Me,oldContainer:ke,newContainer:Oe});this.trigger(ze)}[ee](me){const ve=new Y.SortableStopEvent({dragEvent:me,oldIndex:this.startIndex,newIndex:this.index(me.source),oldContainer:this.startContainer,newContainer:me.source.parentNode});this.trigger(ve),this.startIndex=null,this.startContainer=null}}N.default=se;function ne(fe){return Array.prototype.indexOf.call(fe.parentNode.children,fe)}function le({source:fe,over:me,overContainer:ve,children:xe}){const oe=!xe.length,ye=fe.parentNode!==ve,be=me&&fe.parentNode===me.parentNode;return oe?ge(fe,ve):be?ue(fe,me):ye?_e(fe,me,ve):null}function ge(fe,me){const ve=fe.parentNode;return me.appendChild(fe),{oldContainer:ve,newContainer:me}}function ue(fe,me){const ve=ne(fe),xe=ne(me);return ve<xe?fe.parentNode.insertBefore(fe,me.nextElementSibling):fe.parentNode.insertBefore(fe,me),{oldContainer:fe.parentNode,newContainer:fe.parentNode}}function _e(fe,me,ve){const xe=fe.parentNode;return me?me.parentNode.insertBefore(fe,me):ve.appendChild(fe),{oldContainer:xe,newContainer:fe.parentNode}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SortableStopEvent=N.SortableSortedEvent=N.SortableSortEvent=N.SortableStartEvent=N.SortableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.SortableEvent=Y,Y.type="sortable";class K extends Y{get startIndex(){return this.data.startIndex}get startContainer(){return this.data.startContainer}}N.SortableStartEvent=K,K.type="sortable:start",K.cancelable=!0;class G extends Y{get currentIndex(){return this.data.currentIndex}get over(){return this.data.over}get overContainer(){return this.data.dragEvent.overContainer}}N.SortableSortEvent=G,G.type="sortable:sort",G.cancelable=!0;class J extends Y{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}N.SortableSortedEvent=J,J.type="sortable:sorted";class Z extends Y{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}N.SortableStopEvent=Z,Z.type="sortable:stop"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(9);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(28),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(le){for(var ge=1;ge<arguments.length;ge++){var ue=arguments[ge];for(var _e in ue)Object.prototype.hasOwnProperty.call(ue,_e)&&(le[_e]=ue[_e])}return le},U=B(5),q=K(U),Y=B(10);function K(le){return le&&le.__esModule?le:{default:le}}const G=Symbol("onDragStart"),J=Symbol("onDragOver"),Z=Symbol("onDragStop");function ee({dragEvent:le,swappedElement:ge}){const ue=le.source.textContent.trim()||le.source.id||"swappable element",_e=ge.textContent.trim()||ge.id||"swappable element";return`Swapped ${ue} with ${_e}`}const te={"swappabled:swapped":ee};class re extends q.default{constructor(ge=[],ue={}){super(ge,j({},ue,{announcements:j({},te,ue.announcements||{})})),this.lastOver=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this.on("drag:start",this[G]).on("drag:over",this[J]).on("drag:stop",this[Z])}destroy(){super.destroy(),this.off("drag:start",this._onDragStart).off("drag:over",this._onDragOver).off("drag:stop",this._onDragStop)}[G](ge){const ue=new Y.SwappableStartEvent({dragEvent:ge});this.trigger(ue),ue.canceled()&&ge.cancel()}[J](ge){if(ge.over===ge.originalSource||ge.over===ge.source||ge.canceled())return;const ue=new Y.SwappableSwapEvent({dragEvent:ge,over:ge.over,overContainer:ge.overContainer});if(this.trigger(ue),ue.canceled())return;this.lastOver&&this.lastOver!==ge.over&&ne(this.lastOver,ge.source),this.lastOver===ge.over?this.lastOver=null:this.lastOver=ge.over,ne(ge.source,ge.over);const _e=new Y.SwappableSwappedEvent({dragEvent:ge,swappedElement:ge.over});this.trigger(_e)}[Z](ge){const ue=new Y.SwappableStopEvent({dragEvent:ge});this.trigger(ue),this.lastOver=null}}N.default=re;function se(le){const ge=document.createElement("div");le(ge),ge.parentNode.removeChild(ge)}function ne(le,ge){const ue=ge.parentNode,_e=le.parentNode;se(fe=>{_e.insertBefore(fe,le),ue.insertBefore(le,ge),_e.insertBefore(ge,fe)})}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SwappableStopEvent=N.SwappableSwappedEvent=N.SwappableSwapEvent=N.SwappableStartEvent=N.SwappableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.SwappableEvent=Y,Y.type="swappable";class K extends Y{}N.SwappableStartEvent=K,K.type="swappable:start",K.cancelable=!0;class G extends Y{get over(){return this.data.over}get overContainer(){return this.data.overContainer}}N.SwappableSwapEvent=G,G.type="swappable:swap",G.cancelable=!0;class J extends Y{get swappedElement(){return this.data.swappedElement}}N.SwappableSwappedEvent=J,J.type="swappable:swapped";class Z extends Y{}N.SwappableStopEvent=Z,Z.type="swappable:stop"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(10);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(31),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(ve){for(var xe=1;xe<arguments.length;xe++){var oe=arguments[xe];for(var ye in oe)Object.prototype.hasOwnProperty.call(oe,ye)&&(ve[ye]=oe[ye])}return ve},U=B(2),q=B(5),Y=G(q),K=B(11);function G(ve){return ve&&ve.__esModule?ve:{default:ve}}const J=Symbol("onDragStart"),Z=Symbol("onDragMove"),ee=Symbol("onDragStop"),te=Symbol("dropInDropZone"),re=Symbol("returnToOriginalDropzone"),se=Symbol("closestDropzone"),ne=Symbol("getDropzones");function le({dragEvent:ve,dropzone:xe}){const oe=ve.source.textContent.trim()||ve.source.id||"draggable element",ye=xe.textContent.trim()||xe.id||"droppable element";return`Dropped ${oe} into ${ye}`}function ge({dragEvent:ve,dropzone:xe}){const oe=ve.source.textContent.trim()||ve.source.id||"draggable element",ye=xe.textContent.trim()||xe.id||"droppable element";return`Returned ${oe} from ${ye}`}const ue={"droppable:dropped":le,"droppable:returned":ge},_e={"droppable:active":"draggable-dropzone--active","droppable:occupied":"draggable-dropzone--occupied"},fe={dropzone:".draggable-droppable"};class me extends Y.default{constructor(xe=[],oe={}){super(xe,j({},fe,oe,{classes:j({},_e,oe.classes||{}),announcements:j({},ue,oe.announcements||{})})),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null,this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this.on("drag:start",this[J]).on("drag:move",this[Z]).on("drag:stop",this[ee])}destroy(){super.destroy(),this.off("drag:start",this[J]).off("drag:move",this[Z]).off("drag:stop",this[ee])}[J](xe){if(xe.canceled())return;this.dropzones=[...this[ne]()];const oe=(0,U.closest)(xe.sensorEvent.target,this.options.dropzone);if(!oe){xe.cancel();return}const ye=new K.DroppableStartEvent({dragEvent:xe,dropzone:oe});if(this.trigger(ye),ye.canceled()){xe.cancel();return}this.initialDropzone=oe;for(const be of this.dropzones)be.classList.contains(this.getClassNameFor("droppable:occupied"))||be.classList.add(...this.getClassNamesFor("droppable:active"))}[Z](xe){if(xe.canceled())return;const oe=this[se](xe.sensorEvent.target);oe&&!oe.classList.contains(this.getClassNameFor("droppable:occupied"))&&this[te](xe,oe)?this.lastDropzone=oe:(!oe||oe===this.initialDropzone)&&this.lastDropzone&&(this[re](xe),this.lastDropzone=null)}[ee](xe){const oe=new K.DroppableStopEvent({dragEvent:xe,dropzone:this.lastDropzone||this.initialDropzone});this.trigger(oe);const ye=this.getClassNamesFor("droppable:occupied");for(const be of this.dropzones)be.classList.remove(...this.getClassNamesFor("droppable:active"));this.lastDropzone&&this.lastDropzone!==this.initialDropzone&&this.initialDropzone.classList.remove(...ye),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null}[te](xe,oe){const ye=new K.DroppableDroppedEvent({dragEvent:xe,dropzone:oe});if(this.trigger(ye),ye.canceled())return!1;const be=this.getClassNamesFor("droppable:occupied");return this.lastDropzone&&this.lastDropzone.classList.remove(...be),oe.appendChild(xe.source),oe.classList.add(...be),!0}[re](xe){const oe=new K.DroppableReturnedEvent({dragEvent:xe,dropzone:this.lastDropzone});this.trigger(oe),!oe.canceled()&&(this.initialDropzone.appendChild(xe.source),this.lastDropzone.classList.remove(...this.getClassNamesFor("droppable:occupied")))}[se](xe){return this.dropzones?(0,U.closest)(xe,this.dropzones):null}[ne](){const xe=this.options.dropzone;return typeof xe=="string"?document.querySelectorAll(xe):xe instanceof NodeList||xe instanceof Array?xe:typeof xe=="function"?xe():[]}}N.default=me},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DroppableStopEvent=N.DroppableReturnedEvent=N.DroppableDroppedEvent=N.DroppableStartEvent=N.DroppableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.DroppableEvent=Y,Y.type="droppable";class K extends Y{get dropzone(){return this.data.dropzone}}N.DroppableStartEvent=K,K.type="droppable:start",K.cancelable=!0;class G extends Y{get dropzone(){return this.data.dropzone}}N.DroppableDroppedEvent=G,G.type="droppable:dropped",G.cancelable=!0;class J extends Y{get dropzone(){return this.data.dropzone}}N.DroppableReturnedEvent=J,J.type="droppable:returned",J.cancelable=!0;class Z extends Y{get dropzone(){return this.data.dropzone}}N.DroppableStopEvent=Z,Z.type="droppable:stop",Z.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(11);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(34),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});class j{constructor(){this.callbacks={}}on(q,...Y){return this.callbacks[q]||(this.callbacks[q]=[]),this.callbacks[q].push(...Y),this}off(q,Y){if(!this.callbacks[q])return null;const K=this.callbacks[q].slice(0);for(let G=0;G<K.length;G++)Y===K[G]&&this.callbacks[q].splice(G,1);return this}trigger(q){if(!this.callbacks[q.type])return null;const Y=[...this.callbacks[q.type]],K=[];for(let G=Y.length-1;G>=0;G--){const J=Y[G];try{J(q)}catch(Z){K.push(Z)}}return K.length&&console.error(`Draggable caught errors while triggering '${q.type}'`,K),this}}N.default=j},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(37),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(ve){for(var xe=1;xe<arguments.length;xe++){var oe=arguments[xe];for(var ye in oe)Object.prototype.hasOwnProperty.call(oe,ye)&&(ve[ye]=oe[ye])}return ve},U=B(2),q=B(12),Y=B(38),K=ee(Y),G=B(6),J=B(13),Z=B(14);function ee(ve){return ve&&ve.__esModule?ve:{default:ve}}const te=Symbol("onDragStart"),re=Symbol("onDragMove"),se=Symbol("onDragStop"),ne=Symbol("onDragPressure"),le={"drag:start":ve=>`Picked up ${ve.source.textContent.trim()||ve.source.id||"draggable element"}`,"drag:stop":ve=>`Released ${ve.source.textContent.trim()||ve.source.id||"draggable element"}`},ge={"container:dragging":"draggable-container--is-dragging","source:dragging":"draggable-source--is-dragging","source:placed":"draggable-source--placed","container:placed":"draggable-container--placed","body:dragging":"draggable--is-dragging","draggable:over":"draggable--over","container:over":"draggable-container--over","source:original":"draggable--original",mirror:"draggable-mirror"},ue=N.defaultOptions={draggable:".draggable-source",handle:null,delay:{},distance:0,placedTimeout:800,plugins:[],sensors:[],exclude:{plugins:[],sensors:[]}};class _e{constructor(xe=[document.body],oe={}){if(xe instanceof NodeList||xe instanceof Array)this.containers=[...xe];else if(xe instanceof HTMLElement)this.containers=[xe];else throw new Error("Draggable containers are expected to be of type `NodeList`, `HTMLElement[]` or `HTMLElement`");this.options=j({},ue,oe,{classes:j({},ge,oe.classes||{}),announcements:j({},le,oe.announcements||{}),exclude:{plugins:oe.exclude&&oe.exclude.plugins||[],sensors:oe.exclude&&oe.exclude.sensors||[]}}),this.emitter=new K.default,this.dragging=!1,this.plugins=[],this.sensors=[],this[te]=this[te].bind(this),this[re]=this[re].bind(this),this[se]=this[se].bind(this),this[ne]=this[ne].bind(this),document.addEventListener("drag:start",this[te],!0),document.addEventListener("drag:move",this[re],!0),document.addEventListener("drag:stop",this[se],!0),document.addEventListener("drag:pressure",this[ne],!0);const ye=Object.values(_e.Plugins).filter(Ae=>!this.options.exclude.plugins.includes(Ae)),be=Object.values(_e.Sensors).filter(Ae=>!this.options.exclude.sensors.includes(Ae));this.addPlugin(...ye,...this.options.plugins),this.addSensor(...be,...this.options.sensors);const we=new J.DraggableInitializedEvent({draggable:this});this.on("mirror:created",({mirror:Ae})=>this.mirror=Ae),this.on("mirror:destroy",()=>this.mirror=null),this.trigger(we)}destroy(){document.removeEventListener("drag:start",this[te],!0),document.removeEventListener("drag:move",this[re],!0),document.removeEventListener("drag:stop",this[se],!0),document.removeEventListener("drag:pressure",this[ne],!0);const xe=new J.DraggableDestroyEvent({draggable:this});this.trigger(xe),this.removePlugin(...this.plugins.map(oe=>oe.constructor)),this.removeSensor(...this.sensors.map(oe=>oe.constructor))}addPlugin(...xe){const oe=xe.map(ye=>new ye(this));return oe.forEach(ye=>ye.attach()),this.plugins=[...this.plugins,...oe],this}removePlugin(...xe){return this.plugins.filter(ye=>xe.includes(ye.constructor)).forEach(ye=>ye.detach()),this.plugins=this.plugins.filter(ye=>!xe.includes(ye.constructor)),this}addSensor(...xe){const oe=xe.map(ye=>new ye(this.containers,this.options));return oe.forEach(ye=>ye.attach()),this.sensors=[...this.sensors,...oe],this}removeSensor(...xe){return this.sensors.filter(ye=>xe.includes(ye.constructor)).forEach(ye=>ye.detach()),this.sensors=this.sensors.filter(ye=>!xe.includes(ye.constructor)),this}addContainer(...xe){return this.containers=[...this.containers,...xe],this.sensors.forEach(oe=>oe.addContainer(...xe)),this}removeContainer(...xe){return this.containers=this.containers.filter(oe=>!xe.includes(oe)),this.sensors.forEach(oe=>oe.removeContainer(...xe)),this}on(xe,...oe){return this.emitter.on(xe,...oe),this}off(xe,oe){return this.emitter.off(xe,oe),this}trigger(xe){return this.emitter.trigger(xe),this}getClassNameFor(xe){return this.getClassNamesFor(xe)[0]}getClassNamesFor(xe){const oe=this.options.classes[xe];return oe instanceof Array?oe:typeof oe=="string"||oe instanceof String?[oe]:[]}isDragging(){return!!this.dragging}getDraggableElements(){return this.containers.reduce((xe,oe)=>[...xe,...this.getDraggableElementsForContainer(oe)],[])}getDraggableElementsForContainer(xe){return[...xe.querySelectorAll(this.options.draggable)].filter(ye=>ye!==this.originalSource&&ye!==this.mirror)}[te](xe){const oe=fe(xe),{target:ye,container:be}=oe;if(!this.containers.includes(be))return;if(this.options.handle&&ye&&!(0,U.closest)(ye,this.options.handle)){oe.cancel();return}if(this.originalSource=(0,U.closest)(ye,this.options.draggable),this.sourceContainer=be,!this.originalSource){oe.cancel();return}this.lastPlacedSource&&this.lastPlacedContainer&&(clearTimeout(this.placedTimeoutID),this.lastPlacedSource.classList.remove(...this.getClassNamesFor("source:placed")),this.lastPlacedContainer.classList.remove(...this.getClassNamesFor("container:placed"))),this.source=this.originalSource.cloneNode(!0),this.originalSource.parentNode.insertBefore(this.source,this.originalSource),this.originalSource.style.display="none";const we=new Z.DragStartEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:oe});if(this.trigger(we),this.dragging=!we.canceled(),we.canceled()){this.source.parentNode.removeChild(this.source),this.originalSource.style.display=null;return}this.originalSource.classList.add(...this.getClassNamesFor("source:original")),this.source.classList.add(...this.getClassNamesFor("source:dragging")),this.sourceContainer.classList.add(...this.getClassNamesFor("container:dragging")),document.body.classList.add(...this.getClassNamesFor("body:dragging")),me(document.body,"none"),requestAnimationFrame(()=>{const ke=fe(xe).clone({target:this.source});this[re](j({},xe,{detail:ke}))})}[re](xe){if(!this.dragging)return;const oe=fe(xe),{container:ye}=oe;let be=oe.target;const we=new Z.DragMoveEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ye,sensorEvent:oe});this.trigger(we),we.canceled()&&oe.cancel(),be=(0,U.closest)(be,this.options.draggable);const Ae=(0,U.closest)(oe.target,this.containers),ke=oe.overContainer||Ae,Oe=this.currentOverContainer&&ke!==this.currentOverContainer,Me=this.currentOver&&be!==this.currentOver,ze=ke&&this.currentOverContainer!==ke,Fe=Ae&&be&&this.currentOver!==be;if(Me){const Ze=new Z.DragOutEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ye,sensorEvent:oe,over:this.currentOver,overContainer:this.currentOverContainer});this.currentOver.classList.remove(...this.getClassNamesFor("draggable:over")),this.currentOver=null,this.trigger(Ze)}if(Oe){const Ze=new Z.DragOutContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ye,sensorEvent:oe,overContainer:this.currentOverContainer});this.currentOverContainer.classList.remove(...this.getClassNamesFor("container:over")),this.currentOverContainer=null,this.trigger(Ze)}if(ze){ke.classList.add(...this.getClassNamesFor("container:over"));const Ze=new Z.DragOverContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ye,sensorEvent:oe,overContainer:ke});this.currentOverContainer=ke,this.trigger(Ze)}if(Fe){be.classList.add(...this.getClassNamesFor("draggable:over"));const Ze=new Z.DragOverEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ye,sensorEvent:oe,overContainer:ke,over:be});this.currentOver=be,this.trigger(Ze)}}[se](xe){if(!this.dragging)return;this.dragging=!1;const oe=new Z.DragStopEvent({source:this.source,originalSource:this.originalSource,sensorEvent:xe.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(oe),this.source.parentNode.insertBefore(this.originalSource,this.source),this.source.parentNode.removeChild(this.source),this.originalSource.style.display="",this.source.classList.remove(...this.getClassNamesFor("source:dragging")),this.originalSource.classList.remove(...this.getClassNamesFor("source:original")),this.originalSource.classList.add(...this.getClassNamesFor("source:placed")),this.sourceContainer.classList.add(...this.getClassNamesFor("container:placed")),this.sourceContainer.classList.remove(...this.getClassNamesFor("container:dragging")),document.body.classList.remove(...this.getClassNamesFor("body:dragging")),me(document.body,""),this.currentOver&&this.currentOver.classList.remove(...this.getClassNamesFor("draggable:over")),this.currentOverContainer&&this.currentOverContainer.classList.remove(...this.getClassNamesFor("container:over")),this.lastPlacedSource=this.originalSource,this.lastPlacedContainer=this.sourceContainer,this.placedTimeoutID=setTimeout(()=>{this.lastPlacedSource&&this.lastPlacedSource.classList.remove(...this.getClassNamesFor("source:placed")),this.lastPlacedContainer&&this.lastPlacedContainer.classList.remove(...this.getClassNamesFor("container:placed")),this.lastPlacedSource=null,this.lastPlacedContainer=null},this.options.placedTimeout);const ye=new Z.DragStoppedEvent({source:this.source,originalSource:this.originalSource,sensorEvent:xe.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(ye),this.source=null,this.originalSource=null,this.currentOverContainer=null,this.currentOver=null,this.sourceContainer=null}[ne](xe){if(!this.dragging)return;const oe=fe(xe),ye=this.source||(0,U.closest)(oe.originalEvent.target,this.options.draggable),be=new Z.DragPressureEvent({sensorEvent:oe,source:ye,pressure:oe.pressure});this.trigger(be)}}N.default=_e,_e.Plugins={Announcement:q.Announcement,Focusable:q.Focusable,Mirror:q.Mirror,Scrollable:q.Scrollable},_e.Sensors={MouseSensor:G.MouseSensor,TouchSensor:G.TouchSensor};function fe(ve){return ve.detail}function me(ve,xe){ve.style.webkitUserSelect=xe,ve.style.mozUserSelect=xe,ve.style.msUserSelect=xe,ve.style.oUserSelect=xe,ve.style.userSelect=xe}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(4),U=Y(j),q=B(3);function Y(ne){return ne&&ne.__esModule?ne:{default:ne}}const K=Symbol("onMouseForceWillBegin"),G=Symbol("onMouseForceDown"),J=Symbol("onMouseDown"),Z=Symbol("onMouseForceChange"),ee=Symbol("onMouseMove"),te=Symbol("onMouseUp"),re=Symbol("onMouseForceGlobalChange");class se extends U.default{constructor(le=[],ge={}){super(le,ge),this.mightDrag=!1,this[K]=this[K].bind(this),this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){for(const le of this.containers)le.addEventListener("webkitmouseforcewillbegin",this[K],!1),le.addEventListener("webkitmouseforcedown",this[G],!1),le.addEventListener("mousedown",this[J],!0),le.addEventListener("webkitmouseforcechanged",this[Z],!1);document.addEventListener("mousemove",this[ee]),document.addEventListener("mouseup",this[te])}detach(){for(const le of this.containers)le.removeEventListener("webkitmouseforcewillbegin",this[K],!1),le.removeEventListener("webkitmouseforcedown",this[G],!1),le.removeEventListener("mousedown",this[J],!0),le.removeEventListener("webkitmouseforcechanged",this[Z],!1);document.removeEventListener("mousemove",this[ee]),document.removeEventListener("mouseup",this[te])}[K](le){le.preventDefault(),this.mightDrag=!0}[G](le){if(this.dragging)return;const ge=document.elementFromPoint(le.clientX,le.clientY),ue=le.currentTarget,_e=new q.DragStartSensorEvent({clientX:le.clientX,clientY:le.clientY,target:ge,container:ue,originalEvent:le});this.trigger(ue,_e),this.currentContainer=ue,this.dragging=!_e.canceled(),this.mightDrag=!1}[te](le){if(!this.dragging)return;const ge=new q.DragStopSensorEvent({clientX:le.clientX,clientY:le.clientY,target:null,container:this.currentContainer,originalEvent:le});this.trigger(this.currentContainer,ge),this.currentContainer=null,this.dragging=!1,this.mightDrag=!1}[J](le){this.mightDrag&&(le.stopPropagation(),le.stopImmediatePropagation(),le.preventDefault())}[ee](le){if(!this.dragging)return;const ge=document.elementFromPoint(le.clientX,le.clientY),ue=new q.DragMoveSensorEvent({clientX:le.clientX,clientY:le.clientY,target:ge,container:this.currentContainer,originalEvent:le});this.trigger(this.currentContainer,ue)}[Z](le){if(this.dragging)return;const ge=le.target,ue=le.currentTarget,_e=new q.DragPressureSensorEvent({pressure:le.webkitForce,clientX:le.clientX,clientY:le.clientY,target:ge,container:ue,originalEvent:le});this.trigger(ue,_e)}[re](le){if(!this.dragging)return;const ge=le.target,ue=new q.DragPressureSensorEvent({pressure:le.webkitForce,clientX:le.clientX,clientY:le.clientY,target:ge,container:this.currentContainer,originalEvent:le});this.trigger(this.currentContainer,ue)}}N.default=se},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(40),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(le){return le&&le.__esModule?le:{default:le}}const G=Symbol("onMouseDown"),J=Symbol("onMouseUp"),Z=Symbol("onDragStart"),ee=Symbol("onDragOver"),te=Symbol("onDragEnd"),re=Symbol("onDrop"),se=Symbol("reset");class ne extends q.default{constructor(ge=[],ue={}){super(ge,ue),this.mouseDownTimeout=null,this.draggableElement=null,this.nativeDraggableElement=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[re]=this[re].bind(this)}attach(){document.addEventListener("mousedown",this[G],!0)}detach(){document.removeEventListener("mousedown",this[G],!0)}[Z](ge){ge.dataTransfer.setData("text",""),ge.dataTransfer.effectAllowed=this.options.type;const ue=document.elementFromPoint(ge.clientX,ge.clientY);if(this.currentContainer=(0,j.closest)(ge.target,this.containers),!this.currentContainer)return;const _e=new Y.DragStartSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ue,container:this.currentContainer,originalEvent:ge});setTimeout(()=>{this.trigger(this.currentContainer,_e),_e.canceled()?this.dragging=!1:this.dragging=!0},0)}[ee](ge){if(!this.dragging)return;const ue=document.elementFromPoint(ge.clientX,ge.clientY),_e=this.currentContainer,fe=new Y.DragMoveSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ue,container:_e,originalEvent:ge});this.trigger(_e,fe),fe.canceled()||(ge.preventDefault(),ge.dataTransfer.dropEffect=this.options.type)}[te](ge){if(!this.dragging)return;document.removeEventListener("mouseup",this[J],!0);const ue=document.elementFromPoint(ge.clientX,ge.clientY),_e=this.currentContainer,fe=new Y.DragStopSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ue,container:_e,originalEvent:ge});this.trigger(_e,fe),this.dragging=!1,this.startEvent=null,this[se]()}[re](ge){ge.preventDefault()}[G](ge){if(ge.target&&(ge.target.form||ge.target.contenteditable))return;const ue=(0,j.closest)(ge.target,fe=>fe.draggable);ue&&(ue.draggable=!1,this.nativeDraggableElement=ue),document.addEventListener("mouseup",this[J],!0),document.addEventListener("dragstart",this[Z],!1),document.addEventListener("dragover",this[ee],!1),document.addEventListener("dragend",this[te],!1),document.addEventListener("drop",this[re],!1);const _e=(0,j.closest)(ge.target,this.options.draggable);_e&&(this.startEvent=ge,this.mouseDownTimeout=setTimeout(()=>{_e.draggable=!0,this.draggableElement=_e},this.delay.drag))}[J](){this[se]()}[se](){clearTimeout(this.mouseDownTimeout),document.removeEventListener("mouseup",this[J],!0),document.removeEventListener("dragstart",this[Z],!1),document.removeEventListener("dragover",this[ee],!1),document.removeEventListener("dragend",this[te],!1),document.removeEventListener("drop",this[re],!1),this.nativeDraggableElement&&(this.nativeDraggableElement.draggable=!0,this.nativeDraggableElement=null),this.draggableElement&&(this.draggableElement.draggable=!1,this.draggableElement=null)}}N.default=ne},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(42),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(le){return le&&le.__esModule?le:{default:le}}const G=Symbol("onTouchStart"),J=Symbol("onTouchEnd"),Z=Symbol("onTouchMove"),ee=Symbol("startDrag"),te=Symbol("onDistanceChange");let re=!1;window.addEventListener("touchmove",le=>{re&&le.preventDefault()},{passive:!1});class se extends q.default{constructor(ge=[],ue={}){super(ge,ue),this.currentScrollableParent=null,this.tapTimeout=null,this.touchMoved=!1,this.pageX=null,this.pageY=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){document.addEventListener("touchstart",this[G])}detach(){document.removeEventListener("touchstart",this[G])}[G](ge){const ue=(0,j.closest)(ge.target,this.containers);if(!ue)return;const{distance:_e=0}=this.options,{delay:fe}=this,{pageX:me,pageY:ve}=(0,j.touchCoords)(ge);Object.assign(this,{pageX:me,pageY:ve}),this.onTouchStartAt=Date.now(),this.startEvent=ge,this.currentContainer=ue,document.addEventListener("touchend",this[J]),document.addEventListener("touchcancel",this[J]),document.addEventListener("touchmove",this[te]),ue.addEventListener("contextmenu",ne),_e&&(re=!0),this.tapTimeout=window.setTimeout(()=>{this[te]({touches:[{pageX:this.pageX,pageY:this.pageY}]})},fe.touch)}[ee](){const ge=this.startEvent,ue=this.currentContainer,_e=(0,j.touchCoords)(ge),fe=new Y.DragStartSensorEvent({clientX:_e.pageX,clientY:_e.pageY,target:ge.target,container:ue,originalEvent:ge});this.trigger(this.currentContainer,fe),this.dragging=!fe.canceled(),this.dragging&&document.addEventListener("touchmove",this[Z]),re=this.dragging}[te](ge){const{distance:ue}=this.options,{startEvent:_e,delay:fe}=this,me=(0,j.touchCoords)(_e),ve=(0,j.touchCoords)(ge),xe=Date.now()-this.onTouchStartAt,oe=(0,j.distance)(me.pageX,me.pageY,ve.pageX,ve.pageY);Object.assign(this,ve),clearTimeout(this.tapTimeout),xe<fe.touch?document.removeEventListener("touchmove",this[te]):oe>=ue&&(document.removeEventListener("touchmove",this[te]),this[ee]())}[Z](ge){if(!this.dragging)return;const{pageX:ue,pageY:_e}=(0,j.touchCoords)(ge),fe=document.elementFromPoint(ue-window.scrollX,_e-window.scrollY),me=new Y.DragMoveSensorEvent({clientX:ue,clientY:_e,target:fe,container:this.currentContainer,originalEvent:ge});this.trigger(this.currentContainer,me)}[J](ge){if(clearTimeout(this.tapTimeout),re=!1,document.removeEventListener("touchend",this[J]),document.removeEventListener("touchcancel",this[J]),document.removeEventListener("touchmove",this[te]),this.currentContainer&&this.currentContainer.removeEventListener("contextmenu",ne),!this.dragging)return;document.removeEventListener("touchmove",this[Z]);const{pageX:ue,pageY:_e}=(0,j.touchCoords)(ge),fe=document.elementFromPoint(ue-window.scrollX,_e-window.scrollY);ge.preventDefault();const me=new Y.DragStopSensorEvent({clientX:ue,clientY:_e,target:fe,container:this.currentContainer,originalEvent:ge});this.trigger(this.currentContainer,me),this.currentContainer=null,this.dragging=!1,this.startEvent=null}}N.default=se;function ne(le){le.preventDefault(),le.stopPropagation()}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(44),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DragPressureSensorEvent=N.DragStopSensorEvent=N.DragMoveSensorEvent=N.DragStartSensorEvent=N.SensorEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get originalEvent(){return this.data.originalEvent}get clientX(){return this.data.clientX}get clientY(){return this.data.clientY}get target(){return this.data.target}get container(){return this.data.container}get pressure(){return this.data.pressure}}N.SensorEvent=Y;class K extends Y{}N.DragStartSensorEvent=K,K.type="drag:start";class G extends Y{}N.DragMoveSensorEvent=G,G.type="drag:move";class J extends Y{}N.DragStopSensorEvent=J,J.type="drag:stop";class Z extends Y{}N.DragPressureSensorEvent=Z,Z.type="drag:pressure"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(le){return le&&le.__esModule?le:{default:le}}const G=Symbol("onContextMenuWhileDragging"),J=Symbol("onMouseDown"),Z=Symbol("onMouseMove"),ee=Symbol("onMouseUp"),te=Symbol("startDrag"),re=Symbol("onDistanceChange");class se extends q.default{constructor(ge=[],ue={}){super(ge,ue),this.mouseDownTimeout=null,this.pageX=null,this.pageY=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[re]=this[re].bind(this)}attach(){document.addEventListener("mousedown",this[J],!0)}detach(){document.removeEventListener("mousedown",this[J],!0)}[J](ge){if(ge.button!==0||ge.ctrlKey||ge.metaKey)return;const ue=(0,j.closest)(ge.target,this.containers);if(!ue)return;const{delay:_e}=this,{pageX:fe,pageY:me}=ge;Object.assign(this,{pageX:fe,pageY:me}),this.onMouseDownAt=Date.now(),this.startEvent=ge,this.currentContainer=ue,document.addEventListener("mouseup",this[ee]),document.addEventListener("dragstart",ne),document.addEventListener("mousemove",this[re]),this.mouseDownTimeout=window.setTimeout(()=>{this[re]({pageX:this.pageX,pageY:this.pageY})},_e.mouse)}[te](){const ge=this.startEvent,ue=this.currentContainer,_e=new Y.DragStartSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ge.target,container:ue,originalEvent:ge});this.trigger(this.currentContainer,_e),this.dragging=!_e.canceled(),this.dragging&&(document.addEventListener("contextmenu",this[G],!0),document.addEventListener("mousemove",this[Z]))}[re](ge){const{pageX:ue,pageY:_e}=ge,{distance:fe}=this.options,{startEvent:me,delay:ve}=this;if(Object.assign(this,{pageX:ue,pageY:_e}),!this.currentContainer)return;const xe=Date.now()-this.onMouseDownAt,oe=(0,j.distance)(me.pageX,me.pageY,ue,_e)||0;clearTimeout(this.mouseDownTimeout),xe<ve.mouse?document.removeEventListener("mousemove",this[re]):oe>=fe&&(document.removeEventListener("mousemove",this[re]),this[te]())}[Z](ge){if(!this.dragging)return;const ue=document.elementFromPoint(ge.clientX,ge.clientY),_e=new Y.DragMoveSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ue,container:this.currentContainer,originalEvent:ge});this.trigger(this.currentContainer,_e)}[ee](ge){if(clearTimeout(this.mouseDownTimeout),ge.button!==0||(document.removeEventListener("mouseup",this[ee]),document.removeEventListener("dragstart",ne),document.removeEventListener("mousemove",this[re]),!this.dragging))return;const ue=document.elementFromPoint(ge.clientX,ge.clientY),_e=new Y.DragStopSensorEvent({clientX:ge.clientX,clientY:ge.clientY,target:ue,container:this.currentContainer,originalEvent:ge});this.trigger(this.currentContainer,_e),document.removeEventListener("contextmenu",this[G],!0),document.removeEventListener("mousemove",this[Z]),this.currentContainer=null,this.dragging=!1,this.startEvent=null}[G](ge){ge.preventDefault()}}N.default=se;function ne(le){le.preventDefault()}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(47),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var Z in J)Object.prototype.hasOwnProperty.call(J,Z)&&(K[Z]=J[Z])}return K};const U={mouse:0,drag:0,touch:100};class q{constructor(G=[],J={}){this.containers=[...G],this.options=j({},J),this.dragging=!1,this.currentContainer=null,this.startEvent=null,this.delay=Y(J.delay)}attach(){return this}detach(){return this}addContainer(...G){this.containers=[...this.containers,...G]}removeContainer(...G){this.containers=this.containers.filter(J=>!G.includes(J))}trigger(G,J){const Z=document.createEvent("Event");return Z.detail=J,Z.initEvent(J.type,!0,!0),G.dispatchEvent(Z),this.lastEvent=J,J}}N.default=q;function Y(K){const G={};if(K===void 0)return j({},U);if(typeof K=="number"){for(const J in U)U.hasOwnProperty(J)&&(G[J]=K);return G}for(const J in U)U.hasOwnProperty(J)&&(K[J]===void 0?G[J]=U[J]:G[J]=K[J]);return G}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U={}){const{touches:q,changedTouches:Y}=U;return q&&q[0]||Y&&Y[0]}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(50),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U,q,Y,K){return Math.sqrt((Y-U)**2+(K-q)**2)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(52),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U){return requestAnimationFrame(()=>{requestAnimationFrame(U)})}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(54),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=U;const j=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector;function U(q,Y){if(!q)return null;const K=Y,G=Y,J=Y,Z=Y,ee=typeof Y=="string",te=typeof Y=="function",re=Y instanceof NodeList||Y instanceof Array,se=Y instanceof HTMLElement;function ne(ge){return ge&&(ee?j.call(ge,K):re?[...J].includes(ge):se?Z===ge:te?G(ge):null)}let le=q;do{if(le=le.correspondingUseElement||le.correspondingElement||le,ne(le))return le;le=le.parentNode}while(le&&le!==document.body&&le!==document);return null}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(56),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=N.scroll=N.onDragStop=N.onDragMove=N.onDragStart=void 0;var j=Object.assign||function(ue){for(var _e=1;_e<arguments.length;_e++){var fe=arguments[_e];for(var me in fe)Object.prototype.hasOwnProperty.call(fe,me)&&(ue[me]=fe[me])}return ue},U=B(0),q=K(U),Y=B(2);function K(ue){return ue&&ue.__esModule?ue:{default:ue}}const G=N.onDragStart=Symbol("onDragStart"),J=N.onDragMove=Symbol("onDragMove"),Z=N.onDragStop=Symbol("onDragStop"),ee=N.scroll=Symbol("scroll"),te=N.defaultOptions={speed:6,sensitivity:50,scrollableElements:[]};class re extends q.default{constructor(_e){super(_e),this.options=j({},te,this.getOptions()),this.currentMousePosition=null,this.scrollAnimationFrame=null,this.scrollableElement=null,this.findScrollableElementFrame=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this)}attach(){this.draggable.on("drag:start",this[G]).on("drag:move",this[J]).on("drag:stop",this[Z])}detach(){this.draggable.off("drag:start",this[G]).off("drag:move",this[J]).off("drag:stop",this[Z])}getOptions(){return this.draggable.options.scrollable||{}}getScrollableElement(_e){return this.hasDefinedScrollableElements()?(0,Y.closest)(_e,this.options.scrollableElements)||document.documentElement:le(_e)}hasDefinedScrollableElements(){return this.options.scrollableElements.length!==0}[G](_e){this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(_e.source)})}[J](_e){if(this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(_e.sensorEvent.target)}),!this.scrollableElement)return;const fe=_e.sensorEvent,me={x:0,y:0};"ontouchstart"in window&&(me.y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,me.x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),this.currentMousePosition={clientX:fe.clientX-me.x,clientY:fe.clientY-me.y},this.scrollAnimationFrame=requestAnimationFrame(this[ee])}[Z](){cancelAnimationFrame(this.scrollAnimationFrame),cancelAnimationFrame(this.findScrollableElementFrame),this.scrollableElement=null,this.scrollAnimationFrame=null,this.findScrollableElementFrame=null,this.currentMousePosition=null}[ee](){if(!this.scrollableElement||!this.currentMousePosition)return;cancelAnimationFrame(this.scrollAnimationFrame);const{speed:_e,sensitivity:fe}=this.options,me=this.scrollableElement.getBoundingClientRect(),ve=me.bottom>window.innerHeight,oe=me.top<0||ve,ye=ge(),be=this.scrollableElement,we=this.currentMousePosition.clientX,Ae=this.currentMousePosition.clientY;if(be!==document.body&&be!==document.documentElement&&!oe){const{offsetHeight:ke,offsetWidth:Oe}=be;me.top+ke-Ae<fe?be.scrollTop+=_e:Ae-me.top<fe&&(be.scrollTop-=_e),me.left+Oe-we<fe?be.scrollLeft+=_e:we-me.left<fe&&(be.scrollLeft-=_e)}else{const{innerHeight:ke,innerWidth:Oe}=window;Ae<fe?ye.scrollTop-=_e:ke-Ae<fe&&(ye.scrollTop+=_e),we<fe?ye.scrollLeft-=_e:Oe-we<fe&&(ye.scrollLeft+=_e)}this.scrollAnimationFrame=requestAnimationFrame(this[ee])}}N.default=re;function se(ue){const _e=/(auto|scroll)/,fe=getComputedStyle(ue,null),me=fe.getPropertyValue("overflow")+fe.getPropertyValue("overflow-y")+fe.getPropertyValue("overflow-x");return _e.test(me)}function ne(ue){return getComputedStyle(ue).getPropertyValue("position")==="static"}function le(ue){if(!ue)return ge();const _e=getComputedStyle(ue).getPropertyValue("position"),fe=_e==="absolute",me=(0,Y.closest)(ue,ve=>fe&&ne(ve)?!1:se(ve));return _e==="fixed"||!me?ge():me}function ge(){return document.scrollingElement||document.documentElement}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(58),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.MirrorDestroyEvent=N.MirrorMoveEvent=N.MirrorAttachedEvent=N.MirrorCreatedEvent=N.MirrorCreateEvent=N.MirrorEvent=void 0;var j=B(1),U=q(j);function q(te){return te&&te.__esModule?te:{default:te}}class Y extends U.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get dragEvent(){return this.data.dragEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}N.MirrorEvent=Y;class K extends Y{}N.MirrorCreateEvent=K,K.type="mirror:create";class G extends Y{get mirror(){return this.data.mirror}}N.MirrorCreatedEvent=G,G.type="mirror:created";class J extends Y{get mirror(){return this.data.mirror}}N.MirrorAttachedEvent=J,J.type="mirror:attached";class Z extends Y{get mirror(){return this.data.mirror}get passedThreshX(){return this.data.passedThreshX}get passedThreshY(){return this.data.passedThreshY}}N.MirrorMoveEvent=Z,Z.type="mirror:move",Z.cancelable=!0;class ee extends Y{get mirror(){return this.data.mirror}}N.MirrorDestroyEvent=ee,ee.type="mirror:destroy",ee.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(60);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=N.getAppendableContainer=N.onScroll=N.onMirrorMove=N.onMirrorCreated=N.onDragStop=N.onDragMove=N.onDragStart=void 0;var j=Object.assign||function(be){for(var we=1;we<arguments.length;we++){var Ae=arguments[we];for(var ke in Ae)Object.prototype.hasOwnProperty.call(Ae,ke)&&(be[ke]=Ae[ke])}return be},U=B(0),q=K(U),Y=B(61);function K(be){return be&&be.__esModule?be:{default:be}}function G(be,we){var Ae={};for(var ke in be)we.indexOf(ke)>=0||Object.prototype.hasOwnProperty.call(be,ke)&&(Ae[ke]=be[ke]);return Ae}const J=N.onDragStart=Symbol("onDragStart"),Z=N.onDragMove=Symbol("onDragMove"),ee=N.onDragStop=Symbol("onDragStop"),te=N.onMirrorCreated=Symbol("onMirrorCreated"),re=N.onMirrorMove=Symbol("onMirrorMove"),se=N.onScroll=Symbol("onScroll"),ne=N.getAppendableContainer=Symbol("getAppendableContainer"),le=N.defaultOptions={constrainDimensions:!1,xAxis:!0,yAxis:!0,cursorOffsetX:null,cursorOffsetY:null,thresholdX:null,thresholdY:null};class ge extends q.default{constructor(we){super(we),this.options=j({},le,this.getOptions()),this.scrollOffset={x:0,y:0},this.initialScrollOffset={x:window.scrollX,y:window.scrollY},this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[re]=this[re].bind(this),this[se]=this[se].bind(this)}attach(){this.draggable.on("drag:start",this[J]).on("drag:move",this[Z]).on("drag:stop",this[ee]).on("mirror:created",this[te]).on("mirror:move",this[re])}detach(){this.draggable.off("drag:start",this[J]).off("drag:move",this[Z]).off("drag:stop",this[ee]).off("mirror:created",this[te]).off("mirror:move",this[re])}getOptions(){return this.draggable.options.mirror||{}}[J](we){if(we.canceled())return;"ontouchstart"in window&&document.addEventListener("scroll",this[se],!0),this.initialScrollOffset={x:window.scrollX,y:window.scrollY};const{source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me}=we;this.lastMirrorMovedClient={x:Me.clientX,y:Me.clientY};const ze=new Y.MirrorCreateEvent({source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me,dragEvent:we});if(this.draggable.trigger(ze),ye(Me)||ze.canceled())return;const Fe=this[ne](Ae)||Oe;this.mirror=Ae.cloneNode(!0);const Ze=new Y.MirrorCreatedEvent({source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me,dragEvent:we,mirror:this.mirror}),lt=new Y.MirrorAttachedEvent({source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me,dragEvent:we,mirror:this.mirror});this.draggable.trigger(Ze),Fe.appendChild(this.mirror),this.draggable.trigger(lt)}[Z](we){if(!this.mirror||we.canceled())return;const{source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me}=we;let ze=!0,Fe=!0;if(this.options.thresholdX||this.options.thresholdY){const{x:lt,y:qe}=this.lastMirrorMovedClient;if(Math.abs(lt-Me.clientX)<this.options.thresholdX?ze=!1:this.lastMirrorMovedClient.x=Me.clientX,Math.abs(qe-Me.clientY)<this.options.thresholdY?Fe=!1:this.lastMirrorMovedClient.y=Me.clientY,!ze&&!Fe)return}const Ze=new Y.MirrorMoveEvent({source:Ae,originalSource:ke,sourceContainer:Oe,sensorEvent:Me,dragEvent:we,mirror:this.mirror,passedThreshX:ze,passedThreshY:Fe});this.draggable.trigger(Ze)}[ee](we){if("ontouchstart"in window&&document.removeEventListener("scroll",this[se],!0),this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},!this.mirror)return;const{source:Ae,sourceContainer:ke,sensorEvent:Oe}=we,Me=new Y.MirrorDestroyEvent({source:Ae,mirror:this.mirror,sourceContainer:ke,sensorEvent:Oe,dragEvent:we});this.draggable.trigger(Me),Me.canceled()||this.mirror.parentNode.removeChild(this.mirror)}[se](){this.scrollOffset={x:window.scrollX-this.initialScrollOffset.x,y:window.scrollY-this.initialScrollOffset.y}}[te]({mirror:we,source:Ae,sensorEvent:ke}){const Oe=this.draggable.getClassNamesFor("mirror"),Me=Fe=>{let{mirrorOffset:Ze,initialX:lt,initialY:qe}=Fe,Ve=G(Fe,["mirrorOffset","initialX","initialY"]);return this.mirrorOffset=Ze,this.initialX=lt,this.initialY=qe,this.lastMovedX=lt,this.lastMovedY=qe,j({mirrorOffset:Ze,initialX:lt,initialY:qe},Ve)};we.style.display="none";const ze={mirror:we,source:Ae,sensorEvent:ke,mirrorClasses:Oe,scrollOffset:this.scrollOffset,options:this.options,passedThreshX:!0,passedThreshY:!0};return Promise.resolve(ze).then(ue).then(_e).then(fe).then(me).then(xe({initial:!0})).then(ve).then(Me)}[re](we){if(we.canceled())return null;const Ae=Oe=>{let{lastMovedX:Me,lastMovedY:ze}=Oe,Fe=G(Oe,["lastMovedX","lastMovedY"]);return this.lastMovedX=Me,this.lastMovedY=ze,j({lastMovedX:Me,lastMovedY:ze},Fe)},ke={mirror:we.mirror,sensorEvent:we.sensorEvent,mirrorOffset:this.mirrorOffset,options:this.options,initialX:this.initialX,initialY:this.initialY,scrollOffset:this.scrollOffset,passedThreshX:we.passedThreshX,passedThreshY:we.passedThreshY,lastMovedX:this.lastMovedX,lastMovedY:this.lastMovedY};return Promise.resolve(ke).then(xe({raf:!0})).then(Ae)}[ne](we){const Ae=this.options.appendTo;return typeof Ae=="string"?document.querySelector(Ae):Ae instanceof HTMLElement?Ae:typeof Ae=="function"?Ae(we):we.parentNode}}N.default=ge;function ue(be){let{source:we}=be,Ae=G(be,["source"]);return oe(ke=>{const Oe=we.getBoundingClientRect();ke(j({source:we,sourceRect:Oe},Ae))})}function _e(be){let{sensorEvent:we,sourceRect:Ae,options:ke}=be,Oe=G(be,["sensorEvent","sourceRect","options"]);return oe(Me=>{const ze=ke.cursorOffsetY===null?we.clientY-Ae.top:ke.cursorOffsetY,Fe=ke.cursorOffsetX===null?we.clientX-Ae.left:ke.cursorOffsetX;Me(j({sensorEvent:we,sourceRect:Ae,mirrorOffset:{top:ze,left:Fe},options:ke},Oe))})}function fe(be){let{mirror:we,source:Ae,options:ke}=be,Oe=G(be,["mirror","source","options"]);return oe(Me=>{let ze,Fe;if(ke.constrainDimensions){const Ze=getComputedStyle(Ae);ze=Ze.getPropertyValue("height"),Fe=Ze.getPropertyValue("width")}we.style.display=null,we.style.position="fixed",we.style.pointerEvents="none",we.style.top=0,we.style.left=0,we.style.margin=0,ke.constrainDimensions&&(we.style.height=ze,we.style.width=Fe),Me(j({mirror:we,source:Ae,options:ke},Oe))})}function me(be){let{mirror:we,mirrorClasses:Ae}=be,ke=G(be,["mirror","mirrorClasses"]);return oe(Oe=>{we.classList.add(...Ae),Oe(j({mirror:we,mirrorClasses:Ae},ke))})}function ve(be){let{mirror:we}=be,Ae=G(be,["mirror"]);return oe(ke=>{we.removeAttribute("id"),delete we.id,ke(j({mirror:we},Ae))})}function xe({withFrame:be=!1,initial:we=!1}={}){return Ae=>{let{mirror:ke,sensorEvent:Oe,mirrorOffset:Me,initialY:ze,initialX:Fe,scrollOffset:Ze,options:lt,passedThreshX:qe,passedThreshY:Ve,lastMovedX:At,lastMovedY:Nt}=Ae,zt=G(Ae,["mirror","sensorEvent","mirrorOffset","initialY","initialX","scrollOffset","options","passedThreshX","passedThreshY","lastMovedX","lastMovedY"]);return oe(Ht=>{const qt=j({mirror:ke,sensorEvent:Oe,mirrorOffset:Me,options:lt},zt);if(Me){const Qt=qe?Math.round((Oe.clientX-Me.left-Ze.x)/(lt.thresholdX||1))*(lt.thresholdX||1):Math.round(At),Jt=Ve?Math.round((Oe.clientY-Me.top-Ze.y)/(lt.thresholdY||1))*(lt.thresholdY||1):Math.round(Nt);lt.xAxis&<.yAxis||we?ke.style.transform=`translate3d(${Qt}px, ${Jt}px, 0)`:lt.xAxis&&!lt.yAxis?ke.style.transform=`translate3d(${Qt}px, ${ze}px, 0)`:lt.yAxis&&!lt.xAxis&&(ke.style.transform=`translate3d(${Fe}px, ${Jt}px, 0)`),we&&(qt.initialX=Qt,qt.initialY=Jt),qt.lastMovedX=Qt,qt.lastMovedY=Jt}Ht(qt)},{frame:be})}}function oe(be,{raf:we=!1}={}){return new Promise((Ae,ke)=>{we?requestAnimationFrame(()=>{be(Ae,ke)}):be(Ae,ke)})}function ye(be){return/^drag/.test(be.originalEvent.type)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(62),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(se){for(var ne=1;ne<arguments.length;ne++){var le=arguments[ne];for(var ge in le)Object.prototype.hasOwnProperty.call(le,ge)&&(se[ge]=le[ge])}return se},U=B(0),q=Y(U);function Y(se){return se&&se.__esModule?se:{default:se}}const K=Symbol("onInitialize"),G=Symbol("onDestroy"),J={};class Z extends q.default{constructor(ne){super(ne),this.options=j({},J,this.getOptions()),this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("draggable:initialize",this[K]).on("draggable:destroy",this[G])}detach(){this.draggable.off("draggable:initialize",this[K]).off("draggable:destroy",this[G]),this[G]()}getOptions(){return this.draggable.options.focusable||{}}getElements(){return[...this.draggable.containers,...this.draggable.getDraggableElements()]}[K](){requestAnimationFrame(()=>{this.getElements().forEach(ne=>te(ne))})}[G](){requestAnimationFrame(()=>{this.getElements().forEach(ne=>re(ne))})}}N.default=Z;const ee=[];function te(se){!se.getAttribute("tabindex")&&se.tabIndex===-1&&(ee.push(se),se.tabIndex=0)}function re(se){const ne=ee.indexOf(se);ne!==-1&&(se.tabIndex=-1,ee.splice(ne,1))}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(64),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});class j{constructor(q){this.draggable=q}attach(){throw new Error("Not Implemented")}detach(){throw new Error("Not Implemented")}}N.default=j},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(fe){for(var me=1;me<arguments.length;me++){var ve=arguments[me];for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&(fe[xe]=ve[xe])}return fe},U=B(0),q=Y(U);function Y(fe){return fe&&fe.__esModule?fe:{default:fe}}const K=Symbol("onInitialize"),G=Symbol("onDestroy"),J=Symbol("announceEvent"),Z=Symbol("announceMessage"),ee="aria-relevant",te="aria-atomic",re="aria-live",se="role",ne=N.defaultOptions={expire:7e3};class le extends q.default{constructor(me){super(me),this.options=j({},ne,this.getOptions()),this.originalTriggerMethod=this.draggable.trigger,this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("draggable:initialize",this[K])}detach(){this.draggable.off("draggable:destroy",this[G])}getOptions(){return this.draggable.options.announcements||{}}[J](me){const ve=this.options[me.type];ve&&typeof ve=="string"&&this[Z](ve),ve&&typeof ve=="function"&&this[Z](ve(me))}[Z](me){ue(me,{expire:this.options.expire})}[K](){this.draggable.trigger=me=>{try{this[J](me)}finally{this.originalTriggerMethod.call(this.draggable,me)}}}[G](){this.draggable.trigger=this.originalTriggerMethod}}N.default=le;const ge=_e();function ue(fe,{expire:me}){const ve=document.createElement("div");return ve.textContent=fe,ge.appendChild(ve),setTimeout(()=>{ge.removeChild(ve)},me)}function _e(){const fe=document.createElement("div");return fe.setAttribute("id","draggable-live-region"),fe.setAttribute(ee,"additions"),fe.setAttribute(te,"true"),fe.setAttribute(re,"assertive"),fe.setAttribute(se,"log"),fe.style.position="fixed",fe.style.width="1px",fe.style.height="1px",fe.style.top="-1px",fe.style.overflow="hidden",fe}document.addEventListener("DOMContentLoaded",()=>{document.body.appendChild(ge)})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(67),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DraggableDestroyEvent=N.DraggableInitializedEvent=N.DraggableEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get draggable(){return this.data.draggable}}N.DraggableEvent=Y,Y.type="draggable";class K extends Y{}N.DraggableInitializedEvent=K,K.type="draggable:initialize";class G extends Y{}N.DraggableDestroyEvent=G,G.type="draggable:destroy"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(Y){for(var K=1;K<arguments.length;K++){var G=arguments[K];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(Y[J]=G[J])}return Y};const U=Symbol("canceled");class q{constructor(K){this[U]=!1,this.data=K}get type(){return this.constructor.type}get cancelable(){return this.constructor.cancelable}cancel(){this[U]=!0}canceled(){return!!this[U]}clone(K){return new this.constructor(j({},this.data,K))}}N.default=q,q.type="event",q.cancelable=!1},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DragStoppedEvent=N.DragStopEvent=N.DragPressureEvent=N.DragOutContainerEvent=N.DragOverContainerEvent=N.DragOutEvent=N.DragOverEvent=N.DragMoveEvent=N.DragStartEvent=N.DragEvent=void 0;var j=B(1),U=q(j);function q(le){return le&&le.__esModule?le:{default:le}}class Y extends U.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get mirror(){return this.data.mirror}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}N.DragEvent=Y,Y.type="drag";class K extends Y{}N.DragStartEvent=K,K.type="drag:start",K.cancelable=!0;class G extends Y{}N.DragMoveEvent=G,G.type="drag:move";class J extends Y{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}N.DragOverEvent=J,J.type="drag:over",J.cancelable=!0;class Z extends Y{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}N.DragOutEvent=Z,Z.type="drag:out";class ee extends Y{get overContainer(){return this.data.overContainer}}N.DragOverContainerEvent=ee,ee.type="drag:over:container";class te extends Y{get overContainer(){return this.data.overContainer}}N.DragOutContainerEvent=te,te.type="drag:out:container";class re extends Y{get pressure(){return this.data.pressure}}N.DragPressureEvent=re,re.type="drag:pressure";class se extends Y{}N.DragStopEvent=se,se.type="drag:stop";class ne extends Y{}N.DragStoppedEvent=ne,ne.type="drag:stopped"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.Plugins=N.Sensors=N.Sortable=N.Swappable=N.Droppable=N.Draggable=N.BasePlugin=N.BaseEvent=void 0;var j=B(5);Object.defineProperty(N,"Draggable",{enumerable:!0,get:function(){return le(j).default}});var U=B(36);Object.defineProperty(N,"Droppable",{enumerable:!0,get:function(){return le(U).default}});var q=B(33);Object.defineProperty(N,"Swappable",{enumerable:!0,get:function(){return le(q).default}});var Y=B(30);Object.defineProperty(N,"Sortable",{enumerable:!0,get:function(){return le(Y).default}});var K=B(1),G=le(K),J=B(0),Z=le(J),ee=B(6),te=ne(ee),re=B(27),se=ne(re);function ne(ge){if(ge&&ge.__esModule)return ge;var ue={};if(ge!=null)for(var _e in ge)Object.prototype.hasOwnProperty.call(ge,_e)&&(ue[_e]=ge[_e]);return ue.default=ge,ue}function le(ge){return ge&&ge.__esModule?ge:{default:ge}}N.BaseEvent=G.default,N.BasePlugin=Z.default,N.Sensors=te,N.Plugins=se}])})})(draggable_bundle);var draggable_bundleExports=draggable_bundle.exports;function move(M,$,I){const N=[...M.slice(0,$),...M.slice($+1,M.length)];return[...N.slice(0,I),M[$],...N.slice(I,N.length)]}const _sfc_main$3d={props:{value:{required:!0},itemClass:{default:"sortable-item"},handleClass:{default:"sortable-handle"},mirror:{type:Boolean,default:!0},appendTo:{default:null},options:{default:()=>{}},vertical:{type:Boolean},constrainDimensions:{type:Boolean},delay:{type:Number,default:0},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},animate:{type:Boolean,default:!0}},data(){return{sortable:null}},computed:{computedOptions(){let M=[];this.animate&&M.push(draggable_bundleExports.Plugins.SwapAnimation);let $=Object.assign({},{draggable:`.${CSS.escape(this.itemClass)}`,handle:`.${CSS.escape(this.handleClass)}`,delay:this.delay,distance:this.distance,swapAnimation:{vertical:this.vertical,horizontal:!this.vertical},plugins:M,mirror:{constrainDimensions:this.constrainDimensions}},this.options);return this.vertical&&($.mirror.xAxis=!1),this.appendTo&&($.mirror.appendTo=this.appendTo),$}},provide(){return{itemClass:this.itemClass,handleClass:this.handleClass}},render(){return this.$scopedSlots.default({items:this.value})},mounted(){this.disabled||this.setupSortableList()},methods:{setupSortableList(){this.sortable=new draggable_bundleExports.Sortable(this.$el,this.computedOptions),this.sortable.on("drag:start",()=>this.$emit("dragstart")),this.sortable.on("drag:stop",()=>this.$emit("dragend")),this.sortable.on("sortable:stop",({oldIndex:M,newIndex:$})=>{this.$emit("input",move(this.value,M,$))}),this.$on("hook:destroyed",()=>{this.sortable.destroy()}),this.mirror===!1&&this.sortable.on("mirror:create",M=>M.cancel())},destroySortableList(){this.sortable.destroy()}},watch:{disabled(M){M?this.destroySortableList():this.setupSortableList()}}},_sfc_render$3d=null,_sfc_staticRenderFns$3d=null;var __component__$3e=normalizeComponent$3(_sfc_main$3d,_sfc_render$3d,_sfc_staticRenderFns$3d,!1,null,null,null,null);const SortableList=__component__$3e.exports,_sfc_main$3c={components:{TableField,SortableList},data(){return{shifting:!1,lastItemClicked:null}},props:{loading:{type:Boolean,default:!1},allowBulkActions:{default:!1,type:Boolean},toggleSelectionOnRowClick:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},reorderable:{type:Boolean,default:!1},type:{type:String}},inject:["sharedState"],computed:{rows:{get(){return this.sharedState.rows},set(M){this.sharedState.rows=M}},reachedSelectionLimit(){return this.sharedState.selections.length===this.sharedState.maxSelections},relativeColumnsSize(){return this.visibleColumns.length<=4?"sm":this.visibleColumns.length<=8?"md":this.visibleColumns.length>=12?"lx":"xl"},singleSelect(){return this.sharedState.maxSelections===1},visibleColumns(){const M=this.sharedState.columns.filter($=>$.visible);return M.length?M:this.sharedState.columns},sortableColumns(){return this.sharedState.columns.filter(M=>M.sortable).map(M=>M.field)}},methods:{changeSortColumn(M){this.sortable&&this.sortableColumns.includes(M)&&(this.sharedState.sortColumn===M?this.swapSortDirection():this.getFieldtype(M)!=="date"&&(this.sharedState.sortDirection="asc"),this.sharedState.currentPage=1,this.sharedState.sortColumn=M,this.$emit("sorted",this.sharedState.sortColumn,this.sharedState.sortDirection))},swapSortDirection(){this.sharedState.currentPage=1,this.sharedState.sortDirection=this.sharedState.sortDirection==="asc"?"desc":"asc"},getFieldtype(M){return _.find(this.sharedState.columns,function(I){return M===I.field}).fieldtype},actualIndex(M){return _.findIndex(this.sharedState.originalRows,M)},rowClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.toggleSelectionOnRowClick&&this.toggleSelection(M.id,$),this.lastItemClicked=$},selectRange(M,$){for(var I=M;I<=$;I++){let N=this.sharedState.rows[I].id;!this.sharedState.selections.includes(N)&&!this.reachedSelectionLimit&&this.sharedState.selections.push(N)}},isSelected(M){return this.sharedState.selections.includes(M)},toggleSelection(M){const $=this.sharedState.selections.indexOf(M);if($>-1){this.sharedState.selections.splice($,1);return}this.singleSelect&&this.sharedState.selections.pop(),this.reachedSelectionLimit||this.sharedState.selections.push(M)},shiftDown(){this.shifting=!0},clearShift(){this.shifting=!1},checkboxClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?(this.$refs.table.focus(),this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$))):this.toggleSelection(M.id,$),I.target.checked&&(this.lastItemClicked=$)}}};var _sfc_render$3c=function M(){var $=this,I=$._self._c;return I("table",{ref:"table",staticClass:"data-table",class:{"select-none":$.shifting},attrs:{"data-size":$.relativeColumnsSize,tabindex:"0"},on:{keydown:function(N){return N.shiftKey?$.shiftDown.apply(null,arguments):null},keyup:$.clearShift}},[$.allowBulkActions||$.visibleColumns.length>1?I("thead",[I("tr",[$.allowBulkActions||$.reorderable?I("th",{class:{"checkbox-column":!$.reorderable,"handle-column":$.reorderable}},[$.allowBulkActions&&!$.singleSelect?I("data-list-toggle-all",{ref:"toggleAll"}):$._e()],1):$._e(),$._l($.visibleColumns,function(N){return I("th",{key:N.field,staticClass:"group",class:{"current-column":$.sharedState.sortColumn===N.field,"sortable-column":N.sortable===!0,"cursor-not-allowed":!$.sortable,"rtl:text-left ltr:text-right rtl:pl-8 ltr:pr-8":N.numeric},on:{click:function(B){return B.preventDefault(),$.changeSortColumn(N.field)}}},[I("span",{domProps:{textContent:$._s($.__(N.label))}}),N.sortable?I("svg",{staticClass:"rtl:mr-1 ltr:ml-1 opacity-0 group-hover:opacity-100",class:[$.sharedState.sortDirection,{"opacity-100 pointer-events-none":$.sharedState.sortColumn===N.field}],attrs:{height:"8",width:"8",viewBox:"0 0 10 6.5"}},[I("path",{attrs:{d:"M9.9,1.4L5,6.4L0,1.4L1.4,0L5,3.5L8.5,0L9.9,1.4z",fill:"currentColor"}})]):$._e()])}),$.type?I("th",{staticClass:"type-column"},[$.type==="entries"?[$._v($._s($.__("Collection")))]:$._e(),$.type==="terms"?[$._v($._s($.__("Taxonomy")))]:$._e()],2):$._e(),I("th",{staticClass:"actions-column"})],2)]):$._e(),I("sortable-list",{attrs:{value:$.rows,vertical:!0,mirror:!1,"item-class":"sortable-row","handle-class":"table-drag-handle"},on:{input:function(N){return $.$emit("reordered",N)}}},[I("tbody",[$._t("tbody-start"),$._l($.rows,function(N,B){return I("tr",{key:N.id,staticClass:"sortable-row outline-none",class:{"row-selected":$.sharedState.selections.includes(N.id)}},[$.reorderable?I("td",{staticClass:"table-drag-handle"}):$._e(),$.allowBulkActions&&!$.reorderable?I("th",{staticClass:"checkbox-column"},[$.reorderable?$._e():I("input",{attrs:{type:"checkbox",disabled:$.reachedSelectionLimit&&!$.singleSelect&&!$.isSelected(N.id),id:`checkbox-${N.id}`},domProps:{value:N.id,checked:$.isSelected(N.id)},on:{click:function(j){return $.checkboxClicked(N,B,j)}}})]):$._e(),$._l($.visibleColumns,function(j){return I("td",{key:j.field,class:{"rtl:text-left ltr:text-right rtl:pl-8 ltr:pr-8":j.numeric},attrs:{width:j.width},on:{click:function(U){return $.rowClicked(N,B,U)}}},[$._t(`cell-${j.field}`,function(){return[I("table-field",{key:j.field,attrs:{handle:j.field,value:N[j.value||j.field],values:N,fieldtype:j.fieldtype}})]},{value:N[j.value||j.field],values:N,row:N,index:$.actualIndex(N),displayIndex:B,checkboxId:`checkbox-${N.id}`})],2)}),$.type?I("td",{staticClass:"type-column"},[$.type==="entries"||$.type==="terms"?I("span",{staticClass:"rounded px-1 py-px text-2xs uppercase bg-gray-200 text-gray"},[$.type==="entries"?[$._v($._s($.__(N.collection.title)))]:$._e(),$.type==="terms"?[$._v($._s($.__(N.taxonomy.title)))]:$._e()],2):$._e()]):$._e(),I("th",{staticClass:"actions-column"},[$._t("actions",null,{row:N,index:$.actualIndex(N),displayIndex:B})],2)],2)})],2)])],1)},_sfc_staticRenderFns$3c=[],__component__$3d=normalizeComponent$3(_sfc_main$3c,_sfc_render$3c,_sfc_staticRenderFns$3c,!1,null,null,null,null);const Table$1=__component__$3d.exports,_sfc_main$3b={props:["value"],props:{placeholder:{type:String,default:"Search..."},value:{type:String,default:""}},methods:{emitEvent:_.debounce(function(M){this.$emit("input",M.target.value)},300),reset(){this.$emit("input","")},focus(){this.$refs.input.focus()}}};var _sfc_render$3b=function M(){var $=this,I=$._self._c;return I("input",{ref:"input",staticClass:"input-text flex-1 bg-white text-sm focus:border-blue-300 outline-0",attrs:{type:"text",placeholder:$.__($.placeholder),autofocus:""},domProps:{value:$.value},on:{input:$.emitEvent,keyup:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.reset.apply(null,arguments)}}})},_sfc_staticRenderFns$3b=[],__component__$3c=normalizeComponent$3(_sfc_main$3b,_sfc_render$3b,_sfc_staticRenderFns$3b,!1,null,null,null,null);const Search=__component__$3c.exports,_sfc_main$3a={mixins:[Actions],inject:["sharedState"],props:{context:{type:Object,default:()=>{}},showAlways:{type:Boolean,default:!1}},data(){return{actions:[]}},computed:{selections(){return this.sharedState.selections},hasSelections(){return this.selections.length>0}},watch:{selections:"getActions"},methods:{getActions(){if(this.selections.length===0){this.actions=[];return}let M={selections:this.selections};this.context&&(M.context=this.context),this.$axios.post(this.url+"/list",M).then($=>{this.actions=$.data})}}};var _sfc_render$3a=function M(){var $=this,I=$._self._c;return $.showAlways||$.hasSelections?I("div",{staticClass:"data-list-bulk-actions"},[I("div",{staticClass:"input-group input-group-sm relative"},[I("div",{staticClass:"input-group-prepend"},[I("div",{staticClass:"text-gray-700 hidden md:inline-block",domProps:{textContent:$._s($.__n(":count item selected|:count items selected",$.selections.length))}}),I("div",{staticClass:"text-gray-700 md:hidden",domProps:{textContent:$._s($.selections.length)}})]),$._l($.sortedActions,function(N,B){return $.hasSelections?I("data-list-action",{key:N.handle,attrs:{action:N,selections:$.selections.length,errors:$.errors},on:{selected:$.run},scopedSlots:$._u([{key:"default",fn:function({action:j,select:U}){return I("button",{staticClass:"input-group-item",class:{"text-red-500":j.dangerous,"ltr:rounded-r rtl:rounded-l":B+1===$.sortedActions.length},domProps:{textContent:$._s($.__(j.title))},on:{click:U}})}}],null,!0)}):$._e()})],2)]):$._e()},_sfc_staticRenderFns$3a=[],__component__$3b=normalizeComponent$3(_sfc_main$3a,_sfc_render$3a,_sfc_staticRenderFns$3a,!1,null,null,null,null);const BulkActions=__component__$3b.exports,_sfc_main$39={mixins:[Actions],props:{actions:Array,item:{required:!0}},computed:{selections(){return[this.item]}}};var _sfc_render$39=function M(){var $=this,I=$._self._c;return I("div",$._l($.sortedActions,function(N){return I("data-list-action",{key:N.handle,attrs:{action:N,selections:1,errors:$.errors},on:{selected:$.run},scopedSlots:$._u([{key:"default",fn:function({action:B,select:j}){return I("div",{},[I("button",{class:{warning:B.dangerous},domProps:{textContent:$._s($.__(B.title))},on:{click:j}})])}}],null,!0)})}),1)},_sfc_staticRenderFns$39=[],__component__$3a=normalizeComponent$3(_sfc_main$39,_sfc_render$39,_sfc_staticRenderFns$39,!1,null,null,null,null);const InlineActions=__component__$3a.exports,_sfc_main$38={render(){return this.$slots.default[0]},inject:["itemClass"],mounted(){this.$el.classList.add(this.itemClass)}},_sfc_render$38=null,_sfc_staticRenderFns$38=null;var __component__$39=normalizeComponent$3(_sfc_main$38,_sfc_render$38,_sfc_staticRenderFns$38,!1,null,null,null,null);const SortableItem=__component__$39.exports;class SortableKeyValue{constructor($=null,I=null){this._id=uniqid$1(),this.key=$,this.value=I}}const SortableHelpers={methods:{newSortableValue(M=null,$=null){return new SortableKeyValue($,M)},objectToSortable(M){return _.map(clone(M),($,I)=>new SortableKeyValue(I,$))},arrayToSortable(M){return _.map(clone(M),$=>new SortableKeyValue(null,$))},sortableToObject(M){let $={};return _.each(M,I=>$[I.key]=I.value),$},sortableToArray(M){let $=[];return _.each(M,I=>$.push(I.value)),$}}},_sfc_main$37={components:{SortableList},props:{preferencesKey:String},inject:["sharedState"],data(){return{saving:!1,selectedColumns:[],hiddenColumns:[],open:!1}},created(){this.setLocalColumns()},watch:{selectedColumns:{deep:!0,handler(){this.setSharedStateColumns()}}},methods:{setLocalColumns(){this.selectedColumns=this.sharedState.columns.filter($=>$.visible);let M=this.sharedState.columns.filter($=>!$.visible);this.hiddenColumns=_.sortBy(M,$=>$.label.toLowerCase())},setSharedStateColumns(){this.sharedState.columns=[...this.selectedColumns,...this.hiddenColumns]},columnToggled(M){let $=M.visible?this.hiddenColumns:this.selectedColumns,I=M.visible?this.selectedColumns:this.hiddenColumns,N=_.findIndex($,{field:M.field});I.push($[N]),$.splice(N,1),this.hiddenColumns=_.sortBy(this.hiddenColumns,B=>B.label.toLowerCase())},save(){this.saving=!0,this.$preferences.set(this.preferencesKey,this.selectedColumns.map(M=>M.field)).then(M=>{this.saving=!1,this.open=!1,this.$toast.success(__("These are now your default columns."))}).catch(M=>{this.saving=!1,this.$toast.error(__("Unable to save column preferences."))})},reset(){this.sharedState.columns.forEach(M=>M.visible=M.defaultVisibility),this.sharedState.columns=_.sortBy(this.sharedState.columns,M=>M.defaultOrder),this.setLocalColumns(),this.saving=!0,this.$preferences.remove(this.preferencesKey).then(M=>{this.saving=!1,this.open=!1,this.$toast.success(__("Columns have been reset to their defaults."))}).catch(M=>{this.saving=!1,this.$toast.error(__("Unable to save column preferences."))})}}};var _sfc_render$37=function M(){var $=this,I=$._self._c;return I("div",[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Customize Columns"),expression:"__('Customize Columns')"}],staticClass:"btn py-1 px-1 h-8 w-8 flex items-center justify-center",on:{click:function(N){$.open=!0}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/settings-horizontal"}})],1),$.open?I("modal",{attrs:{name:"column-picker",draggable:".modal-drag-handle","click-to-close":""},on:{closed:function(N){$.open=!1}}},[I("div",{staticClass:"flex flex-col h-full -max-h-screen-px"},[I("header",{staticClass:"modal-drag-handle p-4 bg-gray-200 border-b flex items-center justify-between cursor-grab active:cursor-grabbing"},[I("h2",[$._v($._s($.__("Customize Columns")))]),I("button",{staticClass:"btn-close",attrs:{"aria-label":$.__("Close Editor")},on:{click:function(N){$.open=!1}}},[$._v("×")])]),I("div",{staticClass:"flex grow min-h-0 rounded-t-md bg-gray-100"},[I("div",{staticClass:"outline-none rtl:text-right ltr:text-left w-1/2 rtl:border-l ltr:border-r flex flex-col"},[I("header",{staticClass:"border-b py-2 px-3 text-sm bg-white font-medium",domProps:{textContent:$._s($.__("Available Columns"))}}),I("div",{staticClass:"flex flex-1 flex-col space-y-1 py-2 px-3 select-none shadow-inner overflow-y-scroll"},$._l($.hiddenColumns,function(N){return $.hiddenColumns.length?I("div",{key:N.field,staticClass:"column-picker-item"},[I("label",{staticClass:"flex items-center cursor-pointer"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.visible,expression:"column.visible"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(N.visible)?$._i(N.visible,null)>-1:N.visible},on:{change:[function(B){var j=N.visible,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=null,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"visible",j.concat([Y])):K>-1&&$.$set(N,"visible",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"visible",q)},function(B){return $.columnToggled(N)}]}}),$._v(" "+$._s($.__(N.label))+" ")])]):$._e()}),0)]),I("div",{staticClass:"w-1/2 flex flex-col"},[I("header",{staticClass:"border-b px-3 py-2 text-sm bg-white rtl:rounded-tr-md ltr:rounded-tl-md font-medium flex-none",domProps:{textContent:$._s($.__("Displayed Columns"))}}),I("div",{staticClass:"grow overflow-y-scroll shadow-inner"},[I("sortable-list",{attrs:{vertical:!0,distance:5,"item-class":"item","handle-class":"item","append-to":".modal-body","constrain-dimensions":""},model:{value:$.selectedColumns,callback:function(N){$.selectedColumns=N},expression:"selectedColumns"}},[I("div",{staticClass:"space-y-1 px-3 p-3 select-none"},$._l($.selectedColumns,function(N){return I("div",{key:N.field,staticClass:"item sortable cursor-grab",attrs:{tabindex:"-1"}},[I("div",{staticClass:"item-move py-1"},[$._v(" ")]),I("div",{staticClass:"flex flex-1 rtl:mr-2 ltr:ml-2 items-center p-0"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.visible,expression:"column.visible"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox",disabled:$.selectedColumns.length===1},domProps:{checked:Array.isArray(N.visible)?$._i(N.visible,null)>-1:N.visible},on:{change:[function(B){var j=N.visible,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=null,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"visible",j.concat([Y])):K>-1&&$.$set(N,"visible",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"visible",q)},function(B){return $.columnToggled(N)}]}}),$._v(" "+$._s($.__(N.label))+" ")])])}),0)])],1)])]),$.preferencesKey?I("footer",{staticClass:"px-3 py-2 border-t flex items-center justify-end"},[I("button",{staticClass:"btn",attrs:{disabled:$.saving},domProps:{textContent:$._s($.__("Reset"))},on:{click:$.reset}}),I("button",{staticClass:"rtl:mr-3 ltr:ml-3 btn-primary",attrs:{disabled:$.saving},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})]):$._e()])]):$._e()],1)},_sfc_staticRenderFns$37=[],__component__$38=normalizeComponent$3(_sfc_main$37,_sfc_render$37,_sfc_staticRenderFns$37,!1,null,null,null,null);const ColumnPicker=__component__$38.exports,_sfc_main$36={inject:["sharedState"],computed:{anyItemsChecked(){return this.sharedState.selections.length>0}},methods:{toggle(){this.anyItemsChecked?this.uncheckAllItems():this.checkMaximumAmountOfItems()},checkMaximumAmountOfItems(){this.sharedState.selections=_.chain(this.sharedState.rows).map(M=>M.id).first(this.sharedState.maxSelections??1/0).value()},uncheckAllItems(){this.sharedState.selections=[]}}};var _sfc_render$36=function M(){var $=this,I=$._self._c;return I("label",{staticClass:"flex items-center justify-center relative cursor-pointer",attrs:{for:"checkerOfAllBoxes"}},[I("input",{staticClass:"relative top-0",attrs:{type:"checkbox",id:"checkerOfAllBoxes"},domProps:{checked:$.anyItemsChecked},on:{change:$.toggle}})])},_sfc_staticRenderFns$36=[],__component__$37=normalizeComponent$3(_sfc_main$36,_sfc_render$36,_sfc_staticRenderFns$36,!1,null,null,null,null);const ToggleAll=__component__$37.exports,onEachSide=3,_sfc_main$35={mixins:[HasInputOptions],props:{inline:{type:Boolean,default:!1},showTotals:{type:Boolean,default:!1},perPage:{type:Number},resourceMeta:{type:Object,required:!0},scrollToTop:{type:Boolean,default:!0}},data(){return{onEachSide,window:onEachSide*2}},computed:{totalPages(){return this.resourceMeta.last_page},pages(){const M=this.elements;let $=[M.first,M.slider?"separator":null,M.slider,M.last?"separator":null,M.last].filter(I=>I!==null);return _.flatten($)},elements(){return this.lastPage<this.onEachSide*2+6?this.getSmallSlider():this.currentPage<=this.window?this.getSliderTooCloseToBeginning():this.currentPage>this.lastPage-this.window?this.getSliderTooCloseToEnding():this.getFullSlider()},currentPage(){return this.resourceMeta.current_page},lastPage(){return this.resourceMeta.last_page},hasMultiplePages(){return this.totalPages>1},hasPrevious(){return this.currentPage>1},hasNext(){return this.currentPage<this.totalPages},perPageOptions(){let M=Statamic.$config.get("paginationSize"),$=Statamic.$config.get("paginationSizeOptions").filter(N=>N!==M),I=this.normalizeInputOptions($);return I.push({value:M,label:`${M}`}),_.sortBy(I,"value")},isPerPageEvenUseful(){return this.resourceMeta.total>this.perPageOptions[0].value},fromItem(){return this.resourceMeta.from||0},toItem(){return this.resourceMeta.to||0},totalItems(){return this.resourceMeta.total},direction(){return this.$config.get("direction","rtl")}},methods:{selectPage(M){M!==this.currentPage&&(this.$emit("page-selected",M),this.scrollToTop&&window.scrollTo(0,0))},selectPreviousPage(){this.selectPage(this.currentPage-1)},selectNextPage(){this.selectPage(this.currentPage+1)},getSmallSlider(){return{first:this.getRange(1,this.lastPage),slider:null,last:null}},getFullSlider(){return{first:this.getStart(),slider:this.getAdjacentRange(),last:this.getFinish()}},getSliderTooCloseToBeginning(){return{first:this.getRange(1,this.window+2),slider:null,last:this.getFinish()}},getSliderTooCloseToEnding(){const M=this.getRange(this.lastPage-(this.window+2),this.lastPage);return{first:this.getStart(),slider:null,last:M}},getStart(){return this.getRange(1,2)},getFinish(){return this.getRange(this.lastPage-1,this.lastPage)},getAdjacentRange(){return this.getRange(this.currentPage-this.onEachSide,this.currentPage+this.onEachSide)},getRange(M,$){return _.range(M,$+1)}}};var _sfc_render$35=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full flex"},[$.inline?$._e():I("div",{staticClass:"flex flex-1 items-center"},[$.showTotals&&$.totalItems>0?I("div",{staticClass:"text-xs text-gray-700"},[$._v(" "+$._s($.__(":start-:end of :total",{start:$.fromItem,end:$.toItem,total:$.totalItems}))+" ")]):$._e()]),$.hasMultiplePages?I("ul",{staticClass:"pagination",class:{"pagination-inline":$.inline}},[$.hasPrevious?I("li",[I("a",{on:{click:$.selectPreviousPage}},[I("span",{staticClass:"text-xs",domProps:{innerHTML:$._s($.direction==="ltr"?"←":"→")}})])]):$._e(),$._l($.pages,function(N,B){return I("li",{key:B,class:{current:N==$.currentPage}},[N==="separator"?I("span",{staticClass:"unclickable"},[$._v("...")]):I("a",{on:{click:function(j){return $.selectPage(N)}}},[$._v($._s(N))])])}),$.hasNext?I("li",[I("a",{on:{click:$.selectNextPage}},[I("span",{staticClass:"text-xs",domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})])]):$._e()],2):$._e(),I("div",{staticClass:"flex flex-1"},[I("div",{staticClass:"flex-1"}),$.perPage&&$.isPerPageEvenUseful?I("select-input",{staticClass:"rtl:mr-6 ltr:ml-6",attrs:{name:"perPage",placeholder:$.__("Per Page"),options:$.perPageOptions,value:$.perPage},on:{input:function(N){return $.$emit("per-page-changed",N)}}}):$._e()],1)])},_sfc_staticRenderFns$35=[],__component__$36=normalizeComponent$3(_sfc_main$35,_sfc_render$35,_sfc_staticRenderFns$35,!1,null,null,null,null);const Pagination=__component__$36.exports,_sfc_main$34={components:{PublishFields:Fields$1},props:{filter:Object,values:Object},computed:{defaultValues(){return this.filter.values||{}},containerValues(){return clone(this.values||this.defaultValues)}},methods:{updateValues(M){let $=clone(M);Object.keys(M).forEach(I=>{_.isEmpty(M[I])&&delete $[I]}),this.$emit("changed",$)},resetAll(){this.$emit("changed",null),this.$emit("cleared")},close(){this.$emit("closed")}}};var _sfc_render$34=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full no-label"},[$.filter.fields.length?I("publish-container",{staticClass:"p-3",attrs:{name:`filter-${$.filter.handle}`,meta:{},values:$.containerValues,"track-dirty-state":!1},on:{updated:$.updateValues},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("publish-fields",{attrs:{fields:$.filter.fields,"name-prefix":`filter-${$.filter.handle}`},on:{updated:N}})}}],null,!1,1948012401)}):$._e(),I("div",{staticClass:"flex border-t"},[I("button",{staticClass:"p-2 hover:bg-gray-100 rtl:rounded-br ltr:rounded-bl text-xs flex-1",domProps:{textContent:$._s($.__("Clear"))},on:{click:$.resetAll}}),I("button",{staticClass:"p-2 hover:bg-gray-100 flex-1 rtl:rounded-bl ltr:rounded-br rtl:border-r ltr:border-l text-xs",domProps:{textContent:$._s($.__("Close"))},on:{click:function(N){return $.$emit("closed")}}})])],1)},_sfc_staticRenderFns$34=[],__component__$35=normalizeComponent$3(_sfc_main$34,_sfc_render$34,_sfc_staticRenderFns$34,!1,null,null,null,null);const DataListFilter=__component__$35.exports,_sfc_main$33={components:{PublishField},props:{config:Object,values:Object,badges:Object},data(){return{initialValues:this.values,containerValues:{},filter:null,field:null,fieldValues:null}},computed:{availableFieldFilters(){return this.config?this.config.extra.filter(M=>!this.initialValues[M.handle]):[]},hasAvailableFieldFilters(){return!!this.availableFieldFilters.length},fieldOptions(){let M=this.availableFieldFilters.map($=>({value:$.handle,label:$.display}));return _.sortBy(M,$=>$.label)},showFieldFilter(){return this.field},isFilterComplete(){if(!this.filter)return!1;let M=_.chain(this.filter.fields).filter(function(I){return new Validator(I,this.fieldValues).passesConditions()},this).mapObject(I=>I.handle).values().value(),$=_.chain(this.fieldValues).filter((I,N)=>M.includes(N)&&I).values().value().length===M.length;return this.field!==null&&$},newValues(){let M=clone(this.values);return delete M[this.field],M[this.field]=this.isFilterComplete?this.fieldValues:null,M}},watch:{field:"update",fieldValues:{deep:!0,handler(){this.update()}}},mounted(){this.hasAvailableFieldFilters&&(this.reset(),this.$refs.fieldSelect.$refs.search.focus())},methods:{popoverClosed(){this.badges[this.field]||this.resetAll()},reset(){this.field&&this.$emit("changed",this.initialValues),this.containerValues={},this.filter=null,this.field=null,this.fieldValues=null},resetAll(){this.reset(),this.$emit("cleared")},resetInitialValues(){this.initialValues=this.values,this.reset()},createFilter(M){this.field&&this.$emit("changed",this.initialValues),this.reset(),this.setFilter(M),this.setDefaultValues(),this.field=M},setFilter(M){this.filter=_.find(this.availableFieldFilters,$=>$.handle===M)},setDefaultValues(){if(!this.filter)return;let M={};this.filter.fields.filter($=>$.default).forEach($=>M[$.handle]=$.default),this.updateValues(M)},updateValues(M){this.updateContainerValues(M),this.updateFieldValues(M)},updateContainerValues(M){this.containerValues=clone(M)},updateFieldValues:_.debounce(function(M){this.fieldValues=clone(M)},300),update(){this.$emit("changed",this.newValues)}}};var _sfc_render$33=function M(){var $=this,I=$._self._c;return I("div",[$.hasAvailableFieldFilters?I("div",[I("div",{staticClass:"flex flex-col p-3"},[I("v-select",{ref:"fieldSelect",attrs:{placeholder:$.__("Field"),options:$.fieldOptions,reduce:N=>N.value,value:$.field},on:{input:$.createFilter}}),$.showFieldFilter?I("publish-container",{staticClass:"filter-fields mt-2",attrs:{name:"filter-field",meta:{},values:$.containerValues,"track-dirty-state":!1},on:{updated:$.updateValues},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{staticClass:"w-full no-label",attrs:{fields:$.filter.fields,"name-prefix":"filter-field"},on:{updated:N,"meta-updated":B}})}}],null,!1,2555427817)}):$._e()],1),I("div",{staticClass:"flex border-t text-gray-800"},[I("button",{staticClass:"p-2 hover:bg-gray-100 rtl:rounded-br ltr:rounded-bl text-xs flex-1",domProps:{textContent:$._s($.__("Clear"))},on:{click:$.resetAll}}),I("button",{staticClass:"p-2 hover:bg-gray-100 flex-1 rtl:rounded-bl ltr:rounded-br rtl:border-r ltr:border-l text-xs",domProps:{textContent:$._s($.__("Close"))},on:{click:function(N){return $.$emit("closed")}}})])]):I("v-select",{attrs:{disabled:!0,placeholder:$.__("No available filters")}})],1)},_sfc_staticRenderFns$33=[],__component__$34=normalizeComponent$3(_sfc_main$33,_sfc_render$33,_sfc_staticRenderFns$33,!1,null,null,null,null);const FieldFilter=__component__$34.exports,_sfc_main$32={components:{DataListFilter,FieldFilter},props:{filters:{type:Array,default:()=>[]},activePreset:String,activePresetPayload:Object,activeFilters:Object,activeFilterBadges:Object,activeCount:Number,searchQuery:String,savesPresets:Boolean,preferencesPrefix:String,isSearching:Boolean},data(){return{filtering:!1,creating:!1,saving:!1,deleting:!1,savingPresetName:null,presets:[]}},inject:["sharedState"],watch:{activePresetPayload:{deep:!0,handler(M){this.savingPresetName=M.display||null}}},computed:{fieldFilter(){return this.filters.find(M=>M.handle==="fields")},standardFilters(){return this.filters.filter(M=>M.handle!=="fields")},pinnedFilters(){return this.standardFilters.filter(M=>M.pinned)},unpinnedFilters(){return this.standardFilters.filter(M=>!M.pinned)},creatingFilter(){return _.find(this.unpinnedFilters,M=>M.handle===this.creating)},creatingFilterHeader(){let M=data_get(this.creatingFilter,"title","Filter where");return __(M)+":"},showUnpinnedFilterSelection(){return!this.creating},fieldFilterBadges(){return data_get(this.activeFilterBadges,"fields",{})},standardBadges(){return _.omit(this.activeFilterBadges,"fields")},isFiltering(){return!_.isEmpty(this.activeFilters)||this.searchQuery||this.activePreset},isDirty(){return this.isFiltering?this.activePreset?this.activePresetPayload.query!=this.searchQuery||!_.isEqual(this.activePresetPayload.filters||{},this.activeFilters):!0:!1},canSave(){return this.savesPresets&&this.isDirty&&this.preferencesPrefix},savingPresetHandle(){return this.$slugify(this.savingPresetName,"_")},isUpdatingPreset(){return this.savingPresetHandle===this.activePreset},preferencesKey(){let M=this.savingPresetHandle||this.activePreset;return!this.preferencesPrefix||!M?null:`${this.preferencesPrefix}.filters.${M}`},preferencesPayload(){if(!this.savingPresetName)return null;let M={display:this.savingPresetName};return this.searchQuery&&(M.query=this.searchQuery),this.activeCount&&(M.filters=clone(this.activeFilters)),M}},methods:{resetFilterPopover(){this.creating=!1,setTimeout(()=>{var M;return(M=this.$refs.fieldFilter)==null?void 0:M.resetInitialValues()},100)},fieldFilterClosed(){this.$refs.fieldFilter.popoverClosed()},removeFieldFilter(M){let $=clone(this.activeFilters.fields);delete $[M],this.$emit("changed",{handle:"fields",values:$})},removeStandardFilter(M){this.$emit("changed",{handle:M,values:null})},save(){!this.canSave||!this.preferencesPayload||(this.saving=!0,this.$preferences.set(this.preferencesKey,this.preferencesPayload).then(M=>{this.$refs.savePopover.close(),this.$emit("saved",this.savingPresetHandle),this.$toast.success(this.isUpdatingPreset?__("Filter preset updated"):__("Filter preset saved")),this.savingPresetName=null,this.saving=!1}).catch(M=>{this.$toast.error(this.isUpdatingPreset?__("Unable to update filter preset"):__("Unable to save filter preset")),this.saving=!1}))},remove(){this.$preferences.remove(this.preferencesKey).then(M=>{this.$emit("deleted",this.activePreset),this.$toast.success(__("Filter preset deleted")),this.deleting=!1}).catch(M=>{this.$toast.error(__("Unable to delete filter preset")),this.deleting=!1})}}};var _sfc_render$32=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"shadow-inner bg-gray-300"},[I("div",{staticClass:"flex items-center flex-wrap px-3 border-b pt-2"},[$.fieldFilter?I("popover",{attrs:{placement:"bottom-start"},on:{closed:$.fieldFilterClosed},scopedSlots:$._u([{key:"default",fn:function({close:N}){return[I("div",{staticClass:"flex flex-col rtl:text-right ltr:text-left min-w-[18rem]"},[I("div",{staticClass:"filter-fields text-sm"},[I("field-filter",{ref:"fieldFilter",attrs:{config:$.fieldFilter,values:$.activeFilters.fields||{},badges:$.fieldFilterBadges},on:{changed:function(B){return $.$emit("changed",{handle:"fields",values:B})},cleared:function(B){$.creating=!1},closed:N}})],1)])]}}],null,!1,3767859409)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2",on:{click:$.resetFilterPopover}},[$._v(" "+$._s($.fieldFilter.title)+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e(),$._l($.pinnedFilters,function(N){return $.pinnedFilters.length?I("popover",{key:N.handle,attrs:{placement:"bottom-start","stop-propagation":!1},scopedSlots:$._u([{key:"default",fn:function({close:B}){return[I("div",{staticClass:"filter-fields w-64"},[I("data-list-filter",{key:N.handle,attrs:{filter:N,values:$.activeFilters[N.handle]},on:{changed:function(j){return $.$emit("changed",{handle:N.handle,values:j})},closed:B}})],1)]}}],null,!0)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2"},[$._v(" "+$._s(N.title)+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e()}),$.unpinnedFilters.length?I("popover",{attrs:{placement:"bottom-start","stop-propagation":!1},scopedSlots:$._u([{key:"default",fn:function({close:N}){return[I("div",{staticClass:"filter-fields w-64"},[I("h6",{staticClass:"p-3 pb-0",domProps:{textContent:$._s($.creatingFilterHeader)}}),$.showUnpinnedFilterSelection?I("div",{staticClass:"p-3 pt-1"},$._l($.unpinnedFilters,function(B){return I("button",{key:B.handle,staticClass:"btn w-full mt-1",domProps:{textContent:$._s(B.title)},on:{click:function(j){$.creating=B.handle}}})}),0):I("div",$._l($.unpinnedFilters,function(B){return $.creating===B.handle?I("data-list-filter",{key:B.handle,attrs:{filter:B,values:$.activeFilters[B.handle]},on:{changed:function(j){return $.$emit("changed",{handle:B.handle,values:j})},cleared:function(j){$.creating=!1},closed:N}}):$._e()}),1)])]}}],null,!1,1858792327)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2",on:{click:$.resetFilterPopover}},[$._v(" "+$._s($.__("Filter"))+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e(),$._l($.fieldFilterBadges,function(N,B){return I("div",{staticClass:"filter-badge rtl:ml-2 ltr:mr-2 mb-2"},[I("span",[$._v($._s(N))]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove Filter"),expression:"__('Remove Filter')"}],on:{click:function(j){return $.removeFieldFilter(B)}}},[$._v("×")])])}),$._l($.standardBadges,function(N,B){return I("div",{staticClass:"filter-badge rtl:ml-2 ltr:mr-2 mb-2"},[I("span",[$._v($._s(N))]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove Filter"),expression:"__('Remove Filter')"}],on:{click:function(j){return $.removeStandardFilter(B)}}},[$._v("×")])])})],2)])},_sfc_staticRenderFns$32=[],__component__$33=normalizeComponent$3(_sfc_main$32,_sfc_render$32,_sfc_staticRenderFns$32,!1,null,null,null,null);const Filters=__component__$33.exports,_sfc_main$31={props:{activeFilters:Object,activePreset:String,activePresetPayload:Object,hasActiveFilters:Boolean,preferencesPrefix:String,searchQuery:String},data(){return{presets:[],showCreateModal:!1,showRenameModal:!1,showDeleteModal:!1,savingPresetName:null,test:"hello!"}},computed:{preferencesKey(){return this.preferencesPrefix?`${this.preferencesPrefix}.filters`:null},presetPreferencesPayload(){let M={display:this.savingPresetName||this.activePresetPayload.display};return this.searchQuery&&(M.query=this.searchQuery),this.hasActiveFilters&&(M.filters=clone(this.activeFilters)),M},savingPresetSlug(){return this.$slugify(this.savingPresetName,"_")}},created(){this.preferencesKey&&this.getPresets()},methods:{getPresets(){this.presets=this.$preferences.get(this.preferencesKey)},setPreset(M){this.getPresets(),this.viewPreset(M)},refreshPresets(){this.getPresets(),this.viewAll()},refreshPreset(){this.activePreset?this.setPreset(this.activePreset):this.viewAll()},viewAll(){this.$emit("reset")},viewPreset(M){this.$emit("selected",M,this.presets[M])},createPreset(){this.savingPresetName=null,this.showCreateModal=!0},renamePreset(){this.savingPresetName=this.activePresetPayload.display,this.showRenameModal=!0},savePreset(M){let $=M||this.activePreset;if(!$){this.showCreateModal=!0;return}this.$preferences.set(`${this.preferencesKey}.${$}`,this.presetPreferencesPayload).then(I=>{if(this.showRenameModal){this.$preferences.remove(`${this.preferencesKey}.${this.activePreset}`).then(N=>{this.$toast.success(__("View renamed")),this.$emit("deleted",this.activePreset),this.showRenameModal=!1,this.refreshPresets()}).catch(N=>{this.$toast.error(__("Unable to rename view")),this.showRenameModal=!1});return}this.$toast.success(__("View saved")),this.showCreateModal=!1,this.savingPresetName=null,this.setPreset($)}).catch(I=>{this.$toast.error(__("Unable to save view")),this.showCreateModal=!1,this.showRenameModal=!1,this.savingPresetName=null})},deletePreset(){if(!this.showDeleteModal){this.showDeleteModal=!0;return}this.$preferences.remove(`${this.preferencesKey}.${this.activePreset}`).then(M=>{this.$emit("deleted",this.activePreset),this.$toast.success(__("View deleted")),this.showDeleteModal=!1,this.refreshPresets()}).catch(M=>{this.$toast.error(__("Unable to delete view")),this.showDeleteModal=!1})}}};var _sfc_render$31=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"pt-2 rtl:pl-2 ltr:pr-2"},[I("div",{staticClass:"flex flex-wrap items-center"},[I("button",{staticClass:"pill-tab rtl:ml-1 ltr:mr-1",class:{active:!$.activePreset},domProps:{textContent:$._s($.__("All"))},on:{click:$.viewAll}}),$._l($.presets,function(N,B){return[B===$.activePreset?I("button",{staticClass:"pill-tab active rtl:ml-1 ltr:mr-1"},[$._v(" "+$._s(N.display)+" "),I("dropdown-list",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"opacity-50 hover:opacity-100"},[I("svg-icon",{staticClass:"w-2 h-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!0)},[I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:$.createPreset}}),I("dropdown-item",{attrs:{text:$.__("Rename")},on:{click:$.renamePreset}}),I("div",{staticClass:"divider"}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:$.deletePreset}})],1)],1):I("button",{staticClass:"pill-tab rtl:ml-1 ltr:mr-1",on:{click:function(j){return $.viewPreset(B)}}},[$._v(" "+$._s(N.display)+" ")])]}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Create New View"),expression:"__('Create New View')"}],staticClass:"pill-tab",on:{click:$.createPreset}},[I("svg-icon",{staticClass:"w-3 h-3",attrs:{name:"add"}})],1)],2),$.showCreateModal?I("confirmation-modal",{attrs:{title:$.__("Create New View"),buttonText:$.__("Create")},on:{cancel:function(N){$.showCreateModal=!1},confirm:function(N){return $.savePreset($.savingPresetSlug)}}},[I("text-input",{attrs:{focus:!0},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.savePreset($.savingPresetSlug)}},model:{value:$.savingPresetName,callback:function(N){$.savingPresetName=N},expression:"savingPresetName"}}),$.presets&&Object.keys($.presets).includes($.savingPresetSlug)?I("div",[I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("messages.filters_view_already_exists"))}})]):$._e()],1):$._e(),$.showRenameModal?I("confirmation-modal",{attrs:{title:$.__("Rename View"),buttonText:$.__("Rename")},on:{cancel:function(N){$.showRenameModal=!1},confirm:function(N){return $.savePreset($.savingPresetSlug)}}},[I("text-input",{attrs:{focus:!0},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.savePreset($.savingPresetSlug)}},model:{value:$.savingPresetName,callback:function(N){$.savingPresetName=N},expression:"savingPresetName"}}),Object.keys($.presets).filter(N=>N!==$.activePreset).includes($.savingPresetSlug)?I("div",[I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("messages.filters_view_already_exists"))}})]):$._e()],1):$._e(),$.showDeleteModal?I("confirmation-modal",{attrs:{title:$.__("Delete View"),bodyText:$.__("Are you sure you want to delete this view?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:$.deletePreset,cancel:function(N){$.showDeleteModal=!1}}}):$._e()],1)},_sfc_staticRenderFns$31=[],__component__$32=normalizeComponent$3(_sfc_main$31,_sfc_render$31,_sfc_staticRenderFns$31,!1,null,null,null,null);const FilterPresets=__component__$32.exports,_sfc_main$30={mixins:[Listing],props:{collection:String,reordering:Boolean,reorderUrl:String,site:String},data(){return{listingKey:"entries",preferencesPrefix:`collections.${this.collection}`,requestUrl:cp_url(`collections/${this.collection}/entries`),currentSite:this.site,initialSite:this.site,pushQuery:!0}},computed:{actionContext(){return{collection:this.collection}}},watch:{reordering(M,$){M!==$&&(M?this.reorder():this.cancelReordering())},activeFilters:{deep:!0,handler(M){this.currentSite=M.site?M.site.site:null}},site(M){this.currentSite=M},currentSite(M){this.setSiteFilter(M),this.$emit("site-changed",M)}},methods:{getStatusClass(M){return M.published&&M.private?"bg-transparent border border-gray-600":M.published?"bg-green-600":"bg-gray-400"},getStatusLabel(M){if(M.status==="published")return __("Published");if(M.status==="scheduled")return __("Scheduled");if(M.status==="expired")return __("Expired");if(M.status==="draft")return __("Draft")},getStatusTooltip(M){if(M.status==="published")return M.collection.dated?__("messages.status_published_with_date",{date:M.date}):null;if(M.status==="scheduled")return __("messages.status_scheduled_with_date",{date:M.date});if(M.status==="expired")return __("messages.status_expired_with_date",{date:M.date});if(M.status==="draft")return null},reorder(){this.filtersReset(),this.setSiteFilter(this.currentSite||this.initialSite),this.page=1,this.sortColumn="order",this.sortDirection="asc"},cancelReordering(){this.request()},columnShowing(M){return this.visibleColumns.find($=>$.field===M)},reordered(M){this.items=M},setSiteFilter(M){this.filterChanged({handle:"site",values:{site:M}})},saveOrder(){const M={ids:this.items.map($=>$.id),page:this.page,perPage:this.perPage,site:this.currentSite};this.$axios.post(this.reorderUrl,M).then($=>{this.$emit("reordered"),this.$toast.success(__("Entries successfully reordered"))}).catch($=>{console.log($),this.$toast.error(__("Something went wrong"))})}}};var _sfc_render$30=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[$.reordering?$._e():I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b"},[I("data-list-filter-presets",{ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("div",{directives:[{name:"show",rawName:"v-show",value:!$.reordering,expression:"!reordering"}]},[I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}})],1),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{"allow-bulk-actions":!$.reordering,loading:$.loading,reorderable:$.reordering,sortable:!$.reordering,"toggle-selection-on-row-click":!0},on:{sorted:$.sorted,reordered:$.reordered},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{staticClass:"title-index-field inline-flex items-center",attrs:{href:B.edit_url},on:{click:function(j){j.stopPropagation()}}},[$.columnShowing("status")?$._e():I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusLabel(B),expression:"getStatusLabel(entry)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass(B)}),I("span",{domProps:{textContent:$._s(B.title)}})])]}},{key:"cell-status",fn:function({row:B}){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(B),expression:"getStatusTooltip(entry)"}],staticClass:"status-index-field select-none",class:`status-${B.status}`,domProps:{textContent:$._s($.getStatusLabel(B))}})]}},{key:"cell-slug",fn:function({row:B}){return[I("div",{staticClass:"slug-index-field",attrs:{title:B.slug}},[$._v($._s(B.slug))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[B.viewable&&B.permalink?I("dropdown-item",{attrs:{text:$.__("View"),"external-link":B.permalink}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):$._e(),B.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1)],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,2069117935)})],1)},_sfc_staticRenderFns$30=[],__component__$31=normalizeComponent$3(_sfc_main$30,_sfc_render$30,_sfc_staticRenderFns$30,!1,null,null,null,null);const EntryListing=__component__$31.exports,_sfc_main$2$={mixins:[Listing],props:{initialRows:Array,initialColumns:Array},data(){return{rows:this.initialRows,columns:this.initialColumns}}};var _sfc_render$2$=function M(){var $=this,I=$._self._c;return I("data-list",{ref:"dataList",attrs:{columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.available_in_selected_site?B.entries_url:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.entries_url}}),B.url?I("dropdown-item",{attrs:{text:$.__("Visit URL"),"external-link":B.url}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Edit Collection"),redirect:B.edit_url}}):$._e(),B.blueprint_editable?I("dropdown-item",{attrs:{text:$.__("Edit Blueprints"),redirect:B.blueprints_url}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Scaffold Views"),redirect:B.scaffold_url}}):$._e(),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Collection")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$2$=[],__component__$30=normalizeComponent$3(_sfc_main$2$,_sfc_render$2$,_sfc_staticRenderFns$2$,!1,null,null,null,null);const CollectionListing=__component__$30.exports,_sfc_main$2_={mixins:[Listing],props:["initial-rows","initial-columns"],data(){return{rows:this.initialRows,columns:this.initialColumns}}};var _sfc_render$2_=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.terms_url}},[$._v($._s($.__(B.title)))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{attrs:{text:$.__("Edit Blueprints"),redirect:B.blueprints_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$2_=[],__component__$2$=normalizeComponent$3(_sfc_main$2_,_sfc_render$2_,_sfc_staticRenderFns$2_,!1,null,null,null,null);const TaxonomyListing=__component__$2$.exports,_sfc_main$2Z={mixins:[Listing],props:{taxonomy:String},data(){return{listingKey:"terms",preferencesPrefix:`taxonomies.${this.taxonomy}`,requestUrl:cp_url(`taxonomies/${this.taxonomy}/terms`),pushQuery:!0}},computed:{actionContext(){return{taxonomy:this.taxonomy}}},methods:{preferencesKey(M){return`taxonomies.${this.taxonomy}.${M}`}}};var _sfc_render$2Z=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b"},[I("data-list-filter-presets",{ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{loading:$.loading,"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("div",{staticClass:"flex items-center"},[I("a",{attrs:{href:B.edit_url}},[$._v($._s(B.title))])])]}},{key:"cell-slug",fn:function({row:B}){return[I("span",{staticClass:"font-mono text-2xs"},[$._v($._s(B.slug))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.permalink}}),I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("div",{staticClass:"divider"}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,1703345705)})],1)},_sfc_staticRenderFns$2Z=[],__component__$2_=normalizeComponent$3(_sfc_main$2Z,_sfc_render$2Z,_sfc_staticRenderFns$2Z,!1,null,null,null,null);const TermListing=__component__$2_.exports,_sfc_main$2Y={props:["initial-rows","columns","visible-columns"],data(){return{rows:this.initialRows}},methods:{destroy(M,$){confirm(__("Are you sure?"))&&this.$axios.delete(M.delete_url).then(I=>{this.rows.splice($,1)})}}};var _sfc_render$2Y=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.visibleColumns,columns:$.columns,rows:$.initialRows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s(B.title))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){return $.destroy(B,j)}}})],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$2Y=[],__component__$2Z=normalizeComponent$3(_sfc_main$2Y,_sfc_render$2Y,_sfc_staticRenderFns$2Y,!1,null,null,null,null);const AssetContainerList=__component__$2Z.exports,AddonList_vue_vue_type_style_index_0_lang="",_sfc_main$2X={props:["domain","endpoints","installCount"],data(){return{initializing:!0,loading:!0,rows:[],meta:{},searchQuery:"",filter:"all",page:1,showingAddon:!1,error:!1,unlisted:[]}},computed:{params(){return{page:this.page,q:this.searchQuery,installed:this.filter==="installed"?1:0}},loaded(){return!this.loading&&!this.error}},watch:{page(){this.getAddons()},searchQuery(){this.page=1,this.getAddons()},filter(){this.page=1,this.getAddons()},loading:{immediate:!0,handler(M){this.$progress.loading("addon-list",M)}}},created(){this.rows=this.getAddons(),this.$events.$on("composer-finished",this.getAddons)},methods:{getAddons(){this.loading=!0,this.$axios.get(cp_url("/api/addons"),{params:this.params}).then(M=>{this.loading=!1,this.initializing=!1,this.rows=M.data.data,this.meta=M.data.meta,this.unlisted=M.data.unlisted??[],this.showingAddon&&this.refreshShowingAddon()}).catch(M=>{this.loading=!1,this.error=!0,this.$toast.error(__("Something went wrong"))})},setPage(M){this.page=M},refreshShowingAddon(){this.showingAddon=_.findWhere(this.rows,{id:this.showingAddon.id}),this.$events.$emit("addon-refreshed")},getCover(M){return M.assets.length?M.assets[0].url:"https://statamic.com/images/img/marketplace/placeholder-addon.png"},getPriceRange(M){let[$,I]=M.price_range;return $=$?`$${$}`:"Free",I=I?`$${I}`:"Free",$==I?$:`${$} - ${I}`},showAddon(M){this.showingAddon=M,window.scrollTo(0,0)}}};var _sfc_render$2X=function M(){var $=this,I=$._self._c;return I("div",[$.showingAddon?I("div",{staticClass:"breadcrumb flex"},[I("button",{staticClass:"flex-initial flex p-2 -m-2 items-center text-xs text-gray-700 hover:text-gray-900",on:{click:function(N){$.showingAddon=!1}}},[I("svg-icon",{staticClass:"h-6 w-4 rotate-180",attrs:{name:"micro/chevron-right"}}),I("span",{domProps:{textContent:$._s($.__("Addons"))}})],1)]):$._e(),$.showingAddon?$._e():I("div",{staticClass:"flex mb-6"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__("Addons"))}})]),$.error?I("div",{staticClass:"card text-sm"},[$._v(" "+$._s($.__("messages.addon_list_loading_error"))+" ")]):$._e(),$.initializing?I("div",{staticClass:"card p-6 text-center"},[I("loading-graphic")],1):$._e(),!$.initializing&&!$.showingAddon?I("data-list",{attrs:{rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({rows:N}){return I("div",{},[I("div",{staticClass:"card p-0"},[I("div",{staticClass:"border-b px-4 text-sm"},[I("button",{staticClass:"data-list-filter-link",class:{active:$.filter==="all"},domProps:{textContent:$._s($.__("All"))},on:{click:function(B){$.filter="all"}}}),I("button",{staticClass:"data-list-filter-link",class:{active:$.filter==="installed"},on:{click:function(B){$.filter="installed"}}},[$._v(" "+$._s($.__("Installed"))+" "),$.installCount?I("span",{staticClass:"badge"},[$._v($._s($.installCount))]):$._e()])]),I("div",{staticClass:"p-2"},[I("data-list-search",{ref:"search",model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}})],1)]),I("div",{staticClass:"addon-grid my-8",class:{"opacity-50":$.loading}},$._l(N,function(B){return I("div",{key:B.id,staticClass:"addon-card bg-white text-gray-800 h-full shadow rounded cursor-pointer relative",on:{click:function(j){return $.showAddon(B)}}},[B.installed?I("span",{staticClass:"badge absolute top-0 rtl:right-0 ltr:left-0 mt-2 rtl:mr-2 ltr:ml-2"},[$._v("Installed")]):$._e(),I("div",{staticClass:"h-48 rounded-t bg-cover bg-center",style:"background-image: url('"+$.getCover(B)+"')"}),I("div",{staticClass:"px-6 mb-4 relative text-center"},[I("a",{staticClass:"relative",attrs:{href:B.seller.website}},[I("img",{staticClass:"rounded-full h-14 w-14 bg-white relative -mt-8 border-2 border-white inline",attrs:{src:B.seller.avatar,alt:B.seller.name}})]),I("div",{staticClass:"addon-card-title mb-2 text-lg font-bold text-center"},[$._v($._s(B.name))]),I("p",{staticClass:"text-gray mb-4",domProps:{textContent:$._s($.getPriceRange(B))}}),I("p",{staticClass:"text-sm",domProps:{textContent:$._s(B.summary)}})])])}),0),I("data-list-pagination",{attrs:{"resource-meta":$.meta},on:{"page-selected":$.setPage}})],1)}}],null,!1,1492461674)}):$._e(),$.unlisted.length&&!$.showingAddon?[I("h6",{staticClass:"mt-8"},[$._v($._s($.__("Unlisted Addons")))]),I("div",{staticClass:"card p-0 mt-2"},[I("table",{staticClass:"data-table"},[I("tbody",$._l($.unlisted,function(N){return I("tr",{key:N.package},[I("td",{domProps:{textContent:$._s(N.name)}}),I("td",{domProps:{textContent:$._s(N.package)}})])}),0)])])]:$._e(),$.showingAddon?I("addon-details",{attrs:{addon:$.showingAddon,cover:$.getCover($.showingAddon)}}):$._e()],2)},_sfc_staticRenderFns$2X=[],__component__$2Y=normalizeComponent$3(_sfc_main$2X,_sfc_render$2X,_sfc_staticRenderFns$2X,!1,null,null,null,null);const AddonList=__component__$2Y.exports,_sfc_main$2W={props:{addon:{type:Object,required:!0}},data(){return{selected:this.addon.edition,saving:!1}},watch:{saving(M){this.$progress.loading(M)},"addon.edition":function(M){this.selected=M}},methods:{select(M){this.saving=!0,this.$axios.post(cp_url("addons/editions"),{addon:this.addon.package,edition:M.handle}).then($=>{this.selected=M.handle,this.saving=!1})},label(M){const $=__("Free"),I=M.price===0?$:`$${M.price}`;return I===$&&M.name===$?M.name:`${M.name} (${I})`},buttonDisabled(M){return!this.addon.installed||M.handle===this.selected}}};var _sfc_render$2W=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"card mb-6"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Editions"))}}),I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"btn-group"},$._l($.addon.editions,function(N){return I("button",{key:N.handle,staticClass:"btn px-4",class:{disabled:$.buttonDisabled(N)},attrs:{disabled:$.buttonDisabled(N)},domProps:{textContent:$._s($.label(N))},on:{click:function(B){return $.select(N)}}})}),0),$.saving?I("loading-graphic",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{inline:"",text:""}}):$._e()],1)])},_sfc_staticRenderFns$2W=[],__component__$2X=normalizeComponent$3(_sfc_main$2W,_sfc_render$2W,_sfc_staticRenderFns$2W,!1,null,null,null,null);const AddonEditions=__component__$2X.exports,_sfc_main$2V={components:{AddonEditions},props:["addon"],data(){return{waitingForRefresh:!1,modalOpen:!1,downloads:null}},computed:{toEleven(){return{timeout:Statamic.$config.get("ajaxTimeout")}},package(){return this.addon.package},description(){return this.addon.description},priceRange(){let[M,$]=this.addon.price_range;return M=M?`$${M}`:__("Free"),$=$?`$${$}`:__("Free"),M==$?M:`${M} - ${$}`}},created(){this.$events.$on("addon-refreshed",this.addonRefreshed),this.getDownloadCount()},destroyed(){this.$events.$off("addon-refreshed",this.addonRefreshed)},methods:{addonRefreshed(){this.waitingForRefresh=!1},getDownloadCount(){this.$axios.get(`https://packagist.org/packages/${this.addon.package}.json`).then(M=>{this.downloads=M.data.package.downloads.total})},showComposerInstructions(){this.modalOpen=!0}}};var _sfc_render$2V=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.addon.name)}}),I("a",{staticClass:"btn rtl:ml-4 ltr:mr-4",attrs:{href:$.addon.url,target:"_blank"},domProps:{textContent:$._s($.__("View on Marketplace"))}}),$.addon.installed?I("button",{staticClass:"btn",domProps:{textContent:$._s($.__("Uninstall"))},on:{click:$.showComposerInstructions}}):I("button",{staticClass:"btn btn-primary",domProps:{textContent:$._s($.__("Install"))},on:{click:$.showComposerInstructions}})]),$.modalOpen?I("confirmation-modal",{attrs:{cancellable:!1,"button-text":$.__("OK")},on:{confirm:function(N){$.modalOpen=!1}}},[I("div",{staticClass:"prose"},[$.addon.installed?[I("p",{domProps:{textContent:$._s(`${$.__("messages.addon_uninstall_command")}:`)}}),I("code-block",{attrs:{copyable:"",text:`composer remove ${$.package}`}})]:[I("p",{domProps:{textContent:$._s(`${$.__("messages.addon_install_command")}:`)}}),I("code-block",{attrs:{copyable:"",text:`composer require ${$.package}`}})],I("p",[$._v($._s($.__("Learn more about"))+" "),I("a",{attrs:{href:"https://statamic.dev/addons"}},[$._v($._s($.__("Addons")))]),$._v(".")])],2)]):$._e(),I("div",[I("div",{staticClass:"card mb-6 flex items-center"},[I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Price"))}}),I("div",{staticClass:"font-bold",domProps:{textContent:$._s($.priceRange)}})]),I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Seller"))}}),I("a",{staticClass:"relative flex items-center",attrs:{href:$.addon.seller.website}},[I("img",{staticClass:"rounded-full w-6 rtl:ml-2 ltr:mr-2",attrs:{src:$.addon.seller.avatar,alt:$.addon.seller.name}}),I("span",{staticClass:"font-bold"},[$._v($._s($.addon.seller.name))])])]),$.downloads?I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Downloads"))}}),I("div",{staticClass:"font-bold"},[$._v($._s($.downloads))])]):$._e()]),$.addon.editions.length?I("addon-editions",{attrs:{addon:$.addon}}):$._e(),I("div",{staticClass:"card content p-8",domProps:{innerHTML:$._s($.description)}})],1)],1)},_sfc_staticRenderFns$2V=[],__component__$2W=normalizeComponent$3(_sfc_main$2V,_sfc_render$2V,_sfc_staticRenderFns$2V,!1,null,null,null,null);const AddonDetails=__component__$2W.exports,_sfc_main$2U={mixins:[Listing],props:{collection:String,additionalColumns:Array},data(){return{cols:[{label:"Title",field:"title",visible:!0},...this.additionalColumns],listingKey:"entries",requestUrl:cp_url(`collections/${this.collection}/entries`)}}};var _sfc_render$2U=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full"},[$.initializing?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),!$.initializing&&$.items.length?I("data-list",{staticClass:"h-full flex flex-col justify-between",attrs:{rows:$.items,columns:$.cols,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{},[I("data-list-table",{attrs:{loading:$.loading},scopedSlots:$._u([{key:"cell-title",fn:function({row:N}){return[I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:[N.published?"bg-green-600":"bg-gray-400"]}),I("a",{attrs:{href:N.edit_url}},[$._v($._s(N.title))])])]}}],null,!0)}),$.meta.last_page!=1?I("data-list-pagination",{staticClass:"py-2 border-t bg-gray-200 rounded-b-lg text-sm",attrs:{"resource-meta":$.meta,"scroll-to-top":!1},on:{"page-selected":$.selectPage}}):$._e()],1)}}],null,!1,1969039667)}):!$.initializing&&!$.items.length?I("p",{staticClass:"p-4 pt-2 text-sm text-gray-600"},[$._v(" "+$._s($.__("There are no entries in this collection"))+" ")]):$._e()],1)},_sfc_staticRenderFns$2U=[],__component__$2V=normalizeComponent$3(_sfc_main$2U,_sfc_render$2U,_sfc_staticRenderFns$2U,!1,null,null,null,null);const CollectionWidget=__component__$2V.exports,__variableDynamicImportRuntimeHelper=(M,$)=>{const I=M[$];return I?typeof I=="function"?I():Promise.resolve(I):new Promise((N,B)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(B.bind(null,new Error("Unknown variable dynamic import: "+$)))})},_sfc_main$2T={props:{name:String,default:String,directory:String},data(){return{icon:null}},mounted(){this.icon=this.evaluateIcon()},watch:{name(){this.icon=this.evaluateIcon()}},computed:{customIcon(){if(!this.directory)return;let M=this.directory,$=null,I=this.name;return this.name.includes("/")&&([$,I]=this.name.split("/"),M=M+"/"+$),data_get$1(this.$config.get("customSvgIcons")||{},`${M}.${I}`)}},methods:{evaluateIcon(){return this.customIcon?defineAsyncComponent(()=>new Promise(M=>M({template:this.customIcon}))):this.name.startsWith("<svg")?defineAsyncComponent(()=>new Promise(M=>M({template:this.name}))):defineAsyncComponent(()=>{const[M,$]=this.splitIcon(this.name);return __variableDynamicImportRuntimeHelper(Object.assign({"../../svg/icons/light/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-4a172fe1.js"),[],import.meta.url),"../../svg/icons/light/add.svg":()=>__vitePreload(()=>import("./add-9bd64b65.js"),[],import.meta.url),"../../svg/icons/light/addons.svg":()=>__vitePreload(()=>import("./addons-0a4dd4d7.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets-dots.svg":()=>__vitePreload(()=>import("./angle-brackets-dots-55f4583d.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets.svg":()=>__vitePreload(()=>import("./angle-brackets-e3b98394.js"),[],import.meta.url),"../../svg/icons/light/arrange-letter.svg":()=>__vitePreload(()=>import("./arrange-letter-28c5d925.js"),[],import.meta.url),"../../svg/icons/light/arrange-number.svg":()=>__vitePreload(()=>import("./arrange-number-2c6d43ac.js"),[],import.meta.url),"../../svg/icons/light/array.svg":()=>__vitePreload(()=>import("./array-3505d86f.js"),[],import.meta.url),"../../svg/icons/light/arrow-right-thin.svg":()=>__vitePreload(()=>import("./arrow-right-thin-cc94456c.js"),[],import.meta.url),"../../svg/icons/light/assets.svg":()=>__vitePreload(()=>import("./assets-a10adea6.js"),[],import.meta.url),"../../svg/icons/light/bard.svg":()=>__vitePreload(()=>import("./bard-ae061db3.js"),[],import.meta.url),"../../svg/icons/light/blueprint.svg":()=>__vitePreload(()=>import("./blueprint-007ca3ee.js"),[],import.meta.url),"../../svg/icons/light/blueprints.svg":()=>__vitePreload(()=>import("./blueprints-6cb8a7d1.js"),[],import.meta.url),"../../svg/icons/light/book-open.svg":()=>__vitePreload(()=>import("./book-open-44934d56.js"),[],import.meta.url),"../../svg/icons/light/book-pages.svg":()=>__vitePreload(()=>import("./book-pages-52bc7119.js"),[],import.meta.url),"../../svg/icons/light/browser-com.svg":()=>__vitePreload(()=>import("./browser-com-b7b2122e.js"),[],import.meta.url),"../../svg/icons/light/burger.svg":()=>__vitePreload(()=>import("./burger-519ad6f5.js"),[],import.meta.url),"../../svg/icons/light/button_group.svg":()=>__vitePreload(()=>import("./button_group-8606443e.js"),[],import.meta.url),"../../svg/icons/light/cache.svg":()=>__vitePreload(()=>import("./cache-5ce04083.js"),[],import.meta.url),"../../svg/icons/light/calendar.svg":()=>__vitePreload(()=>import("./calendar-dcec1b9c.js"),[],import.meta.url),"../../svg/icons/light/charts.svg":()=>__vitePreload(()=>import("./charts-87d83ff9.js"),[],import.meta.url),"../../svg/icons/light/check.svg":()=>__vitePreload(()=>import("./check-b06def82.js"),[],import.meta.url),"../../svg/icons/light/checkboxes.svg":()=>__vitePreload(()=>import("./checkboxes-c673747c.js"),[],import.meta.url),"../../svg/icons/light/close.svg":()=>__vitePreload(()=>import("./close-ad87c2a4.js"),[],import.meta.url),"../../svg/icons/light/code.svg":()=>__vitePreload(()=>import("./code-e487637e.js"),[],import.meta.url),"../../svg/icons/light/cog.svg":()=>__vitePreload(()=>import("./cog-7adb88f0.js"),[],import.meta.url),"../../svg/icons/light/collection.svg":()=>__vitePreload(()=>import("./collection-5b99aa2c.js"),[],import.meta.url),"../../svg/icons/light/collections.svg":()=>__vitePreload(()=>import("./collections-6e6967ab.js"),[],import.meta.url),"../../svg/icons/light/color.svg":()=>__vitePreload(()=>import("./color-8c201f9a.js"),[],import.meta.url),"../../svg/icons/light/content-writing.svg":()=>__vitePreload(()=>import("./content-writing-0b42dd39.js"),[],import.meta.url),"../../svg/icons/light/crane.svg":()=>__vitePreload(()=>import("./crane-01a69a63.js"),[],import.meta.url),"../../svg/icons/light/date.svg":()=>__vitePreload(()=>import("./date-6fddfc69.js"),[],import.meta.url),"../../svg/icons/light/download.svg":()=>__vitePreload(()=>import("./download-13d1cb2c.js"),[],import.meta.url),"../../svg/icons/light/drag-dots.svg":()=>__vitePreload(()=>import("./drag-dots-5aeb4cfe.js"),[],import.meta.url),"../../svg/icons/light/drawer-file.svg":()=>__vitePreload(()=>import("./drawer-file-788c0365.js"),[],import.meta.url),"../../svg/icons/light/duplicate-ids.svg":()=>__vitePreload(()=>import("./duplicate-ids-f25f735e.js"),[],import.meta.url),"../../svg/icons/light/duplicate.svg":()=>__vitePreload(()=>import("./duplicate-e06d08d8.js"),[],import.meta.url),"../../svg/icons/light/earth.svg":()=>__vitePreload(()=>import("./earth-bf12bee8.js"),[],import.meta.url),"../../svg/icons/light/email-utility.svg":()=>__vitePreload(()=>import("./email-utility-5c2c1e0f.js"),[],import.meta.url),"../../svg/icons/light/entries.svg":()=>__vitePreload(()=>import("./entries-7ac2388c.js"),[],import.meta.url),"../../svg/icons/light/expand-diagonal.svg":()=>__vitePreload(()=>import("./expand-diagonal-bcb29dce.js"),[],import.meta.url),"../../svg/icons/light/expand-vertical.svg":()=>__vitePreload(()=>import("./expand-vertical-8df9132f.js"),[],import.meta.url),"../../svg/icons/light/external-link.svg":()=>__vitePreload(()=>import("./external-link-0c81b049.js"),[],import.meta.url),"../../svg/icons/light/fieldsets.svg":()=>__vitePreload(()=>import("./fieldsets-fda8f7b3.js"),[],import.meta.url),"../../svg/icons/light/fieldtype.svg":()=>__vitePreload(()=>import("./fieldtype-daeff2f2.js"),[],import.meta.url),"../../svg/icons/light/file-code.svg":()=>__vitePreload(()=>import("./file-code-4397fde8.js"),[],import.meta.url),"../../svg/icons/light/file-text.svg":()=>__vitePreload(()=>import("./file-text-41ad25e1.js"),[],import.meta.url),"../../svg/icons/light/filter-lines.svg":()=>__vitePreload(()=>import("./filter-lines-5049d781.js"),[],import.meta.url),"../../svg/icons/light/filter.svg":()=>__vitePreload(()=>import("./filter-7bf78174.js"),[],import.meta.url),"../../svg/icons/light/flag.svg":()=>__vitePreload(()=>import("./flag-6bb63494.js"),[],import.meta.url),"../../svg/icons/light/float.svg":()=>__vitePreload(()=>import("./float-1677f349.js"),[],import.meta.url),"../../svg/icons/light/form.svg":()=>__vitePreload(()=>import("./form-a899a3b1.js"),[],import.meta.url),"../../svg/icons/light/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-3e7319f1.js"),[],import.meta.url),"../../svg/icons/light/git.svg":()=>__vitePreload(()=>import("./git-a0310b23.js"),[],import.meta.url),"../../svg/icons/light/grid.svg":()=>__vitePreload(()=>import("./grid-3e1f6818.js"),[],import.meta.url),"../../svg/icons/light/group.svg":()=>__vitePreload(()=>import("./group-95d5e899.js"),[],import.meta.url),"../../svg/icons/light/hammer-wrench.svg":()=>__vitePreload(()=>import("./hammer-wrench-38a73504.js"),[],import.meta.url),"../../svg/icons/light/hidden.svg":()=>__vitePreload(()=>import("./hidden-bf89c1b6.js"),[],import.meta.url),"../../svg/icons/light/hierarchy-files.svg":()=>__vitePreload(()=>import("./hierarchy-files-d8f8fca8.js"),[],import.meta.url),"../../svg/icons/light/history.svg":()=>__vitePreload(()=>import("./history-d1491618.js"),[],import.meta.url),"../../svg/icons/light/html.svg":()=>__vitePreload(()=>import("./html-2e851dfc.js"),[],import.meta.url),"../../svg/icons/light/hyperlink-broken.svg":()=>__vitePreload(()=>import("./hyperlink-broken-3ae6e951.js"),[],import.meta.url),"../../svg/icons/light/hyperlink.svg":()=>__vitePreload(()=>import("./hyperlink-6e336b4b.js"),[],import.meta.url),"../../svg/icons/light/icon_picker.svg":()=>__vitePreload(()=>import("./icon_picker-8c14e4be.js"),[],import.meta.url),"../../svg/icons/light/integer.svg":()=>__vitePreload(()=>import("./integer-7843f18f.js"),[],import.meta.url),"../../svg/icons/light/licensing.svg":()=>__vitePreload(()=>import("./licensing-cc27c886.js"),[],import.meta.url),"../../svg/icons/light/link.svg":()=>__vitePreload(()=>import("./link-07bdb6d1.js"),[],import.meta.url),"../../svg/icons/light/list-bullets.svg":()=>__vitePreload(()=>import("./list-bullets-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/list.svg":()=>__vitePreload(()=>import("./list-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/loading-bar.svg":()=>__vitePreload(()=>import("./loading-bar-58f38056.js"),[],import.meta.url),"../../svg/icons/light/lock.svg":()=>__vitePreload(()=>import("./lock-b225bb68.js"),[],import.meta.url),"../../svg/icons/light/magnifying-glass.svg":()=>__vitePreload(()=>import("./magnifying-glass-6cfeaa30.js"),[],import.meta.url),"../../svg/icons/light/markdown.svg":()=>__vitePreload(()=>import("./markdown-1b257ee1.js"),[],import.meta.url),"../../svg/icons/light/nav-preferences.svg":()=>__vitePreload(()=>import("./nav-preferences-f00d229c.js"),[],import.meta.url),"../../svg/icons/light/partial.svg":()=>__vitePreload(()=>import("./partial-94971ad0.js"),[],import.meta.url),"../../svg/icons/light/php.svg":()=>__vitePreload(()=>import("./php-16db75a9.js"),[],import.meta.url),"../../svg/icons/light/picker.svg":()=>__vitePreload(()=>import("./picker-18ee48e1.js"),[],import.meta.url),"../../svg/icons/light/pin.svg":()=>__vitePreload(()=>import("./pin-b07b6d75.js"),[],import.meta.url),"../../svg/icons/light/playground.svg":()=>__vitePreload(()=>import("./playground-bfd699a8.js"),[],import.meta.url),"../../svg/icons/light/pro-ribbon.svg":()=>__vitePreload(()=>import("./pro-ribbon-bcbf323b.js"),[],import.meta.url),"../../svg/icons/light/pull-down.svg":()=>__vitePreload(()=>import("./pull-down-96f88daf.js"),[],import.meta.url),"../../svg/icons/light/radio.svg":()=>__vitePreload(()=>import("./radio-c9ebc51b.js"),[],import.meta.url),"../../svg/icons/light/range.svg":()=>__vitePreload(()=>import("./range-a4272066.js"),[],import.meta.url),"../../svg/icons/light/replicator.svg":()=>__vitePreload(()=>import("./replicator-f4236336.js"),[],import.meta.url),"../../svg/icons/light/revealer.svg":()=>__vitePreload(()=>import("./revealer-b5fabe54.js"),[],import.meta.url),"../../svg/icons/light/search-utility.svg":()=>__vitePreload(()=>import("./search-utility-011043ba.js"),[],import.meta.url),"../../svg/icons/light/search.svg":()=>__vitePreload(()=>import("./search-858bf202.js"),[],import.meta.url),"../../svg/icons/light/section.svg":()=>__vitePreload(()=>import("./section-0660cf61.js"),[],import.meta.url),"../../svg/icons/light/select.svg":()=>__vitePreload(()=>import("./select-ef552557.js"),[],import.meta.url),"../../svg/icons/light/seo-search-graph.svg":()=>__vitePreload(()=>import("./seo-search-graph-8cc1ca71.js"),[],import.meta.url),"../../svg/icons/light/settings-horizontal.svg":()=>__vitePreload(()=>import("./settings-horizontal-507fbc32.js"),[],import.meta.url),"../../svg/icons/light/settings-slider.svg":()=>__vitePreload(()=>import("./settings-slider-d0056519.js"),[],import.meta.url),"../../svg/icons/light/shield-key.svg":()=>__vitePreload(()=>import("./shield-key-969a463d.js"),[],import.meta.url),"../../svg/icons/light/shrink.svg":()=>__vitePreload(()=>import("./shrink-c9676c82.js"),[],import.meta.url),"../../svg/icons/light/sites.svg":()=>__vitePreload(()=>import("./sites-3e1a937f.js"),[],import.meta.url),"../../svg/icons/light/slug.svg":()=>__vitePreload(()=>import("./slug-5b67b259.js"),[],import.meta.url),"../../svg/icons/light/structures.svg":()=>__vitePreload(()=>import("./structures-11c546fd.js"),[],import.meta.url),"../../svg/icons/light/synchronize.svg":()=>__vitePreload(()=>import("./synchronize-127de686.js"),[],import.meta.url),"../../svg/icons/light/table.svg":()=>__vitePreload(()=>import("./table-252a03eb.js"),[],import.meta.url),"../../svg/icons/light/tags.svg":()=>__vitePreload(()=>import("./tags-98173656.js"),[],import.meta.url),"../../svg/icons/light/taxonomies.svg":()=>__vitePreload(()=>import("./taxonomies-5e5a9c10.js"),[],import.meta.url),"../../svg/icons/light/taxonomy.svg":()=>__vitePreload(()=>import("./taxonomy-a9ca4c2e.js"),[],import.meta.url),"../../svg/icons/light/template.svg":()=>__vitePreload(()=>import("./template-f7258fc9.js"),[],import.meta.url),"../../svg/icons/light/text.svg":()=>__vitePreload(()=>import("./text-d6ab75a9.js"),[],import.meta.url),"../../svg/icons/light/textarea.svg":()=>__vitePreload(()=>import("./textarea-837f6a05.js"),[],import.meta.url),"../../svg/icons/light/time.svg":()=>__vitePreload(()=>import("./time-2e8ca427.js"),[],import.meta.url),"../../svg/icons/light/title.svg":()=>__vitePreload(()=>import("./title-79f169ea.js"),[],import.meta.url),"../../svg/icons/light/toggle.svg":()=>__vitePreload(()=>import("./toggle-3bae8661.js"),[],import.meta.url),"../../svg/icons/light/user-edit.svg":()=>__vitePreload(()=>import("./user-edit-7b9ae6e8.js"),[],import.meta.url),"../../svg/icons/light/user.svg":()=>__vitePreload(()=>import("./user-9b4bab98.js"),[],import.meta.url),"../../svg/icons/light/user_groups.svg":()=>__vitePreload(()=>import("./user_groups-375cd4f9.js"),[],import.meta.url),"../../svg/icons/light/user_roles.svg":()=>__vitePreload(()=>import("./user_roles-ada25224.js"),[],import.meta.url),"../../svg/icons/light/users-box.svg":()=>__vitePreload(()=>import("./users-box-81a035ed.js"),[],import.meta.url),"../../svg/icons/light/users-multiple.svg":()=>__vitePreload(()=>import("./users-multiple-353c36c4.js"),[],import.meta.url),"../../svg/icons/light/users.svg":()=>__vitePreload(()=>import("./users-9b84f17b.js"),[],import.meta.url),"../../svg/icons/light/video.svg":()=>__vitePreload(()=>import("./video-d6557d2b.js"),[],import.meta.url),"../../svg/icons/light/width.svg":()=>__vitePreload(()=>import("./width-b783c381.js"),[],import.meta.url),"../../svg/icons/light/wireframe.svg":()=>__vitePreload(()=>import("./wireframe-3e8da586.js"),[],import.meta.url),"../../svg/icons/light/yaml.svg":()=>__vitePreload(()=>import("./yaml-820d08c0.js"),[],import.meta.url),"../../svg/icons/micro/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-6578a8b1.js"),[],import.meta.url),"../../svg/icons/micro/arrow-go-back.svg":()=>__vitePreload(()=>import("./arrow-go-back-565e2131.js"),[],import.meta.url),"../../svg/icons/micro/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-dc7e3363.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-small.svg":()=>__vitePreload(()=>import("./chevron-down-small-24a46dad.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-xs.svg":()=>__vitePreload(()=>import("./chevron-down-xs-91cef22d.js"),[],import.meta.url),"../../svg/icons/micro/chevron-left.svg":()=>__vitePreload(()=>import("./chevron-left-fc1e5663.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right-thin.svg":()=>__vitePreload(()=>import("./chevron-right-thin-10805dd1.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right.svg":()=>__vitePreload(()=>import("./chevron-right-be1a36f6.js"),[],import.meta.url),"../../svg/icons/micro/circle-help.svg":()=>__vitePreload(()=>import("./circle-help-74709df1.js"),[],import.meta.url),"../../svg/icons/micro/circle-with-cross.svg":()=>__vitePreload(()=>import("./circle-with-cross-6caf6914.js"),[],import.meta.url),"../../svg/icons/micro/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-535fad9d.js"),[],import.meta.url),"../../svg/icons/micro/folder.svg":()=>__vitePreload(()=>import("./folder-53db7195.js"),[],import.meta.url),"../../svg/icons/micro/pencil.svg":()=>__vitePreload(()=>import("./pencil-49c2fd68.js"),[],import.meta.url),"../../svg/icons/micro/plus.svg":()=>__vitePreload(()=>import("./plus-ce68ae64.js"),[],import.meta.url),"../../svg/icons/micro/sharp-pencil.svg":()=>__vitePreload(()=>import("./sharp-pencil-29f9fe88.js"),[],import.meta.url),"../../svg/icons/micro/sharp-trash.svg":()=>__vitePreload(()=>import("./sharp-trash-7573b683.js"),[],import.meta.url),"../../svg/icons/micro/trash.svg":()=>__vitePreload(()=>import("./trash-044f26dd.js"),[],import.meta.url),"../../svg/icons/micro/warning.svg":()=>__vitePreload(()=>import("./warning-b7e837f6.js"),[],import.meta.url),"../../svg/icons/plump/addon-boxes-stack.svg":()=>__vitePreload(()=>import("./addon-boxes-stack-6ce4c795.js"),[],import.meta.url),"../../svg/icons/plump/alert-alarm-bell.svg":()=>__vitePreload(()=>import("./alert-alarm-bell-fc1148d8.js"),[],import.meta.url),"../../svg/icons/plump/alert-help-question.svg":()=>__vitePreload(()=>import("./alert-help-question-a231566c.js"),[],import.meta.url),"../../svg/icons/plump/alert-warning-exclamation-mark.svg":()=>__vitePreload(()=>import("./alert-warning-exclamation-mark-fd803ce5.js"),[],import.meta.url),"../../svg/icons/plump/align-left.svg":()=>__vitePreload(()=>import("./align-left-2f38b489.js"),[],import.meta.url),"../../svg/icons/plump/align-object-bottom.svg":()=>__vitePreload(()=>import("./align-object-bottom-10d9b070.js"),[],import.meta.url),"../../svg/icons/plump/align-object-center.svg":()=>__vitePreload(()=>import("./align-object-center-0f9a0b76.js"),[],import.meta.url),"../../svg/icons/plump/align-object-top.svg":()=>__vitePreload(()=>import("./align-object-top-5e7ec7a9.js"),[],import.meta.url),"../../svg/icons/plump/align-right.svg":()=>__vitePreload(()=>import("./align-right-b3bd3023.js"),[],import.meta.url),"../../svg/icons/plump/arrow-left.svg":()=>__vitePreload(()=>import("./arrow-left-6789983f.js"),[],import.meta.url),"../../svg/icons/plump/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-98e5a177.js"),[],import.meta.url),"../../svg/icons/plump/arrow-roadmap-path-flow.svg":()=>__vitePreload(()=>import("./arrow-roadmap-path-flow-e0cb9f66.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-height.svg":()=>__vitePreload(()=>import("./arrows-fit-to-height-ecc46200.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-width.svg":()=>__vitePreload(()=>import("./arrows-fit-to-width-dbbf7d70.js"),[],import.meta.url),"../../svg/icons/plump/bookmark.svg":()=>__vitePreload(()=>import("./bookmark-73874bf7.js"),[],import.meta.url),"../../svg/icons/plump/calendar-date.svg":()=>__vitePreload(()=>import("./calendar-date-6bfb1441.js"),[],import.meta.url),"../../svg/icons/plump/computer-desktop.svg":()=>__vitePreload(()=>import("./computer-desktop-35dbd877.js"),[],import.meta.url),"../../svg/icons/plump/computer-logo-communication-zoom.svg":()=>__vitePreload(()=>import("./computer-logo-communication-zoom-356e7a41.js"),[],import.meta.url),"../../svg/icons/plump/computer-voice-mail-microphone.svg":()=>__vitePreload(()=>import("./computer-voice-mail-microphone-10e6eff6.js"),[],import.meta.url),"../../svg/icons/plump/content-book-open.svg":()=>__vitePreload(()=>import("./content-book-open-0b03b86d.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-2.svg":()=>__vitePreload(()=>import("./dashboard-layout-2-db1753b7.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-3.svg":()=>__vitePreload(()=>import("./dashboard-layout-3-9c917850.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout.svg":()=>__vitePreload(()=>import("./dashboard-layout-5f55876b.js"),[],import.meta.url),"../../svg/icons/plump/direction-buttons.svg":()=>__vitePreload(()=>import("./direction-buttons-62c3a471.js"),[],import.meta.url),"../../svg/icons/plump/download-arrow-down.svg":()=>__vitePreload(()=>import("./download-arrow-down-79b0ec3b.js"),[],import.meta.url),"../../svg/icons/plump/edit-design-compare-ab-testing.svg":()=>__vitePreload(()=>import("./edit-design-compare-ab-testing-f8a5a223.js"),[],import.meta.url),"../../svg/icons/plump/edit-paint-palette.svg":()=>__vitePreload(()=>import("./edit-paint-palette-93f3a989.js"),[],import.meta.url),"../../svg/icons/plump/edit-pen.svg":()=>__vitePreload(()=>import("./edit-pen-cbf1a427.js"),[],import.meta.url),"../../svg/icons/plump/edit-pin.svg":()=>__vitePreload(()=>import("./edit-pin-45ecef90.js"),[],import.meta.url),"../../svg/icons/plump/favorite-award.svg":()=>__vitePreload(()=>import("./favorite-award-330f67e1.js"),[],import.meta.url),"../../svg/icons/plump/favorite-heart.svg":()=>__vitePreload(()=>import("./favorite-heart-c1f8d959.js"),[],import.meta.url),"../../svg/icons/plump/favorite-like.svg":()=>__vitePreload(()=>import("./favorite-like-edda77d0.js"),[],import.meta.url),"../../svg/icons/plump/favorite-star.svg":()=>__vitePreload(()=>import("./favorite-star-7463bd8c.js"),[],import.meta.url),"../../svg/icons/plump/file-content-list.svg":()=>__vitePreload(()=>import("./file-content-list-29b04654.js"),[],import.meta.url),"../../svg/icons/plump/file-zip.svg":()=>__vitePreload(()=>import("./file-zip-ef2d8268.js"),[],import.meta.url),"../../svg/icons/plump/fire-flame-burn-hot.svg":()=>__vitePreload(()=>import("./fire-flame-burn-hot-40cd10d0.js"),[],import.meta.url),"../../svg/icons/plump/flash-bolt-lightning.svg":()=>__vitePreload(()=>import("./flash-bolt-lightning-1e8cfb07.js"),[],import.meta.url),"../../svg/icons/plump/food-menu-book.svg":()=>__vitePreload(()=>import("./food-menu-book-56ff22dc.js"),[],import.meta.url),"../../svg/icons/plump/form-address-field.svg":()=>__vitePreload(()=>import("./form-address-field-2fcc0cf5.js"),[],import.meta.url),"../../svg/icons/plump/form-date-picker.svg":()=>__vitePreload(()=>import("./form-date-picker-abbc91aa.js"),[],import.meta.url),"../../svg/icons/plump/form-drop-down-menu.svg":()=>__vitePreload(()=>import("./form-drop-down-menu-55a5725e.js"),[],import.meta.url),"../../svg/icons/plump/form-text-field.svg":()=>__vitePreload(()=>import("./form-text-field-4b647b3e.js"),[],import.meta.url),"../../svg/icons/plump/globe-world-wide-web.svg":()=>__vitePreload(()=>import("./globe-world-wide-web-087c1d38.js"),[],import.meta.url),"../../svg/icons/plump/hierarchy-vertical-nav-flow.svg":()=>__vitePreload(()=>import("./hierarchy-vertical-nav-flow-320d967b.js"),[],import.meta.url),"../../svg/icons/plump/home-house.svg":()=>__vitePreload(()=>import("./home-house-d2939636.js"),[],import.meta.url),"../../svg/icons/plump/id-face-scan.svg":()=>__vitePreload(()=>import("./id-face-scan-e7814ced.js"),[],import.meta.url),"../../svg/icons/plump/labs-idea-experimental-flask.svg":()=>__vitePreload(()=>import("./labs-idea-experimental-flask-bfd9a212.js"),[],import.meta.url),"../../svg/icons/plump/layout-carousel-horizontal.svg":()=>__vitePreload(()=>import("./layout-carousel-horizontal-eab0bb6e.js"),[],import.meta.url),"../../svg/icons/plump/layout-display-split-quarters.svg":()=>__vitePreload(()=>import("./layout-display-split-quarters-ed52a1f9.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-down.svg":()=>__vitePreload(()=>import("./layout-flip-down-5efbb12a.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-left.svg":()=>__vitePreload(()=>import("./layout-flip-left-dfbddccc.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-right.svg":()=>__vitePreload(()=>import("./layout-flip-right-0d57afb1.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-up.svg":()=>__vitePreload(()=>import("./layout-flip-up-7b22f5fb.js"),[],import.meta.url),"../../svg/icons/plump/layout-grid-dots.svg":()=>__vitePreload(()=>import("./layout-grid-dots-41d27f32.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-left-15190966.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-right-378c0145.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-split.svg":()=>__vitePreload(()=>import("./layout-header-split-88e5cc6f.js"),[],import.meta.url),"../../svg/icons/plump/layout-header.svg":()=>__vitePreload(()=>import("./layout-header-094a6af6.js"),[],import.meta.url),"../../svg/icons/plump/layout-page-break.svg":()=>__vitePreload(()=>import("./layout-page-break-f05d606b.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-left-90a52a56.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-right-4370128f.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-left-c32d7fd9.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-right-f495564b.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-horizontal.svg":()=>__vitePreload(()=>import("./layout-split-horizontal-3fd32388.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-right.svg":()=>__vitePreload(()=>import("./layout-split-right-63ae8bed.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-verical.svg":()=>__vitePreload(()=>import("./layout-split-verical-1d5ad158.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-column-insert.svg":()=>__vitePreload(()=>import("./layout-table-column-insert-6a022d8a.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-row-insert.svg":()=>__vitePreload(()=>import("./layout-table-row-insert-1accb7ef.js"),[],import.meta.url),"../../svg/icons/plump/layout-three-columns.svg":()=>__vitePreload(()=>import("./layout-three-columns-de4bf4bc.js"),[],import.meta.url),"../../svg/icons/plump/layout-two-columns.svg":()=>__vitePreload(()=>import("./layout-two-columns-289edba7.js"),[],import.meta.url),"../../svg/icons/plump/link-external.svg":()=>__vitePreload(()=>import("./link-external-18f49cf2.js"),[],import.meta.url),"../../svg/icons/plump/link.svg":()=>__vitePreload(()=>import("./link-b5a35c50.js"),[],import.meta.url),"../../svg/icons/plump/login-key-2.svg":()=>__vitePreload(()=>import("./login-key-2-5b218b3a.js"),[],import.meta.url),"../../svg/icons/plump/mail-chat-bubble-text.svg":()=>__vitePreload(()=>import("./mail-chat-bubble-text-ee6fc0a3.js"),[],import.meta.url),"../../svg/icons/plump/mail-inbox-content.svg":()=>__vitePreload(()=>import("./mail-inbox-content-67bc0376.js"),[],import.meta.url),"../../svg/icons/plump/mail-send-email-attachment-document.svg":()=>__vitePreload(()=>import("./mail-send-email-attachment-document-acee8a1f.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-at.svg":()=>__vitePreload(()=>import("./mail-sign-at-50afa3a4.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-hashtag.svg":()=>__vitePreload(()=>import("./mail-sign-hashtag-b9cf5f14.js"),[],import.meta.url),"../../svg/icons/plump/media-computer-screen-tv.svg":()=>__vitePreload(()=>import("./media-computer-screen-tv-c8961765.js"),[],import.meta.url),"../../svg/icons/plump/media-image-camera.svg":()=>__vitePreload(()=>import("./media-image-camera-d72e8ea3.js"),[],import.meta.url),"../../svg/icons/plump/media-image-photo-focus-frame.svg":()=>__vitePreload(()=>import("./media-image-photo-focus-frame-3417a5be.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-gallery.svg":()=>__vitePreload(()=>import("./media-image-picture-gallery-af393898.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-orientation.svg":()=>__vitePreload(()=>import("./media-image-picture-orientation-96bc42e0.js"),[],import.meta.url),"../../svg/icons/plump/media-music-notes.svg":()=>__vitePreload(()=>import("./media-music-notes-82c7f223.js"),[],import.meta.url),"../../svg/icons/plump/media-music-sound-equalizer.svg":()=>__vitePreload(()=>import("./media-music-sound-equalizer-3d9d7000.js"),[],import.meta.url),"../../svg/icons/plump/media-news-paper.svg":()=>__vitePreload(()=>import("./media-news-paper-4d32690a.js"),[],import.meta.url),"../../svg/icons/plump/media-playlist.svg":()=>__vitePreload(()=>import("./media-playlist-a56bea8e.js"),[],import.meta.url),"../../svg/icons/plump/media-ticket.svg":()=>__vitePreload(()=>import("./media-ticket-70f2eee9.js"),[],import.meta.url),"../../svg/icons/plump/media-webcam-video.svg":()=>__vitePreload(()=>import("./media-webcam-video-ec6c9764.js"),[],import.meta.url),"../../svg/icons/plump/money-atm-card.svg":()=>__vitePreload(()=>import("./money-atm-card-bcceab2f.js"),[],import.meta.url),"../../svg/icons/plump/money-bank.svg":()=>__vitePreload(()=>import("./money-bank-e8892e17.js"),[],import.meta.url),"../../svg/icons/plump/money-cash-bill.svg":()=>__vitePreload(()=>import("./money-cash-bill-1ffb3ec5.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-bar-code.svg":()=>__vitePreload(()=>import("./money-cashier-bar-code-52ecd9af.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-calculator.svg":()=>__vitePreload(()=>import("./money-cashier-calculator-71869318.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-price-tag.svg":()=>__vitePreload(()=>import("./money-cashier-price-tag-213e2d66.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-bar-increase.svg":()=>__vitePreload(()=>import("./money-graph-bar-increase-3d59b9cb.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-pie-chart.svg":()=>__vitePreload(()=>import("./money-graph-pie-chart-9f49cf2a.js"),[],import.meta.url),"../../svg/icons/plump/nature-leaf.svg":()=>__vitePreload(()=>import("./nature-leaf-5924d163.js"),[],import.meta.url),"../../svg/icons/plump/phone-contact-phonebook.svg":()=>__vitePreload(()=>import("./phone-contact-phonebook-048ee9df.js"),[],import.meta.url),"../../svg/icons/plump/phone-mode-airplane-enabled.svg":()=>__vitePreload(()=>import("./phone-mode-airplane-enabled-cf5514c0.js"),[],import.meta.url),"../../svg/icons/plump/phone-telephone-call.svg":()=>__vitePreload(()=>import("./phone-telephone-call-b2642fb1.js"),[],import.meta.url),"../../svg/icons/plump/presentation-board.svg":()=>__vitePreload(()=>import("./presentation-board-fd46ddaa.js"),[],import.meta.url),"../../svg/icons/plump/programming-module-box-cube.svg":()=>__vitePreload(()=>import("./programming-module-box-cube-1232e11c.js"),[],import.meta.url),"../../svg/icons/plump/programming-rss-feed.svg":()=>__vitePreload(()=>import("./programming-rss-feed-dbb7b631.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code-brackets.svg":()=>__vitePreload(()=>import("./programming-script-code-brackets-628f4f27.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code.svg":()=>__vitePreload(()=>import("./programming-script-code-8e64c07e.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-complete.svg":()=>__vitePreload(()=>import("./puzzle-complete-2f7d2219.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-piece.svg":()=>__vitePreload(()=>import("./puzzle-piece-05281329.js"),[],import.meta.url),"../../svg/icons/plump/search-magnifying-glass.svg":()=>__vitePreload(()=>import("./search-magnifying-glass-5257ed33.js"),[],import.meta.url),"../../svg/icons/plump/security-lock.svg":()=>__vitePreload(()=>import("./security-lock-2dbb4545.js"),[],import.meta.url),"../../svg/icons/plump/security-unlock.svg":()=>__vitePreload(()=>import("./security-unlock-eb163678.js"),[],import.meta.url),"../../svg/icons/plump/setting-cog-gear.svg":()=>__vitePreload(()=>import("./setting-cog-gear-a44f9b1c.js"),[],import.meta.url),"../../svg/icons/plump/setting-menu-horizontal-dots.svg":()=>__vitePreload(()=>import("./setting-menu-horizontal-dots-5ee49d27.js"),[],import.meta.url),"../../svg/icons/plump/setting-slider-vertical.svg":()=>__vitePreload(()=>import("./setting-slider-vertical-fd027f5d.js"),[],import.meta.url),"../../svg/icons/plump/share-mega-phone.svg":()=>__vitePreload(()=>import("./share-mega-phone-f1e1c0fe.js"),[],import.meta.url),"../../svg/icons/plump/shopping-cart.svg":()=>__vitePreload(()=>import("./shopping-cart-14fc7a98.js"),[],import.meta.url),"../../svg/icons/plump/shopping-catergories-shirt.svg":()=>__vitePreload(()=>import("./shopping-catergories-shirt-e891f60e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-jewelry-diamond-gem.svg":()=>__vitePreload(()=>import("./shopping-jewelry-diamond-gem-f4bb5f5d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-discount-percent.svg":()=>__vitePreload(()=>import("./shopping-store-discount-percent-4d01612d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-signage.svg":()=>__vitePreload(()=>import("./shopping-store-signage-e7b3111e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store.svg":()=>__vitePreload(()=>import("./shopping-store-2abf0ec1.js"),[],import.meta.url),"../../svg/icons/plump/social-facebook.svg":()=>__vitePreload(()=>import("./social-facebook-d2d2dd7e.js"),[],import.meta.url),"../../svg/icons/plump/social-github.svg":()=>__vitePreload(()=>import("./social-github-f86a3389.js"),[],import.meta.url),"../../svg/icons/plump/social-instagram.svg":()=>__vitePreload(()=>import("./social-instagram-c384817e.js"),[],import.meta.url),"../../svg/icons/plump/social-linkedin.svg":()=>__vitePreload(()=>import("./social-linkedin-9a9063dd.js"),[],import.meta.url),"../../svg/icons/plump/social-mail-send-email-message.svg":()=>__vitePreload(()=>import("./social-mail-send-email-message-3a494938.js"),[],import.meta.url),"../../svg/icons/plump/social-mastodon.svg":()=>__vitePreload(()=>import("./social-mastodon-315dbc7f.js"),[],import.meta.url),"../../svg/icons/plump/social-pinterest.svg":()=>__vitePreload(()=>import("./social-pinterest-7f9c41fd.js"),[],import.meta.url),"../../svg/icons/plump/social-share.svg":()=>__vitePreload(()=>import("./social-share-39d56370.js"),[],import.meta.url),"../../svg/icons/plump/social-twitter.svg":()=>__vitePreload(()=>import("./social-twitter-f506d7ee.js"),[],import.meta.url),"../../svg/icons/plump/social-vimeo.svg":()=>__vitePreload(()=>import("./social-vimeo-77481fdc.js"),[],import.meta.url),"../../svg/icons/plump/social-youtube.svg":()=>__vitePreload(()=>import("./social-youtube-533fe0f2.js"),[],import.meta.url),"../../svg/icons/plump/tag-free.svg":()=>__vitePreload(()=>import("./tag-free-56e0debe.js"),[],import.meta.url),"../../svg/icons/plump/tag-new.svg":()=>__vitePreload(()=>import("./tag-new-84da2a59.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-all-caps.svg":()=>__vitePreload(()=>import("./text-formatting-all-caps-6c9fb305.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-ampersand.svg":()=>__vitePreload(()=>import("./text-formatting-ampersand-c8fb922d.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-bottom.svg":()=>__vitePreload(()=>import("./text-formatting-image-bottom-19dba5bb.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-image-left-7cad1aa7.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-image-right-6f72a61f.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-top.svg":()=>__vitePreload(()=>import("./text-formatting-image-top-4f8444ac.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-initial-letter.svg":()=>__vitePreload(()=>import("./text-formatting-initial-letter-94ec98a6.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-input-signature.svg":()=>__vitePreload(()=>import("./text-formatting-input-signature-dad94fe2.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-layer-style.svg":()=>__vitePreload(()=>import("./text-formatting-layer-style-f6ad993a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-markdown.svg":()=>__vitePreload(()=>import("./text-formatting-markdown-1e7f2a11.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-paragraph.svg":()=>__vitePreload(()=>import("./text-formatting-paragraph-e31cf013.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-quotation.svg":()=>__vitePreload(()=>import("./text-formatting-quotation-f9d244c4.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-shadow-text.svg":()=>__vitePreload(()=>import("./text-formatting-shadow-text-59c4b543.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-text-box-1.svg":()=>__vitePreload(()=>import("./text-formatting-text-box-1-a1ee8607.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-type-cursor.svg":()=>__vitePreload(()=>import("./text-formatting-type-cursor-779e1918.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-around-bounding-box.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-around-bounding-box-30967217.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-left-af281461.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-left-ab899ff1.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-right-583fa74a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-right-85ff9d70.js"),[],import.meta.url),"../../svg/icons/plump/time-clock.svg":()=>__vitePreload(()=>import("./time-clock-1a09e6c2.js"),[],import.meta.url),"../../svg/icons/plump/travel-map.svg":()=>__vitePreload(()=>import("./travel-map-d7edbe34.js"),[],import.meta.url),"../../svg/icons/plump/upload-arrow-up.svg":()=>__vitePreload(()=>import("./upload-arrow-up-ddaad6df.js"),[],import.meta.url),"../../svg/icons/plump/user-avatar.svg":()=>__vitePreload(()=>import("./user-avatar-3a439844.js"),[],import.meta.url),"../../svg/icons/plump/user-multiple.svg":()=>__vitePreload(()=>import("./user-multiple-c10883e6.js"),[],import.meta.url),"../../svg/icons/plump/user-security-lock.svg":()=>__vitePreload(()=>import("./user-security-lock-628f35df.js"),[],import.meta.url),"../../svg/icons/regular/add-col-after.svg":()=>__vitePreload(()=>import("./add-col-after-ef55e804.js"),[],import.meta.url),"../../svg/icons/regular/add-col-before.svg":()=>__vitePreload(()=>import("./add-col-before-3e0604fa.js"),[],import.meta.url),"../../svg/icons/regular/add-row-after.svg":()=>__vitePreload(()=>import("./add-row-after-79fb5bd4.js"),[],import.meta.url),"../../svg/icons/regular/add-row-before.svg":()=>__vitePreload(()=>import("./add-row-before-ae1c572a.js"),[],import.meta.url),"../../svg/icons/regular/add-table.svg":()=>__vitePreload(()=>import("./add-table-4500973b.js"),[],import.meta.url),"../../svg/icons/regular/add.svg":()=>__vitePreload(()=>import("./add-62d8d9ba.js"),[],import.meta.url),"../../svg/icons/regular/alert.svg":()=>__vitePreload(()=>import("./alert-1a8dd5c5.js"),[],import.meta.url),"../../svg/icons/regular/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-a8901ad9.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-collapse.svg":()=>__vitePreload(()=>import("./arrows-horizontal-collapse-40d5fe10.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-expand.svg":()=>__vitePreload(()=>import("./arrows-horizontal-expand-48fbc52d.js"),[],import.meta.url),"../../svg/icons/regular/arrows-shrink.svg":()=>__vitePreload(()=>import("./arrows-shrink-9620cfb7.js"),[],import.meta.url),"../../svg/icons/regular/asset-folder.svg":()=>__vitePreload(()=>import("./asset-folder-5e5084a4.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-grid.svg":()=>__vitePreload(()=>import("./assets-mode-grid-61de1550.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-table.svg":()=>__vitePreload(()=>import("./assets-mode-table-367a696d.js"),[],import.meta.url),"../../svg/icons/regular/code-block.svg":()=>__vitePreload(()=>import("./code-block-ba017171.js"),[],import.meta.url),"../../svg/icons/regular/code-inline.svg":()=>__vitePreload(()=>import("./code-inline-d10f54ae.js"),[],import.meta.url),"../../svg/icons/regular/combine-cells.svg":()=>__vitePreload(()=>import("./combine-cells-715a38a4.js"),[],import.meta.url),"../../svg/icons/regular/dark-mode.svg":()=>__vitePreload(()=>import("./dark-mode-0a6b304a.js"),[],import.meta.url),"../../svg/icons/regular/data-table.svg":()=>__vitePreload(()=>import("./data-table-84739f8b.js"),[],import.meta.url),"../../svg/icons/regular/delete-col.svg":()=>__vitePreload(()=>import("./delete-col-5e8bea80.js"),[],import.meta.url),"../../svg/icons/regular/delete-row.svg":()=>__vitePreload(()=>import("./delete-row-4351f211.js"),[],import.meta.url),"../../svg/icons/regular/delete-table.svg":()=>__vitePreload(()=>import("./delete-table-e4db6584.js"),[],import.meta.url),"../../svg/icons/regular/download-desktop.svg":()=>__vitePreload(()=>import("./download-desktop-881a331b.js"),[],import.meta.url),"../../svg/icons/regular/eraser.svg":()=>__vitePreload(()=>import("./eraser-0302515e.js"),[],import.meta.url),"../../svg/icons/regular/expand-bold.svg":()=>__vitePreload(()=>import("./expand-bold-9d6e3af4.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical-2.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-2-d4378588.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-718171d9.js"),[],import.meta.url),"../../svg/icons/regular/expand-vertical-bold.svg":()=>__vitePreload(()=>import("./expand-vertical-bold-00aaa8a8.js"),[],import.meta.url),"../../svg/icons/regular/expand.svg":()=>__vitePreload(()=>import("./expand-b75b6bd4.js"),[],import.meta.url),"../../svg/icons/regular/filter-text.svg":()=>__vitePreload(()=>import("./filter-text-ec6181ba.js"),[],import.meta.url),"../../svg/icons/regular/flip-vertical.svg":()=>__vitePreload(()=>import("./flip-vertical-be984c15.js"),[],import.meta.url),"../../svg/icons/regular/focal-point.svg":()=>__vitePreload(()=>import("./focal-point-70338ac3.js"),[],import.meta.url),"../../svg/icons/regular/folder-add.svg":()=>__vitePreload(()=>import("./folder-add-fc763287.js"),[],import.meta.url),"../../svg/icons/regular/folder-generic.svg":()=>__vitePreload(()=>import("./folder-generic-d613d736.js"),[],import.meta.url),"../../svg/icons/regular/folder-home.svg":()=>__vitePreload(()=>import("./folder-home-cce39b8e.js"),[],import.meta.url),"../../svg/icons/regular/folder-image.svg":()=>__vitePreload(()=>import("./folder-image-5fc121fe.js"),[],import.meta.url),"../../svg/icons/regular/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-45bce860.js"),[],import.meta.url),"../../svg/icons/regular/folder.svg":()=>__vitePreload(()=>import("./folder-65681b32.js"),[],import.meta.url),"../../svg/icons/regular/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-e69e9265.js"),[],import.meta.url),"../../svg/icons/regular/h1.svg":()=>__vitePreload(()=>import("./h1-a0b63968.js"),[],import.meta.url),"../../svg/icons/regular/h2.svg":()=>__vitePreload(()=>import("./h2-bd303b0d.js"),[],import.meta.url),"../../svg/icons/regular/h3.svg":()=>__vitePreload(()=>import("./h3-55450d58.js"),[],import.meta.url),"../../svg/icons/regular/h4.svg":()=>__vitePreload(()=>import("./h4-d09559c2.js"),[],import.meta.url),"../../svg/icons/regular/h5.svg":()=>__vitePreload(()=>import("./h5-33b13867.js"),[],import.meta.url),"../../svg/icons/regular/h6.svg":()=>__vitePreload(()=>import("./h6-0730417d.js"),[],import.meta.url),"../../svg/icons/regular/hidden.svg":()=>__vitePreload(()=>import("./hidden-cbd0ab43.js"),[],import.meta.url),"../../svg/icons/regular/home-page.svg":()=>__vitePreload(()=>import("./home-page-827fa2af.js"),[],import.meta.url),"../../svg/icons/regular/horizon.svg":()=>__vitePreload(()=>import("./horizon-0f7b4082.js"),[],import.meta.url),"../../svg/icons/regular/image-file.svg":()=>__vitePreload(()=>import("./image-file-9258e288.js"),[],import.meta.url),"../../svg/icons/regular/image-picture.svg":()=>__vitePreload(()=>import("./image-picture-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/image.svg":()=>__vitePreload(()=>import("./image-6a571f67.js"),[],import.meta.url),"../../svg/icons/regular/info-circle.svg":()=>__vitePreload(()=>import("./info-circle-6b19cac0.js"),[],import.meta.url),"../../svg/icons/regular/insert-image.svg":()=>__vitePreload(()=>import("./insert-image-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/insert-link.svg":()=>__vitePreload(()=>import("./insert-link-158aa1a4.js"),[],import.meta.url),"../../svg/icons/regular/list-ol.svg":()=>__vitePreload(()=>import("./list-ol-c88bac13.js"),[],import.meta.url),"../../svg/icons/regular/list-ul-2.svg":()=>__vitePreload(()=>import("./list-ul-2-3079492f.js"),[],import.meta.url),"../../svg/icons/regular/list-ul.svg":()=>__vitePreload(()=>import("./list-ul-5b0a6720.js"),[],import.meta.url),"../../svg/icons/regular/markdown-icon.svg":()=>__vitePreload(()=>import("./markdown-icon-fb3c3cbf.js"),[],import.meta.url),"../../svg/icons/regular/move-file.svg":()=>__vitePreload(()=>import("./move-file-2ec513c0.js"),[],import.meta.url),"../../svg/icons/regular/new-window.svg":()=>__vitePreload(()=>import("./new-window-58699c80.js"),[],import.meta.url),"../../svg/icons/regular/nova.svg":()=>__vitePreload(()=>import("./nova-a13a1c24.js"),[],import.meta.url),"../../svg/icons/regular/pages.svg":()=>__vitePreload(()=>import("./pages-9a7c5ae2.js"),[],import.meta.url),"../../svg/icons/regular/paperclip.svg":()=>__vitePreload(()=>import("./paperclip-2e70da2c.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-center.svg":()=>__vitePreload(()=>import("./paragraph-align-center-608b0756.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-justified.svg":()=>__vitePreload(()=>import("./paragraph-align-justified-edb480cc.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-left.svg":()=>__vitePreload(()=>import("./paragraph-align-left-21ff72c8.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-right.svg":()=>__vitePreload(()=>import("./paragraph-align-right-8422a6d6.js"),[],import.meta.url),"../../svg/icons/regular/pencil.svg":()=>__vitePreload(()=>import("./pencil-8c2b4c0f.js"),[],import.meta.url),"../../svg/icons/regular/performance-decrease.svg":()=>__vitePreload(()=>import("./performance-decrease-d3091d15.js"),[],import.meta.url),"../../svg/icons/regular/performance-increase.svg":()=>__vitePreload(()=>import("./performance-increase-93126e96.js"),[],import.meta.url),"../../svg/icons/regular/pulse.svg":()=>__vitePreload(()=>import("./pulse-fe14689b.js"),[],import.meta.url),"../../svg/icons/regular/quote.svg":()=>__vitePreload(()=>import("./quote-42c6ac19.js"),[],import.meta.url),"../../svg/icons/regular/relationship.svg":()=>__vitePreload(()=>import("./relationship-6143ceff.js"),[],import.meta.url),"../../svg/icons/regular/rename-file.svg":()=>__vitePreload(()=>import("./rename-file-40c0fedb.js"),[],import.meta.url),"../../svg/icons/regular/sd-card.svg":()=>__vitePreload(()=>import("./sd-card-fa5c533b.js"),[],import.meta.url),"../../svg/icons/regular/settings-vertical.svg":()=>__vitePreload(()=>import("./settings-vertical-a526ec11.js"),[],import.meta.url),"../../svg/icons/regular/show-source.svg":()=>__vitePreload(()=>import("./show-source-31355249.js"),[],import.meta.url),"../../svg/icons/regular/shrink-all.svg":()=>__vitePreload(()=>import("./shrink-all-e6ce9365.js"),[],import.meta.url),"../../svg/icons/regular/shrink-vertical.svg":()=>__vitePreload(()=>import("./shrink-vertical-546198f7.js"),[],import.meta.url),"../../svg/icons/regular/sort-numeric.svg":()=>__vitePreload(()=>import("./sort-numeric-2729de20.js"),[],import.meta.url),"../../svg/icons/regular/subscript.svg":()=>__vitePreload(()=>import("./subscript-cb1a9069.js"),[],import.meta.url),"../../svg/icons/regular/subtract.svg":()=>__vitePreload(()=>import("./subtract-629e074e.js"),[],import.meta.url),"../../svg/icons/regular/suggest.svg":()=>__vitePreload(()=>import("./suggest-cc137454.js"),[],import.meta.url),"../../svg/icons/regular/superscript.svg":()=>__vitePreload(()=>import("./superscript-89e7f98d.js"),[],import.meta.url),"../../svg/icons/regular/swap.svg":()=>__vitePreload(()=>import("./swap-8620179e.js"),[],import.meta.url),"../../svg/icons/regular/syringe.svg":()=>__vitePreload(()=>import("./syringe-39cac2b4.js"),[],import.meta.url),"../../svg/icons/regular/telescope.svg":()=>__vitePreload(()=>import("./telescope-3e0f8434.js"),[],import.meta.url),"../../svg/icons/regular/text-bold.svg":()=>__vitePreload(()=>import("./text-bold-e973ff83.js"),[],import.meta.url),"../../svg/icons/regular/text-italic.svg":()=>__vitePreload(()=>import("./text-italic-e29bac95.js"),[],import.meta.url),"../../svg/icons/regular/text-small.svg":()=>__vitePreload(()=>import("./text-small-1fd0b180.js"),[],import.meta.url),"../../svg/icons/regular/text-strike-through.svg":()=>__vitePreload(()=>import("./text-strike-through-20a184cd.js"),[],import.meta.url),"../../svg/icons/regular/text-underline.svg":()=>__vitePreload(()=>import("./text-underline-c1eebeaf.js"),[],import.meta.url),"../../svg/icons/regular/theme.svg":()=>__vitePreload(()=>import("./theme-52bbae73.js"),[],import.meta.url),"../../svg/icons/regular/thumbprint.svg":()=>__vitePreload(()=>import("./thumbprint-b56383b1.js"),[],import.meta.url),"../../svg/icons/regular/translate.svg":()=>__vitePreload(()=>import("./translate-1bb18ed0.js"),[],import.meta.url),"../../svg/icons/regular/trash.svg":()=>__vitePreload(()=>import("./trash-95a383df.js"),[],import.meta.url),"../../svg/icons/regular/upload-cloud.svg":()=>__vitePreload(()=>import("./upload-cloud-f1a7a3b4.js"),[],import.meta.url),"../../svg/icons/regular/upload.svg":()=>__vitePreload(()=>import("./upload-f32156ee.js"),[],import.meta.url)}),`../../svg/icons/${M}/${$}.svg`).catch(I=>{if(!this.default)return this.fallbackIconImport();const[N,B]=this.splitIcon(this.default);return __variableDynamicImportRuntimeHelper(Object.assign({"../../svg/icons/light/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-4a172fe1.js"),[],import.meta.url),"../../svg/icons/light/add.svg":()=>__vitePreload(()=>import("./add-9bd64b65.js"),[],import.meta.url),"../../svg/icons/light/addons.svg":()=>__vitePreload(()=>import("./addons-0a4dd4d7.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets-dots.svg":()=>__vitePreload(()=>import("./angle-brackets-dots-55f4583d.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets.svg":()=>__vitePreload(()=>import("./angle-brackets-e3b98394.js"),[],import.meta.url),"../../svg/icons/light/arrange-letter.svg":()=>__vitePreload(()=>import("./arrange-letter-28c5d925.js"),[],import.meta.url),"../../svg/icons/light/arrange-number.svg":()=>__vitePreload(()=>import("./arrange-number-2c6d43ac.js"),[],import.meta.url),"../../svg/icons/light/array.svg":()=>__vitePreload(()=>import("./array-3505d86f.js"),[],import.meta.url),"../../svg/icons/light/arrow-right-thin.svg":()=>__vitePreload(()=>import("./arrow-right-thin-cc94456c.js"),[],import.meta.url),"../../svg/icons/light/assets.svg":()=>__vitePreload(()=>import("./assets-a10adea6.js"),[],import.meta.url),"../../svg/icons/light/bard.svg":()=>__vitePreload(()=>import("./bard-ae061db3.js"),[],import.meta.url),"../../svg/icons/light/blueprint.svg":()=>__vitePreload(()=>import("./blueprint-007ca3ee.js"),[],import.meta.url),"../../svg/icons/light/blueprints.svg":()=>__vitePreload(()=>import("./blueprints-6cb8a7d1.js"),[],import.meta.url),"../../svg/icons/light/book-open.svg":()=>__vitePreload(()=>import("./book-open-44934d56.js"),[],import.meta.url),"../../svg/icons/light/book-pages.svg":()=>__vitePreload(()=>import("./book-pages-52bc7119.js"),[],import.meta.url),"../../svg/icons/light/browser-com.svg":()=>__vitePreload(()=>import("./browser-com-b7b2122e.js"),[],import.meta.url),"../../svg/icons/light/burger.svg":()=>__vitePreload(()=>import("./burger-519ad6f5.js"),[],import.meta.url),"../../svg/icons/light/button_group.svg":()=>__vitePreload(()=>import("./button_group-8606443e.js"),[],import.meta.url),"../../svg/icons/light/cache.svg":()=>__vitePreload(()=>import("./cache-5ce04083.js"),[],import.meta.url),"../../svg/icons/light/calendar.svg":()=>__vitePreload(()=>import("./calendar-dcec1b9c.js"),[],import.meta.url),"../../svg/icons/light/charts.svg":()=>__vitePreload(()=>import("./charts-87d83ff9.js"),[],import.meta.url),"../../svg/icons/light/check.svg":()=>__vitePreload(()=>import("./check-b06def82.js"),[],import.meta.url),"../../svg/icons/light/checkboxes.svg":()=>__vitePreload(()=>import("./checkboxes-c673747c.js"),[],import.meta.url),"../../svg/icons/light/close.svg":()=>__vitePreload(()=>import("./close-ad87c2a4.js"),[],import.meta.url),"../../svg/icons/light/code.svg":()=>__vitePreload(()=>import("./code-e487637e.js"),[],import.meta.url),"../../svg/icons/light/cog.svg":()=>__vitePreload(()=>import("./cog-7adb88f0.js"),[],import.meta.url),"../../svg/icons/light/collection.svg":()=>__vitePreload(()=>import("./collection-5b99aa2c.js"),[],import.meta.url),"../../svg/icons/light/collections.svg":()=>__vitePreload(()=>import("./collections-6e6967ab.js"),[],import.meta.url),"../../svg/icons/light/color.svg":()=>__vitePreload(()=>import("./color-8c201f9a.js"),[],import.meta.url),"../../svg/icons/light/content-writing.svg":()=>__vitePreload(()=>import("./content-writing-0b42dd39.js"),[],import.meta.url),"../../svg/icons/light/crane.svg":()=>__vitePreload(()=>import("./crane-01a69a63.js"),[],import.meta.url),"../../svg/icons/light/date.svg":()=>__vitePreload(()=>import("./date-6fddfc69.js"),[],import.meta.url),"../../svg/icons/light/download.svg":()=>__vitePreload(()=>import("./download-13d1cb2c.js"),[],import.meta.url),"../../svg/icons/light/drag-dots.svg":()=>__vitePreload(()=>import("./drag-dots-5aeb4cfe.js"),[],import.meta.url),"../../svg/icons/light/drawer-file.svg":()=>__vitePreload(()=>import("./drawer-file-788c0365.js"),[],import.meta.url),"../../svg/icons/light/duplicate-ids.svg":()=>__vitePreload(()=>import("./duplicate-ids-f25f735e.js"),[],import.meta.url),"../../svg/icons/light/duplicate.svg":()=>__vitePreload(()=>import("./duplicate-e06d08d8.js"),[],import.meta.url),"../../svg/icons/light/earth.svg":()=>__vitePreload(()=>import("./earth-bf12bee8.js"),[],import.meta.url),"../../svg/icons/light/email-utility.svg":()=>__vitePreload(()=>import("./email-utility-5c2c1e0f.js"),[],import.meta.url),"../../svg/icons/light/entries.svg":()=>__vitePreload(()=>import("./entries-7ac2388c.js"),[],import.meta.url),"../../svg/icons/light/expand-diagonal.svg":()=>__vitePreload(()=>import("./expand-diagonal-bcb29dce.js"),[],import.meta.url),"../../svg/icons/light/expand-vertical.svg":()=>__vitePreload(()=>import("./expand-vertical-8df9132f.js"),[],import.meta.url),"../../svg/icons/light/external-link.svg":()=>__vitePreload(()=>import("./external-link-0c81b049.js"),[],import.meta.url),"../../svg/icons/light/fieldsets.svg":()=>__vitePreload(()=>import("./fieldsets-fda8f7b3.js"),[],import.meta.url),"../../svg/icons/light/fieldtype.svg":()=>__vitePreload(()=>import("./fieldtype-daeff2f2.js"),[],import.meta.url),"../../svg/icons/light/file-code.svg":()=>__vitePreload(()=>import("./file-code-4397fde8.js"),[],import.meta.url),"../../svg/icons/light/file-text.svg":()=>__vitePreload(()=>import("./file-text-41ad25e1.js"),[],import.meta.url),"../../svg/icons/light/filter-lines.svg":()=>__vitePreload(()=>import("./filter-lines-5049d781.js"),[],import.meta.url),"../../svg/icons/light/filter.svg":()=>__vitePreload(()=>import("./filter-7bf78174.js"),[],import.meta.url),"../../svg/icons/light/flag.svg":()=>__vitePreload(()=>import("./flag-6bb63494.js"),[],import.meta.url),"../../svg/icons/light/float.svg":()=>__vitePreload(()=>import("./float-1677f349.js"),[],import.meta.url),"../../svg/icons/light/form.svg":()=>__vitePreload(()=>import("./form-a899a3b1.js"),[],import.meta.url),"../../svg/icons/light/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-3e7319f1.js"),[],import.meta.url),"../../svg/icons/light/git.svg":()=>__vitePreload(()=>import("./git-a0310b23.js"),[],import.meta.url),"../../svg/icons/light/grid.svg":()=>__vitePreload(()=>import("./grid-3e1f6818.js"),[],import.meta.url),"../../svg/icons/light/group.svg":()=>__vitePreload(()=>import("./group-95d5e899.js"),[],import.meta.url),"../../svg/icons/light/hammer-wrench.svg":()=>__vitePreload(()=>import("./hammer-wrench-38a73504.js"),[],import.meta.url),"../../svg/icons/light/hidden.svg":()=>__vitePreload(()=>import("./hidden-bf89c1b6.js"),[],import.meta.url),"../../svg/icons/light/hierarchy-files.svg":()=>__vitePreload(()=>import("./hierarchy-files-d8f8fca8.js"),[],import.meta.url),"../../svg/icons/light/history.svg":()=>__vitePreload(()=>import("./history-d1491618.js"),[],import.meta.url),"../../svg/icons/light/html.svg":()=>__vitePreload(()=>import("./html-2e851dfc.js"),[],import.meta.url),"../../svg/icons/light/hyperlink-broken.svg":()=>__vitePreload(()=>import("./hyperlink-broken-3ae6e951.js"),[],import.meta.url),"../../svg/icons/light/hyperlink.svg":()=>__vitePreload(()=>import("./hyperlink-6e336b4b.js"),[],import.meta.url),"../../svg/icons/light/icon_picker.svg":()=>__vitePreload(()=>import("./icon_picker-8c14e4be.js"),[],import.meta.url),"../../svg/icons/light/integer.svg":()=>__vitePreload(()=>import("./integer-7843f18f.js"),[],import.meta.url),"../../svg/icons/light/licensing.svg":()=>__vitePreload(()=>import("./licensing-cc27c886.js"),[],import.meta.url),"../../svg/icons/light/link.svg":()=>__vitePreload(()=>import("./link-07bdb6d1.js"),[],import.meta.url),"../../svg/icons/light/list-bullets.svg":()=>__vitePreload(()=>import("./list-bullets-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/list.svg":()=>__vitePreload(()=>import("./list-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/loading-bar.svg":()=>__vitePreload(()=>import("./loading-bar-58f38056.js"),[],import.meta.url),"../../svg/icons/light/lock.svg":()=>__vitePreload(()=>import("./lock-b225bb68.js"),[],import.meta.url),"../../svg/icons/light/magnifying-glass.svg":()=>__vitePreload(()=>import("./magnifying-glass-6cfeaa30.js"),[],import.meta.url),"../../svg/icons/light/markdown.svg":()=>__vitePreload(()=>import("./markdown-1b257ee1.js"),[],import.meta.url),"../../svg/icons/light/nav-preferences.svg":()=>__vitePreload(()=>import("./nav-preferences-f00d229c.js"),[],import.meta.url),"../../svg/icons/light/partial.svg":()=>__vitePreload(()=>import("./partial-94971ad0.js"),[],import.meta.url),"../../svg/icons/light/php.svg":()=>__vitePreload(()=>import("./php-16db75a9.js"),[],import.meta.url),"../../svg/icons/light/picker.svg":()=>__vitePreload(()=>import("./picker-18ee48e1.js"),[],import.meta.url),"../../svg/icons/light/pin.svg":()=>__vitePreload(()=>import("./pin-b07b6d75.js"),[],import.meta.url),"../../svg/icons/light/playground.svg":()=>__vitePreload(()=>import("./playground-bfd699a8.js"),[],import.meta.url),"../../svg/icons/light/pro-ribbon.svg":()=>__vitePreload(()=>import("./pro-ribbon-bcbf323b.js"),[],import.meta.url),"../../svg/icons/light/pull-down.svg":()=>__vitePreload(()=>import("./pull-down-96f88daf.js"),[],import.meta.url),"../../svg/icons/light/radio.svg":()=>__vitePreload(()=>import("./radio-c9ebc51b.js"),[],import.meta.url),"../../svg/icons/light/range.svg":()=>__vitePreload(()=>import("./range-a4272066.js"),[],import.meta.url),"../../svg/icons/light/replicator.svg":()=>__vitePreload(()=>import("./replicator-f4236336.js"),[],import.meta.url),"../../svg/icons/light/revealer.svg":()=>__vitePreload(()=>import("./revealer-b5fabe54.js"),[],import.meta.url),"../../svg/icons/light/search-utility.svg":()=>__vitePreload(()=>import("./search-utility-011043ba.js"),[],import.meta.url),"../../svg/icons/light/search.svg":()=>__vitePreload(()=>import("./search-858bf202.js"),[],import.meta.url),"../../svg/icons/light/section.svg":()=>__vitePreload(()=>import("./section-0660cf61.js"),[],import.meta.url),"../../svg/icons/light/select.svg":()=>__vitePreload(()=>import("./select-ef552557.js"),[],import.meta.url),"../../svg/icons/light/seo-search-graph.svg":()=>__vitePreload(()=>import("./seo-search-graph-8cc1ca71.js"),[],import.meta.url),"../../svg/icons/light/settings-horizontal.svg":()=>__vitePreload(()=>import("./settings-horizontal-507fbc32.js"),[],import.meta.url),"../../svg/icons/light/settings-slider.svg":()=>__vitePreload(()=>import("./settings-slider-d0056519.js"),[],import.meta.url),"../../svg/icons/light/shield-key.svg":()=>__vitePreload(()=>import("./shield-key-969a463d.js"),[],import.meta.url),"../../svg/icons/light/shrink.svg":()=>__vitePreload(()=>import("./shrink-c9676c82.js"),[],import.meta.url),"../../svg/icons/light/sites.svg":()=>__vitePreload(()=>import("./sites-3e1a937f.js"),[],import.meta.url),"../../svg/icons/light/slug.svg":()=>__vitePreload(()=>import("./slug-5b67b259.js"),[],import.meta.url),"../../svg/icons/light/structures.svg":()=>__vitePreload(()=>import("./structures-11c546fd.js"),[],import.meta.url),"../../svg/icons/light/synchronize.svg":()=>__vitePreload(()=>import("./synchronize-127de686.js"),[],import.meta.url),"../../svg/icons/light/table.svg":()=>__vitePreload(()=>import("./table-252a03eb.js"),[],import.meta.url),"../../svg/icons/light/tags.svg":()=>__vitePreload(()=>import("./tags-98173656.js"),[],import.meta.url),"../../svg/icons/light/taxonomies.svg":()=>__vitePreload(()=>import("./taxonomies-5e5a9c10.js"),[],import.meta.url),"../../svg/icons/light/taxonomy.svg":()=>__vitePreload(()=>import("./taxonomy-a9ca4c2e.js"),[],import.meta.url),"../../svg/icons/light/template.svg":()=>__vitePreload(()=>import("./template-f7258fc9.js"),[],import.meta.url),"../../svg/icons/light/text.svg":()=>__vitePreload(()=>import("./text-d6ab75a9.js"),[],import.meta.url),"../../svg/icons/light/textarea.svg":()=>__vitePreload(()=>import("./textarea-837f6a05.js"),[],import.meta.url),"../../svg/icons/light/time.svg":()=>__vitePreload(()=>import("./time-2e8ca427.js"),[],import.meta.url),"../../svg/icons/light/title.svg":()=>__vitePreload(()=>import("./title-79f169ea.js"),[],import.meta.url),"../../svg/icons/light/toggle.svg":()=>__vitePreload(()=>import("./toggle-3bae8661.js"),[],import.meta.url),"../../svg/icons/light/user-edit.svg":()=>__vitePreload(()=>import("./user-edit-7b9ae6e8.js"),[],import.meta.url),"../../svg/icons/light/user.svg":()=>__vitePreload(()=>import("./user-9b4bab98.js"),[],import.meta.url),"../../svg/icons/light/user_groups.svg":()=>__vitePreload(()=>import("./user_groups-375cd4f9.js"),[],import.meta.url),"../../svg/icons/light/user_roles.svg":()=>__vitePreload(()=>import("./user_roles-ada25224.js"),[],import.meta.url),"../../svg/icons/light/users-box.svg":()=>__vitePreload(()=>import("./users-box-81a035ed.js"),[],import.meta.url),"../../svg/icons/light/users-multiple.svg":()=>__vitePreload(()=>import("./users-multiple-353c36c4.js"),[],import.meta.url),"../../svg/icons/light/users.svg":()=>__vitePreload(()=>import("./users-9b84f17b.js"),[],import.meta.url),"../../svg/icons/light/video.svg":()=>__vitePreload(()=>import("./video-d6557d2b.js"),[],import.meta.url),"../../svg/icons/light/width.svg":()=>__vitePreload(()=>import("./width-b783c381.js"),[],import.meta.url),"../../svg/icons/light/wireframe.svg":()=>__vitePreload(()=>import("./wireframe-3e8da586.js"),[],import.meta.url),"../../svg/icons/light/yaml.svg":()=>__vitePreload(()=>import("./yaml-820d08c0.js"),[],import.meta.url),"../../svg/icons/micro/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-6578a8b1.js"),[],import.meta.url),"../../svg/icons/micro/arrow-go-back.svg":()=>__vitePreload(()=>import("./arrow-go-back-565e2131.js"),[],import.meta.url),"../../svg/icons/micro/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-dc7e3363.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-small.svg":()=>__vitePreload(()=>import("./chevron-down-small-24a46dad.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-xs.svg":()=>__vitePreload(()=>import("./chevron-down-xs-91cef22d.js"),[],import.meta.url),"../../svg/icons/micro/chevron-left.svg":()=>__vitePreload(()=>import("./chevron-left-fc1e5663.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right-thin.svg":()=>__vitePreload(()=>import("./chevron-right-thin-10805dd1.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right.svg":()=>__vitePreload(()=>import("./chevron-right-be1a36f6.js"),[],import.meta.url),"../../svg/icons/micro/circle-help.svg":()=>__vitePreload(()=>import("./circle-help-74709df1.js"),[],import.meta.url),"../../svg/icons/micro/circle-with-cross.svg":()=>__vitePreload(()=>import("./circle-with-cross-6caf6914.js"),[],import.meta.url),"../../svg/icons/micro/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-535fad9d.js"),[],import.meta.url),"../../svg/icons/micro/folder.svg":()=>__vitePreload(()=>import("./folder-53db7195.js"),[],import.meta.url),"../../svg/icons/micro/pencil.svg":()=>__vitePreload(()=>import("./pencil-49c2fd68.js"),[],import.meta.url),"../../svg/icons/micro/plus.svg":()=>__vitePreload(()=>import("./plus-ce68ae64.js"),[],import.meta.url),"../../svg/icons/micro/sharp-pencil.svg":()=>__vitePreload(()=>import("./sharp-pencil-29f9fe88.js"),[],import.meta.url),"../../svg/icons/micro/sharp-trash.svg":()=>__vitePreload(()=>import("./sharp-trash-7573b683.js"),[],import.meta.url),"../../svg/icons/micro/trash.svg":()=>__vitePreload(()=>import("./trash-044f26dd.js"),[],import.meta.url),"../../svg/icons/micro/warning.svg":()=>__vitePreload(()=>import("./warning-b7e837f6.js"),[],import.meta.url),"../../svg/icons/plump/addon-boxes-stack.svg":()=>__vitePreload(()=>import("./addon-boxes-stack-6ce4c795.js"),[],import.meta.url),"../../svg/icons/plump/alert-alarm-bell.svg":()=>__vitePreload(()=>import("./alert-alarm-bell-fc1148d8.js"),[],import.meta.url),"../../svg/icons/plump/alert-help-question.svg":()=>__vitePreload(()=>import("./alert-help-question-a231566c.js"),[],import.meta.url),"../../svg/icons/plump/alert-warning-exclamation-mark.svg":()=>__vitePreload(()=>import("./alert-warning-exclamation-mark-fd803ce5.js"),[],import.meta.url),"../../svg/icons/plump/align-left.svg":()=>__vitePreload(()=>import("./align-left-2f38b489.js"),[],import.meta.url),"../../svg/icons/plump/align-object-bottom.svg":()=>__vitePreload(()=>import("./align-object-bottom-10d9b070.js"),[],import.meta.url),"../../svg/icons/plump/align-object-center.svg":()=>__vitePreload(()=>import("./align-object-center-0f9a0b76.js"),[],import.meta.url),"../../svg/icons/plump/align-object-top.svg":()=>__vitePreload(()=>import("./align-object-top-5e7ec7a9.js"),[],import.meta.url),"../../svg/icons/plump/align-right.svg":()=>__vitePreload(()=>import("./align-right-b3bd3023.js"),[],import.meta.url),"../../svg/icons/plump/arrow-left.svg":()=>__vitePreload(()=>import("./arrow-left-6789983f.js"),[],import.meta.url),"../../svg/icons/plump/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-98e5a177.js"),[],import.meta.url),"../../svg/icons/plump/arrow-roadmap-path-flow.svg":()=>__vitePreload(()=>import("./arrow-roadmap-path-flow-e0cb9f66.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-height.svg":()=>__vitePreload(()=>import("./arrows-fit-to-height-ecc46200.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-width.svg":()=>__vitePreload(()=>import("./arrows-fit-to-width-dbbf7d70.js"),[],import.meta.url),"../../svg/icons/plump/bookmark.svg":()=>__vitePreload(()=>import("./bookmark-73874bf7.js"),[],import.meta.url),"../../svg/icons/plump/calendar-date.svg":()=>__vitePreload(()=>import("./calendar-date-6bfb1441.js"),[],import.meta.url),"../../svg/icons/plump/computer-desktop.svg":()=>__vitePreload(()=>import("./computer-desktop-35dbd877.js"),[],import.meta.url),"../../svg/icons/plump/computer-logo-communication-zoom.svg":()=>__vitePreload(()=>import("./computer-logo-communication-zoom-356e7a41.js"),[],import.meta.url),"../../svg/icons/plump/computer-voice-mail-microphone.svg":()=>__vitePreload(()=>import("./computer-voice-mail-microphone-10e6eff6.js"),[],import.meta.url),"../../svg/icons/plump/content-book-open.svg":()=>__vitePreload(()=>import("./content-book-open-0b03b86d.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-2.svg":()=>__vitePreload(()=>import("./dashboard-layout-2-db1753b7.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-3.svg":()=>__vitePreload(()=>import("./dashboard-layout-3-9c917850.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout.svg":()=>__vitePreload(()=>import("./dashboard-layout-5f55876b.js"),[],import.meta.url),"../../svg/icons/plump/direction-buttons.svg":()=>__vitePreload(()=>import("./direction-buttons-62c3a471.js"),[],import.meta.url),"../../svg/icons/plump/download-arrow-down.svg":()=>__vitePreload(()=>import("./download-arrow-down-79b0ec3b.js"),[],import.meta.url),"../../svg/icons/plump/edit-design-compare-ab-testing.svg":()=>__vitePreload(()=>import("./edit-design-compare-ab-testing-f8a5a223.js"),[],import.meta.url),"../../svg/icons/plump/edit-paint-palette.svg":()=>__vitePreload(()=>import("./edit-paint-palette-93f3a989.js"),[],import.meta.url),"../../svg/icons/plump/edit-pen.svg":()=>__vitePreload(()=>import("./edit-pen-cbf1a427.js"),[],import.meta.url),"../../svg/icons/plump/edit-pin.svg":()=>__vitePreload(()=>import("./edit-pin-45ecef90.js"),[],import.meta.url),"../../svg/icons/plump/favorite-award.svg":()=>__vitePreload(()=>import("./favorite-award-330f67e1.js"),[],import.meta.url),"../../svg/icons/plump/favorite-heart.svg":()=>__vitePreload(()=>import("./favorite-heart-c1f8d959.js"),[],import.meta.url),"../../svg/icons/plump/favorite-like.svg":()=>__vitePreload(()=>import("./favorite-like-edda77d0.js"),[],import.meta.url),"../../svg/icons/plump/favorite-star.svg":()=>__vitePreload(()=>import("./favorite-star-7463bd8c.js"),[],import.meta.url),"../../svg/icons/plump/file-content-list.svg":()=>__vitePreload(()=>import("./file-content-list-29b04654.js"),[],import.meta.url),"../../svg/icons/plump/file-zip.svg":()=>__vitePreload(()=>import("./file-zip-ef2d8268.js"),[],import.meta.url),"../../svg/icons/plump/fire-flame-burn-hot.svg":()=>__vitePreload(()=>import("./fire-flame-burn-hot-40cd10d0.js"),[],import.meta.url),"../../svg/icons/plump/flash-bolt-lightning.svg":()=>__vitePreload(()=>import("./flash-bolt-lightning-1e8cfb07.js"),[],import.meta.url),"../../svg/icons/plump/food-menu-book.svg":()=>__vitePreload(()=>import("./food-menu-book-56ff22dc.js"),[],import.meta.url),"../../svg/icons/plump/form-address-field.svg":()=>__vitePreload(()=>import("./form-address-field-2fcc0cf5.js"),[],import.meta.url),"../../svg/icons/plump/form-date-picker.svg":()=>__vitePreload(()=>import("./form-date-picker-abbc91aa.js"),[],import.meta.url),"../../svg/icons/plump/form-drop-down-menu.svg":()=>__vitePreload(()=>import("./form-drop-down-menu-55a5725e.js"),[],import.meta.url),"../../svg/icons/plump/form-text-field.svg":()=>__vitePreload(()=>import("./form-text-field-4b647b3e.js"),[],import.meta.url),"../../svg/icons/plump/globe-world-wide-web.svg":()=>__vitePreload(()=>import("./globe-world-wide-web-087c1d38.js"),[],import.meta.url),"../../svg/icons/plump/hierarchy-vertical-nav-flow.svg":()=>__vitePreload(()=>import("./hierarchy-vertical-nav-flow-320d967b.js"),[],import.meta.url),"../../svg/icons/plump/home-house.svg":()=>__vitePreload(()=>import("./home-house-d2939636.js"),[],import.meta.url),"../../svg/icons/plump/id-face-scan.svg":()=>__vitePreload(()=>import("./id-face-scan-e7814ced.js"),[],import.meta.url),"../../svg/icons/plump/labs-idea-experimental-flask.svg":()=>__vitePreload(()=>import("./labs-idea-experimental-flask-bfd9a212.js"),[],import.meta.url),"../../svg/icons/plump/layout-carousel-horizontal.svg":()=>__vitePreload(()=>import("./layout-carousel-horizontal-eab0bb6e.js"),[],import.meta.url),"../../svg/icons/plump/layout-display-split-quarters.svg":()=>__vitePreload(()=>import("./layout-display-split-quarters-ed52a1f9.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-down.svg":()=>__vitePreload(()=>import("./layout-flip-down-5efbb12a.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-left.svg":()=>__vitePreload(()=>import("./layout-flip-left-dfbddccc.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-right.svg":()=>__vitePreload(()=>import("./layout-flip-right-0d57afb1.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-up.svg":()=>__vitePreload(()=>import("./layout-flip-up-7b22f5fb.js"),[],import.meta.url),"../../svg/icons/plump/layout-grid-dots.svg":()=>__vitePreload(()=>import("./layout-grid-dots-41d27f32.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-left-15190966.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-right-378c0145.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-split.svg":()=>__vitePreload(()=>import("./layout-header-split-88e5cc6f.js"),[],import.meta.url),"../../svg/icons/plump/layout-header.svg":()=>__vitePreload(()=>import("./layout-header-094a6af6.js"),[],import.meta.url),"../../svg/icons/plump/layout-page-break.svg":()=>__vitePreload(()=>import("./layout-page-break-f05d606b.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-left-90a52a56.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-right-4370128f.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-left-c32d7fd9.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-right-f495564b.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-horizontal.svg":()=>__vitePreload(()=>import("./layout-split-horizontal-3fd32388.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-right.svg":()=>__vitePreload(()=>import("./layout-split-right-63ae8bed.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-verical.svg":()=>__vitePreload(()=>import("./layout-split-verical-1d5ad158.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-column-insert.svg":()=>__vitePreload(()=>import("./layout-table-column-insert-6a022d8a.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-row-insert.svg":()=>__vitePreload(()=>import("./layout-table-row-insert-1accb7ef.js"),[],import.meta.url),"../../svg/icons/plump/layout-three-columns.svg":()=>__vitePreload(()=>import("./layout-three-columns-de4bf4bc.js"),[],import.meta.url),"../../svg/icons/plump/layout-two-columns.svg":()=>__vitePreload(()=>import("./layout-two-columns-289edba7.js"),[],import.meta.url),"../../svg/icons/plump/link-external.svg":()=>__vitePreload(()=>import("./link-external-18f49cf2.js"),[],import.meta.url),"../../svg/icons/plump/link.svg":()=>__vitePreload(()=>import("./link-b5a35c50.js"),[],import.meta.url),"../../svg/icons/plump/login-key-2.svg":()=>__vitePreload(()=>import("./login-key-2-5b218b3a.js"),[],import.meta.url),"../../svg/icons/plump/mail-chat-bubble-text.svg":()=>__vitePreload(()=>import("./mail-chat-bubble-text-ee6fc0a3.js"),[],import.meta.url),"../../svg/icons/plump/mail-inbox-content.svg":()=>__vitePreload(()=>import("./mail-inbox-content-67bc0376.js"),[],import.meta.url),"../../svg/icons/plump/mail-send-email-attachment-document.svg":()=>__vitePreload(()=>import("./mail-send-email-attachment-document-acee8a1f.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-at.svg":()=>__vitePreload(()=>import("./mail-sign-at-50afa3a4.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-hashtag.svg":()=>__vitePreload(()=>import("./mail-sign-hashtag-b9cf5f14.js"),[],import.meta.url),"../../svg/icons/plump/media-computer-screen-tv.svg":()=>__vitePreload(()=>import("./media-computer-screen-tv-c8961765.js"),[],import.meta.url),"../../svg/icons/plump/media-image-camera.svg":()=>__vitePreload(()=>import("./media-image-camera-d72e8ea3.js"),[],import.meta.url),"../../svg/icons/plump/media-image-photo-focus-frame.svg":()=>__vitePreload(()=>import("./media-image-photo-focus-frame-3417a5be.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-gallery.svg":()=>__vitePreload(()=>import("./media-image-picture-gallery-af393898.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-orientation.svg":()=>__vitePreload(()=>import("./media-image-picture-orientation-96bc42e0.js"),[],import.meta.url),"../../svg/icons/plump/media-music-notes.svg":()=>__vitePreload(()=>import("./media-music-notes-82c7f223.js"),[],import.meta.url),"../../svg/icons/plump/media-music-sound-equalizer.svg":()=>__vitePreload(()=>import("./media-music-sound-equalizer-3d9d7000.js"),[],import.meta.url),"../../svg/icons/plump/media-news-paper.svg":()=>__vitePreload(()=>import("./media-news-paper-4d32690a.js"),[],import.meta.url),"../../svg/icons/plump/media-playlist.svg":()=>__vitePreload(()=>import("./media-playlist-a56bea8e.js"),[],import.meta.url),"../../svg/icons/plump/media-ticket.svg":()=>__vitePreload(()=>import("./media-ticket-70f2eee9.js"),[],import.meta.url),"../../svg/icons/plump/media-webcam-video.svg":()=>__vitePreload(()=>import("./media-webcam-video-ec6c9764.js"),[],import.meta.url),"../../svg/icons/plump/money-atm-card.svg":()=>__vitePreload(()=>import("./money-atm-card-bcceab2f.js"),[],import.meta.url),"../../svg/icons/plump/money-bank.svg":()=>__vitePreload(()=>import("./money-bank-e8892e17.js"),[],import.meta.url),"../../svg/icons/plump/money-cash-bill.svg":()=>__vitePreload(()=>import("./money-cash-bill-1ffb3ec5.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-bar-code.svg":()=>__vitePreload(()=>import("./money-cashier-bar-code-52ecd9af.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-calculator.svg":()=>__vitePreload(()=>import("./money-cashier-calculator-71869318.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-price-tag.svg":()=>__vitePreload(()=>import("./money-cashier-price-tag-213e2d66.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-bar-increase.svg":()=>__vitePreload(()=>import("./money-graph-bar-increase-3d59b9cb.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-pie-chart.svg":()=>__vitePreload(()=>import("./money-graph-pie-chart-9f49cf2a.js"),[],import.meta.url),"../../svg/icons/plump/nature-leaf.svg":()=>__vitePreload(()=>import("./nature-leaf-5924d163.js"),[],import.meta.url),"../../svg/icons/plump/phone-contact-phonebook.svg":()=>__vitePreload(()=>import("./phone-contact-phonebook-048ee9df.js"),[],import.meta.url),"../../svg/icons/plump/phone-mode-airplane-enabled.svg":()=>__vitePreload(()=>import("./phone-mode-airplane-enabled-cf5514c0.js"),[],import.meta.url),"../../svg/icons/plump/phone-telephone-call.svg":()=>__vitePreload(()=>import("./phone-telephone-call-b2642fb1.js"),[],import.meta.url),"../../svg/icons/plump/presentation-board.svg":()=>__vitePreload(()=>import("./presentation-board-fd46ddaa.js"),[],import.meta.url),"../../svg/icons/plump/programming-module-box-cube.svg":()=>__vitePreload(()=>import("./programming-module-box-cube-1232e11c.js"),[],import.meta.url),"../../svg/icons/plump/programming-rss-feed.svg":()=>__vitePreload(()=>import("./programming-rss-feed-dbb7b631.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code-brackets.svg":()=>__vitePreload(()=>import("./programming-script-code-brackets-628f4f27.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code.svg":()=>__vitePreload(()=>import("./programming-script-code-8e64c07e.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-complete.svg":()=>__vitePreload(()=>import("./puzzle-complete-2f7d2219.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-piece.svg":()=>__vitePreload(()=>import("./puzzle-piece-05281329.js"),[],import.meta.url),"../../svg/icons/plump/search-magnifying-glass.svg":()=>__vitePreload(()=>import("./search-magnifying-glass-5257ed33.js"),[],import.meta.url),"../../svg/icons/plump/security-lock.svg":()=>__vitePreload(()=>import("./security-lock-2dbb4545.js"),[],import.meta.url),"../../svg/icons/plump/security-unlock.svg":()=>__vitePreload(()=>import("./security-unlock-eb163678.js"),[],import.meta.url),"../../svg/icons/plump/setting-cog-gear.svg":()=>__vitePreload(()=>import("./setting-cog-gear-a44f9b1c.js"),[],import.meta.url),"../../svg/icons/plump/setting-menu-horizontal-dots.svg":()=>__vitePreload(()=>import("./setting-menu-horizontal-dots-5ee49d27.js"),[],import.meta.url),"../../svg/icons/plump/setting-slider-vertical.svg":()=>__vitePreload(()=>import("./setting-slider-vertical-fd027f5d.js"),[],import.meta.url),"../../svg/icons/plump/share-mega-phone.svg":()=>__vitePreload(()=>import("./share-mega-phone-f1e1c0fe.js"),[],import.meta.url),"../../svg/icons/plump/shopping-cart.svg":()=>__vitePreload(()=>import("./shopping-cart-14fc7a98.js"),[],import.meta.url),"../../svg/icons/plump/shopping-catergories-shirt.svg":()=>__vitePreload(()=>import("./shopping-catergories-shirt-e891f60e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-jewelry-diamond-gem.svg":()=>__vitePreload(()=>import("./shopping-jewelry-diamond-gem-f4bb5f5d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-discount-percent.svg":()=>__vitePreload(()=>import("./shopping-store-discount-percent-4d01612d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-signage.svg":()=>__vitePreload(()=>import("./shopping-store-signage-e7b3111e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store.svg":()=>__vitePreload(()=>import("./shopping-store-2abf0ec1.js"),[],import.meta.url),"../../svg/icons/plump/social-facebook.svg":()=>__vitePreload(()=>import("./social-facebook-d2d2dd7e.js"),[],import.meta.url),"../../svg/icons/plump/social-github.svg":()=>__vitePreload(()=>import("./social-github-f86a3389.js"),[],import.meta.url),"../../svg/icons/plump/social-instagram.svg":()=>__vitePreload(()=>import("./social-instagram-c384817e.js"),[],import.meta.url),"../../svg/icons/plump/social-linkedin.svg":()=>__vitePreload(()=>import("./social-linkedin-9a9063dd.js"),[],import.meta.url),"../../svg/icons/plump/social-mail-send-email-message.svg":()=>__vitePreload(()=>import("./social-mail-send-email-message-3a494938.js"),[],import.meta.url),"../../svg/icons/plump/social-mastodon.svg":()=>__vitePreload(()=>import("./social-mastodon-315dbc7f.js"),[],import.meta.url),"../../svg/icons/plump/social-pinterest.svg":()=>__vitePreload(()=>import("./social-pinterest-7f9c41fd.js"),[],import.meta.url),"../../svg/icons/plump/social-share.svg":()=>__vitePreload(()=>import("./social-share-39d56370.js"),[],import.meta.url),"../../svg/icons/plump/social-twitter.svg":()=>__vitePreload(()=>import("./social-twitter-f506d7ee.js"),[],import.meta.url),"../../svg/icons/plump/social-vimeo.svg":()=>__vitePreload(()=>import("./social-vimeo-77481fdc.js"),[],import.meta.url),"../../svg/icons/plump/social-youtube.svg":()=>__vitePreload(()=>import("./social-youtube-533fe0f2.js"),[],import.meta.url),"../../svg/icons/plump/tag-free.svg":()=>__vitePreload(()=>import("./tag-free-56e0debe.js"),[],import.meta.url),"../../svg/icons/plump/tag-new.svg":()=>__vitePreload(()=>import("./tag-new-84da2a59.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-all-caps.svg":()=>__vitePreload(()=>import("./text-formatting-all-caps-6c9fb305.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-ampersand.svg":()=>__vitePreload(()=>import("./text-formatting-ampersand-c8fb922d.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-bottom.svg":()=>__vitePreload(()=>import("./text-formatting-image-bottom-19dba5bb.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-image-left-7cad1aa7.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-image-right-6f72a61f.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-top.svg":()=>__vitePreload(()=>import("./text-formatting-image-top-4f8444ac.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-initial-letter.svg":()=>__vitePreload(()=>import("./text-formatting-initial-letter-94ec98a6.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-input-signature.svg":()=>__vitePreload(()=>import("./text-formatting-input-signature-dad94fe2.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-layer-style.svg":()=>__vitePreload(()=>import("./text-formatting-layer-style-f6ad993a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-markdown.svg":()=>__vitePreload(()=>import("./text-formatting-markdown-1e7f2a11.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-paragraph.svg":()=>__vitePreload(()=>import("./text-formatting-paragraph-e31cf013.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-quotation.svg":()=>__vitePreload(()=>import("./text-formatting-quotation-f9d244c4.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-shadow-text.svg":()=>__vitePreload(()=>import("./text-formatting-shadow-text-59c4b543.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-text-box-1.svg":()=>__vitePreload(()=>import("./text-formatting-text-box-1-a1ee8607.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-type-cursor.svg":()=>__vitePreload(()=>import("./text-formatting-type-cursor-779e1918.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-around-bounding-box.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-around-bounding-box-30967217.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-left-af281461.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-left-ab899ff1.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-right-583fa74a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-right-85ff9d70.js"),[],import.meta.url),"../../svg/icons/plump/time-clock.svg":()=>__vitePreload(()=>import("./time-clock-1a09e6c2.js"),[],import.meta.url),"../../svg/icons/plump/travel-map.svg":()=>__vitePreload(()=>import("./travel-map-d7edbe34.js"),[],import.meta.url),"../../svg/icons/plump/upload-arrow-up.svg":()=>__vitePreload(()=>import("./upload-arrow-up-ddaad6df.js"),[],import.meta.url),"../../svg/icons/plump/user-avatar.svg":()=>__vitePreload(()=>import("./user-avatar-3a439844.js"),[],import.meta.url),"../../svg/icons/plump/user-multiple.svg":()=>__vitePreload(()=>import("./user-multiple-c10883e6.js"),[],import.meta.url),"../../svg/icons/plump/user-security-lock.svg":()=>__vitePreload(()=>import("./user-security-lock-628f35df.js"),[],import.meta.url),"../../svg/icons/regular/add-col-after.svg":()=>__vitePreload(()=>import("./add-col-after-ef55e804.js"),[],import.meta.url),"../../svg/icons/regular/add-col-before.svg":()=>__vitePreload(()=>import("./add-col-before-3e0604fa.js"),[],import.meta.url),"../../svg/icons/regular/add-row-after.svg":()=>__vitePreload(()=>import("./add-row-after-79fb5bd4.js"),[],import.meta.url),"../../svg/icons/regular/add-row-before.svg":()=>__vitePreload(()=>import("./add-row-before-ae1c572a.js"),[],import.meta.url),"../../svg/icons/regular/add-table.svg":()=>__vitePreload(()=>import("./add-table-4500973b.js"),[],import.meta.url),"../../svg/icons/regular/add.svg":()=>__vitePreload(()=>import("./add-62d8d9ba.js"),[],import.meta.url),"../../svg/icons/regular/alert.svg":()=>__vitePreload(()=>import("./alert-1a8dd5c5.js"),[],import.meta.url),"../../svg/icons/regular/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-a8901ad9.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-collapse.svg":()=>__vitePreload(()=>import("./arrows-horizontal-collapse-40d5fe10.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-expand.svg":()=>__vitePreload(()=>import("./arrows-horizontal-expand-48fbc52d.js"),[],import.meta.url),"../../svg/icons/regular/arrows-shrink.svg":()=>__vitePreload(()=>import("./arrows-shrink-9620cfb7.js"),[],import.meta.url),"../../svg/icons/regular/asset-folder.svg":()=>__vitePreload(()=>import("./asset-folder-5e5084a4.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-grid.svg":()=>__vitePreload(()=>import("./assets-mode-grid-61de1550.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-table.svg":()=>__vitePreload(()=>import("./assets-mode-table-367a696d.js"),[],import.meta.url),"../../svg/icons/regular/code-block.svg":()=>__vitePreload(()=>import("./code-block-ba017171.js"),[],import.meta.url),"../../svg/icons/regular/code-inline.svg":()=>__vitePreload(()=>import("./code-inline-d10f54ae.js"),[],import.meta.url),"../../svg/icons/regular/combine-cells.svg":()=>__vitePreload(()=>import("./combine-cells-715a38a4.js"),[],import.meta.url),"../../svg/icons/regular/dark-mode.svg":()=>__vitePreload(()=>import("./dark-mode-0a6b304a.js"),[],import.meta.url),"../../svg/icons/regular/data-table.svg":()=>__vitePreload(()=>import("./data-table-84739f8b.js"),[],import.meta.url),"../../svg/icons/regular/delete-col.svg":()=>__vitePreload(()=>import("./delete-col-5e8bea80.js"),[],import.meta.url),"../../svg/icons/regular/delete-row.svg":()=>__vitePreload(()=>import("./delete-row-4351f211.js"),[],import.meta.url),"../../svg/icons/regular/delete-table.svg":()=>__vitePreload(()=>import("./delete-table-e4db6584.js"),[],import.meta.url),"../../svg/icons/regular/download-desktop.svg":()=>__vitePreload(()=>import("./download-desktop-881a331b.js"),[],import.meta.url),"../../svg/icons/regular/eraser.svg":()=>__vitePreload(()=>import("./eraser-0302515e.js"),[],import.meta.url),"../../svg/icons/regular/expand-bold.svg":()=>__vitePreload(()=>import("./expand-bold-9d6e3af4.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical-2.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-2-d4378588.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-718171d9.js"),[],import.meta.url),"../../svg/icons/regular/expand-vertical-bold.svg":()=>__vitePreload(()=>import("./expand-vertical-bold-00aaa8a8.js"),[],import.meta.url),"../../svg/icons/regular/expand.svg":()=>__vitePreload(()=>import("./expand-b75b6bd4.js"),[],import.meta.url),"../../svg/icons/regular/filter-text.svg":()=>__vitePreload(()=>import("./filter-text-ec6181ba.js"),[],import.meta.url),"../../svg/icons/regular/flip-vertical.svg":()=>__vitePreload(()=>import("./flip-vertical-be984c15.js"),[],import.meta.url),"../../svg/icons/regular/focal-point.svg":()=>__vitePreload(()=>import("./focal-point-70338ac3.js"),[],import.meta.url),"../../svg/icons/regular/folder-add.svg":()=>__vitePreload(()=>import("./folder-add-fc763287.js"),[],import.meta.url),"../../svg/icons/regular/folder-generic.svg":()=>__vitePreload(()=>import("./folder-generic-d613d736.js"),[],import.meta.url),"../../svg/icons/regular/folder-home.svg":()=>__vitePreload(()=>import("./folder-home-cce39b8e.js"),[],import.meta.url),"../../svg/icons/regular/folder-image.svg":()=>__vitePreload(()=>import("./folder-image-5fc121fe.js"),[],import.meta.url),"../../svg/icons/regular/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-45bce860.js"),[],import.meta.url),"../../svg/icons/regular/folder.svg":()=>__vitePreload(()=>import("./folder-65681b32.js"),[],import.meta.url),"../../svg/icons/regular/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-e69e9265.js"),[],import.meta.url),"../../svg/icons/regular/h1.svg":()=>__vitePreload(()=>import("./h1-a0b63968.js"),[],import.meta.url),"../../svg/icons/regular/h2.svg":()=>__vitePreload(()=>import("./h2-bd303b0d.js"),[],import.meta.url),"../../svg/icons/regular/h3.svg":()=>__vitePreload(()=>import("./h3-55450d58.js"),[],import.meta.url),"../../svg/icons/regular/h4.svg":()=>__vitePreload(()=>import("./h4-d09559c2.js"),[],import.meta.url),"../../svg/icons/regular/h5.svg":()=>__vitePreload(()=>import("./h5-33b13867.js"),[],import.meta.url),"../../svg/icons/regular/h6.svg":()=>__vitePreload(()=>import("./h6-0730417d.js"),[],import.meta.url),"../../svg/icons/regular/hidden.svg":()=>__vitePreload(()=>import("./hidden-cbd0ab43.js"),[],import.meta.url),"../../svg/icons/regular/home-page.svg":()=>__vitePreload(()=>import("./home-page-827fa2af.js"),[],import.meta.url),"../../svg/icons/regular/horizon.svg":()=>__vitePreload(()=>import("./horizon-0f7b4082.js"),[],import.meta.url),"../../svg/icons/regular/image-file.svg":()=>__vitePreload(()=>import("./image-file-9258e288.js"),[],import.meta.url),"../../svg/icons/regular/image-picture.svg":()=>__vitePreload(()=>import("./image-picture-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/image.svg":()=>__vitePreload(()=>import("./image-6a571f67.js"),[],import.meta.url),"../../svg/icons/regular/info-circle.svg":()=>__vitePreload(()=>import("./info-circle-6b19cac0.js"),[],import.meta.url),"../../svg/icons/regular/insert-image.svg":()=>__vitePreload(()=>import("./insert-image-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/insert-link.svg":()=>__vitePreload(()=>import("./insert-link-158aa1a4.js"),[],import.meta.url),"../../svg/icons/regular/list-ol.svg":()=>__vitePreload(()=>import("./list-ol-c88bac13.js"),[],import.meta.url),"../../svg/icons/regular/list-ul-2.svg":()=>__vitePreload(()=>import("./list-ul-2-3079492f.js"),[],import.meta.url),"../../svg/icons/regular/list-ul.svg":()=>__vitePreload(()=>import("./list-ul-5b0a6720.js"),[],import.meta.url),"../../svg/icons/regular/markdown-icon.svg":()=>__vitePreload(()=>import("./markdown-icon-fb3c3cbf.js"),[],import.meta.url),"../../svg/icons/regular/move-file.svg":()=>__vitePreload(()=>import("./move-file-2ec513c0.js"),[],import.meta.url),"../../svg/icons/regular/new-window.svg":()=>__vitePreload(()=>import("./new-window-58699c80.js"),[],import.meta.url),"../../svg/icons/regular/nova.svg":()=>__vitePreload(()=>import("./nova-a13a1c24.js"),[],import.meta.url),"../../svg/icons/regular/pages.svg":()=>__vitePreload(()=>import("./pages-9a7c5ae2.js"),[],import.meta.url),"../../svg/icons/regular/paperclip.svg":()=>__vitePreload(()=>import("./paperclip-2e70da2c.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-center.svg":()=>__vitePreload(()=>import("./paragraph-align-center-608b0756.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-justified.svg":()=>__vitePreload(()=>import("./paragraph-align-justified-edb480cc.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-left.svg":()=>__vitePreload(()=>import("./paragraph-align-left-21ff72c8.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-right.svg":()=>__vitePreload(()=>import("./paragraph-align-right-8422a6d6.js"),[],import.meta.url),"../../svg/icons/regular/pencil.svg":()=>__vitePreload(()=>import("./pencil-8c2b4c0f.js"),[],import.meta.url),"../../svg/icons/regular/performance-decrease.svg":()=>__vitePreload(()=>import("./performance-decrease-d3091d15.js"),[],import.meta.url),"../../svg/icons/regular/performance-increase.svg":()=>__vitePreload(()=>import("./performance-increase-93126e96.js"),[],import.meta.url),"../../svg/icons/regular/pulse.svg":()=>__vitePreload(()=>import("./pulse-fe14689b.js"),[],import.meta.url),"../../svg/icons/regular/quote.svg":()=>__vitePreload(()=>import("./quote-42c6ac19.js"),[],import.meta.url),"../../svg/icons/regular/relationship.svg":()=>__vitePreload(()=>import("./relationship-6143ceff.js"),[],import.meta.url),"../../svg/icons/regular/rename-file.svg":()=>__vitePreload(()=>import("./rename-file-40c0fedb.js"),[],import.meta.url),"../../svg/icons/regular/sd-card.svg":()=>__vitePreload(()=>import("./sd-card-fa5c533b.js"),[],import.meta.url),"../../svg/icons/regular/settings-vertical.svg":()=>__vitePreload(()=>import("./settings-vertical-a526ec11.js"),[],import.meta.url),"../../svg/icons/regular/show-source.svg":()=>__vitePreload(()=>import("./show-source-31355249.js"),[],import.meta.url),"../../svg/icons/regular/shrink-all.svg":()=>__vitePreload(()=>import("./shrink-all-e6ce9365.js"),[],import.meta.url),"../../svg/icons/regular/shrink-vertical.svg":()=>__vitePreload(()=>import("./shrink-vertical-546198f7.js"),[],import.meta.url),"../../svg/icons/regular/sort-numeric.svg":()=>__vitePreload(()=>import("./sort-numeric-2729de20.js"),[],import.meta.url),"../../svg/icons/regular/subscript.svg":()=>__vitePreload(()=>import("./subscript-cb1a9069.js"),[],import.meta.url),"../../svg/icons/regular/subtract.svg":()=>__vitePreload(()=>import("./subtract-629e074e.js"),[],import.meta.url),"../../svg/icons/regular/suggest.svg":()=>__vitePreload(()=>import("./suggest-cc137454.js"),[],import.meta.url),"../../svg/icons/regular/superscript.svg":()=>__vitePreload(()=>import("./superscript-89e7f98d.js"),[],import.meta.url),"../../svg/icons/regular/swap.svg":()=>__vitePreload(()=>import("./swap-8620179e.js"),[],import.meta.url),"../../svg/icons/regular/syringe.svg":()=>__vitePreload(()=>import("./syringe-39cac2b4.js"),[],import.meta.url),"../../svg/icons/regular/telescope.svg":()=>__vitePreload(()=>import("./telescope-3e0f8434.js"),[],import.meta.url),"../../svg/icons/regular/text-bold.svg":()=>__vitePreload(()=>import("./text-bold-e973ff83.js"),[],import.meta.url),"../../svg/icons/regular/text-italic.svg":()=>__vitePreload(()=>import("./text-italic-e29bac95.js"),[],import.meta.url),"../../svg/icons/regular/text-small.svg":()=>__vitePreload(()=>import("./text-small-1fd0b180.js"),[],import.meta.url),"../../svg/icons/regular/text-strike-through.svg":()=>__vitePreload(()=>import("./text-strike-through-20a184cd.js"),[],import.meta.url),"../../svg/icons/regular/text-underline.svg":()=>__vitePreload(()=>import("./text-underline-c1eebeaf.js"),[],import.meta.url),"../../svg/icons/regular/theme.svg":()=>__vitePreload(()=>import("./theme-52bbae73.js"),[],import.meta.url),"../../svg/icons/regular/thumbprint.svg":()=>__vitePreload(()=>import("./thumbprint-b56383b1.js"),[],import.meta.url),"../../svg/icons/regular/translate.svg":()=>__vitePreload(()=>import("./translate-1bb18ed0.js"),[],import.meta.url),"../../svg/icons/regular/trash.svg":()=>__vitePreload(()=>import("./trash-95a383df.js"),[],import.meta.url),"../../svg/icons/regular/upload-cloud.svg":()=>__vitePreload(()=>import("./upload-cloud-f1a7a3b4.js"),[],import.meta.url),"../../svg/icons/regular/upload.svg":()=>__vitePreload(()=>import("./upload-f32156ee.js"),[],import.meta.url)}),`../../svg/icons/${N}/${B}.svg`).catch(j=>this.fallbackIconImport())})})},splitIcon(M){return M.includes("/")||(M="regular/"+M),M.split("/")},fallbackIconImport(){return __vitePreload(()=>import("./image-6a571f67.js"),[],import.meta.url)}}};var _sfc_render$2T=function M(){var $=this,I=$._self._c;return $.icon?I($.icon,{tag:"component"}):$._e()},_sfc_staticRenderFns$2T=[],__component__$2U=normalizeComponent$3(_sfc_main$2T,_sfc_render$2T,_sfc_staticRenderFns$2T,!1,null,null,null,null);const SvgIcon=__component__$2U.exports,_sfc_main$2S={props:{extension:String},computed:{name(){switch(this.extension.toLowerCase()){case"folder":return"folder";case"7z":case"pkg":case"rar":case"tar":case"tar.zg":case"z":case"zip":return"archive";case"aac":case"aif":case"cda":case"flac":case"m4a":case"mp3":case"mp4a":case"mpa":case"ogg":case"mid":case"midi":case"wav":case"wma":return"audio";case"doc":case"docx":case"epub":case"mobi":return"doc";case"xls":case"xlsx":return"excel";case"json":return"json";case"ai":case"eps":case"fig":case"indb":case"psd":case"sketch":return"layered";case"pdf":return"pdf";case"key":case"odp":case"pps":case"ppt":case"pptx":return"presentation";case"3g2":case"3gp":case"avi":case"flv":case"h264":case"m4v":case"mvk":case"mp4":case"mpg":case"mpeg":case"mov":case"rm":case"swf":case"vob":case"wmv":return"video";case"xml":return"xml";case"bmp":case"gif":case"ico":case"jpg":case"jpeg":case"png":case"raw":case"nef":case"tiff":return"image";default:return"generic"}},icon(){return defineAsyncComponent(()=>__variableDynamicImportRuntimeHelper(Object.assign({"../../svg/filetypes/archive.svg":()=>__vitePreload(()=>import("./archive-70f1954a.js"),[],import.meta.url),"../../svg/filetypes/audio.svg":()=>__vitePreload(()=>import("./audio-84b44c8e.js"),[],import.meta.url),"../../svg/filetypes/doc.svg":()=>__vitePreload(()=>import("./doc-089d6edb.js"),[],import.meta.url),"../../svg/filetypes/excel.svg":()=>__vitePreload(()=>import("./excel-a7f1543d.js"),[],import.meta.url),"../../svg/filetypes/folder.svg":()=>__vitePreload(()=>import("./folder-ed0663b0.js"),[],import.meta.url),"../../svg/filetypes/generic.svg":()=>__vitePreload(()=>import("./generic-1db37107.js"),[],import.meta.url),"../../svg/filetypes/image.svg":()=>__vitePreload(()=>import("./image-7ef0b0a8.js"),[],import.meta.url),"../../svg/filetypes/json.svg":()=>__vitePreload(()=>import("./json-cf9e04eb.js"),[],import.meta.url),"../../svg/filetypes/layered.svg":()=>__vitePreload(()=>import("./layered-df1b1c1e.js"),[],import.meta.url),"../../svg/filetypes/pdf.svg":()=>__vitePreload(()=>import("./pdf-abffa6b6.js"),[],import.meta.url),"../../svg/filetypes/picture.svg":()=>__vitePreload(()=>import("./picture-625311ca.js"),[],import.meta.url),"../../svg/filetypes/presentation.svg":()=>__vitePreload(()=>import("./presentation-79d93f05.js"),[],import.meta.url),"../../svg/filetypes/video.svg":()=>__vitePreload(()=>import("./video-7472590a.js"),[],import.meta.url),"../../svg/filetypes/xml.svg":()=>__vitePreload(()=>import("./xml-fb41b421.js"),[],import.meta.url)}),`../../svg/filetypes/${this.name}.svg`))}}};var _sfc_render$2S=function M(){var $=this,I=$._self._c;return $.icon?I($.icon,{tag:"component"}):$._e()},_sfc_staticRenderFns$2S=[],__component__$2T=normalizeComponent$3(_sfc_main$2S,_sfc_render$2S,_sfc_staticRenderFns$2S,!1,null,null,null,null);const FileIcon=__component__$2T.exports,_sfc_main$2R={props:{text:{type:String,default:"Loading"},size:{type:Number},inline:{type:Boolean,default:!1}},computed:{computedSize(){return this.size?this.size:this.inline?16:24}}};var _sfc_render$2R=function M(){var $=this,I=$._self._c;return I("div",{class:{"flex items-center leading-loose":$.inline}},[I("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:`${$.computedSize}px`,height:`${$.computedSize}px`,viewBox:"0 0 40 40",stroke:"#737f8c"}},[I("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[I("g",{attrs:{transform:"translate(2 2)","stroke-width":"4"}},[I("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),I("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[I("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])]),$.text?I("div",{class:{"ml-2 text-sm text-gray":$.inline,"mt-2":!$.inline}},[$._v($._s($.__($.text)))]):$._e()])},_sfc_staticRenderFns$2R=[],__component__$2S=normalizeComponent$3(_sfc_main$2R,_sfc_render$2R,_sfc_staticRenderFns$2R,!1,null,null,null,null);const LoadingGraphic=__component__$2S.exports,_sfc_main$2Q={props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-end"},autoclose:{type:Boolean,default:!1}},computed:{strategy(){return this.scroll?"fixed":"absolute"}}};var _sfc_render$2Q=function M(){var $=this,I=$._self._c;return I("popover",{staticClass:"dropdown-list",attrs:{disabled:$.disabled,placement:$.placement,autoclose:$.autoclose},on:{opened:function(N){return $.$emit("opened")},closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"trigger",fn:function(){return[$._t("trigger",function(){return[I("button",{staticClass:"rotating-dots-button",attrs:{"aria-label":$.__("Open Dropdown")}},[I("svg",{staticClass:"rotating-dots fill-current",attrs:{width:"12",viewBox:"0 0 24 24"}},[I("circle",{attrs:{cx:"3",cy:"12",r:"3"}}),I("circle",{attrs:{cx:"12",cy:"12",r:"3"}}),I("circle",{attrs:{cx:"21",cy:"12",r:"3"}})])])]})]},proxy:!0},{key:"default",fn:function(){return[$._t("default")]},proxy:!0}],null,!0)})},_sfc_staticRenderFns$2Q=[],__component__$2R=normalizeComponent$3(_sfc_main$2Q,_sfc_render$2Q,_sfc_staticRenderFns$2Q,!1,null,null,null,null);const DropdownList=__component__$2R.exports,_sfc_main$2P={props:["text","redirect","externalLink"],inject:["popover"],computed:{href(){return this.redirect||this.externalLink},target(){return this.externalLink?"_blank":null}},methods:{selectAndClose(M){this.href||(this.$emit("click",M),this.popover.vm.close())}}};var _sfc_render$2P=function M(){var $=this,I=$._self._c;return I("a",{attrs:{href:$.href,target:$.target},on:{click:$.selectAndClose}},[$.text?[$._v($._s($.text))]:$._e(),$._t("default")],2)},_sfc_staticRenderFns$2P=[],__component__$2Q=normalizeComponent$3(_sfc_main$2P,_sfc_render$2P,_sfc_staticRenderFns$2P,!1,null,null,null,null);const DropdownItem=__component__$2Q.exports,_sfc_main$2O={props:{errors:{type:Object,required:!0}},computed:{hasErrors(){return Object.keys(this.errors).length>0},flattenedErrors(){return _.chain(this.errors).map(_.values).flatten().value()}}};var _sfc_render$2O=function M(){var $=this,I=$._self._c;return $.hasErrors?I("div",{staticClass:"bg-red-500 text-white p-4 rounded-md shadow mb-4"},$._l($.flattenedErrors,function(N,B){return I("p",{key:B},[$._v($._s(N))])}),0):$._e()},_sfc_staticRenderFns$2O=[],__component__$2P=normalizeComponent$3(_sfc_main$2O,_sfc_render$2O,_sfc_staticRenderFns$2O,!1,null,null,null,null);const ValidationErrors=__component__$2P.exports,_sfc_main$2N={model:{prop:"to",event:"slugified"},props:{from:String,to:String,language:String,separator:{type:String,default:"-"},enabled:{type:Boolean,default:!0}},data(){return{shouldSlugify:this.enabled}},computed:{slug(){return this.shouldSlugify?this.from?this.$slugify(this.from,this.separator,this.language):"":this.to}},watch:{to(M){M!==this.slug&&(this.shouldSlugify=!1)},slug(M){this.$emit("slugified",M)}},created(){this.to&&(this.shouldSlugify=!1)},render(){return this.$scopedSlots.default({})},methods:{reset(){this.enabled&&(this.shouldSlugify=!0)}}},_sfc_render$2N=null,_sfc_staticRenderFns$2N=null;var __component__$2O=normalizeComponent$3(_sfc_main$2N,_sfc_render$2N,_sfc_staticRenderFns$2N,!1,null,null,null,null);const Slugify=__component__$2O.exports;var MapShim=function(){if(typeof Map<"u")return Map;function M($,I){var N=-1;return $.some(function(B,j){return B[0]===I?(N=j,!0):!1}),N}return function(){function $(){this.__entries__=[]}return Object.defineProperty($.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),$.prototype.get=function(I){var N=M(this.__entries__,I),B=this.__entries__[N];return B&&B[1]},$.prototype.set=function(I,N){var B=M(this.__entries__,I);~B?this.__entries__[B][1]=N:this.__entries__.push([I,N])},$.prototype.delete=function(I){var N=this.__entries__,B=M(N,I);~B&&N.splice(B,1)},$.prototype.has=function(I){return!!~M(this.__entries__,I)},$.prototype.clear=function(){this.__entries__.splice(0)},$.prototype.forEach=function(I,N){N===void 0&&(N=null);for(var B=0,j=this.__entries__;B<j.length;B++){var U=j[B];I.call(N,U[1],U[0])}},$}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(M){return setTimeout(function(){return M(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(M,$){var I=!1,N=!1,B=0;function j(){I&&(I=!1,M()),N&&q()}function U(){requestAnimationFrame$1(j)}function q(){var Y=Date.now();if(I){if(Y-B<trailingTimeout)return;N=!0}else I=!0,N=!1,setTimeout(U,$);B=Y}return q}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function M(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return M.prototype.addObserver=function($){~this.observers_.indexOf($)||this.observers_.push($),this.connected_||this.connect_()},M.prototype.removeObserver=function($){var I=this.observers_,N=I.indexOf($);~N&&I.splice(N,1),!I.length&&this.connected_&&this.disconnect_()},M.prototype.refresh=function(){var $=this.updateObservers_();$&&this.refresh()},M.prototype.updateObservers_=function(){var $=this.observers_.filter(function(I){return I.gatherActive(),I.hasActive()});return $.forEach(function(I){return I.broadcastActive()}),$.length>0},M.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},M.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},M.prototype.onTransitionEnd_=function($){var I=$.propertyName,N=I===void 0?"":I,B=transitionKeys.some(function(j){return!!~N.indexOf(j)});B&&this.refresh()},M.getInstance=function(){return this.instance_||(this.instance_=new M),this.instance_},M.instance_=null,M}(),defineConfigurable=function(M,$){for(var I=0,N=Object.keys($);I<N.length;I++){var B=N[I];Object.defineProperty(M,B,{value:$[B],enumerable:!1,writable:!1,configurable:!0})}return M},getWindowOf=function(M){var $=M&&M.ownerDocument&&M.ownerDocument.defaultView;return $||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(M){return parseFloat(M)||0}function getBordersSize(M){for(var $=[],I=1;I<arguments.length;I++)$[I-1]=arguments[I];return $.reduce(function(N,B){var j=M["border-"+B+"-width"];return N+toFloat(j)},0)}function getPaddings(M){for(var $=["top","right","bottom","left"],I={},N=0,B=$;N<B.length;N++){var j=B[N],U=M["padding-"+j];I[j]=toFloat(U)}return I}function getSVGContentRect(M){var $=M.getBBox();return createRectInit(0,0,$.width,$.height)}function getHTMLElementContentRect(M){var $=M.clientWidth,I=M.clientHeight;if(!$&&!I)return emptyRect;var N=getWindowOf(M).getComputedStyle(M),B=getPaddings(N),j=B.left+B.right,U=B.top+B.bottom,q=toFloat(N.width),Y=toFloat(N.height);if(N.boxSizing==="border-box"&&(Math.round(q+j)!==$&&(q-=getBordersSize(N,"left","right")+j),Math.round(Y+U)!==I&&(Y-=getBordersSize(N,"top","bottom")+U)),!isDocumentElement(M)){var K=Math.round(q+j)-$,G=Math.round(Y+U)-I;Math.abs(K)!==1&&(q-=K),Math.abs(G)!==1&&(Y-=G)}return createRectInit(B.left,B.top,q,Y)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(M){return M instanceof getWindowOf(M).SVGGraphicsElement}:function(M){return M instanceof getWindowOf(M).SVGElement&&typeof M.getBBox=="function"}}();function isDocumentElement(M){return M===getWindowOf(M).document.documentElement}function getContentRect(M){return isBrowser?isSVGGraphicsElement(M)?getSVGContentRect(M):getHTMLElementContentRect(M):emptyRect}function createReadOnlyRect(M){var $=M.x,I=M.y,N=M.width,B=M.height,j=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,U=Object.create(j.prototype);return defineConfigurable(U,{x:$,y:I,width:N,height:B,top:I,right:$+N,bottom:B+I,left:$}),U}function createRectInit(M,$,I,N){return{x:M,y:$,width:I,height:N}}var ResizeObservation=function(){function M($){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=$}return M.prototype.isActive=function(){var $=getContentRect(this.target);return this.contentRect_=$,$.width!==this.broadcastWidth||$.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var $=this.contentRect_;return this.broadcastWidth=$.width,this.broadcastHeight=$.height,$},M}(),ResizeObserverEntry=function(){function M($,I){var N=createReadOnlyRect(I);defineConfigurable(this,{target:$,contentRect:N})}return M}(),ResizeObserverSPI=function(){function M($,I,N){if(this.activeObservations_=[],this.observations_=new MapShim,typeof $!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=$,this.controller_=I,this.callbackCtx_=N}return M.prototype.observe=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var I=this.observations_;I.has($)||(I.set($,new ResizeObservation($)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var I=this.observations_;I.has($)&&(I.delete($),I.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var $=this;this.clearActive(),this.observations_.forEach(function(I){I.isActive()&&$.activeObservations_.push(I)})},M.prototype.broadcastActive=function(){if(this.hasActive()){var $=this.callbackCtx_,I=this.activeObservations_.map(function(N){return new ResizeObserverEntry(N.target,N.broadcastRect())});this.callback_.call($,I,$),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0},M}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function M($){if(!(this instanceof M))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var I=ResizeObserverController.getInstance(),N=new ResizeObserverSPI($,I,this);observers.set(this,N)}return M}();["observe","unobserve","disconnect"].forEach(function(M){ResizeObserver$1.prototype[M]=function(){var $;return($=observers.get(this))[M].apply($,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}();const _sfc_main$2M={data(){return{width:null}},render(){return this.$scopedSlots.default({})},mounted(){new index$1(_.throttle($=>{this.width=$[0].contentRect.width},200)).observe(this.$el)},watch:{width(M){this.$emit("resized",{width:M})}}},_sfc_render$2M=null,_sfc_staticRenderFns$2M=null;var __component__$2N=normalizeComponent$3(_sfc_main$2M,_sfc_render$2M,_sfc_staticRenderFns$2M,!1,null,null,null,null);const ElementContainer=__component__$2N.exports,_sfc_main$2L={props:{user:Object},data(){return{hasAvatarError:!1}},computed:{initials(){return this.user.initials||"?"},useAvatar(){return this.hasAvatar&&!this.hasAvatarError},hasAvatar(){return!!this.user.avatar},avatarSrc(){return this.hasAvatar?this.user.avatar.permalink||this.user.avatar:null},useInitials(){return!this.hasAvatar||this.hasAvatarError}}};var _sfc_render$2L=function M(){var $=this,I=$._self._c;return I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.user.name,expression:"user.name"}],staticClass:"rounded-full overflow-hidden"},[$.useAvatar?I("img",{staticClass:"block",attrs:{src:$.avatarSrc},on:{error:function(N){$.hasAvatarError=!0}}}):$._e(),$.useInitials?I("div",{staticClass:"text-center flex items-center justify-center h-full w-full bg-pink text-white"},[I("span",[$._v($._s($.initials))])]):$._e()])},_sfc_staticRenderFns$2L=[],__component__$2M=normalizeComponent$3(_sfc_main$2L,_sfc_render$2L,_sfc_staticRenderFns$2L,!1,null,null,null,null);const Avatar=__component__$2M.exports,_sfc_main$2K={props:{url:String,title:String}};var _sfc_render$2K=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"breadcrumb flex"},[I("a",{staticClass:"flex-initial flex p-2 -m-2 items-center text-xs text-gray-700 hover:text-gray-900",attrs:{href:$.url}},[I("svg-icon",{staticClass:"h-6 w-4 rotate-180",attrs:{name:"micro/chevron-right"}}),I("span",{domProps:{textContent:$._s($.__($.title))}})],1)])},_sfc_staticRenderFns$2K=[],__component__$2L=normalizeComponent$3(_sfc_main$2K,_sfc_render$2K,_sfc_staticRenderFns$2K,!1,null,null,null,null);const Breadcrumb=__component__$2L.exports,_sfc_main$2J={props:{crumbs:Array}};var _sfc_render$2J=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"subhead"},$._l($.crumbs,function(N,B){return I("span",{key:B},[I("a",{staticClass:"font-bold hover:text-blue",attrs:{href:N.url},domProps:{textContent:$._s(N.text)}}),B<$.crumbs.length-1?I("span",{staticClass:"px-1"},[$._v("›")]):$._e()])}),0)},_sfc_staticRenderFns$2J=[],__component__$2K=normalizeComponent$3(_sfc_main$2J,_sfc_render$2J,_sfc_staticRenderFns$2J,!1,null,null,null,null);const Breadcrumbs=__component__$2K.exports,_sfc_main$2I={props:{url:String,blueprints:Array,text:{type:String,default:()=>__("Create Entry")},buttonClass:{type:String,default:"btn"}},computed:{hasMultipleBlueprints(){return this.blueprints.length>1}},methods:{create(M){this.blueprints.length===1&&this.select(null,M)},select(M,$){let I=this.url;M&&(I=I+=`?blueprint=${M}`),$.metaKey?window.open(I):window.location=I}}};var _sfc_render$2I=function M(){var $=this,I=$._self._c;return I("dropdown-list",{staticClass:"inline-block",attrs:{disabled:!$.hasMultipleBlueprints},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{class:[$.buttonClass,{"flex items-center rtl:pl-4 ltr:pr-4":$.hasMultipleBlueprints}],on:{click:$.create}},[$._v(" "+$._s($.text)+" "),$.hasMultipleBlueprints?I("svg-icon",{staticClass:"w-2 rtl:mr-2 ltr:ml-2",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}])},[I("h6",{staticClass:"p-2",domProps:{textContent:$._s($.__("Choose Blueprint"))}}),$._l($.blueprints,function(N){return I("div",{key:N.handle},[I("dropdown-item",{attrs:{text:N.title},on:{click:function(B){return $.select(N.handle,B)}}})],1)})],2)},_sfc_staticRenderFns$2I=[],__component__$2J=normalizeComponent$3(_sfc_main$2I,_sfc_render$2I,_sfc_staticRenderFns$2I,!1,null,null,null,null);const CreateEntryButton=__component__$2J.exports,require$$0=getAugmentedNamespace(vue_esm);var Vue$2=require$$0;Vue$2="default"in Vue$2?Vue$2.default:Vue$2;var version$2="2.2.2",compatible=/^2\./.test(Vue$2.version);compatible||Vue$2.util.warn("VueClickaway "+version$2+" only supports Vue 2.x, and does not support Vue "+Vue$2.version);var HANDLER="_vue_clickaway_handler";function bind$4(M,$,I){unbind(M);var N=I.context,B=$.value;if(typeof B=="function"){var j=!1;setTimeout(function(){j=!0},0),M[HANDLER]=function(U){var q=U.path||(U.composedPath?U.composedPath():void 0);if(j&&(q?q.indexOf(M)<0:!M.contains(U.target)))return B.call(N,U)},document.documentElement.addEventListener("click",M[HANDLER],!1)}}function unbind(M){document.documentElement.removeEventListener("click",M[HANDLER],!1),delete M[HANDLER]}var directive={bind:bind$4,update:function(M,$){$.value!==$.oldValue&&bind$4(M,$)},unbind},mixin={directives:{onClickaway:directive}},mixin_1=mixin;function t(M){return M.split("-")[1]}function e(M){return M==="y"?"height":"width"}function n$1(M){return M.split("-")[0]}function o$1(M){return["top","bottom"].includes(n$1(M))?"x":"y"}function i$1(M,$,I){let{reference:N,floating:B}=M;const j=N.x+N.width/2-B.width/2,U=N.y+N.height/2-B.height/2,q=o$1($),Y=e(q),K=N[Y]/2-B[Y]/2,G=q==="x";let J;switch(n$1($)){case"top":J={x:j,y:N.y-B.height};break;case"bottom":J={x:j,y:N.y+N.height};break;case"right":J={x:N.x+N.width,y:U};break;case"left":J={x:N.x-B.width,y:U};break;default:J={x:N.x,y:N.y}}switch(t($)){case"start":J[q]-=K*(I&&G?-1:1);break;case"end":J[q]+=K*(I&&G?-1:1)}return J}const r$2=async(M,$,I)=>{const{placement:N="bottom",strategy:B="absolute",middleware:j=[],platform:U}=I,q=j.filter(Boolean),Y=await(U.isRTL==null?void 0:U.isRTL($));let K=await U.getElementRects({reference:M,floating:$,strategy:B}),{x:G,y:J}=i$1(K,N,Y),Z=N,ee={},te=0;for(let re=0;re<q.length;re++){const{name:se,fn:ne}=q[re],{x:le,y:ge,data:ue,reset:_e}=await ne({x:G,y:J,initialPlacement:N,placement:Z,strategy:B,middlewareData:ee,rects:K,platform:U,elements:{reference:M,floating:$}});G=le??G,J=ge??J,ee={...ee,[se]:{...ee[se],...ue}},_e&&te<=50&&(te++,typeof _e=="object"&&(_e.placement&&(Z=_e.placement),_e.rects&&(K=_e.rects===!0?await U.getElementRects({reference:M,floating:$,strategy:B}):_e.rects),{x:G,y:J}=i$1(K,Z,Y)),re=-1)}return{x:G,y:J,placement:Z,strategy:B,middlewareData:ee}};function a$1(M){return typeof M!="number"?function($){return{top:0,right:0,bottom:0,left:0,...$}}(M):{top:M,right:M,bottom:M,left:M}}function l$1(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function s$1(M,$){var I;$===void 0&&($={});const{x:N,y:B,platform:j,rects:U,elements:q,strategy:Y}=M,{boundary:K="clippingAncestors",rootBoundary:G="viewport",elementContext:J="floating",altBoundary:Z=!1,padding:ee=0}=$,te=a$1(ee),re=q[Z?J==="floating"?"reference":"floating":J],se=l$1(await j.getClippingRect({element:(I=await(j.isElement==null?void 0:j.isElement(re)))==null||I?re:re.contextElement||await(j.getDocumentElement==null?void 0:j.getDocumentElement(q.floating)),boundary:K,rootBoundary:G,strategy:Y})),ne=J==="floating"?{...U.floating,x:N,y:B}:U.reference,le=await(j.getOffsetParent==null?void 0:j.getOffsetParent(q.floating)),ge=await(j.isElement==null?void 0:j.isElement(le))&&await(j.getScale==null?void 0:j.getScale(le))||{x:1,y:1},ue=l$1(j.convertOffsetParentRelativeRectToViewportRelativeRect?await j.convertOffsetParentRelativeRectToViewportRelativeRect({rect:ne,offsetParent:le,strategy:Y}):ne);return{top:(se.top-ue.top+te.top)/ge.y,bottom:(ue.bottom-se.bottom+te.bottom)/ge.y,left:(se.left-ue.left+te.left)/ge.x,right:(ue.right-se.right+te.right)/ge.x}}const c$2=Math.min,f$1=Math.max;function m$1(M,$,I){return f$1(M,c$2($,I))}const g$1=["top","right","bottom","left"];g$1.reduce((M,$)=>M.concat($,$+"-start",$+"-end"),[]);const p$1={left:"right",right:"left",bottom:"top",top:"bottom"};function h$1(M){return M.replace(/left|right|bottom|top/g,$=>p$1[$])}function y$1(M,$,I){I===void 0&&(I=!1);const N=t(M),B=o$1(M),j=e(B);let U=B==="x"?N===(I?"end":"start")?"right":"left":N==="start"?"bottom":"top";return $.reference[j]>$.floating[j]&&(U=h$1(U)),{main:U,cross:h$1(U)}}const x$1={start:"end",end:"start"};function w$1(M){return M.replace(/start|end/g,$=>x$1[$])}const b$1=function(M){return M===void 0&&(M={}),{name:"flip",options:M,async fn($){var I;const{placement:N,middlewareData:B,rects:j,initialPlacement:U,platform:q,elements:Y}=$,{mainAxis:K=!0,crossAxis:G=!0,fallbackPlacements:J,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:ee="none",flipAlignment:te=!0,...re}=M,se=n$1(N),ne=n$1(U)===U,le=await(q.isRTL==null?void 0:q.isRTL(Y.floating)),ge=J||(ne||!te?[h$1(U)]:function(ye){const be=h$1(ye);return[w$1(ye),be,w$1(be)]}(U));J||ee==="none"||ge.push(...function(ye,be,we,Ae){const ke=t(ye);let Oe=function(Me,ze,Fe){const Ze=["left","right"],lt=["right","left"],qe=["top","bottom"],Ve=["bottom","top"];switch(Me){case"top":case"bottom":return Fe?ze?lt:Ze:ze?Ze:lt;case"left":case"right":return ze?qe:Ve;default:return[]}}(n$1(ye),we==="start",Ae);return ke&&(Oe=Oe.map(Me=>Me+"-"+ke),be&&(Oe=Oe.concat(Oe.map(w$1)))),Oe}(U,te,ee,le));const ue=[U,...ge],_e=await s$1($,re),fe=[];let me=((I=B.flip)==null?void 0:I.overflows)||[];if(K&&fe.push(_e[se]),G){const{main:ye,cross:be}=y$1(N,j,le);fe.push(_e[ye],_e[be])}if(me=[...me,{placement:N,overflows:fe}],!fe.every(ye=>ye<=0)){var ve,xe;const ye=(((ve=B.flip)==null?void 0:ve.index)||0)+1,be=ue[ye];if(be)return{data:{index:ye,overflows:me},reset:{placement:be}};let we=(xe=me.filter(Ae=>Ae.overflows[0]<=0).sort((Ae,ke)=>Ae.overflows[1]-ke.overflows[1])[0])==null?void 0:xe.placement;if(!we)switch(Z){case"bestFit":{var oe;const Ae=(oe=me.map(ke=>[ke.placement,ke.overflows.filter(Oe=>Oe>0).reduce((Oe,Me)=>Oe+Me,0)]).sort((ke,Oe)=>ke[1]-Oe[1])[0])==null?void 0:oe[0];Ae&&(we=Ae);break}case"initialPlacement":we=U}if(N!==we)return{reset:{placement:we}}}return{}}}},D$1=function(M){return M===void 0&&(M=0),{name:"offset",options:M,async fn($){const{x:I,y:N}=$,B=await async function(j,U){const{placement:q,platform:Y,elements:K}=j,G=await(Y.isRTL==null?void 0:Y.isRTL(K.floating)),J=n$1(q),Z=t(q),ee=o$1(q)==="x",te=["left","top"].includes(J)?-1:1,re=G&&ee?-1:1,se=typeof U=="function"?U(j):U;let{mainAxis:ne,crossAxis:le,alignmentAxis:ge}=typeof se=="number"?{mainAxis:se,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...se};return Z&&typeof ge=="number"&&(le=Z==="end"?-1*ge:ge),ee?{x:le*re,y:ne*te}:{x:ne*te,y:le*re}}($,M);return{x:I+B.x,y:N+B.y,data:B}}}};function L$1(M){return M==="x"?"y":"x"}const k=function(M){return M===void 0&&(M={}),{name:"shift",options:M,async fn($){const{x:I,y:N,placement:B}=$,{mainAxis:j=!0,crossAxis:U=!1,limiter:q={fn:se=>{let{x:ne,y:le}=se;return{x:ne,y:le}}},...Y}=M,K={x:I,y:N},G=await s$1($,Y),J=o$1(n$1(B)),Z=L$1(J);let ee=K[J],te=K[Z];if(j){const se=J==="y"?"bottom":"right";ee=m$1(ee+G[J==="y"?"top":"left"],ee,ee-G[se])}if(U){const se=Z==="y"?"bottom":"right";te=m$1(te+G[Z==="y"?"top":"left"],te,te-G[se])}const re=q.fn({...$,[J]:ee,[Z]:te});return{...re,data:{x:re.x-I,y:re.y-N}}}}};function n(M){var $;return(($=M.ownerDocument)==null?void 0:$.defaultView)||window}function o(M){return n(M).getComputedStyle(M)}function i(M){return M instanceof n(M).Node}function r$1(M){return i(M)?(M.nodeName||"").toLowerCase():""}let l;function c$1(){if(l)return l;const M=navigator.userAgentData;return M&&Array.isArray(M.brands)?(l=M.brands.map($=>$.brand+"/"+$.version).join(" "),l):navigator.userAgent}function s(M){return M instanceof n(M).HTMLElement}function f(M){return M instanceof n(M).Element}function u(M){return typeof ShadowRoot>"u"?!1:M instanceof n(M).ShadowRoot||M instanceof ShadowRoot}function a(M){const{overflow:$,overflowX:I,overflowY:N,display:B}=o(M);return/auto|scroll|overlay|hidden|clip/.test($+N+I)&&!["inline","contents"].includes(B)}function d(M){return["table","td","th"].includes(r$1(M))}function h(M){const $=/firefox/i.test(c$1()),I=o(M),N=I.backdropFilter||I.WebkitBackdropFilter;return I.transform!=="none"||I.perspective!=="none"||!!N&&N!=="none"||$&&I.willChange==="filter"||$&&!!I.filter&&I.filter!=="none"||["transform","perspective"].some(B=>I.willChange.includes(B))||["paint","layout","strict","content"].some(B=>{const j=I.contain;return j!=null&&j.includes(B)})}function p(){return/^((?!chrome|android).)*safari/i.test(c$1())}function g(M){return["html","body","#document"].includes(r$1(M))}const m=Math.min,y=Math.max,x=Math.round;function w(M){const $=o(M);let I=parseFloat($.width),N=parseFloat($.height);const B=s(M),j=B?M.offsetWidth:I,U=B?M.offsetHeight:N,q=x(I)!==j||x(N)!==U;return q&&(I=j,N=U),{width:I,height:N,fallback:q}}function v(M){return f(M)?M:M.contextElement}const b={x:1,y:1};function L(M){const $=v(M);if(!s($))return b;const I=$.getBoundingClientRect(),{width:N,height:B,fallback:j}=w($);let U=(j?x(I.width):I.width)/N,q=(j?x(I.height):I.height)/B;return U&&Number.isFinite(U)||(U=1),q&&Number.isFinite(q)||(q=1),{x:U,y:q}}function E(M,$,I,N){var B,j;$===void 0&&($=!1),I===void 0&&(I=!1);const U=M.getBoundingClientRect(),q=v(M);let Y=b;$&&(N?f(N)&&(Y=L(N)):Y=L(M));const K=q?n(q):window,G=p()&&I;let J=(U.left+(G&&((B=K.visualViewport)==null?void 0:B.offsetLeft)||0))/Y.x,Z=(U.top+(G&&((j=K.visualViewport)==null?void 0:j.offsetTop)||0))/Y.y,ee=U.width/Y.x,te=U.height/Y.y;if(q){const re=n(q),se=N&&f(N)?n(N):N;let ne=re.frameElement;for(;ne&&N&&se!==re;){const le=L(ne),ge=ne.getBoundingClientRect(),ue=getComputedStyle(ne);ge.x+=(ne.clientLeft+parseFloat(ue.paddingLeft))*le.x,ge.y+=(ne.clientTop+parseFloat(ue.paddingTop))*le.y,J*=le.x,Z*=le.y,ee*=le.x,te*=le.y,J+=ge.x,Z+=ge.y,ne=n(ne).frameElement}}return l$1({width:ee,height:te,x:J,y:Z})}function T(M){return((i(M)?M.ownerDocument:M.document)||window.document).documentElement}function R(M){return f(M)?{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}:{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}}function C(M){return E(T(M)).left+R(M).scrollLeft}function F(M){if(r$1(M)==="html")return M;const $=M.assignedSlot||M.parentNode||u(M)&&M.host||T(M);return u($)?$.host:$}function W(M){const $=F(M);return g($)?$.ownerDocument.body:s($)&&a($)?$:W($)}function D(M,$){var I;$===void 0&&($=[]);const N=W(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=n(N);return B?$.concat(j,j.visualViewport||[],a(N)?N:[]):$.concat(N,D(N))}function S(M,$,I){let N;if($==="viewport")N=function(U,q){const Y=n(U),K=T(U),G=Y.visualViewport;let J=K.clientWidth,Z=K.clientHeight,ee=0,te=0;if(G){J=G.width,Z=G.height;const re=p();(!re||re&&q==="fixed")&&(ee=G.offsetLeft,te=G.offsetTop)}return{width:J,height:Z,x:ee,y:te}}(M,I);else if($==="document")N=function(U){const q=T(U),Y=R(U),K=U.ownerDocument.body,G=y(q.scrollWidth,q.clientWidth,K.scrollWidth,K.clientWidth),J=y(q.scrollHeight,q.clientHeight,K.scrollHeight,K.clientHeight);let Z=-Y.scrollLeft+C(U);const ee=-Y.scrollTop;return o(K).direction==="rtl"&&(Z+=y(q.clientWidth,K.clientWidth)-G),{width:G,height:J,x:Z,y:ee}}(T(M));else if(f($))N=function(U,q){const Y=E(U,!0,q==="fixed"),K=Y.top+U.clientTop,G=Y.left+U.clientLeft,J=s(U)?L(U):{x:1,y:1};return{width:U.clientWidth*J.x,height:U.clientHeight*J.y,x:G*J.x,y:K*J.y}}($,I);else{const U={...$};if(p()){var B,j;const q=n(M);U.x-=((B=q.visualViewport)==null?void 0:B.offsetLeft)||0,U.y-=((j=q.visualViewport)==null?void 0:j.offsetTop)||0}N=U}return l$1(N)}function A(M,$){return s(M)&&o(M).position!=="fixed"?$?$(M):M.offsetParent:null}function H(M,$){const I=n(M);if(!s(M))return I;let N=A(M,$);for(;N&&d(N)&&o(N).position==="static";)N=A(N,$);return N&&(r$1(N)==="html"||r$1(N)==="body"&&o(N).position==="static"&&!h(N))?I:N||function(B){let j=F(B);for(;s(j)&&!g(j);){if(h(j))return j;j=F(j)}return null}(M)||I}function V(M,$,I){const N=s($),B=T($),j=E(M,!0,I==="fixed",$);let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if(N||!N&&I!=="fixed")if((r$1($)!=="body"||a(B))&&(U=R($)),s($)){const Y=E($,!0);q.x=Y.x+$.clientLeft,q.y=Y.y+$.clientTop}else B&&(q.x=C(B));return{x:j.left+U.scrollLeft-q.x,y:j.top+U.scrollTop-q.y,width:j.width,height:j.height}}const O={getClippingRect:function(M){let{element:$,boundary:I,rootBoundary:N,strategy:B}=M;const j=I==="clippingAncestors"?function(K,G){const J=G.get(K);if(J)return J;let Z=D(K).filter(se=>f(se)&&r$1(se)!=="body"),ee=null;const te=o(K).position==="fixed";let re=te?F(K):K;for(;f(re)&&!g(re);){const se=o(re),ne=h(re);se.position==="fixed"?ee=null:(te?ne||ee:ne||se.position!=="static"||!ee||!["absolute","fixed"].includes(ee.position))?ee=se:Z=Z.filter(le=>le!==re),re=F(re)}return G.set(K,Z),Z}($,this._c):[].concat(I),U=[...j,N],q=U[0],Y=U.reduce((K,G)=>{const J=S($,G,B);return K.top=y(J.top,K.top),K.right=m(J.right,K.right),K.bottom=m(J.bottom,K.bottom),K.left=y(J.left,K.left),K},S($,q,B));return{width:Y.right-Y.left,height:Y.bottom-Y.top,x:Y.left,y:Y.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(M){let{rect:$,offsetParent:I,strategy:N}=M;const B=s(I),j=T(I);if(I===j)return $;let U={scrollLeft:0,scrollTop:0},q={x:1,y:1};const Y={x:0,y:0};if((B||!B&&N!=="fixed")&&((r$1(I)!=="body"||a(j))&&(U=R(I)),s(I))){const K=E(I);q=L(I),Y.x=K.x+I.clientLeft,Y.y=K.y+I.clientTop}return{width:$.width*q.x,height:$.height*q.y,x:$.x*q.x-U.scrollLeft*q.x+Y.x,y:$.y*q.y-U.scrollTop*q.y+Y.y}},isElement:f,getDimensions:function(M){return w(M)},getOffsetParent:H,getDocumentElement:T,getScale:L,async getElementRects(M){let{reference:$,floating:I,strategy:N}=M;const B=this.getOffsetParent||H,j=this.getDimensions;return{reference:V($,await B(I),N),floating:{x:0,y:0,...await j(I)}}},getClientRects:M=>Array.from(M.getClientRects()),isRTL:M=>o(M).direction==="rtl"};function P(M,$,I,N){N===void 0&&(N={});const{ancestorScroll:B=!0,ancestorResize:j=!0,elementResize:U=!0,animationFrame:q=!1}=N,Y=B&&!q,K=Y||j?[...f(M)?D(M):M.contextElement?D(M.contextElement):[],...D($)]:[];K.forEach(ee=>{Y&&ee.addEventListener("scroll",I,{passive:!0}),j&&ee.addEventListener("resize",I)});let G,J=null;U&&(J=new ResizeObserver(()=>{I()}),f(M)&&!q&&J.observe(M),f(M)||!M.contextElement||q||J.observe(M.contextElement),J.observe($));let Z=q?E(M):null;return q&&function ee(){const te=E(M);!Z||te.x===Z.x&&te.y===Z.y&&te.width===Z.width&&te.height===Z.height||I(),Z=te,G=requestAnimationFrame(ee)}(),I(),()=>{var ee;K.forEach(te=>{Y&&te.removeEventListener("scroll",I),j&&te.removeEventListener("resize",I)}),(ee=J)==null||ee.disconnect(),J=null,q&&cancelAnimationFrame(G)}}const z=(M,$,I)=>{const N=new Map,B={platform:O,...I},j={...B.platform,_c:N};return r$2(M,$,{...B,platform:j})},_sfc_main$2H={mixins:[mixin_1],props:{autoclose:{type:Boolean,default:!1},clickaway:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},offset:{type:Array,default:()=>[10,0]},placement:{type:String,default:"bottom-end"}},data(){return{isOpen:!1,escBinding:null,cleanupAutoUpdater:null,portalTarget:null,provide:{popover:this.makeProvide()}}},computed:{targetClass(){return this.$vnode.data.staticClass}},methods:{computePosition(){this.$refs.trigger&&z(this.$refs.trigger.firstChild,this.$refs.popover,{placement:this.placement,middleware:[D$1({mainAxis:this.offset[0],crossAxis:this.offset[1]}),b$1(),k({padding:5})]}).then(({x:M,y:$})=>{Object.assign(this.$refs.popover.style,{transform:`translate(${Math.round(M)}px, ${Math.round($)}px)`})})},toggle(M){this.isOpen?this.close():this.open()},open(){this.disabled||(this.isOpen=!0,this.escBinding=this.$keys.bindGlobal("esc",M=>this.close()),this.$nextTick(()=>{this.cleanupAutoUpdater=P(this.$refs.trigger.firstChild,this.$refs.popover,this.computePosition),this.$refs.popover.addEventListener("transitionend",()=>{this.$emit("opened")},{once:!0})}))},clickawayClose(M){!this.clickaway||!this.isOpen||this.$refs.popover.contains(M.target)||this.$el.contains(M.target)||(this.close(),this.$emit("clicked-away",M))},close(){this.isOpen&&(this.isOpen=!1,this.$emit("closed"),this.cleanupAutoUpdater(),this.escBinding&&this.escBinding.destroy())},leave(){this.autoclose&&this.close()},makeProvide(){const M={};return Object.defineProperties(M,{vm:{get:()=>this}}),M}}};var _sfc_render$2H=function M(){var $=this,I=$._self._c;return I("div",{class:{"popover-open":$.isOpen},on:{mouseleave:$.leave}},[$.$scopedSlots.default?I("div",{ref:"trigger",attrs:{"aria-haspopup":"true","aria-expanded":$.isOpen},on:{click:$.toggle}},[$._t("trigger")],2):$._e(),I("portal",{attrs:{name:"popover","target-class":`popover-container ${$.targetClass||""}`,provide:$.provide}},[I("div",{class:`${$.isOpen?"popover-open":""}`},[$.disabled?$._e():I("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:$.clickawayClose,expression:"clickawayClose"}],ref:"popover",staticClass:"popover"},[I("div",{staticClass:"popover-content bg-white shadow-popover rounded-md"},[$._t("default",null,{close:$.close})],2)])])])],1)},_sfc_staticRenderFns$2H=[],__component__$2I=normalizeComponent$3(_sfc_main$2H,_sfc_render$2H,_sfc_staticRenderFns$2H,!1,null,null,null,null);const Popover=__component__$2I.exports,_sfc_main$2G={components:{Provider},props:{name:{type:String,required:!0},provide:{type:Object},targetClass:{type:String},disabled:{type:Boolean,default:!1}},data(){return{portal:null}},created(){this.portal=this.$portals.create(this.name)},beforeDestroy(){this.portal.destroy()}};var _sfc_render$2G=function M(){var $=this,I=$._self._c;return I("v-portal",{attrs:{name:"popover",to:$.portal.id,"target-class":$.targetClass,disabled:$.disabled}},[I("provider",{attrs:{variables:$.provide}},[$._t("default")],2)],1)},_sfc_staticRenderFns$2G=[],__component__$2H=normalizeComponent$3(_sfc_main$2G,_sfc_render$2G,_sfc_staticRenderFns$2G,!1,null,null,null,null);const Portal$1=__component__$2H.exports,_sfc_main$2F={props:{initialPermissions:Array,depth:Number},data(){return{permissions:this.initialPermissions}},computed:{direction(){return this.$config.get("direction","rtl")}}};var _sfc_render$2F=function M(){var $=this,I=$._self._c;return I("div",$._l($.permissions,function(N){return I("div",{key:N.value},[I("label",{staticClass:"flex items-center justify-between py-2 rtl:pl-4 ltr:pr-4 border-b group hover:bg-gray-100",style:$.direction==="ltr"?{paddingLeft:`${16*$.depth}px`}:{paddingRight:`${16*$.depth}px`}},[I("div",{staticClass:"flex"},[I("div",{staticClass:"leading-normal"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.checked,expression:"permission.checked"}],attrs:{type:"checkbox",name:"permissions[]"},domProps:{value:N.value,checked:Array.isArray(N.checked)?$._i(N.checked,N.value)>-1:N.checked},on:{change:function(B){var j=N.checked,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=N.value,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"checked",j.concat([Y])):K>-1&&$.$set(N,"checked",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"checked",q)}}})]),I("div",{staticClass:"rtl:pr-2 ltr:pl-2"},[$._v(" "+$._s(N.label)+" ")])]),N.description?I("div",{staticClass:"text-gray-700 text-xs opacity-0 group-hover:opacity-100",domProps:{textContent:$._s(N.description)}}):$._e()]),N.children.length?I("role-permission-tree",{attrs:{depth:$.depth+1,"initial-permissions":N.children}}):$._e()],1)}),0)},_sfc_staticRenderFns$2F=[],__component__$2G=normalizeComponent$3(_sfc_main$2F,_sfc_render$2F,_sfc_staticRenderFns$2F,!1,null,null,null,null);const PermissionTree=__component__$2G.exports;function _toConsumableArray$1(M){if(Array.isArray(M)){for(var $=0,I=Array(M.length);$<M.length;$++)I[$]=M[$];return I}else return Array.from(M)}var hasPassiveEvents=!1;if(typeof window<"u"){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting=void 0,previousBodyPosition=void 0,previousBodyPaddingRight=void 0,allowTouchMove=function M($){return locks.some(function(I){return!!(I.options.allowTouchMove&&I.options.allowTouchMove($))})},preventDefault=function M($){var I=$||window.event;return allowTouchMove(I.target)||I.touches.length>1?!0:(I.preventDefault&&I.preventDefault(),!1)},setOverflowHidden=function M($){if(previousBodyPaddingRight===void 0){var I=!!$&&$.reserveScrollBarGap===!0,N=window.innerWidth-document.documentElement.clientWidth;if(I&&N>0){var B=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=B+N+"px"}}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=function M(){previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},setPositionFixed=function M(){return window.requestAnimationFrame(function(){if(previousBodyPosition===void 0){previousBodyPosition={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var $=window,I=$.scrollY,N=$.scrollX,B=$.innerHeight;document.body.style.position="fixed",document.body.style.top=-I,document.body.style.left=-N,setTimeout(function(){return window.requestAnimationFrame(function(){var j=B-window.innerHeight;j&&I>=B&&(document.body.style.top=-(I+j))})},300)}})},restorePositionSetting=function M(){if(previousBodyPosition!==void 0){var $=-parseInt(document.body.style.top,10),I=-parseInt(document.body.style.left,10);document.body.style.position=previousBodyPosition.position,document.body.style.top=previousBodyPosition.top,document.body.style.left=previousBodyPosition.left,window.scrollTo(I,$),previousBodyPosition=void 0}},isTargetElementTotallyScrolled=function M($){return $?$.scrollHeight-$.scrollTop<=$.clientHeight:!1},handleScroll=function M($,I){var N=$.targetTouches[0].clientY-initialClientY;return allowTouchMove($.target)?!1:I&&I.scrollTop===0&&N>0||isTargetElementTotallyScrolled(I)&&N<0?preventDefault($):($.stopPropagation(),!0)},disableBodyScroll=function M($,I){if(!$){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!locks.some(function(B){return B.targetElement===$})){var N={targetElement:$,options:I||{}};locks=[].concat(_toConsumableArray$1(locks),[N]),isIosDevice?setPositionFixed():setOverflowHidden(I),isIosDevice&&($.ontouchstart=function(B){B.targetTouches.length===1&&(initialClientY=B.targetTouches[0].clientY)},$.ontouchmove=function(B){B.targetTouches.length===1&&handleScroll(B,$)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0))}},enableBodyScroll=function M($){if(!$){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}locks=locks.filter(function(I){return I.targetElement!==$}),isIosDevice&&($.ontouchstart=null,$.ontouchmove=null,documentListenerAdded&&locks.length===0&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1)),isIosDevice?restorePositionSetting():restoreOverflowSetting()};const _sfc_main$2E={props:{adaptive:{type:Boolean,default:!0},draggable:{default:!1},clickToClose:{type:Boolean,default:!1},shiftY:{type:Number,default:.1},focusTrap:{type:Boolean,default:!0},height:{default:"auto"},width:{},scrollable:{type:Boolean,default:!1}},data(){return{modal:null,name:uniqid$1()}},computed:{modalProps(){return{name:this.name,adaptive:this.adaptive,clickToClose:this.clickToClose,draggable:this.draggable,height:this.height,shiftY:this.shiftY,focusTrap:this.focusTrap,width:this.width,scrollable:this.scrollable}}},mounted(){this.$nextTick(()=>this.$modal.show(this.name)),this.scrollable||disableBodyScroll(this.$el)},beforeDestroy(){enableBodyScroll(this.$el),this.close()},methods:{modalOpened(M){this.$emit("opened")},modalClosed(M){this.close()},close(){this.$modal.hide(this.name),this.$emit("closed")}}};var _sfc_render$2E=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"modal"}},[I("v-modal",$._b({attrs:{delay:25},on:{opened:$.modalOpened,closed:$.modalClosed}},"v-modal",$.modalProps,!1),[$._t("default",null,{close:$.close})],2)],1)},_sfc_staticRenderFns$2E=[],__component__$2F=normalizeComponent$3(_sfc_main$2E,_sfc_render$2E,_sfc_staticRenderFns$2E,!1,null,null,null,null);const Modal=__component__$2F.exports,_sfc_main$2D={props:{title:{type:String},bodyText:{type:String},buttonText:{type:String,default:"Confirm"},cancellable:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{escBinding:null,enterBinding:null}},computed:{buttonClass(){return this.danger?"btn-danger":"btn-primary"}},methods:{dismiss(){this.$emit("cancel")},submit(){this.$emit("confirm")}},created(){this.escBinding=this.$keys.bind("esc",this.dismiss),this.enterBinding=this.$keys.bind("enter",this.submit)},beforeDestroy(){this.escBinding.destroy(),this.enterBinding.destroy()}};var _sfc_render$2D=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"confirmation-modal"},on:{opened:function(N){return $.$emit("opened")}}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[$.title?I("header",{staticClass:"text-lg font-semibold px-5 py-3 bg-gray-200 rounded-t-lg flex items-center justify-between border-b"},[$._v(" "+$._s($.__($.title))+" ")]):$._e(),I("div",{staticClass:"flex-1 px-5 py-6 text-gray"},[$._t("body",function(){return[$.bodyText?I("p",{domProps:{textContent:$._s($.bodyText)}}):$._t("default",function(){return[I("p",[$._v($._s($.__("Are you sure?")))])]})]})],2),I("div",{staticClass:"px-5 py-3 bg-gray-200 rounded-b-lg border-t flex items-center justify-end text-sm"},[$.cancellable?I("button",{staticClass:"text-gray hover:text-gray-900",domProps:{textContent:$._s($.__($.cancelText))},on:{click:function(N){return $.$emit("cancel")}}}):$._e(),I("button",{staticClass:"rtl:mr-4 ltr:ml-4",class:$.buttonClass,attrs:{disabled:$.disabled},domProps:{textContent:$._s($.__($.buttonText))},on:{click:function(N){return $.$emit("confirm")}}})])])])},_sfc_staticRenderFns$2D=[],__component__$2E=normalizeComponent$3(_sfc_main$2D,_sfc_render$2D,_sfc_staticRenderFns$2D,!1,null,null,null,null);const ConfirmationModal=__component__$2E.exports,_sfc_main$2C={data(){return{name:document.title.replace(` ${this.$config.get("direction","rtl")==="ltr"?"‹":"›"} Statamic`,""),currentUrl:this.$config.get("urlPath")}},computed:{favorite(){return{name:this.name,url:this.currentUrl}},persistedFavorite(){return _.find(this.$preferences.get("favorites"),M=>M.url==this.currentUrl)},isNotYetFavorited(){return this.persistedFavorite===void 0},direction(){return this.$config.get("direction","rtl")}},methods:{shown(){this.highlight()},highlight(){setTimeout(()=>this.$refs.fave.select(),50)},save(){this.saving=!0,this.$preferences.append("favorites",this.favorite).then(M=>{this.saving=!1,this.$toast.success(__("Favorite saved")),this.$refs.popper.close(),this.$events.$emit("favorites.added")}).catch(M=>{this.saving=!1,M.response?this.$toast.error(M.response.data.message):this.$toast.error(__("Unable to save favorite"))})},remove(){this.$preferences.remove("favorites",this.persistedFavorite).then(M=>{this.$toast.success(__("Favorite removed"))})},makeStartPage(){this.saving=!0,this.$preferences.set("start_page",this.currentUrl).then(M=>{this.saving=!1,this.$toast.success(__("This is now your start page.")),this.$refs.popper.close(),this.$events.$emit("start_page.saved")}).catch(M=>{this.saving=!1,M.response?this.$toast.error(M.response.data.message):this.$toast.error(__("Unable to save favorite"))})}}};var _sfc_render$2C=function M(){var $=this,I=$._self._c;return I("div",[$.isNotYetFavorited?I("popover",{ref:"popper",attrs:{placement:"bottom-end",offset:[10,28]}},[I("template",{slot:"trigger"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pin to Favorites"),expression:"__('Pin to Favorites')"}],staticClass:"h-6 w-6 block outline-none p-1 text-gray hover:text-gray-800",attrs:{slot:"reference","aria-label":$.__("Pin to Favorites")},on:{click:$.shown},slot:"reference"},[I("svg-icon",{attrs:{name:"light/pin"}})],1)]),I("div",{staticClass:"p-4 pb-2"},[I("h6",{staticClass:"mb-2"},[$._v($._s($.__("Pin to Favorites")))]),I("div",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.name,expression:"name"}],ref:"fave",staticClass:"input-text w-auto",attrs:{type:"text"},domProps:{value:$.name},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.save.apply(null,arguments)},input:function(N){N.target.composing||($.name=N.target.value)}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",on:{click:$.save}},[$._v($._s($.__("Save")))])]),I("button",{staticClass:"mt-2 text-xs text-blue outline-none hover:text-blue-800",on:{click:$.makeStartPage}},[$._v($._s($.__("Set as start page"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})])])],2):I("div",[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Unpin from Favorites"),expression:"__('Unpin from Favorites')"}],staticClass:"h-6 w-6 block outline-none p-1 text-gray hover:text-gray-800",attrs:{"aria-label":$.__("Unpin from Favorites")},on:{click:$.remove}},[I("svg-icon",{staticClass:"text-green-600",attrs:{name:"light/pin"}})],1)])],1)},_sfc_staticRenderFns$2C=[],__component__$2D=normalizeComponent$3(_sfc_main$2C,_sfc_render$2C,_sfc_staticRenderFns$2C,!1,null,null,null,null);const FavoriteCreator=__component__$2D.exports,_sfc_main$2B={mixins:[mixin_1],data(){return{open:!1,keybinding:null}},watch:{open(M){M?this.keybinding=this.$keys.bind("esc",()=>this.open=!1):this.keybinding.destroy()}},methods:{close(){this.open=!1}},created(){this.$keys.bind("?",()=>this.open=!this.open),this.$events.$on("keyboard-shortcuts.open",()=>{this.open=!0})}};var _sfc_render$2B=function M(){var $=this,I=$._self._c;return $.open?I("modal",{attrs:{name:"keyboard-shortcuts",width:"380",height:"auto",adaptive:!0,"click-to-close":""},on:{closed:function(N){$.open=!1}}},[I("div",{staticClass:"-max-h-screen-px"},[I("h1",{staticClass:"p-4 bg-gray-200 border-b text-center"},[$._v(" "+$._s($.__("Keyboard Shortcuts"))+" ")]),I("div",{staticClass:"p-6 relative"},[I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("shift")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("?")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Show Keyboard Shortcuts")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("/")]),$._v(" "),I("span",{staticClass:"shortcut-joiner"},[$._v("or")]),I("span",{staticClass:"shortcut"},[$._v("ctrl")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("f")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Focus Search")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("return")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Save")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("s")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Quick Save")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("\\")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Toggle Sidebar")))])]),I("div",{staticClass:"shortcut-pair mb-0"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("esc")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Close Modal")))])])])])]):$._e()},_sfc_staticRenderFns$2B=[],__component__$2C=normalizeComponent$3(_sfc_main$2B,_sfc_render$2B,_sfc_staticRenderFns$2B,!1,null,null,null,null);const KeyboardShortcutsModal=__component__$2C.exports,_sfc_main$2A={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{deleting:!1,redirectFromServer:null}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Delete :resource",{resource:__(this.title)})},modalBody(){return __("Are you sure you want to delete this item?")},deleteUrl(){let M=data_get(this.resource,"delete_url",this.route);return M||console.error("ResourceDeleter cannot find delete url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.deleting=!0},confirmed(){this.$axios.delete(this.deleteUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong"))})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Deleted")),this.$emit("deleted")},cancel(){this.deleting=!1}}};var _sfc_render$2A=function M(){var $=this,I=$._self._c;return $.deleting?I("confirmation-modal",{attrs:{title:$.modalTitle,bodyText:$.modalBody,buttonText:$.__("Delete"),danger:!0},on:{confirm:$.confirmed,cancel:$.cancel}}):$._e()},_sfc_staticRenderFns$2A=[],__component__$2B=normalizeComponent$3(_sfc_main$2A,_sfc_render$2A,_sfc_staticRenderFns$2A,!1,null,null,null,null);const ResourceDeleter=__component__$2B.exports,_sfc_main$2z={props:{name:{type:String,required:!0},beforeClose:{type:Function,default:()=>!0},narrow:{type:Boolean},half:{type:Boolean},full:{type:Boolean}},data(){return{stack:null,visible:!1,isHovering:!1,escBinding:null}},computed:{portal(){return this.stack?this.stack.id:null},depth(){return this.stack.data.depth},id(){return`${this.name}-${this._uid}`},offset(){return this.isTopStack&&this.narrow?window.innerWidth-400:this.isTopStack&&this.half?window.innerWidth/2:Math.max(400/(this.$stacks.count()+1),80)},leftOffset(){return this.full?0:this.isTopStack&&(this.narrow||this.half)?this.offset:this.offset*this.depth},hasChild(){return this.$stacks.count()>this.depth},isTopStack(){return this.$stacks.count()===this.depth},direction(){return this.$config.get("direction","rtl")}},created(){this.stack=this.$stacks.add(this),this.$events.$on(`stacks.${this.depth}.hit-area-mouseenter`,()=>this.isHovering=!0),this.$events.$on(`stacks.${this.depth}.hit-area-mouseout`,()=>this.isHovering=!1),this.escBinding=this.$keys.bindGlobal("esc",this.close)},destroyed(){this.stack.destroy(),this.$events.$off(`stacks.${this.depth}.hit-area-mouseenter`),this.$events.$off(`stacks.${this.depth}.hit-area-mouseout`),this.escBinding.destroy()},methods:{clickedHitArea(){this.visible&&(this.$events.$emit("stacks.hit-area-clicked",this.depth-1),this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseout`))},mouseEnterHitArea(){this.visible&&this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseenter`)},mouseOutHitArea(){this.visible&&this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseout`)},runCloseCallback(){return this.beforeClose()?(this.close(),!0):!1},close(){this.visible=!1,this.$wait(300).then(()=>{this.$emit("closed")})}},mounted(){this.visible=!0}};var _sfc_render$2z=function M(){var $=this,I=$._self._c;return I("v-portal",{attrs:{to:$.portal,order:$.depth,"target-class":"stack"}},[I("div",{staticClass:"stack-container",class:{"stack-is-current":$.isTopStack,hovering:$.isHovering,"p-2 shadow-lg":$.full},style:$.direction==="ltr"?{left:`${$.leftOffset}px`}:{right:`${$.leftOffset}px`}},[I("transition",{attrs:{name:"stack-overlay-fade"}},[$.visible?I("div",{staticClass:"stack-overlay",style:$.direction==="ltr"?{left:`-${$.leftOffset}px`}:{right:`-${$.leftOffset}px`}}):$._e()]),I("div",{staticClass:"stack-hit-area",style:$.direction==="ltr"?{left:`-${$.offset}px`}:{right:`-${$.offset}px`},on:{click:$.clickedHitArea,mouseenter:$.mouseEnterHitArea,mouseout:$.mouseOutHitArea}}),I("transition",{attrs:{name:"stack-slide"}},[$.visible?I("div",{staticClass:"stack-content"},[$._t("default",null,{depth:$.depth,close:$.close})],2):$._e()])],1)])},_sfc_staticRenderFns$2z=[],__component__$2A=normalizeComponent$3(_sfc_main$2z,_sfc_render$2z,_sfc_staticRenderFns$2z,!1,null,null,null,null);const Stack=__component__$2A.exports,_sfc_main$2y={props:["depth"],data(){return{show:!1}}};var _sfc_render$2y=function M(){var $=this,I=$._self._c;return I("div",[I("small",{staticClass:"text-gray"},[$._v("Collections > Blog >")]),I("h1",{staticClass:"mt-2 mb-6"},[$._v("Fire!")]),$._v(" "+$._s($.depth===0?"Base":`Stack ${$.depth}`)),I("br"),I("br"),I("button",{staticClass:"btn",on:{click:function(N){$.show=!0}}},[$._v("Open Stack "+$._s($.depth+1))]),$.show?I("stack",{attrs:{name:"test"},on:{closed:function(N){$.show=!1}},scopedSlots:$._u([{key:"default",fn:function({depth:N}){return I("div",{staticClass:"p-8"},[I("stack-test",{attrs:{depth:N}})],1)}}],null,!1,667972905)}):$._e()],1)},_sfc_staticRenderFns$2y=[],__component__$2z=normalizeComponent$3(_sfc_main$2y,_sfc_render$2y,_sfc_staticRenderFns$2y,!1,null,null,null,null);const StackTest=__component__$2z.exports,_sfc_main$2x={props:{text:{type:String,required:!0},copyable:{type:Boolean,default:!1}},computed:{canCopy(){return this.copyable&&window.isSecureContext}},methods:{async copy(){await navigator.clipboard.writeText(this.text),Statamic.$toast.success(__("Copied to clipboard"))}}};var _sfc_render$2x=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center bg-gray-800 py-3 px-4 rounded-md"},[I("pre",{staticClass:"flex-1 p-0 m-0 leading-6"},[I("code",{staticClass:"bg-transparent p-0 text-gray-400 leading-none",domProps:{textContent:$._s($.text)}})]),$.canCopy?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Copy"),expression:"__('Copy')"}],staticClass:"flex",on:{click:$.copy}},[I("svg-icon",{staticClass:"w-4 h-4 text-white",attrs:{name:"light/entries"}})],1):$._e()])])},_sfc_staticRenderFns$2x=[],__component__$2y=normalizeComponent$3(_sfc_main$2x,_sfc_render$2x,_sfc_staticRenderFns$2x,!1,null,null,null,null);const CodeBlock$1=__component__$2y.exports;Vue$3.component("v-select",vSelect);Vue$3.component("asset-manager",AssetManager);Vue$3.component("asset-browser",Browser);Vue$3.component("updates-badge",UpdatesBadge);Vue$3.component("publish-container",Container);Vue$3.component("publish-form",PublishForm);Vue$3.component("publish-fields",Fields$1);Vue$3.component("publish-fields-container",FieldsContainer);Vue$3.component("publish-field",PublishField);Vue$3.component("publish-field-meta",FieldMeta);Vue$3.component("configure-tabs",ConfigureTabs);Vue$3.component("publish-tabs",PublishTabs);Vue$3.component("publish-sections",PublishSections);Vue$3.component("publish-validation-errors",PublishValidationErrors);Vue$3.component("form-group",FormGroup);Vue$3.component("live-preview",LivePreview);Vue$3.component("live-preview-popout",Popout);Vue$3.component("EntryPublishForm",EntryPublishForm);Vue$3.component("TermPublishForm",TermPublishForm);Vue$3.component("UserPublishForm",UserPublishForm);Vue$3.component("data-list",DataList);Vue$3.component("data-list-table",Table$1);Vue$3.component("data-list-search",Search);Vue$3.component("data-list-bulk-actions",BulkActions);Vue$3.component("data-list-inline-actions",InlineActions);Vue$3.component("data-list-column-picker",ColumnPicker);Vue$3.component("data-list-toggle-all",ToggleAll);Vue$3.component("data-list-pagination",Pagination);Vue$3.component("data-list-filters",Filters);Vue$3.component("data-list-filter-presets",FilterPresets);Vue$3.component("entry-list",EntryListing);Vue$3.component("collection-list",CollectionListing);Vue$3.component("taxonomy-list",TaxonomyListing);Vue$3.component("term-list",TermListing);Vue$3.component("asset-container-list",AssetContainerList);Vue$3.component("addon-list",AddonList);Vue$3.component("addon-details",AddonDetails);Vue$3.component("collection-widget",CollectionWidget);Vue$3.component("svg-icon",SvgIcon);Vue$3.component("file-icon",FileIcon);Vue$3.component("loading-graphic",LoadingGraphic);Vue$3.component("dropdown-list",DropdownList);Vue$3.component("dropdown-item",DropdownItem);Vue$3.component("validation-errors",ValidationErrors);Vue$3.component("slugify",Slugify);Vue$3.component("element-container",ElementContainer);Vue$3.component("avatar",Avatar);Vue$3.component("breadcrumb",Breadcrumb);Vue$3.component("breadcrumbs",Breadcrumbs);Vue$3.component("create-entry-button",CreateEntryButton);Vue$3.component("popover",Popover);Vue$3.component("portal",Portal$1);Vue$3.component("code-block",CodeBlock$1);Vue$3.component("role-permission-tree",PermissionTree);Vue$3.component("modal",Modal);Vue$3.component("confirmation-modal",ConfirmationModal);Vue$3.component("favorite-creator",FavoriteCreator);Vue$3.component("keyboard-shortcuts-modal",KeyboardShortcutsModal);Vue$3.component("resource-deleter",ResourceDeleter);Vue$3.component("stack",Stack);Vue$3.component("stack-test",StackTest);const _sfc_main$2w={mixins:[Fieldtype],computed:{isRevealed(){return this.value},isToggleMode(){return data_get(this.config,"mode")==="toggle"},fieldPath(){return this.fieldPathPrefix||this.handle}},inject:["storeName"],mounted(){this.$store.commit(`publish/${this.storeName}/setRevealerField`,this.fieldPath)},beforeDestroy(){this.$store.commit(`publish/${this.storeName}/unsetRevealerField`,this.fieldPath)},watch:{fieldPath(M,$){this.$store.commit(`publish/${this.storeName}/unsetRevealerField`,$),this.$nextTick(()=>{this.$store.commit(`publish/${this.storeName}/setRevealerField`,M)})}},methods:{buttonReveal(){this.isReadOnly||(this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:this.fieldPath,hidden:"force",omitValue:!0}),this.update(!0))}}};var _sfc_render$2w=function M(){var $=this,I=$._self._c;return I("div",[$.isToggleMode?[I("div",{staticClass:"toggle-fieldtype-wrapper"},[I("toggle-input",{attrs:{value:$.isRevealed,"read-only":$.isReadOnly},on:{input:$.update}}),$.config.input_label?I("label",{staticClass:"rtl:mr-2 ltr:ml-2 font-normal"},[$._v($._s($.__($.config.input_label)))]):$._e()],1)]:[I("button",{staticClass:"btn",attrs:{disabled:$.isReadOnly,"v-tooltip":$.__($.config.instructions)},domProps:{textContent:$._s($.config.input_label||$.__("Show Fields"))},on:{click:$.buttonReveal}})]],2)},_sfc_staticRenderFns$2w=[],__component__$2x=normalizeComponent$3(_sfc_main$2w,_sfc_render$2w,_sfc_staticRenderFns$2w,!1,null,null,null,null);const RevealerFieldtype=__component__$2x.exports,_sfc_main$2v={props:["selected","translations"],data:function(){return{options:[{text:"Live",value:"live"},{text:"Hidden",value:"hidden"},{text:"Draft",value:"draft"}]}}};var _sfc_render$2v=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"select select-full",attrs:{"data-content":$.selected[0].toUpperCase()+$.selected.slice(1)}},[I("span",{class:`status status-${$.selected}`}),I("select",{directives:[{name:"model",rawName:"v-model",value:$.selected,expression:"selected"}],attrs:{name:"status",options:"options"},on:{change:function(N){var B=Array.prototype.filter.call(N.target.options,function(j){return j.selected}).map(function(j){var U="_value"in j?j._value:j.value;return U});$.selected=N.target.multiple?B:B[0]}}})])},_sfc_staticRenderFns$2v=[],__component__$2w=normalizeComponent$3(_sfc_main$2v,_sfc_render$2v,_sfc_staticRenderFns$2v,!1,null,null,null,null);const StatusFieldtype=__component__$2w.exports,PositionsSelectOptions={methods:{positionOptions(M,$,{width:I}){M.style.width=I;function N(){z($.$refs.toggle,M,{placement:"bottom",middleware:[D$1({mainAxis:0,crossAxis:-1}),b$1()]}).then(({x:j,y:U})=>{Object.assign(M.style,{left:`${Math.round(j)}px`,top:`${Math.round(U)}px`})})}const B=P($.$refs.toggle,M,N);this.$once("hook:destroyed",B)}}},_sfc_main$2u={mixins:[Fieldtype,PositionsSelectOptions],data:function(){return{loading:!0,options:[]}},mounted(){this.$axios.get(cp_url("api/templates")).then(M=>{var $=M.data;this.config.hide_partials&&($=_.reject($,N=>N.startsWith("partials/")||N.match(/(^_.*|\/_.*|\._.*)/g))),$=_.reject($,N=>N.startsWith("errors/")),this.config.folder&&($=_.filter($,N=>N.startsWith(`${this.config.folder}/`)));var I=[];this.config.blueprint&&I.push({label:__("Map to Blueprint"),value:"@blueprint"}),_.each($,N=>{I.push({label:this.config.folder?N.substring(this.config.folder.length+1):N,value:N})}),this.options=I,this.loading=!1})}};var _sfc_render$2u=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"template-fieldtype-container"},[I("v-select",{ref:"input",attrs:{name:$.name,"append-to-body":"","calculate-position":$.positionOptions,clearable:$.config.clearable,placeholder:$.__($.config.placeholder),disabled:$.isReadOnly,options:$.options,reduce:N=>N.value,searchable:!0,"push-tags":!1,multiple:!1,value:$.value},on:{input:$.update},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No templates to choose from."))}})]},proxy:!0}])})],1)},_sfc_staticRenderFns$2u=[],__component__$2v=normalizeComponent$3(_sfc_main$2u,_sfc_render$2u,_sfc_staticRenderFns$2u,!1,null,null,null,null);const TemplateFieldtype=__component__$2v.exports,_sfc_main$2t={props:{name:{},disabled:{default:!1},options:{default:[]},placeholder:{required:!1,default:()=>__("Choose...")},value:{},isReadOnly:{type:Boolean},resetOnChange:{default:!1}},data(){return{display:!0}},methods:{isOptionSelected(M){return this.placeholder===!1&&this.value===void 0?M.value==this.options[0].value:M.value==this.value},change(M){this.resetOnChange&&this.reset(),this.$emit("input",M.target.value)},reset(){this.display=!1,this.$nextTick(()=>this.display=!0)}}};var _sfc_render$2t=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"select-input-container"},[$.display?I("select",{staticClass:"select-input",attrs:{name:$.name,disabled:$.isReadOnly},domProps:{value:$.value},on:{change:$.change,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}},[$.placeholder?I("option",{attrs:{value:"",disabled:""},domProps:{selected:$.value===null,textContent:$._s($.__($.placeholder))}}):$._e(),$._l($.options,function(N){return I("option",{key:N.value,domProps:{value:N.value,selected:$.isOptionSelected(N),textContent:$._s($.__(N.label))}})})],2):$._e(),I("div",{staticClass:"select-input-toggle"},[I("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[I("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})])])])},_sfc_staticRenderFns$2t=[],__component__$2u=normalizeComponent$3(_sfc_main$2t,_sfc_render$2t,_sfc_staticRenderFns$2t,!1,null,null,null,null);const Select=__component__$2u.exports,_sfc_main$2s={props:{limit:{type:Number,required:!1}},computed:{limitReached(){return this.currentLength>this.limit},currentLength(){return this.value?this.value.length:0},limitIndicatorColor(){return this.limitReached?"text-red-500":"text-gray"}}},_sfc_render$2s=null,_sfc_staticRenderFns$2s=null;var __component__$2t=normalizeComponent$3(_sfc_main$2s,_sfc_render$2s,_sfc_staticRenderFns$2s,!1,null,null,null,null);const LengthLimiter=__component__$2t.exports,_sfc_main$2r={mixins:[LengthLimiter],props:{name:{},disabled:{default:!1},classes:{default:null},id:{default:null},isReadOnly:{type:Boolean,default:!1},placeholder:{required:!1},type:{default:"text"},step:{},value:{required:!0},prepend:{default:null},append:{default:null},focus:{type:Boolean},autocomplete:{default:null},autoselect:{type:Boolean},min:{type:Number,default:void 0},direction:{type:String}},mounted(){this.autoselect&&this.$refs.input.select(),this.focus&&this.$refs.input.focus()}};var _sfc_render$2r=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[$.prepend?$._t("prepend",function(){return[I("div",{staticClass:"input-group-prepend"},[$._v(" "+$._s($.__($.prepend))+" ")])]}):$._e(),I("input",{ref:"input",staticClass:"input-text",class:$.classes,attrs:{id:$.id,name:$.name,type:$.type,step:$.step,disabled:$.disabled,readonly:$.isReadOnly,placeholder:$.__($.placeholder),autocomplete:$.autocomplete,autofocus:$.focus,min:$.min,dir:$.direction},domProps:{value:$.value},on:{input:function(N){return $.$emit("input",N.target.value)},keydown:function(N){return $.$emit("keydown",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),$.append?$._t("append",function(){return[I("div",{staticClass:"input-group-append"},[$._v(" "+$._s($.__($.append))+" ")])]}):$._e()],2),$.limit?I("div",{staticClass:"text-xs rtl:mr-2 ltr:ml-2",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.limit)}})]):$._e()])},_sfc_staticRenderFns$2r=[],__component__$2s=normalizeComponent$3(_sfc_main$2r,_sfc_render$2r,_sfc_staticRenderFns$2r,!1,null,null,null,null);const Text$1=__component__$2s.exports;var autosize$1={exports:{}};/*!
- Autosize 3.0.21
- license: MIT
- http://www.jacklmoore.com/autosize
- */(function(M,$){(function(I,N){N($,M)})(commonjsGlobal,function(I,N){var B=typeof Map=="function"?new Map:function(){var G=[],J=[];return{has:function(ee){return G.indexOf(ee)>-1},get:function(ee){return J[G.indexOf(ee)]},set:function(ee,te){G.indexOf(ee)===-1&&(G.push(ee),J.push(te))},delete:function(ee){var te=G.indexOf(ee);te>-1&&(G.splice(te,1),J.splice(te,1))}}}(),j=function(J){return new Event(J,{bubbles:!0})};try{new Event("test")}catch{j=function(J){var Z=document.createEvent("Event");return Z.initEvent(J,!0,!1),Z}}function U(G){if(!G||!G.nodeName||G.nodeName!=="TEXTAREA"||B.has(G))return;var J=null,Z=G.clientWidth,ee=null;function te(){var _e=window.getComputedStyle(G,null);_e.resize==="vertical"?G.style.resize="none":_e.resize==="both"&&(G.style.resize="horizontal"),_e.boxSizing==="content-box"?J=-(parseFloat(_e.paddingTop)+parseFloat(_e.paddingBottom)):J=parseFloat(_e.borderTopWidth)+parseFloat(_e.borderBottomWidth),isNaN(J)&&(J=0),le()}function re(_e){{var fe=G.style.width;G.style.width="0px",G.offsetWidth,G.style.width=fe}G.style.overflowY=_e}function se(_e){for(var fe=[];_e&&_e.parentNode&&_e.parentNode instanceof Element;)_e.parentNode.scrollTop&&fe.push({node:_e.parentNode,scrollTop:_e.parentNode.scrollTop}),_e=_e.parentNode;return fe}function ne(){var _e=G.style.height,fe=se(G),me=document.documentElement&&document.documentElement.scrollTop;G.style.height="auto";var ve=G.scrollHeight+J;if(G.scrollHeight===0){G.style.height=_e;return}G.style.height=ve+"px",Z=G.clientWidth,fe.forEach(function(xe){xe.node.scrollTop=xe.scrollTop}),me&&(document.documentElement.scrollTop=me)}function le(){ne();var _e=Math.round(parseFloat(G.style.height)),fe=window.getComputedStyle(G,null),me=fe.boxSizing==="content-box"?Math.round(parseFloat(fe.height)):G.offsetHeight;if(me!==_e?fe.overflowY==="hidden"&&(re("scroll"),ne(),me=fe.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(G,null).height)):G.offsetHeight):fe.overflowY!=="hidden"&&(re("hidden"),ne(),me=fe.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(G,null).height)):G.offsetHeight),ee!==me){ee=me;var ve=j("autosize:resized");try{G.dispatchEvent(ve)}catch{}}}var ge=function(){G.clientWidth!==Z&&le()},ue=(function(_e){window.removeEventListener("resize",ge,!1),G.removeEventListener("input",le,!1),G.removeEventListener("keyup",le,!1),G.removeEventListener("autosize:destroy",ue,!1),G.removeEventListener("autosize:update",le,!1),Object.keys(_e).forEach(function(fe){G.style[fe]=_e[fe]}),B.delete(G)}).bind(G,{height:G.style.height,resize:G.style.resize,overflowY:G.style.overflowY,overflowX:G.style.overflowX,wordWrap:G.style.wordWrap});G.addEventListener("autosize:destroy",ue,!1),"onpropertychange"in G&&"oninput"in G&&G.addEventListener("keyup",le,!1),window.addEventListener("resize",ge,!1),G.addEventListener("input",le,!1),G.addEventListener("autosize:update",le,!1),G.style.overflowX="hidden",G.style.wordWrap="break-word",B.set(G,{destroy:ue,update:le}),te()}function q(G){var J=B.get(G);J&&J.destroy()}function Y(G){var J=B.get(G);J&&J.update()}var K=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(K=function(G){return G},K.destroy=function(G){return G},K.update=function(G){return G}):(K=function(G,J){return G&&Array.prototype.forEach.call(G.length?G:[G],function(Z){return U(Z)}),G},K.destroy=function(G){return G&&Array.prototype.forEach.call(G.length?G:[G],q),G},K.update=function(G){return G&&Array.prototype.forEach.call(G.length?G:[G],Y),G}),N.exports=K})})(autosize$1,autosize$1.exports);var autosizeExports=autosize$1.exports;const autosize=getDefaultExportFromCjs(autosizeExports),_sfc_main$2q={mixins:[LengthLimiter],props:{disabled:{default:!1},isReadOnly:{type:Boolean,default:!1},placeholder:{required:!1},value:{required:!0},id:{default:null},focus:{type:Boolean,default:!1}},mounted(){autosize(this.$refs.textarea),this.focus&&this.$refs.textarea.focus(),setTimeout(()=>{this.updateSize()},1),this.$events.$on("tab-switched",this.updateSize)},beforeDestroy(){autosize.destroy(this.$refs.textarea)},methods:{updateSize(){this.$nextTick(function(){autosize.update(this.$refs.textarea)})}}};var _sfc_render$2q=function M(){var $=this,I=$._self._c;return I("div",[I("textarea",{ref:"textarea",staticClass:"input-text",attrs:{id:$.id,disabled:$.disabled,readonly:$.isReadOnly,placeholder:$.placeholder,autofocus:$.focus},domProps:{value:$.value},on:{input:function(N){return $.$emit("input",N.target.value)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),$._v(" "),$.limit?I("div",{staticClass:"rtl:text-left ltr:text-right text-xs",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.limit)}})]):$._e()])},_sfc_staticRenderFns$2q=[],__component__$2r=normalizeComponent$3(_sfc_main$2q,_sfc_render$2q,_sfc_staticRenderFns$2q,!1,null,null,null,null);const Textarea=__component__$2r.exports,_sfc_main$2p={props:{value:{type:Boolean},readOnly:{type:Boolean,default:()=>!1}},computed:{stateLiteral(){return this.value?"true":"false"}},methods:{toggle(){this.readOnly||this.$emit("input",!this.value)}}};var _sfc_render$2p=function M(){var $=this,I=$._self._c;return I("button",{staticClass:"toggle-container",class:{on:$.value,"cursor-not-allowed read-only":$.readOnly},attrs:{type:"button","aria-pressed":$.stateLiteral,"aria-label":$.__("Toggle Button")},on:{click:$.toggle}},[I("div",{staticClass:"toggle-slider"},[I("div",{ref:"knob",staticClass:"toggle-knob",attrs:{tabindex:"0"},on:{keyup:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"space",32,N.key,[" ","Spacebar"])&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.toggle.apply(null,arguments))}}})])])},_sfc_staticRenderFns$2p=[],__component__$2q=normalizeComponent$3(_sfc_main$2p,_sfc_render$2p,_sfc_staticRenderFns$2p,!1,null,null,null,null);const Toggle=__component__$2q.exports,_sfc_main$2o={mixins:[InlinePublishForm],props:{item:Object},data(){return{creating:!1,method:"patch",action:"update",title:this.item.title,itemUrl:this.item.edit_url}},methods:{saved(M){this.$emit("updated",M.data.data)}}},_sfc_render$2o=null,_sfc_staticRenderFns$2o=null;var __component__$2p=normalizeComponent$3(_sfc_main$2o,_sfc_render$2o,_sfc_staticRenderFns$2o,!1,null,null,null,null);const InlineEditForm=__component__$2p.exports,_sfc_main$2n={components:{InlineEditForm},inject:["storeName"],props:{item:Object,config:Object,statusIcon:Boolean,editable:Boolean,sortable:Boolean,readOnly:Boolean,formComponent:String,formComponentProps:Object},data(){return{isEditing:!1}},methods:{edit(){if(this.editable&&!this.item.invalid){if(this.item.reference&&Object.entries(this.$store.state.publish).find(([M,$])=>$.reference===this.item.reference)){this.$toast.error(__("You're already editing this item."));return}this.isEditing=!0}},itemUpdated(M){this.item.title=M.title,this.item.published=M.published,this.item.private=M.private,this.item.status=M.status,this.$events.$emit(`live-preview.${this.storeName}.refresh`)}}};var _sfc_render$2n=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"item select-none",class:{invalid:$.item.invalid}},[$.sortable?I("div",{staticClass:"item-move"},[$._v(" ")]):$._e(),I("div",{staticClass:"item-inner"},[$.statusIcon?I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2 hidden@sm:block",class:$.item.status}):$._e(),$.item.invalid?I("div",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("An item with this ID could not be found"),expression:"__('An item with this ID could not be found')",modifiers:{top:!0}}],domProps:{textContent:$._s($.__($.item.title))}}):$._e(),!$.item.invalid&&$.editable?I("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.item.title,expression:"item.title"}],staticClass:"truncate",attrs:{href:$.item.edit_url},domProps:{textContent:$._s($.__($.item.title))},on:{click:function(N){return N.preventDefault(),$.edit.apply(null,arguments)}}}):$._e(),!$.item.invalid&&!$.editable?I("div",{domProps:{textContent:$._s($.__($.item.title))}}):$._e(),$.isEditing?I("inline-edit-form",{attrs:{item:$.item,component:$.formComponent,"component-props":$.formComponentProps},on:{updated:$.itemUpdated,closed:function(N){$.isEditing=!1}}}):$._e(),I("div",{staticClass:"flex items-center flex-1 justify-end"},[$.item.collection?I("div",{staticClass:"text-4xs text-gray-600 uppercase whitespace-nowrap rtl:ml-2 ltr:mr-2 hidden @sm:block",domProps:{textContent:$._s($.__($.item.collection.title))}}):$._e(),$.readOnly?$._e():I("div",{staticClass:"flex items-center"},[I("dropdown-list",[$.editable?I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:$.edit}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Unlink")},on:{click:function(N){return $.$emit("removed")}}})],1)],1)])],1)])},_sfc_staticRenderFns$2n=[],__component__$2o=normalizeComponent$3(_sfc_main$2n,_sfc_render$2n,_sfc_staticRenderFns$2n,!1,null,null,null,null);const RelatedItem=__component__$2o.exports;var regeneratorRuntime$1={exports:{}},_typeof$1={exports:{}};(function(M){function $(I){"@babel/helpers - typeof";return M.exports=$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},M.exports.__esModule=!0,M.exports.default=M.exports,$(I)}M.exports=$,M.exports.__esModule=!0,M.exports.default=M.exports})(_typeof$1);var _typeofExports=_typeof$1.exports;(function(M){var $=_typeofExports.default;function I(){M.exports=I=function(){return N},M.exports.__esModule=!0,M.exports.default=M.exports;var N={},B=Object.prototype,j=B.hasOwnProperty,U=Object.defineProperty||function(ke,Oe,Me){ke[Oe]=Me.value},q=typeof Symbol=="function"?Symbol:{},Y=q.iterator||"@@iterator",K=q.asyncIterator||"@@asyncIterator",G=q.toStringTag||"@@toStringTag";function J(ke,Oe,Me){return Object.defineProperty(ke,Oe,{value:Me,enumerable:!0,configurable:!0,writable:!0}),ke[Oe]}try{J({},"")}catch{J=function(Me,ze,Fe){return Me[ze]=Fe}}function Z(ke,Oe,Me,ze){var Fe=Oe&&Oe.prototype instanceof re?Oe:re,Ze=Object.create(Fe.prototype),lt=new be(ze||[]);return U(Ze,"_invoke",{value:ve(ke,Me,lt)}),Ze}function ee(ke,Oe,Me){try{return{type:"normal",arg:ke.call(Oe,Me)}}catch(ze){return{type:"throw",arg:ze}}}N.wrap=Z;var te={};function re(){}function se(){}function ne(){}var le={};J(le,Y,function(){return this});var ge=Object.getPrototypeOf,ue=ge&&ge(ge(we([])));ue&&ue!==B&&j.call(ue,Y)&&(le=ue);var _e=ne.prototype=re.prototype=Object.create(le);function fe(ke){["next","throw","return"].forEach(function(Oe){J(ke,Oe,function(Me){return this._invoke(Oe,Me)})})}function me(ke,Oe){function Me(Fe,Ze,lt,qe){var Ve=ee(ke[Fe],ke,Ze);if(Ve.type!=="throw"){var At=Ve.arg,Nt=At.value;return Nt&&$(Nt)=="object"&&j.call(Nt,"__await")?Oe.resolve(Nt.__await).then(function(zt){Me("next",zt,lt,qe)},function(zt){Me("throw",zt,lt,qe)}):Oe.resolve(Nt).then(function(zt){At.value=zt,lt(At)},function(zt){return Me("throw",zt,lt,qe)})}qe(Ve.arg)}var ze;U(this,"_invoke",{value:function(Ze,lt){function qe(){return new Oe(function(Ve,At){Me(Ze,lt,Ve,At)})}return ze=ze?ze.then(qe,qe):qe()}})}function ve(ke,Oe,Me){var ze="suspendedStart";return function(Fe,Ze){if(ze==="executing")throw new Error("Generator is already running");if(ze==="completed"){if(Fe==="throw")throw Ze;return Ae()}for(Me.method=Fe,Me.arg=Ze;;){var lt=Me.delegate;if(lt){var qe=xe(lt,Me);if(qe){if(qe===te)continue;return qe}}if(Me.method==="next")Me.sent=Me._sent=Me.arg;else if(Me.method==="throw"){if(ze==="suspendedStart")throw ze="completed",Me.arg;Me.dispatchException(Me.arg)}else Me.method==="return"&&Me.abrupt("return",Me.arg);ze="executing";var Ve=ee(ke,Oe,Me);if(Ve.type==="normal"){if(ze=Me.done?"completed":"suspendedYield",Ve.arg===te)continue;return{value:Ve.arg,done:Me.done}}Ve.type==="throw"&&(ze="completed",Me.method="throw",Me.arg=Ve.arg)}}}function xe(ke,Oe){var Me=Oe.method,ze=ke.iterator[Me];if(ze===void 0)return Oe.delegate=null,Me==="throw"&&ke.iterator.return&&(Oe.method="return",Oe.arg=void 0,xe(ke,Oe),Oe.method==="throw")||Me!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+Me+"' method")),te;var Fe=ee(ze,ke.iterator,Oe.arg);if(Fe.type==="throw")return Oe.method="throw",Oe.arg=Fe.arg,Oe.delegate=null,te;var Ze=Fe.arg;return Ze?Ze.done?(Oe[ke.resultName]=Ze.value,Oe.next=ke.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,te):Ze:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,te)}function oe(ke){var Oe={tryLoc:ke[0]};1 in ke&&(Oe.catchLoc=ke[1]),2 in ke&&(Oe.finallyLoc=ke[2],Oe.afterLoc=ke[3]),this.tryEntries.push(Oe)}function ye(ke){var Oe=ke.completion||{};Oe.type="normal",delete Oe.arg,ke.completion=Oe}function be(ke){this.tryEntries=[{tryLoc:"root"}],ke.forEach(oe,this),this.reset(!0)}function we(ke){if(ke){var Oe=ke[Y];if(Oe)return Oe.call(ke);if(typeof ke.next=="function")return ke;if(!isNaN(ke.length)){var Me=-1,ze=function Fe(){for(;++Me<ke.length;)if(j.call(ke,Me))return Fe.value=ke[Me],Fe.done=!1,Fe;return Fe.value=void 0,Fe.done=!0,Fe};return ze.next=ze}}return{next:Ae}}function Ae(){return{value:void 0,done:!0}}return se.prototype=ne,U(_e,"constructor",{value:ne,configurable:!0}),U(ne,"constructor",{value:se,configurable:!0}),se.displayName=J(ne,G,"GeneratorFunction"),N.isGeneratorFunction=function(ke){var Oe=typeof ke=="function"&&ke.constructor;return!!Oe&&(Oe===se||(Oe.displayName||Oe.name)==="GeneratorFunction")},N.mark=function(ke){return Object.setPrototypeOf?Object.setPrototypeOf(ke,ne):(ke.__proto__=ne,J(ke,G,"GeneratorFunction")),ke.prototype=Object.create(_e),ke},N.awrap=function(ke){return{__await:ke}},fe(me.prototype),J(me.prototype,K,function(){return this}),N.AsyncIterator=me,N.async=function(ke,Oe,Me,ze,Fe){Fe===void 0&&(Fe=Promise);var Ze=new me(Z(ke,Oe,Me,ze),Fe);return N.isGeneratorFunction(Oe)?Ze:Ze.next().then(function(lt){return lt.done?lt.value:Ze.next()})},fe(_e),J(_e,G,"Generator"),J(_e,Y,function(){return this}),J(_e,"toString",function(){return"[object Generator]"}),N.keys=function(ke){var Oe=Object(ke),Me=[];for(var ze in Oe)Me.push(ze);return Me.reverse(),function Fe(){for(;Me.length;){var Ze=Me.pop();if(Ze in Oe)return Fe.value=Ze,Fe.done=!1,Fe}return Fe.done=!0,Fe}},N.values=we,be.prototype={constructor:be,reset:function(Oe){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(ye),!Oe)for(var Me in this)Me.charAt(0)==="t"&&j.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var Me=this;function ze(At,Nt){return lt.type="throw",lt.arg=Oe,Me.next=At,Nt&&(Me.method="next",Me.arg=void 0),!!Nt}for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ze=this.tryEntries[Fe],lt=Ze.completion;if(Ze.tryLoc==="root")return ze("end");if(Ze.tryLoc<=this.prev){var qe=j.call(Ze,"catchLoc"),Ve=j.call(Ze,"finallyLoc");if(qe&&Ve){if(this.prev<Ze.catchLoc)return ze(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return ze(Ze.finallyLoc)}else if(qe){if(this.prev<Ze.catchLoc)return ze(Ze.catchLoc,!0)}else{if(!Ve)throw new Error("try statement without catch or finally");if(this.prev<Ze.finallyLoc)return ze(Ze.finallyLoc)}}}},abrupt:function(Oe,Me){for(var ze=this.tryEntries.length-1;ze>=0;--ze){var Fe=this.tryEntries[ze];if(Fe.tryLoc<=this.prev&&j.call(Fe,"finallyLoc")&&this.prev<Fe.finallyLoc){var Ze=Fe;break}}Ze&&(Oe==="break"||Oe==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var lt=Ze?Ze.completion:{};return lt.type=Oe,lt.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,te):this.complete(lt)},complete:function(Oe,Me){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&Me&&(this.next=Me),te},finish:function(Oe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var ze=this.tryEntries[Me];if(ze.finallyLoc===Oe)return this.complete(ze.completion,ze.afterLoc),ye(ze),te}},catch:function(Oe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var ze=this.tryEntries[Me];if(ze.tryLoc===Oe){var Fe=ze.completion;if(Fe.type==="throw"){var Ze=Fe.arg;ye(ze)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,Me,ze){return this.delegate={iterator:we(Oe),resultName:Me,nextLoc:ze},this.method==="next"&&(this.arg=void 0),te}},N}M.exports=I,M.exports.__esModule=!0,M.exports.default=M.exports})(regeneratorRuntime$1);var regeneratorRuntimeExports=regeneratorRuntime$1.exports,runtime=regeneratorRuntimeExports();try{regeneratorRuntime=runtime}catch(M){typeof globalThis=="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}/*!
- * helper-js v1.4.38
- * (c) phphe <phphe@outlook.com> (https://github.com/phphe)
- * Homepage: undefined
- * Released under the MIT License.
- */function isArray$6(M){return Object.prototype.toString.call(M)==="[object Array]"}function arrayRemove(M,$){for(var I,N=0;(I=M.indexOf($))>-1;)M.splice(I,1),N++;return N}/*!
- * tree-helper v1.4.14
- * (c) phphe <phphe@outlook.com> (https://github.com/phphe)
- * Released under the MIT License.
- */function _typeof(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function($){return typeof $}:_typeof=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof(M)}function _toConsumableArray(M){return _arrayWithoutHoles(M)||_iterableToArray(M)||_nonIterableSpread()}function _arrayWithoutHoles(M){if(Array.isArray(M)){for(var $=0,I=new Array(M.length);$<M.length;$++)I[$]=M[$];return I}}function _iterableToArray(M){if(Symbol.iterator in Object(M)||Object.prototype.toString.call(M)==="[object Arguments]")return Array.from(M)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function breadthFirstSearch(M,$){var I=arguments.length>3?arguments[3]:void 0,N=isArray$6(M)?M:[M],B=N.map(function(q,Y){return{item:q,index:Y}});I&&B.reverse();for(var j=function(){var Y=B.shift(),K=Y.item,G=Y.index,J=Y.parent,Z=$(K,G,J);if(Z===!1)return{v:void 0};if(Z==="skip children")return"continue";if(Z==="skip siblings"&&(B=B.filter(function(se){return se.parent!==J})),K.children){var ee,te=K.children;I&&(te=te.slice(),te.reverse());var re=te.map(function(se,ne){return{item:se,index:ne,parent:K}});(ee=B).push.apply(ee,_toConsumableArray(re))}};B.length;){var U=j();switch(U){case"continue":continue;default:if(_typeof(U)==="object")return U.v}}}function _changeParent(M,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";M[N]&&arrayRemove(M[N][I],M),M[N]=$}function insertBefore(M,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(M!==$){var B=$[N][I],j=B.indexOf($);B[j-1]!==M&&(M[N]===$[N]?(arrayRemove(B,M),j=B.indexOf($)):_changeParent(M,$[N]),B.splice(j,0,M))}}var vueDraggableNestedTree={exports:{}};/*!
- * vue-draggable-nested-tree v2.3.0-beta.1
- * (c) 2018-present phphe <phphe@outlook.com>
- * Released under the MIT License.
- */(function(M,$){(function(I,N){N($)})(commonjsGlobal,function(I){var N=function(De){if(De==null)throw TypeError("Can't call method on "+De);return De},B=function(De){return Object(N(De))},j={}.hasOwnProperty,U=function(De,Le){return j.call(De,Le)},q={}.toString,Y=function(De){return q.call(De).slice(8,-1)},K=Object("z").propertyIsEnumerable(0)?Object:function(De){return Y(De)=="String"?De.split(""):Object(De)},G=function(De){return K(N(De))},J=Math.ceil,Z=Math.floor,ee=function(De){return isNaN(De=+De)?0:(De>0?Z:J)(De)},te=Math.min,re=function(De){return De>0?te(ee(De),9007199254740991):0},se=Math.max,ne=Math.min,le=function(De,Le){return De=ee(De),De<0?se(De+Le,0):ne(De,Le)},ge=function(De){return function(Le,st,xt){var Ut=G(Le),$t=re(Ut.length),an=le(xt,$t),$n;if(De&&st!=st){for(;$t>an;)if($n=Ut[an++],$n!=$n)return!0}else for(;$t>an;an++)if((De||an in Ut)&&Ut[an]===st)return De||an||0;return!De&&-1}};function ue(De,Le){return Le={exports:{}},De(Le,Le.exports),Le.exports}var _e=ue(function(De){var Le=De.exports={version:"2.6.1"};typeof __e=="number"&&(__e=Le)});_e.version;var fe=ue(function(De){var Le=De.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Le)}),me=ue(function(De){var Le="__core-js_shared__",st=fe[Le]||(fe[Le]={});(De.exports=function(xt,Ut){return st[xt]||(st[xt]=Ut!==void 0?Ut:{})})("versions",[]).push({version:_e.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),ve=0,xe=Math.random(),oe=function(De){return"Symbol(".concat(De===void 0?"":De,")_",(++ve+xe).toString(36))},ye=me("keys"),be=function(De){return ye[De]||(ye[De]=oe(De))},we=ge(!1),Ae=be("IE_PROTO"),ke=function(De,Le){var st=G(De),xt=0,Ut=[],$t;for($t in st)$t!=Ae&&U(st,$t)&&Ut.push($t);for(;Le.length>xt;)U(st,$t=Le[xt++])&&(~we(Ut,$t)||Ut.push($t));return Ut},Oe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Me=Object.keys||function(Le){return ke(Le,Oe)},ze=function(De){if(typeof De!="function")throw TypeError(De+" is not a function!");return De},Fe=function(De,Le,st){if(ze(De),Le===void 0)return De;switch(st){case 1:return function(xt){return De.call(Le,xt)};case 2:return function(xt,Ut){return De.call(Le,xt,Ut)};case 3:return function(xt,Ut,$t){return De.call(Le,xt,Ut,$t)}}return function(){return De.apply(Le,arguments)}},Ze=function(De){return typeof De=="object"?De!==null:typeof De=="function"},lt=function(De){if(!Ze(De))throw TypeError(De+" is not an object!");return De},qe=function(De){try{return!!De()}catch{return!0}},Ve=!qe(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),At=fe.document,Nt=Ze(At)&&Ze(At.createElement),zt=function(De){return Nt?At.createElement(De):{}},Ht=!Ve&&!qe(function(){return Object.defineProperty(zt("div"),"a",{get:function(){return 7}}).a!=7}),qt=function(De,Le){if(!Ze(De))return De;var st,xt;if(Le&&typeof(st=De.toString)=="function"&&!Ze(xt=st.call(De))||typeof(st=De.valueOf)=="function"&&!Ze(xt=st.call(De))||!Le&&typeof(st=De.toString)=="function"&&!Ze(xt=st.call(De)))return xt;throw TypeError("Can't convert object to primitive value")},Qt=Object.defineProperty,Jt=Ve?Object.defineProperty:function(Le,st,xt){if(lt(Le),st=qt(st,!0),lt(xt),Ht)try{return Qt(Le,st,xt)}catch{}if("get"in xt||"set"in xt)throw TypeError("Accessors not supported!");return"value"in xt&&(Le[st]=xt.value),Le},yn={f:Jt},_n=function(De,Le){return{enumerable:!(De&1),configurable:!(De&2),writable:!(De&4),value:Le}},Hn=Ve?function(De,Le,st){return yn.f(De,Le,_n(1,st))}:function(De,Le,st){return De[Le]=st,De},On="prototype",Fn=function(De,Le,st){var xt=De&Fn.F,Ut=De&Fn.G,$t=De&Fn.S,an=De&Fn.P,$n=De&Fn.B,An=De&Fn.W,Zn=Ut?_e:_e[Le]||(_e[Le]={}),pr=Zn[On],Vn=Ut?fe:$t?fe[Le]:(fe[Le]||{})[On],Gn,lr,Tr;Ut&&(st=Le);for(Gn in st)lr=!xt&&Vn&&Vn[Gn]!==void 0,!(lr&&U(Zn,Gn))&&(Tr=lr?Vn[Gn]:st[Gn],Zn[Gn]=Ut&&typeof Vn[Gn]!="function"?st[Gn]:$n&&lr?Fe(Tr,fe):An&&Vn[Gn]==Tr?function(Lr){var Ar=function(zr,Yr,li){if(this instanceof Lr){switch(arguments.length){case 0:return new Lr;case 1:return new Lr(zr);case 2:return new Lr(zr,Yr)}return new Lr(zr,Yr,li)}return Lr.apply(this,arguments)};return Ar[On]=Lr[On],Ar}(Tr):an&&typeof Tr=="function"?Fe(Function.call,Tr):Tr,an&&((Zn.virtual||(Zn.virtual={}))[Gn]=Tr,De&Fn.R&&pr&&!pr[Gn]&&Hn(pr,Gn,Tr)))};Fn.F=1,Fn.G=2,Fn.S=4,Fn.P=8,Fn.B=16,Fn.W=32,Fn.U=64,Fn.R=128;var In=Fn,dn=function(De,Le){var st=(_e.Object||{})[De]||Object[De],xt={};xt[De]=Le(st),In(In.S+In.F*qe(function(){st(1)}),"Object",xt)};dn("keys",function(){return function(Le){return Me(B(Le))}});var kt=_e.Object.keys,Ye=kt,_t=ue(function(De){var Le=De.exports={version:"2.6.1"};typeof __e=="number"&&(__e=Le)});_t.version;var We=ue(function(De){var Le=De.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Le)}),Pe=ue(function(De){var Le="__core-js_shared__",st=We[Le]||(We[Le]={});(De.exports=function(xt,Ut){return st[xt]||(st[xt]=Ut!==void 0?Ut:{})})("versions",[]).push({version:_t.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),Se=0,$e=Math.random(),Ue=function(De){return"Symbol(".concat(De===void 0?"":De,")_",(++Se+$e).toString(36))},Qe=ue(function(De){var Le=Pe("wks"),st=We.Symbol,xt=typeof st=="function",Ut=De.exports=function($t){return Le[$t]||(Le[$t]=xt&&st[$t]||(xt?st:Ue)("Symbol."+$t))};Ut.store=Le}),mt=function(De){return typeof De=="object"?De!==null:typeof De=="function"},ht=function(De){if(!mt(De))throw TypeError(De+" is not an object!");return De},at=function(De){try{return!!De()}catch{return!0}},ut=!at(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Rt=We.document,fn=mt(Rt)&&mt(Rt.createElement),Bn=function(De){return fn?Rt.createElement(De):{}},en=!ut&&!at(function(){return Object.defineProperty(Bn("div"),"a",{get:function(){return 7}}).a!=7}),xn=function(De,Le){if(!mt(De))return De;var st,xt;if(Le&&typeof(st=De.toString)=="function"&&!mt(xt=st.call(De))||typeof(st=De.valueOf)=="function"&&!mt(xt=st.call(De))||!Le&&typeof(st=De.toString)=="function"&&!mt(xt=st.call(De)))return xt;throw TypeError("Can't convert object to primitive value")},ot=Object.defineProperty,dt=ut?Object.defineProperty:function(Le,st,xt){if(ht(Le),st=xn(st,!0),ht(xt),en)try{return ot(Le,st,xt)}catch{}if("get"in xt||"set"in xt)throw TypeError("Accessors not supported!");return"value"in xt&&(Le[st]=xt.value),Le},Ot={f:dt},Yt=function(De,Le){return{enumerable:!(De&1),configurable:!(De&2),writable:!(De&4),value:Le}},Wt=ut?function(De,Le,st){return Ot.f(De,Le,Yt(1,st))}:function(De,Le,st){return De[Le]=st,De},gn=Qe("unscopables"),Kn=Array.prototype;Kn[gn]==null&&Wt(Kn,gn,{});var Ct=function(De){Kn[gn][De]=!0},ft=function(De,Le){return{value:Le,done:!!De}},Tt={},Lt={}.toString,pn=function(De){return Lt.call(De).slice(8,-1)},mn=Object("z").propertyIsEnumerable(0)?Object:function(De){return pn(De)=="String"?De.split(""):Object(De)},En=function(De){if(De==null)throw TypeError("Can't call method on "+De);return De},cr=function(De){return mn(En(De))},jn={}.hasOwnProperty,ir=function(De,Le){return jn.call(De,Le)},Ir=ue(function(De){var Le=Ue("src"),st="toString",xt=Function[st],Ut=(""+xt).split(st);_t.inspectSource=function($t){return xt.call($t)},(De.exports=function($t,an,$n,An){var Zn=typeof $n=="function";Zn&&(ir($n,"name")||Wt($n,"name",an)),$t[an]!==$n&&(Zn&&(ir($n,Le)||Wt($n,Le,$t[an]?""+$t[an]:Ut.join(String(an)))),$t===We?$t[an]=$n:An?$t[an]?$t[an]=$n:Wt($t,an,$n):(delete $t[an],Wt($t,an,$n)))})(Function.prototype,st,function(){return typeof this=="function"&&this[Le]||xt.call(this)})}),Er=function(De){if(typeof De!="function")throw TypeError(De+" is not a function!");return De},Dr=function(De,Le,st){if(Er(De),Le===void 0)return De;switch(st){case 1:return function(xt){return De.call(Le,xt)};case 2:return function(xt,Ut){return De.call(Le,xt,Ut)};case 3:return function(xt,Ut,$t){return De.call(Le,xt,Ut,$t)}}return function(){return De.apply(Le,arguments)}},Vr="prototype",Ge=function(De,Le,st){var xt=De&Ge.F,Ut=De&Ge.G,$t=De&Ge.S,an=De&Ge.P,$n=De&Ge.B,An=Ut?We:$t?We[Le]||(We[Le]={}):(We[Le]||{})[Vr],Zn=Ut?_t:_t[Le]||(_t[Le]={}),pr=Zn[Vr]||(Zn[Vr]={}),Vn,Gn,lr,Tr;Ut&&(st=Le);for(Vn in st)Gn=!xt&&An&&An[Vn]!==void 0,lr=(Gn?An:st)[Vn],Tr=$n&&Gn?Dr(lr,We):an&&typeof lr=="function"?Dr(Function.call,lr):lr,An&&Ir(An,Vn,lr,De&Ge.U),Zn[Vn]!=lr&&Wt(Zn,Vn,Tr),an&&pr[Vn]!=lr&&(pr[Vn]=lr)};We.core=_t,Ge.F=1,Ge.G=2,Ge.S=4,Ge.P=8,Ge.B=16,Ge.W=32,Ge.U=64,Ge.R=128;var pt=Ge,ct=Math.ceil,Ne=Math.floor,vt=function(De){return isNaN(De=+De)?0:(De>0?Ne:ct)(De)},Xt=Math.min,sn=function(De){return De>0?Xt(vt(De),9007199254740991):0},Pn=Math.max,Nn=Math.min,Qn=function(De,Le){return De=vt(De),De<0?Pn(De+Le,0):Nn(De,Le)},Xn=function(De){return function(Le,st,xt){var Ut=cr(Le),$t=sn(Ut.length),an=Qn(xt,$t),$n;if(De&&st!=st){for(;$t>an;)if($n=Ut[an++],$n!=$n)return!0}else for(;$t>an;an++)if((De||an in Ut)&&Ut[an]===st)return De||an||0;return!De&&-1}},Rr=Pe("keys"),tr=function(De){return Rr[De]||(Rr[De]=Ue(De))},fr=Xn(!1),Sr=tr("IE_PROTO"),sr=function(De,Le){var st=cr(De),xt=0,Ut=[],$t;for($t in st)$t!=Sr&&ir(st,$t)&&Ut.push($t);for(;Le.length>xt;)ir(st,$t=Le[xt++])&&(~fr(Ut,$t)||Ut.push($t));return Ut},Rn="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),mr=Object.keys||function(Le){return sr(Le,Rn)},br=ut?Object.defineProperties:function(Le,st){ht(Le);for(var xt=mr(st),Ut=xt.length,$t=0,an;Ut>$t;)Ot.f(Le,an=xt[$t++],st[an]);return Le},hr=We.document,zn=hr&&hr.documentElement,er=tr("IE_PROTO"),et=function(){},yt="prototype",wt=function(){var De=Bn("iframe"),Le=Rn.length,st="<",xt=">",Ut;for(De.style.display="none",zn.appendChild(De),De.src="javascript:",Ut=De.contentWindow.document,Ut.open(),Ut.write(st+"script"+xt+"document.F=Object"+st+"/script"+xt),Ut.close(),wt=Ut.F;Le--;)delete wt[yt][Rn[Le]];return wt()},Bt=Object.create||function(Le,st){var xt;return Le!==null?(et[yt]=ht(Le),xt=new et,et[yt]=null,xt[er]=Le):xt=wt(),st===void 0?xt:br(xt,st)},Kt=Ot.f,Mt=Qe("toStringTag"),tn=function(De,Le,st){De&&!ir(De=st?De:De.prototype,Mt)&&Kt(De,Mt,{configurable:!0,value:Le})},hn={};Wt(hn,Qe("iterator"),function(){return this});var Cn=function(De,Le,st){De.prototype=Bt(hn,{next:Yt(1,st)}),tn(De,Le+" Iterator")},cn=function(De){return Object(En(De))},ur=tr("IE_PROTO"),or=Object.prototype,rt=Object.getPrototypeOf||function(De){return De=cn(De),ir(De,ur)?De[ur]:typeof De.constructor=="function"&&De instanceof De.constructor?De.constructor.prototype:De instanceof Object?or:null},gt=Qe("iterator"),tt=!([].keys&&"next"in[].keys()),nn="@@iterator",kn="keys",Un="values",Jn=function(){return this},_r=function(De,Le,st,xt,Ut,$t,an){Cn(st,Le,xt);var $n=function(li){if(!tt&&li in Vn)return Vn[li];switch(li){case kn:return function(){return new st(this,li)};case Un:return function(){return new st(this,li)}}return function(){return new st(this,li)}},An=Le+" Iterator",Zn=Ut==Un,pr=!1,Vn=De.prototype,Gn=Vn[gt]||Vn[nn]||Ut&&Vn[Ut],lr=Gn||$n(Ut),Tr=Ut?Zn?$n("entries"):lr:void 0,Lr=Le=="Array"&&Vn.entries||Gn,Ar,zr,Yr;if(Lr&&(Yr=rt(Lr.call(new De)),Yr!==Object.prototype&&Yr.next&&(tn(Yr,An,!0),typeof Yr[gt]!="function"&&Wt(Yr,gt,Jn))),Zn&&Gn&&Gn.name!==Un&&(pr=!0,lr=function(){return Gn.call(this)}),(tt||pr||!Vn[gt])&&Wt(Vn,gt,lr),Tt[Le]=lr,Tt[An]=Jn,Ut)if(Ar={values:Zn?lr:$n(Un),keys:$t?lr:$n(kn),entries:Tr},an)for(zr in Ar)zr in Vn||Ir(Vn,zr,Ar[zr]);else pt(pt.P+pt.F*(tt||pr),Le,Ar);return Ar},xr=_r(Array,"Array",function(De,Le){this._t=cr(De),this._i=0,this._k=Le},function(){var De=this._t,Le=this._k,st=this._i++;return!De||st>=De.length?(this._t=void 0,ft(1)):Le=="keys"?ft(0,st):Le=="values"?ft(0,De[st]):ft(0,[st,De[st]])},"values");Tt.Arguments=Tt.Array,Ct("keys"),Ct("values"),Ct("entries");for(var Nr=Qe("iterator"),Mr=Qe("toStringTag"),Zr=Tt.Array,ti={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Xr=mr(ti),ni=0;ni<Xr.length;ni++){var qr=Xr[ni],ei=ti[qr],mi=We[qr],Ai=mi&&mi.prototype,Gi;if(Ai&&(Ai[Nr]||Wt(Ai,Nr,Zr),Ai[Mr]||Wt(Ai,Mr,qr),Tt[qr]=Zr,ei))for(Gi in xr)Ai[Gi]||Ir(Ai,Gi,xr[Gi],!0)}var Co=Object.getOwnPropertySymbols,$o={f:Co},To={}.propertyIsEnumerable,Oo={f:To},Xi=Object.assign,Ys=!Xi||qe(function(){var De={},Le={},st=Symbol(),xt="abcdefghijklmnopqrst";return De[st]=7,xt.split("").forEach(function(Ut){Le[Ut]=Ut}),Xi({},De)[st]!=7||Object.keys(Xi({},Le)).join("")!=xt})?function(Le,st){for(var xt=B(Le),Ut=arguments.length,$t=1,an=$o.f,$n=Oo.f;Ut>$t;)for(var An=K(arguments[$t++]),Zn=an?Me(An).concat(an(An)):Me(An),pr=Zn.length,Vn=0,Gn;pr>Vn;)$n.call(An,Gn=Zn[Vn++])&&(xt[Gn]=An[Gn]);return xt}:Xi;In(In.S+In.F,"Object",{assign:Ys});var ao=_e.Object.assign,Ks=ao,Ns={}.propertyIsEnumerable,$s={f:Ns},ps=Object.getOwnPropertyDescriptor,ws=ut?ps:function(Le,st){if(Le=cr(Le),st=xn(st,!0),en)try{return ps(Le,st)}catch{}if(ir(Le,st))return Yt(!$s.f.call(Le,st),Le[st])},Ts={f:ws},Gs=function(De,Le){if(ht(De),!mt(Le)&&Le!==null)throw TypeError(Le+": can't set as prototype!")},pe={set:Object.setPrototypeOf||("__proto__"in{}?function(De,Le,st){try{st=Dr(Function.call,Ts.f(Object.prototype,"__proto__").set,2),st(De,[]),Le=!(De instanceof Array)}catch{Le=!0}return function(Ut,$t){return Gs(Ut,$t),Le?Ut.__proto__=$t:st(Ut,$t),Ut}}({},!1):void 0),check:Gs},Te=pe.set,Re=function(De,Le,st){var xt=Le.constructor,Ut;return xt!==st&&typeof xt=="function"&&(Ut=xt.prototype)!==st.prototype&&mt(Ut)&&Te&&Te(De,Ut),De},je=Rn.concat("length","prototype"),Ke=Object.getOwnPropertyNames||function(Le){return sr(Le,je)},Je={f:Ke},bt=`
- \v\f\r \u2028\u2029\uFEFF`,Dt="["+bt+"]",Et="
",jt=RegExp("^"+Dt+Dt+"*"),Vt=RegExp(Dt+Dt+"*$"),Sn=function(De,Le,st){var xt={},Ut=at(function(){return!!bt[De]()||Et[De]()!=Et}),$t=xt[De]=Ut?Le(Mn):bt[De];st&&(xt[st]=$t),pt(pt.P+pt.F*Ut,"String",xt)},Mn=Sn.trim=function(De,Le){return De=String(En(De)),Le&1&&(De=De.replace(jt,"")),Le&2&&(De=De.replace(Vt,"")),De},bn=Sn,vn=Je.f,ar=Ts.f,Wn=Ot.f,Cr=bn.trim,Pr="Number",vr=We[Pr],Ur=vr,ui=vr.prototype,oi=pn(Bt(ui))==Pr,xi="trim"in String.prototype,Kr=function(De){var Le=xn(De,!1);if(typeof Le=="string"&&Le.length>2){Le=xi?Le.trim():Cr(Le,3);var st=Le.charCodeAt(0),xt,Ut,$t;if(st===43||st===45){if(xt=Le.charCodeAt(2),xt===88||xt===120)return NaN}else if(st===48){switch(Le.charCodeAt(1)){case 66:case 98:Ut=2,$t=49;break;case 79:case 111:Ut=8,$t=55;break;default:return+Le}for(var an=Le.slice(2),$n=0,An=an.length,Zn;$n<An;$n++)if(Zn=an.charCodeAt($n),Zn<48||Zn>$t)return NaN;return parseInt(an,Ut)}}return+Le};if(!vr(" 0o1")||!vr("0b1")||vr("+0x1")){vr=function(Le){var st=arguments.length<1?0:Le,xt=this;return xt instanceof vr&&(oi?at(function(){ui.valueOf.call(xt)}):pn(xt)!=Pr)?Re(new Ur(Kr(st)),xt,vr):Kr(st)};for(var Fr=ut?vn(Ur):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),fi=0,pi;Fr.length>fi;fi++)ir(Ur,pi=Fr[fi])&&!ir(vr,pi)&&Wn(vr,pi,ar(Ur,pi));vr.prototype=ui,ui.constructor=vr,Ir(We,Pr,vr)}function ai(De){return Object.prototype.toString.call(De)==="[object Array]"}function hs(De,Le){return arguments.length===1&&(Le=De,De=0),Math.floor(Math.random()*(Le-De+1)+De)}function Os(){for(var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",st="",xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ut=0;Ut<De;Ut++)st+=xt[hs(xt.length-1)];return Le+st}function Ji(De,Le){for(var st,xt=0;(st=De.indexOf(Le))>-1;)De.splice(st,1),xt++;return xt}function Ls(){if(typeof pageYOffset<"u")return{top:pageYOffset,left:pageXOffset};var De=document.body,Le=document.documentElement;return Le=Le.clientHeight?Le:De,{top:Le.scrollTop,left:Le.scrollLeft}}function hi(De){var Le=De.getBoundingClientRect(),st=Ls();return{x:Le.left+st.left,y:Le.top+st.top}}function pa(De){var Le=De.offsetParent;return(!Le||Le===document.body&&getComputedStyle(document.body).position==="static")&&(Le=document.body.parentElement),Le}function Wo(De){for(var Le=pa(De),st={x:De.offsetLeft,y:De.offsetTop},xt=De;xt=xt.parentElement,!(xt===Le||!xt);)st.x-=xt.scrollLeft,st.y-=xt.scrollTop;return st}function Fs(De,Le){var st="original_".concat(Le);De[st]=De.getAttribute(Le)}function qo(De,Le){var st="original_".concat(Le);De.setAttribute(Le,De[st])}function Xs(De,Le){return De.classList?De.classList.contains(Le):new RegExp("(^| )"+Le+"( |$)","gi").test(De.className)}function ha(De,Le){Xs(De,Le)||(De.classList?De.classList.add(Le):De.className+=" "+Le)}function Po(De){var Le=De.style.display;De.style.display="block";var st={width:De.offsetWidth,height:De.offsetHeight};return De.style.display=Le,st}function lo(De,Le,st){for(var xt=arguments.length,Ut=new Array(xt>3?xt-3:0),$t=3;$t<xt;$t++)Ut[$t-3]=arguments[$t];De.addEventListener?De.addEventListener.apply(De,[Le,st].concat(Ut)):De.attachEvent&&De.attachEvent.apply(De,["on".concat(Le),st].concat(Ut))}function Ao(De,Le,st){for(var xt=arguments.length,Ut=new Array(xt>3?xt-3:0),$t=3;$t<xt;$t++)Ut[$t-3]=arguments[$t];De.removeEventListener?De.removeEventListener.apply(De,[Le,st].concat(Ut)):De.detachEvent&&De.detachEvent.apply(De,["on".concat(Le),st].concat(Ut))}function ma(De,Le,st,xt,Ut){var $t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1e3,an,$n;st==null&&(st=0,xt=De.length-1);for(var An=0,Zn;st>=0&&st<=xt;){if(An>=$t)throw Error("binarySearch: loop times is over ".concat($t,", you can increase the limit."));if(an=Math.floor((xt-st)/2+st),$n=De[an],Zn=Le($n,An),Zn>0)xt=an-1;else if(Zn<0)st=an+1;else return{index:an,value:$n,count:An+1,hit:!0};An++}return Ut?{index:an,value:$n,count:An+1,hit:!1,bigger:Zn>0}:null}/*!
- * tree-helper v1.0.5
- * phphe <phphe@outlook.com> (https://github.com/phphe)
- * https://github.com/phphe/tree-helper.git
- * Released under the MIT License.
- */var Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De};function Ko(De){if(Array.isArray(De)){for(var Le=0,st=Array(De.length);Le<De.length;Le++)st[Le]=De[Le];return st}else return Array.from(De)}function co(De,Le){var st=arguments[3],xt=ai(De)?De:[De],Ut=xt.map(function($n,An){return{item:$n,index:An}});st&&Ut.reverse();for(var $t=function(){var An=Ut.shift(),Zn=An.item,pr=An.index,Vn=An.parent,Gn=Le(Zn,pr,Vn);if(Gn===!1)return{v:void 0};if(Gn==="skip children")return"continue";if(Gn==="skip siblings"&&(Ut=Ut.filter(function(Ar){return Ar.parent!==Vn})),Zn.children){var lr,Tr=Zn.children;st&&(Tr=Tr.slice(),Tr.reverse());var Lr=Tr.map(function(Ar,zr){return{item:Ar,index:zr,parent:Zn}});(lr=Ut).push.apply(lr,Ko(Lr))}};Ut.length;){var an=$t();switch(an){case"continue":continue;default:if((typeof an>"u"?"undefined":Yo(an))==="object")return an.v}}}function ms(De,Le){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";De[xt]&&Ji(De[xt][st],De),De[xt]=Le}function gs(De,Le){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(De!==Le){var Ut=Le[xt][st],$t=Ut.indexOf(Le);Ut[$t-1]!==De&&(De[xt]===Le[xt]?(Ji(Ut,De),$t=Ut.indexOf(Le)):ms(De,Le[xt]),Ut.splice($t,0,De))}}function _s(De,Le){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(De!==Le){var Ut=Le[xt],$t=Ut[st],an=$t.indexOf(Le);$t[an+1]!==De&&(De[xt]===Le[xt]?(Ji($t,De),an=$t.indexOf(Le)):ms(De,Le[xt]),$t.splice(an+1,0,De))}}function Ii(De,Le){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children";if(De===Le)throw"can't prepend to self";var xt=Le[st];xt[0]!==De&&(ms(De,Le),xt.splice(0,0,De))}function uo(De,Le){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children";if(De===Le)throw"can't append to self";var xt=Le[st],Ut=xt[xt.length-1];Ut!==De&&(ms(De,Le),xt.push(De))}var ss={name:"TreeNode",props:{data:{},store:{},level:{default:0}},data:function(){return{vm:this}},computed:{childrenLevel:function(){return this.level+1},isRoot:function(){return this.data&&this.data.isRoot},childrenVisible:function(){var Le=this.data;return this.isRoot||Le&&Le.children&&Le.children.length&&Le.open},innerBackStyle:function(){var Le={marginBottom:this.store.space+"px"};return!this.isRoot&&this.level>1&&(this.store.dir==="rtl"?Le.paddingRight=(this.level-1)*this.store.indent+"px":Le.paddingLeft=(this.level-1)*this.store.indent+"px"),Le}},watch:{data:{immediate:!0,handler:function(Le){Le&&(Le._vm=this,!Le._treeNodePropertiesCompleted&&!Le.isRoot&&this.store.compeleteNode(Le,this.$parent.data))}}}};const Ps=ss;var Ro=function(){var De=this,Le=De.$createElement,st=De._self._c||Le;return st("div",{staticClass:"tree-node",class:[De.data.active?De.store.activatedClass:"",De.data.open?De.store.openedClass:"",De.data.class],style:De.data.style,attrs:{id:De.data._id}},[De.isRoot?De._e():De._t("node-inner-back",[st("div",{staticClass:"tree-node-inner-back",class:[De.data.innerBackClass],style:[De.innerBackStyle,De.data.innerBackStyle]},[st("div",{staticClass:"tree-node-inner",class:[De.data.innerClass],style:[De.data.innerStyle]},[De._t("default",null,{data:De.data,store:De.store,vm:De.vm})],2)])],{styleObj:De.innerBackStyle,data:De.data,store:De.store,vm:De.vm}),st("transition",{attrs:{name:De.store.childrenTransitionName}},[De.childrenVisible?st("div",{staticClass:"tree-node-children"},De._l(De.data.children,function(xt){return st("TreeNode",{key:xt._id,attrs:{data:xt,store:De.store,level:De.childrenLevel},scopedSlots:De._u([{key:"default",fn:function(Ut){return[De._t("default",null,{data:Ut.data,store:Ut.store,vm:Ut.vm})]}},{key:"node-inner-back",fn:function(Ut){return De.store.customInnerBack?[De._t("node-inner-back",null,{styleObj:Ut.styleObj,data:Ut.data,store:Ut.store,vm:Ut.vm})]:void 0}}])})}),1):De._e()])],2)},ga=[];const Go=void 0,Ce=void 0,Be=!1;function it(De,Le,st,xt,Ut,$t,an,$n){const An=(typeof st=="function"?st.options:st)||{};return An.__file="TreeNode.vue",An.render||(An.render=De.render,An.staticRenderFns=De.staticRenderFns,An._compiled=!0,Ut&&(An.functional=!0)),An._scopeId=xt,An}var St=it({render:Ro,staticRenderFns:ga},Go,Ps,Ce,Be),Ft={props:{data:{},idLength:{type:Number,default:5},indent:{type:Number,default:16},activatedClass:{default:"active"},openedClass:{default:"open"},space:{type:Number,default:10},childrenTransitionName:{},customInnerBack:{}},components:{TreeNode:St},data:function(){return{store:this,rootData:null}},watch:{data:{immediate:!0,handler:function(Le,st){var xt=this;Le!==st&&(this.rootData=this.rootData||{isRoot:!0,_id:"tree_".concat(this._uid,"_node_root"),children:[]},co(Le,function(Ut,$t,an){xt.compeleteNode(Ut,an)}),this.rootData.children=Le)}}},methods:{compeleteNode:function(Le,st){var xt={open:!0,children:[],active:!1,style:{},class:"",innerStyle:{},innerClass:"",innerBackStyle:{},innerBackClass:{}};for(var Ut in xt)Le.hasOwnProperty(Ut)||this.$set(Le,Ut,xt[Ut]);this.$set(Le,"parent",st||this.rootData),Le.hasOwnProperty("_id")||(Le._id="tree_".concat(this._uid,"_node_").concat(Os(this.idLength))),Le._treeNodePropertiesCompleted=!0},pure:function(Le,st,xt){var Ut=this,$t=Ks({},Le);delete $t._id,delete $t.parent,delete $t.children,delete $t.open,delete $t.active,delete $t.style,delete $t.class,delete $t.innerStyle,delete $t.innerClass,delete $t.innerBackStyle,delete $t.innerBackClass;for(var an=Ye($t),$n=0;$n<an.length;$n++){var An=an[$n];An[0]==="_"&&delete $t[An]}return st&&Le.children&&($t.children=Le.children.slice(),$t.children.forEach(function(Zn,pr){$t.children[pr]=Ut.pure(Zn,st)})),xt&&xt($t,Le)||$t},getNodeById:function(Le){var st;return co(this.rootData.children,function(xt){if(xt._id===Le)return st=xt,!1}),st},getActivated:function(){var Le=[];return co(this.rootData.children,function(st){st.active&&Le.push(st)}),Le},getOpened:function(){var Le=[];return co(this.rootData.children,function(st){st.open&&Le.push(st)}),Le},activeNode:function(Le,st){this.activated,st&&this.getActivated().forEach(function(xt){xt.active=!1}),Le.active=!0},toggleActive:function(Le,st){Le.active?Le.active=!1:this.activeNode(Le,st)},openNode:function(Le,st){var xt=this;this.opened,st&&this.getOpened().forEach(function(Ut){Ut.open=!1,xt.$emit("nodeOpenChanged",Ut)}),Le.open=!0,this.$emit("nodeOpenChanged",Le)},toggleOpen:function(Le,st){Le.open?(Le.open=!1,this.$emit("nodeOpenChanged",Le)):this.openNode(Le,st)},getPureData:function(Le){return this.pure(this.rootData,!0,Le).children},deleteNode:function(Le){return Ji(Le.parent.children,Le)}}};const Gt=Ft;var ln=function(){var De=this,Le=De.$createElement,st=De._self._c||Le;return st("div",{staticClass:"he-tree tree"},[st("TreeNode",{attrs:{data:De.rootData,store:De.store},scopedSlots:De._u([{key:"default",fn:function(xt){return[De._t("default",null,{data:xt.data,store:De.store,vm:xt.vm})]}},{key:"node-inner-back",fn:function(xt){return De.customInnerBack?[De._t("node-inner-back",null,{styleObj:xt.styleObj,data:xt.data,store:xt.store,vm:xt.vm})]:void 0}}])})],1)},un=[];const Dn=void 0,wn=void 0,qn=!1;function yr(De,Le,st,xt,Ut,$t,an,$n){const An=(typeof st=="function"?st.options:st)||{};return An.__file="Tree.vue",An.render||(An.render=De.render,An.staticRenderFns=De.staticRenderFns,An._compiled=!0,Ut&&(An.functional=!0)),An._scopeId=xt,An}var wr=yr({render:ln,staticRenderFns:un},Dn,Gt,wn,qn),Hr=function(De){return function(Le,st){var xt=String(En(Le)),Ut=vt(st),$t=xt.length,an,$n;return Ut<0||Ut>=$t?De?"":void 0:(an=xt.charCodeAt(Ut),an<55296||an>56319||Ut+1===$t||($n=xt.charCodeAt(Ut+1))<56320||$n>57343?De?xt.charAt(Ut):an:De?xt.slice(Ut,Ut+2):(an-55296<<10)+($n-56320)+65536)}},Jr=Hr(!0),Br=function(De,Le,st){return Le+(st?Jr(De,Le).length:1)},ri=Qe("toStringTag"),di=pn(function(){return arguments}())=="Arguments",ii=function(De,Le){try{return De[Le]}catch{}},Qr=function(De){var Le,st,xt;return De===void 0?"Undefined":De===null?"Null":typeof(st=ii(Le=Object(De),ri))=="string"?st:di?pn(Le):(xt=pn(Le))=="Object"&&typeof Le.callee=="function"?"Arguments":xt},Gr=RegExp.prototype.exec,ki=function(De,Le){var st=De.exec;if(typeof st=="function"){var xt=st.call(De,Le);if(typeof xt!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return xt}if(Qr(De)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return Gr.call(De,Le)},_i=function(){var De=ht(this),Le="";return De.global&&(Le+="g"),De.ignoreCase&&(Le+="i"),De.multiline&&(Le+="m"),De.unicode&&(Le+="u"),De.sticky&&(Le+="y"),Le},Ei=RegExp.prototype.exec,Ni=String.prototype.replace,Ri=Ei,Vi="lastIndex",Yi=function(){var De=/a/,Le=/b*/g;return Ei.call(De,"a"),Ei.call(Le,"a"),De[Vi]!==0||Le[Vi]!==0}(),Zi=/()??/.exec("")[1]!==void 0,vi=Yi||Zi;vi&&(Ri=function(Le){var st=this,xt,Ut,$t,an;return Zi&&(Ut=new RegExp("^"+st.source+"$(?!\\s)",_i.call(st))),Yi&&(xt=st[Vi]),$t=Ei.call(st,Le),Yi&&$t&&(st[Vi]=st.global?$t.index+$t[0].length:xt),Zi&&$t&&$t.length>1&&Ni.call($t[0],Ut,function(){for(an=1;an<arguments.length-2;an++)arguments[an]===void 0&&($t[an]=void 0)}),$t});var zi=Ri;pt({target:"RegExp",proto:!0,forced:zi!==/./.exec},{exec:zi});var ls=Qe("species"),Ss=!at(function(){var De=/./;return De.exec=function(){var Le=[];return Le.groups={a:"7"},Le},"".replace(De,"$<a>")!=="7"}),vs=function(){var De=/(?:)/,Le=De.exec;De.exec=function(){return Le.apply(this,arguments)};var st="ab".split(De);return st.length===2&&st[0]==="a"&&st[1]==="b"}(),fo=function(De,Le,st){var xt=Qe(De),Ut=!at(function(){var pr={};return pr[xt]=function(){return 7},""[De](pr)!=7}),$t=Ut?!at(function(){var pr=!1,Vn=/a/;return Vn.exec=function(){return pr=!0,null},De==="split"&&(Vn.constructor={},Vn.constructor[ls]=function(){return Vn}),Vn[xt](""),!pr}):void 0;if(!Ut||!$t||De==="replace"&&!Ss||De==="split"&&!vs){var an=/./[xt],$n=st(En,xt,""[De],function(Vn,Gn,lr,Tr,Lr){return Gn.exec===zi?Ut&&!Lr?{done:!0,value:an.call(Gn,lr,Tr)}:{done:!0,value:Vn.call(lr,Gn,Tr)}:{done:!1}}),An=$n[0],Zn=$n[1];Ir(String.prototype,De,An),Wt(RegExp.prototype,xt,Le==2?function(pr,Vn){return Zn.call(pr,this,Vn)}:function(pr){return Zn.call(pr,this)})}},ks=Math.max,cs=Math.min,bs=Math.floor,bi=/\$([$&`']|\d\d?|<[^>]*>)/g,Qi=/\$([$&`']|\d\d?)/g,Li=function(De){return De===void 0?De:String(De)};fo("replace",2,function(De,Le,st,xt){return[function(an,$n){var An=De(this),Zn=an==null?void 0:an[Le];return Zn!==void 0?Zn.call(an,An,$n):st.call(String(An),an,$n)},function($t,an){var $n=xt(st,$t,this,an);if($n.done)return $n.value;var An=ht($t),Zn=String(this),pr=typeof an=="function";pr||(an=String(an));var Vn=An.global;if(Vn){var Gn=An.unicode;An.lastIndex=0}for(var lr=[];;){var Tr=ki(An,Zn);if(Tr===null||(lr.push(Tr),!Vn))break;var Lr=String(Tr[0]);Lr===""&&(An.lastIndex=Br(Zn,sn(An.lastIndex),Gn))}for(var Ar="",zr=0,Yr=0;Yr<lr.length;Yr++){Tr=lr[Yr];for(var li=String(Tr[0]),Wi=ks(cs(vt(Tr.index),Zn.length),0),Da=[],Hs=1;Hs<Tr.length;Hs++)Da.push(Li(Tr[Hs]));var sa=Tr.groups;if(pr){var Ma=[li].concat(Da,Wi,Zn);sa!==void 0&&Ma.push(sa);var Ia=String(an.apply(void 0,Ma))}else Ia=Ut(li,Zn,Wi,Da,sa,an);Wi>=zr&&(Ar+=Zn.slice(zr,Wi)+Ia,zr=Wi+li.length)}return Ar+Zn.slice(zr)}];function Ut($t,an,$n,An,Zn,pr){var Vn=$n+$t.length,Gn=An.length,lr=Qi;return Zn!==void 0&&(Zn=cn(Zn),lr=bi),st.call(pr,lr,function(Tr,Lr){var Ar;switch(Lr.charAt(0)){case"$":return"$";case"&":return $t;case"`":return an.slice(0,$n);case"'":return an.slice(Vn);case"<":Ar=Zn[Lr.slice(1,-1)];break;default:var zr=+Lr;if(zr===0)return Lr;if(zr>Gn){var Yr=bs(zr/10);return Yr===0?Lr:Yr<=Gn?An[Yr-1]===void 0?Lr.charAt(1):An[Yr-1]+Lr.charAt(1):Lr}Ar=An[zr-1]}return Ar===void 0?"":Ar})}});/*!
- * drag-event-service v0.0.6
- * (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe)
- * Released under the MIT License.
- */var Ti={start:["mousedown","touchstart"],move:["mousemove","touchmove"],end:["mouseup","touchend"]},Es={isTouch:function(Le){return Le.type&&Le.type.startsWith("touch")},_getStore:function(Le){return Le._wrapperStore||(Le._wrapperStore=[]),Le._wrapperStore},on:function(Le,st,xt){var Ut,$t,an=this._getStore(Le),$n=this,An=function(lr){var Tr,Lr=$n.isTouch(lr);if(Lr)Tr={x:lr.changedTouches[0].pageX,y:lr.changedTouches[0].pageY};else if(Tr={x:lr.pageX,y:lr.pageY},st==="start"&&lr.which!==1)return;return xt.call(this,lr,Tr)};an.push({handler:xt,wrapper:An});for(var Zn=arguments.length,pr=new Array(Zn>3?Zn-3:0),Vn=3;Vn<Zn;Vn++)pr[Vn-3]=arguments[Vn];(Ut=lo).call.apply(Ut,[null,Le,Ti[st][0],An].concat(pr)),($t=lo).call.apply($t,[null,Le,Ti[st][1],An].concat(pr))},off:function(Le,st,xt){for(var Ut=this._getStore(Le),$t=arguments.length,an=new Array($t>3?$t-3:0),$n=3;$n<$t;$n++)an[$n-3]=arguments[$n];for(var An=Ut.length-1;An>=0;An--){var Zn=Ut[An],pr=Zn.handler,Vn=Zn.wrapper;if(xt===pr){var Gn,lr;(Gn=Ao).call.apply(Gn,[null,Le,Ti[st][0],Vn].concat(an)),(lr=Ao).call.apply(lr,[null,Le,Ti[st][1],Vn].concat(an)),Ut.splice(An,1)}}}};/*!
- * draggable-helper v1.0.20
- * (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe)
- * Released under the MIT License.
- */function Js(De){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Le.minTranslate==null&&(Le.minTranslate=10);var st=Zn(),xt=function(){Es.off(De,"end",De._draggbleEventHandler),Ao(De,"selectstart",pr),delete De._draggbleEventHandler};return De._draggbleEventHandler&&xt(),De._draggbleEventHandler=Ut,Es.on(De,"start",De._draggbleEventHandler),lo(De,"selectstart",pr),xt;function Ut(Vn,Gn){st.mouse={x:Gn.x,y:Gn.y},st.initialMouse=Object.assign({},st.mouse),Es.on(document,"move",an,{passive:!1}),Es.on(window,"end",$n)}function $t(Vn){var Gn=An(),lr=Gn.el,Tr=Gn.position;st.el=lr,st.initialPosition=Object.assign({},Tr);var Lr=Le.drag&&Le.drag(Vn,Le,st);if(Lr===!1)return!1;var Ar=Po(lr),zr=Object.assign({width:"".concat(Ar.width,"px"),height:"".concat(Ar.height,"px"),zIndex:9999,opacity:.6,position:"absolute",left:Tr.x+"px",top:Tr.y+"px"},Le.style||Le.getStyle&&Le.getStyle(Le)||{});Fs(lr,"style");for(var Yr in zr)lr.style[Yr]=zr[Yr];Fs(lr,"class"),ha(lr,Le.draggingClass)}function an(Vn,Gn){st.mouse={x:Gn.x,y:Gn.y};var lr=st.move={x:st.mouse.x-st.initialMouse.x,y:st.mouse.y-st.initialMouse.y};if(st.movedCount===0&&Le.minTranslate){var Tr=Math.pow(st.move.x,2),Lr=Math.pow(st.move.y,2),Ar=Math.pow(Tr+Lr,.5);if(Ar<Le.minTranslate)return}var zr=!0;if(st.movedCount===0&&$t(Vn)===!1&&(zr=!1),Vn.preventDefault(),zr&&Le.moving&&Le.moving(Vn,Le,st)===!1&&(zr=!1),zr){if(!st||!st.el)return;Object.assign(st.el.style,{left:st.initialPosition.x+lr.x+"px",top:st.initialPosition.y+lr.y+"px"}),st.movedCount++}}function $n(Vn){if(Es.off(document,"move",an,{passive:!1}),Es.off(window,"end",$n),st.movedCount>0){st.movedCount=0;var Gn=st,lr=Gn.el;Le.clone?lr.parentElement.removeChild(lr):(qo(lr,"style"),qo(lr,"class")),Le.drop&&Le.drop(Vn,Le,st)}st=Zn()}function An(){var Vn=Le.getEl?Le.getEl(De,Le):De,Gn=Vn;return Le.clone&&(st.triggerEl=Vn,Gn=Vn.cloneNode(!0),Vn.parentElement.appendChild(Gn)),{position:Wo(Gn),el:Gn}}function Zn(){return{movedCount:0}}function pr(Vn){Vn.preventDefault()}}In(In.S+In.F*!Ve,"Object",{defineProperty:yn.f});var ys=_e.Object,Xo=function(Le,st,xt){return ys.defineProperty(Le,st,xt)},Bs=Xo,po=Ot.f,Jo=Function.prototype,ho=/^\s*function ([^ (]*)/,Do="name";Do in Jo||ut&&po(Jo,Do,{configurable:!0,get:function(){try{return(""+this).match(ho)[1]}catch{return""}}});function Mo(De,Le){if(!(De instanceof Le))throw new TypeError("Cannot call a class as a function")}function As(De,Le){for(var st=0;st<Le.length;st++){var xt=Le[st];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Bs(De,xt.key,xt)}}function zs(De,Le,st){return Le&&As(De.prototype,Le),st&&As(De,st),De}function mo(De,Le,st){return Le in De?Bs(De,Le,{value:st,enumerable:!0,configurable:!0,writable:!0}):De[Le]=st,De}var Io=function(){function De(){Mo(this,De),mo(this,"store",{})}return zs(De,[{key:"has",value:function(st){return this.store.hasOwnProperty(st)}},{key:"remember",value:function(st,xt){return this.has(st)||(this.store[st]={value:xt()}),this.store[st].value}},{key:"forget",value:function(st){st?this.has(st)&&delete this.store[st]:this.store={}}}]),De}();function Zo(De,Le,st){var xt=function(an){Bs(De,an,{get:function(){var An=this;return Le.remember(an,function(){return st[an].call(An)})}})};for(var Ut in st)xt(Ut)}/*!
- * vue-functions v1.0.3
- * (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe)
- * Released under the MIT License.
- */function No(De){return De===""||De}var Qo=function(De,Le){return{value:Le,done:!!De}},Zs={},va=Hn,ba=Ve?Object.defineProperties:function(Le,st){lt(Le);for(var xt=Me(st),Ut=xt.length,$t=0,an;Ut>$t;)yn.f(Le,an=xt[$t++],st[an]);return Le},Qs=fe.document,Lo=Qs&&Qs.documentElement,gl=be("IE_PROTO"),_o=function(){},ea="prototype",Vs=function(){var De=zt("iframe"),Le=Oe.length,st="<",xt=">",Ut;for(De.style.display="none",Lo.appendChild(De),De.src="javascript:",Ut=De.contentWindow.document,Ut.open(),Ut.write(st+"script"+xt+"document.F=Object"+st+"/script"+xt),Ut.close(),Vs=Ut.F;Le--;)delete Vs[ea][Oe[Le]];return Vs()},Ka=Object.create||function(Le,st){var xt;return Le!==null?(_o[ea]=lt(Le),xt=new _o,_o[ea]=null,xt[gl]=Le):xt=Vs(),st===void 0?xt:ba(xt,st)},us=ue(function(De){var Le=me("wks"),st=fe.Symbol,xt=typeof st=="function",Ut=De.exports=function($t){return Le[$t]||(Le[$t]=xt&&st[$t]||(xt?st:oe)("Symbol."+$t))};Ut.store=Le}),Fo=yn.f,Us=us("toStringTag"),vo=function(De,Le,st){De&&!U(De=st?De:De.prototype,Us)&&Fo(De,Us,{configurable:!0,value:Le})},eo={};Hn(eo,us("iterator"),function(){return this});var Ga=function(De,Le,st){De.prototype=Ka(eo,{next:_n(1,st)}),vo(De,Le+" Iterator")},ya=be("IE_PROTO"),Xa=Object.prototype,_l=Object.getPrototypeOf||function(De){return De=B(De),U(De,ya)?De[ya]:typeof De.constructor=="function"&&De instanceof De.constructor?De.constructor.prototype:De instanceof Object?Xa:null},Rs=us("iterator"),Ds=!([].keys&&"next"in[].keys()),vl="@@iterator",Ja="keys",ta="values",bl=function(){return this},Za=function(De,Le,st,xt,Ut,$t,an){Ga(st,Le,xt);var $n=function(li){if(!Ds&&li in Vn)return Vn[li];switch(li){case Ja:return function(){return new st(this,li)};case ta:return function(){return new st(this,li)}}return function(){return new st(this,li)}},An=Le+" Iterator",Zn=Ut==ta,pr=!1,Vn=De.prototype,Gn=Vn[Rs]||Vn[vl]||Ut&&Vn[Ut],lr=Gn||$n(Ut),Tr=Ut?Zn?$n("entries"):lr:void 0,Lr=Le=="Array"&&Vn.entries||Gn,Ar,zr,Yr;if(Lr&&(Yr=_l(Lr.call(new De)),Yr!==Object.prototype&&Yr.next&&vo(Yr,An,!0)),Zn&&Gn&&Gn.name!==ta&&(pr=!0,lr=function(){return Gn.call(this)}),an&&(Ds||pr||!Vn[Rs])&&Hn(Vn,Rs,lr),Zs[Le]=lr,Zs[An]=bl,Ut)if(Ar={values:Zn?lr:$n(ta),keys:$t?lr:$n(Ja),entries:Tr},an)for(zr in Ar)zr in Vn||va(Vn,zr,Ar[zr]);else In(In.P+In.F*(Ds||pr),Le,Ar);return Ar};Za(Array,"Array",function(De,Le){this._t=G(De),this._i=0,this._k=Le},function(){var De=this._t,Le=this._k,st=this._i++;return!De||st>=De.length?(this._t=void 0,Qo(1)):Le=="keys"?Qo(0,st):Le=="values"?Qo(0,De[st]):Qo(0,[st,De[st]])},"values"),Zs.Arguments=Zs.Array;for(var Qa=us("toStringTag"),Ui="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(","),wi=0;wi<Ui.length;wi++){var Di=Ui[wi],Ci=fe[Di],ro=Ci&&Ci.prototype;ro&&!ro[Qa]&&Hn(ro,Qa,Di),Zs[Di]=Zs.Array}var yl=function(De){return function(Le,st){var xt=String(N(Le)),Ut=ee(st),$t=xt.length,an,$n;return Ut<0||Ut>=$t?De?"":void 0:(an=xt.charCodeAt(Ut),an<55296||an>56319||Ut+1===$t||($n=xt.charCodeAt(Ut+1))<56320||$n>57343?De?xt.charAt(Ut):an:De?xt.slice(Ut,Ut+2):(an-55296<<10)+($n-56320)+65536)}},na=yl(!0);Za(String,"String",function(De){this._t=String(De),this._i=0},function(){var De=this._t,Le=this._i,st;return Le>=De.length?{value:void 0,done:!0}:(st=na(De,Le),this._i+=st.length,{value:st,done:!1})});var xl=us("toStringTag"),wl=Y(function(){return arguments}())=="Arguments",Sl=function(De,Le){try{return De[Le]}catch{}},xa=function(De){var Le,st,xt;return De===void 0?"Undefined":De===null?"Null":typeof(st=Sl(Le=Object(De),xl))=="string"?st:wl?Y(Le):(xt=Y(Le))=="Object"&&typeof Le.callee=="function"?"Arguments":xt},el=us("iterator"),wa=_e.getIteratorMethod=function(De){if(De!=null)return De[el]||De["@@iterator"]||Zs[xa(De)]},kl=_e.getIterator=function(De){var Le=wa(De);if(typeof Le!="function")throw TypeError(De+" is not iterable!");return lt(Le.call(De))},Sa=kl,ka=Sa,Ea=Array.isArray||function(Le){return pn(Le)=="Array"},tl=Qe("species"),Ca=function(De){var Le;return Ea(De)&&(Le=De.constructor,typeof Le=="function"&&(Le===Array||Ea(Le.prototype))&&(Le=void 0),mt(Le)&&(Le=Le[tl],Le===null&&(Le=void 0))),Le===void 0?Array:Le},nl=function(De,Le){return new(Ca(De))(Le)},Bo=function(De,Le){var st=De==1,xt=De==2,Ut=De==3,$t=De==4,an=De==6,$n=De==5||an,An=Le||nl;return function(Zn,pr,Vn){for(var Gn=cn(Zn),lr=mn(Gn),Tr=Dr(pr,Vn,3),Lr=sn(lr.length),Ar=0,zr=st?An(Zn,Lr):xt?An(Zn,0):void 0,Yr,li;Lr>Ar;Ar++)if(($n||Ar in lr)&&(Yr=lr[Ar],li=Tr(Yr,Ar,Gn),De)){if(st)zr[Ar]=li;else if(li)switch(De){case 3:return!0;case 5:return Yr;case 6:return Ar;case 2:zr.push(Yr)}else if($t)return!1}return an?-1:Ut||$t?$t:zr}},El=Bo(5),bo="find",Cs=!0;bo in[]&&Array(1)[bo](function(){Cs=!1}),pt(pt.P+pt.F*Cs,"Array",{find:function(Le){return El(this,Le,arguments.length>1?arguments[1]:void 0)}}),Ct(bo),document.elementsFromPoint||(document.elementsFromPoint=rl);function rl(De,Le){var st=[],xt=void 0;do xt!==document.elementFromPoint(De,Le)?(xt=document.elementFromPoint(De,Le),st.push(xt),xt.style.pointerEvents="none"):xt=!1;while(xt);return st.forEach(function(Ut){return Ut.style.pointerEvents="all"}),st}function Cl(De,Le,st){var xt=document.elementsFromPoint(De,Le),Ut,$t,an=[],$n=!0,An=!1,Zn=void 0;try{for(var pr=ka(xt),Vn;!($n=(Vn=pr.next()).done);$n=!0){var Gn=Vn.value;if(!$t)Xs(Gn,"tree-node")&&($t=Gn);else{if(Xs(Gn,"tree")){Ut=Gn;break}an.push(Gn)}}}catch(Ar){An=!0,Zn=Ar}finally{try{!$n&&pr.return!=null&&pr.return()}finally{if(An)throw Zn}}if(Ut){var lr=!1;if(!$a($t,Ut))for(var Tr=0;Tr<an.length;Tr++){var Lr=an[Tr];if(!$a(Lr,Ut)){lr=!0;break}}if(!lr)return st.find(function(Ar){return Ar.$el===Ut})}}function $a(De,Le){for(var st=De;st;)if(st=st.parentNode,st===Le)return!0}var $r={nothing:function(Le){},after:function(Le){Wr(Le.dplh,Le.targetNode)},before:function(Le){Hi(Le.targetNode.parent)?gs(Le.dplh,Le.targetNode):Wr(Le.dplh,Le.targetNode.parent)},append:function(Le){Hi(Le.targetNode)?(uo(Le.dplh,Le.targetNode),Le.targetNode.open||Le.store.toggleOpen(Le.targetNode)):Wr(Le.dplh,Le.targetNode)},prepend:function(Le){Hi(Le.targetNode)?(Ii(Le.dplh,Le.targetNode),Le.targetNode.open||Le.store.toggleOpen(Le.targetNode)):Wr(Le.dplh,Le.targetNode)},"after target parent":function(Le){Wr(Le.dplh,Le.targetNode.parent)},"append prev":function(Le){Hi(Le.targetPrev)?(uo(Le.dplh,Le.targetPrev),Le.targetPrev.open||Le.store.toggleOpen(Le.targetPrev)):Wr(Le.dplh,Le.targetPrev)},"append current tree":function(Le){Hi(Le.currentTree.rootData)&&uo(Le.dplh,Le.currentTree.rootData)}};function Wr(De,Le,st){if(Le){var xt=il(Le,function(Ut){return Ut.parent&&Hi(Ut.parent)});if(xt)_s(De,xt);else return!1}else return!1;return!0}function es(De){if(!xo.hasOwnProperty(De._id)){var Le;De.hasOwnProperty("draggable")?Le=De.draggable:De.parent?Le=es(De.parent):Le=!0,xo[De._id]=Le}return xo[De._id]}function Hi(De){if(!jo.hasOwnProperty(De._id)){var Le;De.hasOwnProperty("droppable")?Le=De.droppable:De.parent?Le=Hi(De.parent):Le=!0,jo[De._id]=Le}return jo[De._id]}function xs(De,Le,st,xt){var Ut=Le.length;if(xt)for(var $t=Ut-1;$t>=0;$t--){var an=Le[$t];if(an!==De.node&&st(an,$t))return an}else for(var $n=0;$n<Ut;$n++){var An=Le[$n];if(An!==De.node&&st(An,$n))return An}}function il(De,Le){for(var st=De;st;){if(Le(st))return st;st=st.parent}}for(var yo={"targetNode existed":function(Le){return Le.targetNode},"targetNode is placeholder":function(Le){return Le.targetNode.isDragPlaceHolder},"targetNode at top":function(Le){return Le.targetAtTop},"targetNode at bottom":function(Le){return Le.targetAtBottom},"targetNode is the second child of root":function(Le){return Le.currentTreeRootSecondChildExcludingDragging===Le.targetNode},"currentTree existed":function(Le){return Le.currentTree},"currentTree empty":function(Le){return!xs(Le,Le.currentTree.rootData.children,function(st){return st})},"placeholder existed":function(Le){return Le.dplhEl},"placeholder in currentTree":function(Le){return Le.dplhElInCurrentTree},"placeholder at top":function(Le){return Le.dplhAtTop},"targetNode is open":function(Le){return Le.targetNode.open},"targetNode has children excluding placeholder":function(Le){return xs(Le,Le.targetNode.children,function(st){return st!==Le.dplh})},"targetNode is 1st child":function(Le){return xs(Le,Le.targetNode.parent.children,function(st){return st})===Le.targetNode},"targetNode is last child":function(Le){return xs(Le,Le.targetNode.parent.children,function(st){return st},!0)===Le.targetNode},"on targetNode middle":function(Le){return Le.offset.y<=Le.tiMiddleY},"at left":function(Le){return Le.offset.x<Le.tiOffset.x},"at right":function(Le){return Le.offset.x>Le.tiOffset.x},"at indent right":function(Le){return Le.offset.x>Le.tiOffset.x+Le.currentTree.indent},"at indent left":function(Le){return Le.offset.x<Le.tiOffset.x+Le.currentTree.indent}},Ta=Ye(yo),$l=function(){var Le=Ta[zo],st=yo[Le];yo[Le]=function(){return!!st.apply(void 0,arguments)}},zo=0;zo<Ta.length;zo++)$l();var Ms,jo={},xo={};function ds(De){var Le=this.store.trees,st=De.store,xt={event:De.event,el:st.el,vm:this,node:this.data,store:this.store,dplh:this.store.dplh,draggableHelperData:{opt:De.options,store:st}};Zo(xt,new Io,{nodeInnerEl:function(){return this.el.querySelector(".tree-node-inner")},offset:function(){return hi(this.nodeInnerEl)},offset2:function(){return{x:this.offset.x+this.nodeInnerEl.offsetWidth,y:this.offset.y+this.nodeInnerEl.offsetHeight}},offsetToViewPort:function(){var $n=this.nodeInnerEl.getBoundingClientRect();return $n.x=this.store.dir==="rtl"?$n.right:$n.left,$n.y=$n.top,$n},currentTree:function(){var $n=Cl(this.offsetToViewPort.x,this.offsetToViewPort.y,Le);if($n){var An=this.store;if(Ms==null&&(Ms=An),Ms!==$n){if(!No(An.crossTree)||!No($n.crossTree))return;Ms=$n}return No($n.droppable)?$n:void 0}},currentTreeRootEl:function(){return document.getElementById(this.currentTree.rootData._id)},currentTreeRootOf4:function(){return Vo(this.currentTreeRootEl,this.currentTree.space)},currentTreeRootSecondChildExcludingDragging:function(){var $n=this;return this.currentTree.rootData.children.slice(0,3).filter(function(An){return An!==$n.node})[1]},dplhEl:function(){return document.getElementById(this.dplh._id)},dplhElInCurrentTree:function(){return!!this.currentTree.$el.querySelector("#".concat(this.dplh._id))},dplhOf4:function(){return Vo(this.dplhEl,this.currentTree.space)},dplhAtTop:function(){return Math.abs(this.dplhOf4.y-this.currentTreeRootOf4.y)<5},targetAtTop:function(){return Math.abs(this.tiOf4.y-this.currentTreeRootOf4.y)<5},targetAtBottom:function(){return Math.abs(this.tiOf4.y2-this.currentTreeRootOf4.y2)<5},targetNode:function(){var $n=this.currentTree;if(!$n)throw"no currentTree";var An=this.offset;An.x;for(var Zn=An.y,pr=$n.rootData;;){var Vn=pr.children;if(!Vn||(this.node.parent===pr&&(Vn=Vn.slice(),Vn.splice(Vn.indexOf(this.node),1)),Vn.length===0))break;var Gn=ma(Vn,function(Lr){var Ar=document.getElementById(Lr._id),zr=hi(Ar).y,Yr=zr+Ar.offsetHeight+$n.space;return Yr<Zn?-1:zr<=Zn?0:1},null,null,!0);if(Gn.hit?pr=Gn.value:Gn.bigger?pr=Vn[Gn.index-1]:pr=Gn.value,!pr){pr=Vn[0];break}if(!pr)break;var lr=document.getElementById(pr._id).querySelector(".tree-node-inner"),Tr=Vo(lr,$n.space);if(Tr.y<=Zn&&Zn<=Tr.y2)break}return pr},targetNodeEl:function(){return document.getElementById(this.targetNode._id)},tiInnerEl:function(){return this.targetNodeEl.querySelector(".tree-node-inner")},tiOffset:function(){return hi(this.tiInnerEl)},tiOf4:function(){return Vo(this.tiInnerEl,this.currentTree.space)},tiMiddleY:function(){return this.tiOffset.y+this.tiInnerEl.offsetHeight/2},targetPrevEl:function(){var $n=this.targetNodeEl.previousSibling;return Xs($n,"dragging")&&($n=$n.previousSibling),$n},targetPrev:function(){var $n=this.targetPrevEl.getAttribute("id");return this.currentTree.getNodeById($n)}});var Ut={},$t=function($n){if(!Ut.hasOwnProperty($n)){var An;try{An=yo[$n](xt)}catch(Zn){An=Zn;try{({}).DEVELOPE_SELF&&console.warn("failed to execute rule '".concat($n,"'"),Zn)}catch{}}Ut[$n]=An}return Ut[$n]};$t("currentTree existed")===!0?$t("targetNode is placeholder")===!1?$t("targetNode is the second child of root")===!0?$t("targetNode has children excluding placeholder")===!1?$t("on targetNode middle")===!0?$r.before(xt):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(xt)):$t("targetNode has children excluding placeholder")===!0&&$r.prepend(xt):$t("targetNode is the second child of root")===!1&&($t("currentTree empty")===!1?$t("targetNode at top")===!0?$t("placeholder in currentTree")===!0?$t("targetNode has children excluding placeholder")===!1?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(xt):$t("on targetNode middle")===!0&&$r.before(xt):$t("targetNode has children excluding placeholder")===!0&&($t("on targetNode middle")===!1?$r.prepend(xt):$t("on targetNode middle")===!0&&$r.before(xt)):$t("placeholder in currentTree")===!1&&$r.before(xt):$t("targetNode at top")===!1&&($t("targetNode at bottom")===!1?$t("placeholder at top")===!0?$r.prepend(xt):$t("placeholder at top")===!1&&($t("targetNode has children excluding placeholder")===!0?$r.prepend(xt):$t("targetNode has children excluding placeholder")===!1&&($t("targetNode is 1st child")===!1?$t("targetNode is last child")===!1?$t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(xt):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(xt)):$t("targetNode is last child")===!0&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(xt)):$t("targetNode is 1st child")===!0&&($t("targetNode is last child")===!0?$r.append(xt):$t("targetNode is last child")===!1&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(xt):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(xt)))))):$t("targetNode at bottom")===!0&&($t("placeholder in currentTree")===!0?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(xt):$t("on targetNode middle")===!0&&$r.append(xt):$t("placeholder in currentTree")===!1&&$r.append(xt))):$t("currentTree empty")===!0&&$r["append current tree"](xt)):$t("targetNode is placeholder")===!0&&($t("targetNode at bottom")===!1?$t("targetNode is the second child of root")===!1?$t("targetNode is 1st child")===!0?$t("targetNode is last child")===!1||$t("targetNode is last child")===!0&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left"):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left"))):$t("targetNode is 1st child")===!1&&($t("targetNode is last child")===!0?$t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))):$t("targetNode is last child")===!1&&($t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at right":"at left")===!0||$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at right":"at left")===!0||$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))))):$t("targetNode is the second child of root")===!0&&($t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))):$t("targetNode at bottom")===!0&&($t("targetNode is 1st child")===!0?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left"):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!1||$t(this.store.dir==="rtl"?"at right":"at left")===!0&&$r["after target parent"](xt)):$t("targetNode is 1st child")===!1&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](xt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](xt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")))))):$t("currentTree existed")}function Vo(De,Le){var st=hi(De);return st.x2=st.x+De.offsetWidth,st.y2=st.y+De.offsetHeight+Le,st}ds.dragStart=function(){},ds.dragEnd=function(){Ms=null,jo={},xo={}};var sl={extends:St,name:"TreeNode",mounted:function(){var Le=this;if(this.store.isNodeDraggable=es,this.store.isNodeDroppable=Hi,!(this.isRoot||this.data.isDragPlaceHolder)){var st=this.store.dplh;this.$watch("store.draggable",function(xt){if(No(xt)){var Ut=Le.store.getTriggerEl?Le.store.getTriggerEl(Le):Le.$el.querySelector(".tree-node-inner");Le._draggableDestroy=Js(Ut,{preventSelect:No(Le.store.preventSelect),getEl:function(){return Le.$el},minTranslate:10,drag:function(an,$n,An){ds.dragStart();var Zn={event:an,options:$n,store:An};if(Le.store.ondragstart&&Le.store.ondragstart(Le.data,Zn)===!1||!es(Le.data))return!1;Le.store.$emit("drag",Le.data);var pr=Le.data.parent.children;Le.startPosition={siblings:pr,index:pr.indexOf(Le.data)},st.innerStyle.height=An.el.offsetHeight+"px",_s(st,Le.data),Le.data.class+=" dragging"},moving:function(an,$n,An){if(An.movedCount!==0){var Zn={event:an,options:$n,store:An};return ds.call(Le,Zn)}},drop:function(an,$n,An){ds.dragEnd();var Zn={event:an,options:$n,store:An};if(Le.store.ondragend&&Le.store.ondragend(Le.data,Zn)===!1)Ji(st.parent.children,st);else{var pr=st._vm.store,Vn=pr!==Le.store,Gn=Vn?Le.store:null;_s(Le.data,st),Ji(st.parent.children,st),Le.data.class=Le.data.class.replace(/(^| )dragging( |$)/g," "),pr.$emit("drop",Le.data,pr,Gn),Gn&&Gn.$emit("drop",Le.data,pr,Gn);var lr=Le.data.parent.children;lr===Le.startPosition.siblings&&lr.indexOf(Le.data)===Le.startPosition.index||(Le.store.$emit("change",Le.data,pr,Gn),Gn&&Gn.$emit("change",Le.data,pr,Gn)),Le.startPosition=null}}})}else Le._draggableDestroy&&(Le._draggableDestroy(),Le._draggableDestroy=null)},{immediate:!0})}}};const Tl=sl,ra=void 0,Oa=void 0,ol=void 0;function Ol(De,Le,st,xt,Ut,$t,an,$n){const An=(typeof st=="function"?st.options:st)||{};return An.__file="DraggableTreeNode.vue",An.render||(An.render=De.render,An.staticRenderFns=De.staticRenderFns,An._compiled=!0,Ut&&(An.functional=!0)),An._scopeId=xt,An}var Pa=Ol({},ra,Tl,Oa,ol),Aa=[],Pl={_id:"draggable_tree_drag_placeHolder",level:null,droppable:!1,isDragPlaceHolder:!0,class:"draggable-placeholder",style:{},innerStyle:{},innerClass:"draggable-placeholder-inner",innerBackStyle:{},innerBackClass:"draggable-placeholder-inner-back"},ia={extends:wr,props:{getTriggerEl:{type:Function},draggable:{},droppable:{default:!0},crossTree:{},ondragstart:{type:Function},ondragend:{type:Function},preventSelect:{default:!0},dir:{type:String,default:"ltr"}},components:{TreeNode:Pa},data:function(){return{dplh:Pl,trees:Aa}},created:function(){Aa.push(this)},mounted:function(){},beforeDestroy:function(){Ji(Aa,this)}};const al=ia,Al=void 0,Rl=void 0,ll=void 0;function wo(De,Le,st,xt,Ut,$t,an,$n){const An=(typeof st=="function"?st.options:st)||{};return An.__file="DraggableTree.vue",An.render||(An.render=De.render,An.staticRenderFns=De.staticRenderFns,An._compiled=!0,Ut&&(An.functional=!0)),An._scopeId=xt,An}var Ra=wo({},Al,al,Rl,ll);I.Tree=wr,I.TreeNode=St,I.DraggableTree=Ra,I.DraggableTreeNode=Pa,Object.defineProperty(I,"__esModule",{value:!0})})})(vueDraggableNestedTree,vueDraggableNestedTree.exports);var vueDraggableNestedTreeExports=vueDraggableNestedTree.exports;const _sfc_main$2m={props:{page:Object,depth:Number,root:Boolean,vm:Object,firstPageIsRoot:Boolean,isOpen:Boolean,hasChildren:Boolean,showSlugs:Boolean,showBlueprint:Boolean,editable:Boolean},data(){return{editing:!1}},computed:{isTopLevel(){return this.depth===1},isRoot(){if(!this.firstPageIsRoot||!this.isTopLevel)return!1;const M=this.vm.data.parent.children[0].id;return this.page.id===M},isEntry(){return!!this.page.id},isLink(){return!this.page.id&&this.page.title&&this.page.url},isText(){return this.page.title&&!this.page.url},title(){return this.page.title||this.page.entry_title||this.page.url}},methods:{getStatusClass(){switch(this.page.status){case"published":return"bg-green-600";case"draft":return"bg-gray-400";default:return"bg-transparent border border-gray-600"}},getStatusTooltip(){let M=__(this.page.status)||__("Text item");return M[0].toUpperCase()+M.slice(1)},remove(){const M=this.page._vm.store;M.deleteNode(this.page),this.$emit("removed",M)},orphanChildren(){const M=this.page._vm.store;this.vm.data.children.slice().forEach($=>insertBefore($,this.vm.data)),this.$emit("children-orphaned",M)}}};var _sfc_render$2m=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[$._t("branch-action",function(){return[$.editable?I("div",{staticClass:"page-move w-6"}):$._e()]},{branch:$.page}),I("div",{staticClass:"flex items-center flex-1 p-2 rtl:mr-2 ltr:ml-2 text-xs leading-normal"},[I("div",{staticClass:"flex items-center grow",on:{click:function(N){return $.$emit("branch-clicked",$.page)}}},[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(),expression:"getStatusTooltip()"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass()}),$.isRoot?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("This is the root page"),expression:"__('This is the root page')"}],staticClass:"rtl:ml-2 ltr:mr-2 h-4 w-4 text-gray-800",attrs:{name:"home-page"}}):$._e(),I("a",{class:{"text-sm font-medium":$.isTopLevel},domProps:{textContent:$._s($.title)},on:{click:function(N){return $.$emit("edit",N)}}}),$.showSlugs?I("span",{staticClass:"rtl:mr-2 ltr:ml-2 font-mono text-gray-700 text-2xs pt-px"},[$._v(" "+$._s($.isRoot?"/":$.page.slug)+" ")]):$._e(),$.hasChildren?I("button",{staticClass:"p-2 text-gray-600 hover:text-gray-700 transition duration-100 outline-none flex",class:{"-rotate-90":!$.isOpen},on:{click:function(N){return $.$emit("toggle-open")}}},[I("svg-icon",{staticClass:"h-1.5",attrs:{name:"micro/chevron-down-xs"}})],1):$._e(),$.page.collection&&$.editable?I("div",{staticClass:"rtl:mr-4 ltr:ml-4 flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/content-writing"}}),I("div",{staticClass:"rtl:mr-1 ltr:ml-1"},[I("a",{attrs:{href:$.page.collection.create_url},domProps:{textContent:$._s($.__("Add"))}}),I("span",{staticClass:"text-gray"},[$._v("/")]),I("a",{attrs:{href:$.page.collection.edit_url},domProps:{textContent:$._s($.__("Edit"))}})])],1):$._e()],1),I("div",{staticClass:"rtl:pl-2 ltr:pr-2 flex items-center"},[$.showBlueprint&&$.page.entry_blueprint?I("div",{staticClass:"shrink text-4xs text-gray-600 uppercase ml-4",domProps:{textContent:$._s($.__($.page.entry_blueprint.title))}}):$._e(),$._t("branch-icon",null,{branch:$.page}),I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4",class:{invisible:$.isRoot,hidden:!$.editable}},[$._t("branch-options",null,{branch:$.page,depth:$.depth,removeBranch:$.remove,orphanChildren:$.orphanChildren})],2)],2)])],2)},_sfc_staticRenderFns$2m=[],__component__$2n=normalizeComponent$3(_sfc_main$2m,_sfc_render$2m,_sfc_staticRenderFns$2m,!1,null,null,null,null);const TreeBranch$1=__component__$2n.exports,_sfc_main$2l={components:{DraggableTree:vueDraggableNestedTreeExports.DraggableTree,TreeBranch:TreeBranch$1},props:{pagesUrl:{type:String,required:!0},submitUrl:{type:String},submitParameters:{type:Object,default:()=>({})},createUrl:{type:String},site:{type:String,required:!0},localizations:{type:Array},maxDepth:{type:Number,default:1/0},expectsRoot:{type:Boolean,required:!0},showSlugs:{type:Boolean,default:!1},preferencesPrefix:{type:String},editable:{type:Boolean,default:!0},blueprints:{type:Array}},data(){return{loading:!1,saving:!1,pages:[],treeData:[]}},computed:{activeLocalization(){return _.findWhere(this.localizations,{active:!0})},preferencesKey(){return this.preferencesPrefix?`${this.preferencesPrefix}.${this.site}.pagetree`:null},direction(){return this.$config.get("direction","rtl")}},watch:{site(M){this.getPages()}},created(){this.getPages().then(()=>{this.initialPages=this.pages}),this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},methods:{getPages(){this.loading=!0;const M=`${this.pagesUrl}?site=${this.site}`;return this.$axios.get(M).then($=>{this.pages=$.data.pages,this.loadTreeState(this.pages),this.updateTreeData(),this.loading=!1})},treeChanged(M,$){if(!this.validate()){this.updateTreeData();return}this.treeUpdated($)},treeUpdated(M){M=M||this.$refs.tree,this.pages=M.getPureData(),this.$emit("changed")},validate(){let M=!0;return this.traverseTree(this.treeData,($,{isRoot:I})=>{if(I&&$.children.length)return M=!1,!1}),M},cleanPagesForSubmission(M){return _.map(M,$=>({id:$.id,children:this.cleanPagesForSubmission($.children)}))},save(){if(!this.editable)return;this.saving=!0;const M={pages:this.cleanPagesForSubmission(this.pages),site:this.site,expectsRoot:this.expectsRoot,...this.submitParameters};return this.$axios.patch(this.submitUrl,M).then($=>(this.$emit("saved",$),this.$toast.success(__("Saved")),this.initialPages=this.pages,this.saveTreeState(),$)).catch($=>{let I=$.response?$.response.data.message:__("Something went wrong");if($.response&&$.response.status===422){const{errors:N}=$.response.data;I=N[Object.keys(N)[0]][0]}return this.$toast.error(I),Promise.reject($)}).finally(()=>this.saving=!1)},addPages(M,$){const I=$?$.data.children:this.treeData;M.forEach(N=>{I.push({id:N.id,entry:N.entry,title:N.title,entry_title:N.entry_title,slug:N.slug,url:N.url,edit_url:N.edit_url,status:N.status,children:[]})}),this.treeUpdated()},updateTreeData(){this.treeData=clone(this.pages)},pageRemoved(M){this.pages=M.getPureData(),this.$emit("changed")},childrenOrphaned(M){this.pages=M.getPureData(),this.$emit("changed")},localizationSelected(M){M.active||(M.exists?this.editLocalization(M):this.createLocalization(M))},editLocalization(M){window.location=M.url},createLocalization(M){console.log("todo.")},cancel(){confirm(__("Are you sure?"))&&(this.pages=this.initialPages,this.updateTreeData(),this.$emit("canceled"))},treeDragstart(M){let $=1;this.traverseTree(M,(N,{depth:B})=>{$=Math.max($,B)});const I=this.maxDepth-$;this.traverseTree(this.treeData,(N,{depth:B,isRoot:j})=>{N!==M&&this.$set(N,"droppable",!j&&B<=I)})},pageUpdated(M){this.pages=M.getPureData(),this.$emit("changed")},expandAll(){this.traverseTree(this.treeData,M=>{M.open=!0}),this.saveTreeState()},collapseAll(){this.traverseTree(this.treeData,M=>{M.open=!1}),this.saveTreeState()},loadTreeState(M){if(!this.preferencesKey)return;const $=JSON.parse(localStorage.getItem(this.preferencesKey)||"[]");this.applyTreeState($,M)},saveTreeState(){if(!this.preferencesKey)return;const M=this.getTreeState(this.treeData);return localStorage.setItem(this.preferencesKey,JSON.stringify(M))},getTreeState(M){const $=[];return this.traverseTree(M,(I,{path:N})=>{I.children.length&&!I.open&&$.push(N)}),$},applyTreeState(M,$){this.traverseTree($,(I,{path:N})=>{I.children.length&&(I.open=!M.includes(N))})},traverseTree(M,$,I=[]){(Array.isArray(M)?M:[M]).every((B,j)=>{const U=[...I,j],q=U.join("."),Y=U.length,K=this.expectsRoot&&Y===1&&j===0;return $(B,{path:q,depth:Y,index:j,isRoot:K})===!1?!1:(B.children.length&&this.traverseTree(B.children,$,U),!0)})},getNodeByBranchId(M){let $;return breadthFirstSearch(this.treeData,I=>{if(I.id===M)return $=I,!1}),$}}};var _sfc_render$2l=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"mb-2 flex justify-end"},[I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Expand All"))},on:{click:$.expandAll}}),I("a",{staticClass:"text-2xs text-blue rtl:ml-2 ltr:mr-2 underline",domProps:{textContent:$._s($.__("Collapse All"))},on:{click:$.collapseAll}})]),$.loading?I("div",{staticClass:"loading card"},[I("loading-graphic")],1):$._e(),!$.loading&&$.pages.length==0?I("div",{staticClass:"no-results w-full flex items-center"},[$._t("empty")],2):$._e(),$.loading?$._e():I("div",{staticClass:"page-tree w-full"},[I("draggable-tree",{ref:"tree",attrs:{draggable:$.editable,data:$.treeData,space:1,indent:24,dir:$.direction},on:{change:$.treeChanged,drag:$.treeDragstart,nodeOpenChanged:$.saveTreeState},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){var U;return I("tree-branch",{attrs:{page:N,depth:j.level,vm:j,"first-page-is-root":$.expectsRoot,"is-open":N.open,"has-children":N.children.length>0,"show-slugs":$.showSlugs,"show-blueprint":((U=$.blueprints)==null?void 0:U.length)>1,editable:$.editable},on:{edit:function(q){return $.$emit("edit-page",N,j,B,q)},"toggle-open":function(q){return B.toggleOpen(N)},removed:$.pageRemoved,"children-orphaned":$.childrenOrphaned,"branch-clicked":function(q){return $.$emit("branch-clicked",N)}},scopedSlots:$._u([{key:"branch-action",fn:function(q){return[$._t("branch-action",null,null,{...q,vm:j})]}},{key:"branch-icon",fn:function(q){return[$._t("branch-icon",null,null,{...q,vm:j})]}},{key:"branch-options",fn:function(q){return[$._t("branch-options",null,null,{...q,vm:j})]}}],null,!0)})}}],null,!1,3080005019)})],1)])},_sfc_staticRenderFns$2l=[],__component__$2m=normalizeComponent$3(_sfc_main$2l,_sfc_render$2l,_sfc_staticRenderFns$2l,!1,null,null,null,null);const PageTree=__component__$2m.exports,_sfc_main$2k={mixins:[HasFilters],components:{PageTree},props:{filtersUrl:String,selectionsUrl:String,initialSelections:Array,initialSortColumn:String,initialSortDirection:String,maxSelections:Number,site:String,search:Boolean,type:String,name:String,exclusions:{type:Array,default:()=>[]},initialColumns:{type:Array,default:()=>[]},tree:Object},data(){return{source:null,initializing:!0,loading:!0,items:[],meta:{},filters:[],sortColumn:this.initialSortColumn,sortDirection:this.initialSortDirection,page:1,selections:_.clone(this.initialSelections),columns:this.initialColumns,visibleColumns:this.initialColumns.filter(M=>M.visible),view:"list",lastItemClicked:null}},computed:{parameters(){return{sort:this.sortColumn,order:this.sortDirection,page:this.page,site:this.site,exclusions:this.exclusions,filters:utf8btoa(JSON.stringify(this.activeFilters)),columns:this.visibleColumns.map(M=>M.field).join(",")}},hasMaxSelections(){return this.maxSelections===1/0?!1:!!this.maxSelections},reachedSelectionLimit(){return this.selections.length===this.maxSelections},singleSelect(){return this.maxSelections===1},canUseTree(){return!!this.tree},initialView(){if(!this.canUseTree)return"list";const M=this.canUseTree?"tree":"list";return localStorage.getItem(this.viewLocalStorageKey)||M},viewLocalStorageKey(){return`statamic.selector.field.${this.name}`}},mounted(){this.view=this.initialView,this.getFilters().then(()=>{this.autoApplyFilters(this.filters),this.initialRequest()})},watch:{parameters:{deep:!0,handler(M,$){this.initializing||JSON.stringify($)!==JSON.stringify(M)&&this.request()}},loading:{immediate:!0,handler(M){this.$progress.loading("relationship-selector-listing",M)}},searchQuery(M){this.sortColumn=null,this.sortDirection=null,this.page=1,this.request()},selections(){this.maxSelections===1&&this.selections.length===1&&this.select()},view(M){localStorage.setItem(this.viewLocalStorageKey,M)}},methods:{getFilters(){return this.filtersUrl?this.$axios.get(this.filtersUrl).then(M=>{this.filters=M.data}):Promise.resolve()},initialRequest(){return this.request().then(()=>{this.search&&this.view==="list"&&this.$refs.search.focus()})},request(){this.loading=!0,this.source&&this.source.cancel(),this.source=this.$axios.CancelToken.source();const M={...this.parameters,search:this.searchQuery};return this.$axios.get(this.selectionsUrl,{params:M,cancelToken:this.source.token}).then($=>{this.columns=$.data.meta.columns,this.items=$.data.data,this.meta=$.data.meta,this.activeFilterBadges={...$.data.meta.activeFilterBadges},this.loading=!1,this.initializing=!1}).catch($=>{this.$axios.isCancel($)||(this.loading=!1,this.initializing=!1,this.$toast.error($.response?$.response.data.message:__("Something went wrong"),{duration:null}))})},sorted(M,$){this.sortColumn=M,this.sortDirection=$},setPage(M){this.page=M},select(){this.$emit("selected",this.selections),this.close()},close(){this.$emit("closed")},selectionsUpdated(M){this.selections=M},getStatusClass(M){return M.published&&M.private?"bg-transparent border border-gray-600":M.published?"bg-green-600":"bg-gray-400"},getStatusLabel(M){if(M.status==="published")return __("Published");if(M.status==="scheduled")return __("Scheduled");if(M.status==="expired")return __("Expired");if(M.status==="draft")return __("Draft")},getStatusTooltip(M){if(M.status==="published")return M.collection.dated?__("messages.status_published_with_date",{date:M.date}):null;if(M.status==="scheduled")return __("messages.status_scheduled_with_date",{date:M.date});if(M.status==="expired")return __("messages.status_expired_with_date",{date:M.date});if(M.status==="draft")return null},columnShowing(M){return this.visibleColumns.find($=>$.field===M)},isRedirectBranch(M){return M.redirect!=null},isSelected(M){return this.selections.includes(M)},toggleSelection(M){const $=this.selections.indexOf(M);if($>-1){this.selections.splice($,1);return}this.singleSelect&&this.selections.pop(),this.reachedSelectionLimit||this.selections.push(M)},checkboxClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.toggleSelection(M.id,$),I.target.checked&&(this.lastItemClicked=$)}}};var _sfc_render$2k=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-white"},[$.initializing?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),!$.initializing&&$.view==="list"?I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection,selections:$.selections,"max-selections":$.maxSelections},on:{"selections-updated":$.selectionsUpdated},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"flex flex-col h-full"},[I("div",{staticClass:"bg-white z-1"},[I("div",{staticClass:"py-2 px-4 flex items-center justify-between"},[I("data-list-search",{ref:"search",staticClass:"h-8 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(N){$.searchQuery=N},expression:"searchQuery"}}),$.canUseTree?I("div",{staticClass:"btn-group rtl:mr-4 ltr:ml-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)]):$._e()],1),I("div",[I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery},on:{changed:function(N){return $.filterChanged(N,!1)}}})],1)]),I("div",{staticClass:"flex-1 flex flex-col min-h-0"},[I("div",{staticClass:"flex flex-col h-full justify-start"},[I("div",{staticClass:"flex-1 overflow-scroll"},[I("data-list-table",{staticClass:"cursor-pointer",attrs:{loading:$.loading,"allow-bulk-actions":!0,"toggle-selection-on-row-click":!0,type:$.type},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-title",fn:function({row:N}){return[I("div",{staticClass:"flex items-center"},[N.status&&!$.columnShowing("status")?I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusLabel(N),expression:"getStatusLabel(entry)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass(N)}):$._e(),$._v(" "+$._s(N.title)+" ")])]}},{key:"cell-status",fn:function({row:N}){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(N),expression:"getStatusTooltip(entry)"}],staticClass:"status-index-field select-none",class:`status-${N.status}`,domProps:{textContent:$._s($.getStatusLabel(N))}})]}},{key:"cell-url",fn:function({row:N}){return[I("span",{staticClass:"text-2xs"},[$._v($._s(N.url))])]}}],null,!0)})],1),$.meta.last_page>1?I("data-list-pagination",{staticClass:"border-t shadow-lg",attrs:{"resource-meta":$.meta,inline:!0,"scroll-to-top":!1},on:{"page-selected":$.setPage}}):$._e(),I("div",{staticClass:"p-4 border-t flex items-center justify-between bg-gray-200"},[I("div",{staticClass:"text-sm text-gray-700",domProps:{textContent:$._s($.hasMaxSelections?$.__n(":count/:max selected",$.selections,{max:$.maxSelections}):$.__n(":count item selected|:count items selected",$.selections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),!$.hasMaxSelections||$.maxSelections>1?I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")]):$._e()])])],1)])])}}],null,!1,2052533075)}):$._e(),!$.initializing&&$.canUseTree&&$.view==="tree"?[I("div",{staticClass:"flex flex-col h-full"},[I("div",{staticClass:"bg-white bg-gray-200 shadow px-4 py-2 z-1 h-13 flex items-center justify-end"},[I("h1",{staticClass:"flex-1 flex items-center text-xl"},[$._v($._s($.tree.title))]),I("div",{staticClass:"btn-group rtl:mr-4 ltr:ml-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)])]),I("div",{staticClass:"flex-1 flex flex-col min-h-0"},[I("div",{staticClass:"flex flex-col h-full justify-start"},[I("div",{staticClass:"flex-1 overflow-scroll bg-gray-200 p-4"},[I("page-tree",{ref:"tree",attrs:{"pages-url":$.tree.url,"show-slugs":$.tree.showSlugs,blueprints:$.tree.blueprints,"expects-root":$.tree.expectsRoot,site:$.site,"preferences-prefix":`selector-field.${$.name}`,editable:!1},on:{"branch-clicked":function(N){$.$refs[`tree-branch-${N.id}`].click()}},scopedSlots:$._u([{key:"branch-action",fn:function({branch:N,index:B}){return[I("div",[I("input",{ref:`tree-branch-${N.id}`,staticClass:"mt-3 rtl:mr-3 ltr:ml-3",attrs:{type:"checkbox",disabled:$.reachedSelectionLimit&&!$.singleSelect&&!$.isSelected(N.id),id:`checkbox-${N.id}`},domProps:{value:N.id,checked:$.isSelected(N.id)},on:{click:function(j){return $.checkboxClicked(N,B,j)}}})])]}},{key:"branch-icon",fn:function({branch:N}){return[$.isRedirectBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Redirect"),expression:"__('Redirect')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/external-link"}}):$._e()]}}],null,!1,113204075)})],1),I("div",{staticClass:"p-4 border-t flex items-center justify-between bg-gray-200"},[I("div",{staticClass:"text-sm text-gray-700",domProps:{textContent:$._s($.hasMaxSelections?$.__n(":count/:max selected",$.selections,{max:$.maxSelections}):$.__n(":count item selected|:count items selected",$.selections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),!$.hasMaxSelections||$.maxSelections>1?I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")]):$._e()])])])])])]:$._e()],2)},_sfc_staticRenderFns$2k=[],__component__$2l=normalizeComponent$3(_sfc_main$2k,_sfc_render$2k,_sfc_staticRenderFns$2k,!1,null,null,null,null);const ItemSelector=__component__$2l.exports,_sfc_main$2j={mixins:[InlinePublishForm],props:{site:String,itemUrl:String},data(){return{creating:!0,method:"post",action:"store",title:__("Create")}},inject:["storeName"],methods:{saved(M){this.$emit("created",M.data.data),this.$nextTick(()=>this.close())}}},_sfc_render$2j=null,_sfc_staticRenderFns$2j=null;var __component__$2k=normalizeComponent$3(_sfc_main$2j,_sfc_render$2j,_sfc_staticRenderFns$2j,!1,null,null,null,null);const InlineCreateForm=__component__$2k.exports,_sfc_main$2i={components:{InlineCreateForm},props:{site:String,creatables:Array,component:String,componentProps:Object},data(){return{creatable:null}},computed:{isCreating(){return this.creatable!==null}},methods:{itemCreated(M){this.stopCreating(),this.$emit("created",M)},stopCreating(){this.creatable=null},create(){this.creatables.length===1&&this.select(this.creatables[0])},select(M){this.creatable=M}}};var _sfc_render$2i=function M(){var $=this,I=$._self._c;return I("div",[I("dropdown-list",{attrs:{disabled:$.creatables.length===1},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"text-button text-blue hover:text-gray-800 rtl:ml-6 ltr:mr-6 flex items-center outline-none",on:{click:$.create}},[I("svg-icon",{staticClass:"rtl:ml-1 ltr:mr-1 h-4 w-4 flex items-center",attrs:{name:"light/content-writing"}}),I("span",{staticClass:"hidden @sm:block",domProps:{textContent:$._s($.__("Create & Link Item"))}}),I("span",{staticClass:"@sm:hidden",domProps:{textContent:$._s($.__("Create"))}})],1)]},proxy:!0}])},$._l($.creatables,function(N){return I("dropdown-item",{key:N.url,attrs:{text:N.title},on:{click:function(B){return $.select(N)}}})}),1),$.isCreating?I("inline-create-form",{attrs:{site:$.site,"item-url":$.creatable.url,component:$.component,"component-props":$.componentProps},on:{created:$.itemCreated,closed:$.stopCreating}}):$._e()],1)},_sfc_staticRenderFns$2i=[],__component__$2j=normalizeComponent$3(_sfc_main$2i,_sfc_render$2i,_sfc_staticRenderFns$2i,!1,null,null,null,null);const CreateButton=__component__$2j.exports,SelectField_vue_vue_type_style_index_0_scoped_c80a132c_lang="",_sfc_main$2h={mixins:[PositionsSelectOptions],components:{SortableList,SortableItem},props:{items:Array,url:String,typeahead:Boolean,multiple:Boolean,taggable:Boolean,config:Object,readOnly:Boolean,site:String},data(){return{options:[]}},computed:{isTaggable(){return data_get(this.config,"create")===!1?!1:this.taggable},parameters(){return{site:this.site,paginate:!1,columns:"title,id"}}},created(){this.typeahead||this.request()},watch:{parameters(M){this.typeahead||this.request()}},methods:{request(M={}){return M={...this.parameters,...M},this.$axios.get(this.url,{params:M}).then($=>(this.options=$.data.data,Promise.resolve($)))},search(M,$){this.typeahead&&($(!0),this.request({search:M}).then(I=>$(!1)))},input(M){this.multiple||(M=M===null?[]:[M]),this.$emit("input",M)}}};var _sfc_render$2h=function M(){var $=this,I=$._self._c;return I("div",[I("v-select",{ref:"input",attrs:{label:"title","append-to-body":"","calculate-position":$.positionOptions,"close-on-select":!0,disabled:$.readOnly,multiple:$.multiple,options:$.options,"get-option-key":N=>N.id,"get-option-label":N=>$.__(N.title),"create-option":N=>({title:N,id:N}),placeholder:$.__($.config.placeholder)||$.__("Choose..."),searchable:!0,taggable:$.isTaggable,value:$.items},on:{input:$.input,search:$.search,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([$.multiple?{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0}:null,$.multiple?{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.__($.config.placeholder)||$.__("Choose..."),type:"search"}},"input",B,!1),N))]}}:null,{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},$.multiple?{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.items,distance:5,mirror:!1},on:{input:$.input}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.items,function(B){return I("span",{key:B.id,staticClass:"vs__selected mt-2",class:{"sortable-item":!$.readOnly}},[$._v(" "+$._s($.__(B.title))+" "),$.readOnly?I("button",{staticClass:"vs__deselect",attrs:{type:"button"}},[I("span",{staticClass:"opacity-50"},[$._v("×")])]):I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Deselect option")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])])}),0)])]}}:null],null,!0)})],1)},_sfc_staticRenderFns$2h=[],__component__$2i=normalizeComponent$3(_sfc_main$2h,_sfc_render$2h,_sfc_staticRenderFns$2h,!1,null,"c80a132c",null,null);const RelationshipSelectField=__component__$2i.exports,_sfc_main$2g={props:{name:String,value:{required:!0},config:Object,data:Array,maxItems:Number,itemComponent:{type:String,default:"RelatedItem"},itemDataUrl:String,filtersUrl:String,selectionsUrl:String,statusIcons:Boolean,site:String,search:Boolean,canEdit:Boolean,canCreate:Boolean,canReorder:Boolean,readOnly:Boolean,exclusions:Array,creatables:Array,formComponent:String,formComponentProps:Object,mode:{type:String,default:"default"},taggable:Boolean,columns:{type:Array,default:()=>[]},tree:Object,initialSortColumn:{type:String,default:"title"},initialSortDirection:{type:String,default:"asc"}},components:{ItemSelector,RelatedItem,CreateButton,RelationshipSelectField},data(){return{isSelecting:!1,isCreating:!1,itemData:[],initializing:!0,loading:!0,inline:!1,sortable:null}},computed:{items(){return this.value.map(M=>{const $=_.find(this.data,I=>I.id==M);return $||{id:M,title:M}})},maxItemsReached(){return this.value.length>=this.maxItems},canSelectOrCreate(){return!this.readOnly&&!this.maxItemsReached},usesSelectField(){return["select","typeahead"].includes(this.mode)}},mounted(){this.initializeData().then(()=>{this.initializing=!1,this.canReorder&&this.$nextTick(()=>this.makeSortable())})},beforeDestroy(){this.sortable&&(this.sortable.destroy(),this.sortable=null),this.setLoadingProgress(!1)},watch:{loading:{immediate:!0,handler(M){this.$emit("loading",M),this.setLoadingProgress(M)}},isSelecting(M){this.$emit(M?"focus":"blur")},itemData(M,$){this.initializing||this.$emit("item-data-updated",M)}},methods:{update(M){JSON.stringify(M)!=JSON.stringify(this.value)&&this.$emit("input",M)},remove(M){this.update([...this.value.slice(0,M),...this.value.slice(M+1)])},selectionsUpdated(M){this.getDataForSelections(M).then(()=>{this.update(M)})},initializeData(){return this.data?(this.loading=!1,Promise.resolve()):this.getDataForSelections(this.selections)},getDataForSelections(M){return this.loading=!0,this.$axios.post(this.itemDataUrl,{site:this.site,selections:M}).then($=>{this.$emit("item-data-updated",$.data.data)}).finally(()=>{this.loading=!1})},makeSortable(){this.sortable=new draggable_bundleExports.Sortable(this.$refs.items,{draggable:".item",handle:".item-move",mirror:{constrainDimensions:!0,xAxis:!1,appendTo:"body"},swapAnimation:{vertical:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("drag:start",M=>{this.value.length===1?M.cancel():this.$emit("focus")}).on("drag:stop",M=>{this.$emit("blur")}).on("sortable:stop",M=>{const $=[...this.value];$.splice(M.newIndex,0,$.splice(M.oldIndex,1)[0]),this.update($)})},itemCreated(M){this.$emit("item-data-updated",[...this.data,M]),this.update([...this.value,M.id])},selectFieldSelected(M){this.$emit("item-data-updated",M.map($=>({id:$.id,title:$.title}))),this.update(M.map($=>$.id))},setLoadingProgress(M){this.$progress.loading(`relationship-fieldtype-${this._uid}`,M)}}};var _sfc_render$2g=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relationship-input",class:{"relationship-input-empty":$.items.length==0}},[!$.initializing&&$.usesSelectField?I("relationship-select-field",{attrs:{config:$.config,items:$.items,multiple:$.maxItems>1,typeahead:$.mode==="typeahead",taggable:$.taggable,"read-only":$.readOnly,url:$.selectionsUrl,site:$.site},on:{input:$.selectFieldSelected,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}):$._e(),$.initializing?I("loading-graphic",{attrs:{inline:!0}}):$._e(),!$.initializing&&!$.usesSelectField?[I("div",{ref:"items",staticClass:"relationship-input-items space-y-1 outline-none"},$._l($.items,function(N,B){return I($.itemComponent,{key:N.id,tag:"component",staticClass:"item outline-none",attrs:{item:N,config:$.config,"status-icon":$.statusIcons,editable:$.canEdit,sortable:!$.readOnly&&$.canReorder,"read-only":$.readOnly,"form-component":$.formComponent,"form-component-props":$.formComponentProps},on:{removed:function(j){return $.remove(B)}}})}),1),$.maxItemsReached&&$.maxItems!=1?I("div",{staticClass:"py-2 text-xs text-gray"},[I("span",[$._v($._s($.__("Maximum items selected:")))]),I("span",[$._v($._s($.maxItems)+"/"+$._s($.maxItems))])]):$._e(),$.canSelectOrCreate?I("div",{staticClass:"relationship-input-buttons relative @container",class:{"mt-4":$.items.length>0}},[I("div",{staticClass:"flex flex-wrap items-center text-sm -mb-2"},[I("div",{staticClass:"relative mb-2"},[$.canCreate&&$.creatables.length?I("create-button",{attrs:{creatables:$.creatables,site:$.site,component:$.formComponent,"component-props":$.formComponentProps},on:{created:$.itemCreated}}):$._e()],1),I("button",{ref:"existing",staticClass:"text-blue hover:text-gray-800 flex items-center mb-2 outline-none",on:{click:function(N){N.preventDefault(),$.isSelecting=!0}}},[I("svg-icon",{staticClass:"rtl:ml-1 ltr:mr-1 h-4 w-4 flex items-center",attrs:{name:"light/hyperlink"}}),I("span",{staticClass:"hidden @sm:block",domProps:{textContent:$._s($.__("Link Existing Item"))}}),I("span",{staticClass:"@sm:hidden",domProps:{textContent:$._s($.__("Link"))}})],1)])]):$._e(),$.isSelecting?I("stack",{attrs:{name:"item-selector"},on:{closed:function(N){$.isSelecting=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("item-selector",{attrs:{name:$.name,"filters-url":$.filtersUrl,"selections-url":$.selectionsUrl,site:$.site,"initial-columns":$.columns,"initial-sort-column":$.initialSortColumn,"initial-sort-direction":$.initialSortDirection,"initial-selections":$.value,"max-selections":$.maxItems,search:$.search,exclusions:$.exclusions,type:$.config.type,tree:$.tree},on:{selected:$.selectionsUpdated,closed:N}})}}],null,!1,3698315786)}):$._e(),$.name?I("input",{attrs:{type:"hidden",name:$.name},domProps:{value:JSON.stringify($.value)}}):$._e()]:$._e()],2)},_sfc_staticRenderFns$2g=[],__component__$2h=normalizeComponent$3(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,null,null,null);const RelationshipInput=__component__$2h.exports,_sfc_main$2f={mixins:[Fieldtype$1],methods:{inputUpdated(M){if(!this.config.debounce)return this.update(M);this.updateDebounced(M)}}};var _sfc_render$2f=function M(){var $=this,I=$._self._c;return I("text-input",{ref:"input",attrs:{value:$.value,classes:$.config.classes,focus:$.config.focus||$.name==="title"||$.name==="alt",autocomplete:$.config.autocomplete,autoselect:$.config.autoselect,type:$.config.input_type,isReadOnly:$.isReadOnly,prepend:$.__($.config.prepend),append:$.__($.config.append),limit:$.config.character_limit,placeholder:$.__($.config.placeholder),name:$.name,id:$.fieldId},on:{input:$.inputUpdated,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$2f=[],__component__$2g=normalizeComponent$3(_sfc_main$2f,_sfc_render$2f,_sfc_staticRenderFns$2f,!1,null,null,null,null);const TextFieldtype=__component__$2g.exports,_sfc_main$2e={mixins:[Fieldtype$1]};var _sfc_render$2e=function M(){var $=this,I=$._self._c;return I("textarea-input",{attrs:{focus:$.config.focus,name:$.name,isReadOnly:$.isReadOnly,limit:$.config.character_limit||null,placeholder:$.__($.config.placeholder),value:$.value,id:$.fieldId},on:{blur:function(N){return $.$emit("blur")},focus:function(N){return $.$emit("focus")},input:$.updateDebounced}})},_sfc_staticRenderFns$2e=[],__component__$2f=normalizeComponent$3(_sfc_main$2e,_sfc_render$2e,_sfc_staticRenderFns$2e,!1,null,null,null,null);const TextareaFieldtype=__component__$2f.exports,_sfc_main$2d={mixins:[Fieldtype$1],data(){return{slug:this.value,generate:this.config.generate}},computed:{separator(){return this.config.separator||"-"},store(){let M,$=this;for(;!$.storeName;)if($=$.$parent,M=$.storeName,$===this.$root)return null;return M},source(){if(!this.generate)return;const M=this.config.from||"title";let $=M;return this.fieldPathPrefix&&($=this.fieldPathPrefix.replace(new RegExp("."+this.handle+"$"),"")+"."+M),data_get$1(this.$store.state.publish[this.store].values,$)},language(){if(!this.store)return;const M=this.$store.state.publish[this.store].site;return M?Statamic.$config.get("sites").find($=>$.handle===M).lang:null}},watch:{value(M){this.slug=M},slug(M){this.updateDebounced(M)}},created(){this.$events.$on("localization.created",this.handleLocalizationCreated)},destroyed(){this.$events.$off("localization.created",this.handleLocalizationCreated)},mounted(){this.config.required&&!this.value&&this.update(this.$refs.slugify.slug)},methods:{handleLocalizationCreated({store:M}){this.handle==="slug"&&M===this.store&&this.$refs.slugify.reset()},sync(){this.$refs.slugify.reset()}}};var _sfc_render$2d=function M(){var $=this,I=$._self._c;return I("slugify",{ref:"slugify",attrs:{enabled:$.generate,from:$.source,separator:$.separator,language:$.language},model:{value:$.slug,callback:function(N){$.slug=N},expression:"slug"}},[I("div",[I("text-input",{attrs:{classes:"font-mono text-xs",isReadOnly:$.isReadOnly,append:$.config.show_regenerate,name:$.slug,id:$.fieldId,direction:"ltr"},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}},scopedSlots:$._u([$.config.show_regenerate?{key:"append",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Regenerate from: :field",{field:$.config.from}),expression:"__('Regenerate from: :field', { 'field': config.from })"}],staticClass:"input-group-append items-center flex",on:{click:$.sync}},[I("svg-icon",{staticClass:"w-5 h-5",attrs:{name:"light/synchronize"}})],1)]},proxy:!0}:null],null,!0),model:{value:$.slug,callback:function(N){$.slug=N},expression:"slug"}})],1)])},_sfc_staticRenderFns$2d=[],__component__$2e=normalizeComponent$3(_sfc_main$2d,_sfc_render$2d,_sfc_staticRenderFns$2d,!1,null,null,null,null);const SlugFieldtype=__component__$2e.exports,_sfc_main$2c={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data(){return{data:this.objectToSortable(this.value||[]),selectedKey:Object.keys(this.value)[0],deleting:!1}},watch:{data:{deep:!0,handler(M){this.updateDebounced(this.sortableToObject(M))}},value(M){JSON.stringify(M)!=JSON.stringify(this.sortableToObject(this.data))&&(this.data=this.objectToSortable(M))}},computed:{isKeyed(){return!!Object.keys(this.config.keys).length},isDynamic(){return!this.isKeyed},isSingle(){return this.config.mode==="single"},keyedData(){return this.data.filter(M=>this.config.keys.hasOwnProperty(M.key))},maxItems(){return this.config.max_items||null},valueCount(){return this.data.length},atMax(){return this.maxItems?this.valueCount>=this.maxItems:!1},addButton(){return __(this.config.add_button||"Add Row")},keyHeader(){return __(this.config.key_header||"Key")},valueHeader(){return __(this.config.value_header||"Value")},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return _.reduce(this.value,(M,$,I)=>{let N=`${I}: ${$}`;return M&&(N=M+", "+N),N},"")}},methods:{addValue(){this.data.push(this.newSortableValue()),this.$nextTick(()=>{this.$el.querySelector("tr:last-child input").focus()})},confirmDeleteValue(M){this.deleting=M},deleteOrConfirm(M){this.data[M].key===null&&this.data[M].value===null?this.deleteValue(M):this.confirmDeleteValue(M)},deleteValue(M){this.deleting=!1,this.data.splice(M,1)},deleteCancelled(){this.deleting=!1},setKey(M){this.selectedKey=M}}};var _sfc_render$2c=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"array-fieldtype-container"},[$.isSingle?I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("select",{staticClass:"bg-transparent appearance-none shadow-none outline-none border-0 text-sm",on:{input:function(N){return $.setKey(N.target.value)}}},$._l($.keyedData,function(N,B){return I("option",{key:N._id,domProps:{value:N.key,selected:N.key===$.selectedKey,textContent:$._s($.config.keys[N.key]||N.key)}})}),0),I("svg-icon",{staticClass:"w-2 rtl:mr-2 ltr:ml-2",attrs:{name:"micro/chevron-down-xs"}})],1),$._l($.keyedData,function(N,B){return N.key===$.selectedKey?I("input",{directives:[{name:"model",rawName:"v-model",value:$.data[B].value,expression:"data[index].value"}],key:N._id,staticClass:"input-text",attrs:{type:"text",id:$.fieldId+"__"+N.key,readonly:$.isReadOnly},domProps:{value:$.data[B].value},on:{input:function(j){j.target.composing||$.$set($.data[B],"value",j.target.value)}}}):$._e()})],2)]):$.isKeyed?I("div",{staticClass:"array-table-wrapper"},[I("table",{staticClass:"array-table"},[I("tbody",$._l($.keyedData,function(N,B){return $.data?I("tr",{key:N._id},[I("th",{staticClass:"w-1/4"},[I("label",{attrs:{for:$.fieldId+"__"+N.key}},[$._v($._s($.config.keys[N.key]||N.key))])]),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.data[B].value,expression:"data[index].value"}],staticClass:"input-text-minimal",attrs:{type:"text",id:$.fieldId+"__"+N.key,readonly:$.isReadOnly},domProps:{value:$.data[B].value},on:{input:function(j){j.target.composing||$.$set($.data[B],"value",j.target.value)}}})])]):$._e()}),0)])]):$.isDynamic?[I("div",{staticClass:"table-field"},[$.valueCount?I("table",{staticClass:"table-fieldtype-table"},[I("thead",[I("tr",[$.isReadOnly?$._e():I("th",{staticClass:"grid-drag-handle-header"}),I("th",{staticClass:"w-1/4"},[$._v($._s($.keyHeader))]),I("th",{},[$._v($._s($.valueHeader))]),$.isReadOnly?$._e():I("th",{staticClass:"row-controls"})])]),I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"sortable-handle",mirror:!1},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"sortable-handle table-drag-handle"}),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.key,expression:"element.key"}],staticClass:"input-text font-bold",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.key},on:{input:function(j){j.target.composing||$.$set(N,"key",j.target.value)}}})]),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value,expression:"element.value"}],staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value},on:{input:function(j){j.target.composing||$.$set(N,"value",j.target.value)}}})]),$.isReadOnly?$._e():I("td",{staticClass:"row-controls"},[I("a",{staticClass:"inline opacity-25 text-lg antialiased hover:opacity-75",on:{click:function(j){return $.deleteOrConfirm(B)}}},[$._v("×")])])])}),0)])],1):$._e(),$.isReadOnly?$._e():I("button",{staticClass:"btn",attrs:{disabled:$.atMax},on:{click:$.addValue}},[$._v(" "+$._s($.addButton)+" ")]),$.deleting!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Value"),bodyText:$.__("Are you sure you want to delete this value?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteValue($.deleting)},cancel:$.deleteCancelled}}):$._e()],1)]:$._e()],2)},_sfc_staticRenderFns$2c=[],__component__$2d=normalizeComponent$3(_sfc_main$2c,_sfc_render$2c,_sfc_staticRenderFns$2c,!1,null,null,null,null);const ArrayFieldtype=__component__$2d.exports,Asset={components:{AssetEditor},props:{asset:Object,readOnly:Boolean,showFilename:{type:Boolean,default:!0},showSetAlt:{type:Boolean,default:!0}},data(){return{editing:!1}},computed:{isImage(){return this.asset.isImage},canShowSvg(){return this.asset.extension==="svg"},container(){return this.asset.id.substr(0,this.asset.id.indexOf("::"))},canBeTransparent(){return["png","svg"].includes(this.asset.extension)},canDownload(){return Statamic.$permissions.has(`view ${this.container} assets`)},thumbnail(){return this.asset.thumbnail},label(){return this.asset.basename},needsAlt(){return(this.asset.isImage||this.asset.isSvg)&&!this.asset.values.alt}},methods:{edit(){this.readOnly||(this.editing=!0)},remove(){this.readOnly||this.$emit("removed",this.asset)},open(){if(!this.asset.url)return this.download();window.open(this.asset.url,"_blank")},download(){window.open(this.asset.downloadUrl)},closeEditor(){this.editing=!1},assetSaved(M){this.$emit("updated",M),this.closeEditor()},actionCompleted(M,$){if(M===!1)return;const I=$.ids[0]||null;I&&I!==this.asset.id&&this.$emit("id-changed",I),this.closeEditor()}}},_sfc_main$2b={mixins:[Asset],methods:{editOrOpen(){return this.readOnly?this.open():this.edit()}}};var _sfc_render$2b=function M(){var $=this,I=$._self._c;return I("tr",{staticClass:"cursor-grab bg-white hover:bg-gray-100"},[I("td",{staticClass:"flex items-center h-full"},[$.canShowSvg?I("div",{staticClass:"img svg-img h-7 w-7 bg-no-repeat bg-center bg-cover text-center flex items-center justify-center",style:"background-image:url("+$.thumbnail+")"}):I("button",{staticClass:"w-7 h-7 cursor-pointer whitespace-nowrap flex items-center justify-center",on:{click:$.editOrOpen}},[$.isImage?I("img",{staticClass:"asset-thumbnail max-h-full max-w-full rounded w-7 h-7 object-cover",attrs:{loading:"lazy",src:$.thumbnail,alt:$.asset.basename}}):I("file-icon",{staticClass:"w-7 h-7",attrs:{extension:$.asset.extension}})],1),$.showFilename?I("button",{staticClass:"flex items-center flex-1 rtl:mr-3 ltr:ml-3 text-xs rtl:text-right ltr:text-left truncate w-full",attrs:{"aria-label":$.__("Edit Asset")},on:{click:$.editOrOpen}},[$._v(" "+$._s($.asset.basename)+" ")]):$._e(),I("div",{staticClass:"hidden @xs:inline asset-filesize text-xs text-gray-600 px-2",domProps:{textContent:$._s($.asset.size)}})]),$.showSetAlt?I("td",{staticClass:"w-24"},[$.needsAlt?I("button",{staticClass:"asset-set-alt text-blue px-4 text-sm hover:text-black",on:{click:$.editOrOpen}},[$._v(" "+$._s($.asset.values.alt?"✅":$.__("Set Alt"))+" ")]):$._e()]):$._e(),$.readOnly?$._e():I("td",{staticClass:"p-0 w-8 rtl:text-left ltr:text-right align-middle"},[I("button",{staticClass:"flex items-center p-1 w-6 h-8 text-lg antialiased text-gray-600 hover:text-gray-900",attrs:{"aria-label":$.__("Remove Asset")},on:{click:$.remove}},[$._v(" × ")]),$.editing?I("asset-editor",{attrs:{id:$.asset.id,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.assetSaved,"action-completed":$.actionCompleted}}):$._e()],1)])},_sfc_staticRenderFns$2b=[],__component__$2c=normalizeComponent$3(_sfc_main$2b,_sfc_render$2b,_sfc_staticRenderFns$2b,!1,null,null,null,null);const AssetRow=__component__$2c.exports,_sfc_main$2a={mixins:[Asset],computed:{isInAssetBrowser(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.constructor.name==="AssetBrowser")return!0;M=$}},isInBardField(){return this.$parent.isInBardField}}};var _sfc_render$2a=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-tile",class:{"is-image":$.isImage&&!$.canShowSvg,"is-svg":$.canShowSvg,"is-file":!$.isImage&&!$.canShowSvg},attrs:{title:$.asset.filename}},[$.editing?I("asset-editor",{attrs:{id:$.asset.id,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.assetSaved,"action-completed":$.actionCompleted}}):$._e(),I("div",{staticClass:"asset-thumb-container"},[I("div",{staticClass:"asset-thumb",class:{"bg-checkerboard":$.canBeTransparent}},[$.isImage&&$.isInBardField&&!$.isInAssetBrowser?[I("img",{attrs:{src:$.asset.url}})]:[$.isImage?I("img",{attrs:{src:$.thumbnail,title:$.label}}):[$.canShowSvg?I("img",{staticClass:"p-4",attrs:{src:$.asset.url}}):I("file-icon",{staticClass:"p-4 h-full w-full",attrs:{extension:$.asset.extension}})]],$.readOnly?$._e():I("div",{staticClass:"asset-controls"},[I("div",{staticClass:"h-full w-full flex items-center justify-center space-x-1"},[I("button",{staticClass:"btn btn-icon",attrs:{alt:$.__("Edit")},on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"micro/sharp-pencil"}})],1),I("button",{staticClass:"btn btn-icon",attrs:{alt:$.__("Remove")},on:{click:$.remove}},[I("span",{staticClass:"text-lg antialiased w-4"},[$._v("×")])])])]),$.readOnly?I("div",{staticClass:"asset-controls"},[$.asset.url&&$.asset.isMedia&&this.canDownload?I("button",{staticClass:"btn btn-icon",attrs:{alt:$.__("Open in a new window")},on:{click:$.open}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"light/external-link"}})],1):$._e(),$.asset.allowDownloading&&this.canDownload?I("button",{staticClass:"btn btn-icon",attrs:{alt:$.__("Download file")},on:{click:$.download}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"download"}})],1):$._e()]):$._e()],2)]),$.showFilename?I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename flex-1 px-2 py-1",class:{"text-center":!$.needsAlt},attrs:{title:$.label}},[$._v(" "+$._s($.label)+" ")]),$.showSetAlt&&$.needsAlt?I("button",{staticClass:"text-blue rtl:border-r ltr:border-l px-2 py-1 hover:bg-gray-200",on:{click:$.edit}},[$._v(" "+$._s($.asset.values.alt?"✅":$.__("Set Alt"))+" ")]):$._e()]):$._e()],1)},_sfc_staticRenderFns$2a=[],__component__$2b=normalizeComponent$3(_sfc_main$2a,_sfc_render$2a,_sfc_staticRenderFns$2a,!1,null,null,null,null);const AssetTile=__component__$2b.exports,_sfc_main$29={props:{container:String,folder:String,selected:Array,maxFiles:Number,queryScopes:Array,restrictContainerNavigation:{type:Boolean,default(){return!1}},restrictFolderNavigation:{type:Boolean,default(){return!1}}},data(){return{browserSelections:this.selected}},computed:{hasMaxFiles(){return this.maxFiles===1/0?!1:!!this.maxFiles}},watch:{browserSelections(M){this.maxFiles===1&&M.length===1&&this.select()}},methods:{select(){this.$emit("selected",this.browserSelections),this.close()},close(){this.$emit("closed")},selectionsUpdated(M){this.browserSelections=M}}};var _sfc_render$29=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-col justify-end h-full bg-white"},[I("div",{staticClass:"flex-1 overflow-scroll"},[I("asset-browser",{attrs:{"initial-container":$.container,"initial-per-page":$.$config.get("paginationSize"),"selected-path":$.folder,"selected-assets":$.browserSelections,"restrict-container-navigation":$.restrictContainerNavigation,"restrict-folder-navigation":$.restrictFolderNavigation,"max-files":$.maxFiles,"query-scopes":$.queryScopes,"autoselect-uploads":!0,"autofocus-search":!0},on:{"selections-updated":$.selectionsUpdated,"asset-doubleclicked":$.select}},[$.browserSelections.length?I("template",{slot:"contextual-actions"},[I("button",{staticClass:"btn action mb-6",on:{click:function(N){$.browserSelections=[]}}},[$._v($._s($.__("Uncheck All")))])]):$._e()],2)],1),I("div",{staticClass:"p-4 border-t flex items-center justify-between bg-gray-200"},[I("div",{staticClass:"text-sm text-gray-700",domProps:{textContent:$._s($.hasMaxFiles?$.__n(":count/:max selected",$.browserSelections,{max:$.maxFiles}):$.__n(":count selected|:count selected",$.browserSelections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")])])])])},_sfc_staticRenderFns$29=[],__component__$2a=normalizeComponent$3(_sfc_main$29,_sfc_render$29,_sfc_staticRenderFns$29,!1,null,null,null,null);const Selector=__component__$2a.exports,AssetsFieldtype_vue_vue_type_style_index_0_lang="",_sfc_main$28={components:{AssetTile,AssetRow,Selector,Uploader,Uploads,SortableList},mixins:[Fieldtype],data(){return{assets:[],loading:!0,initializing:!0,showSelector:!1,selectorViewMode:null,draggingFile:!1,uploads:[],innerDragging:!1,displayMode:"grid"}},computed:{hasAssets(){return!!this.assets.length},container(){return this.config.container||this.meta.container},folder(){return this.config.folder||"/"},restrictNavigation(){return this.config.restrict||!1},maxFiles(){return this.config.max_files?parseInt(this.config.max_files):1/0},maxFilesReached(){return this.maxFiles===0?!1:this.assets.length>=this.maxFiles},soloAsset(){return this.maxFiles===1},selectedAssets(){return clone(this.value)},assetIds(){return _.pluck(this.assets,"id")},expanded(){return this.assets.length>0},uploadElement(){return this.$el},queryScopes(){return this.config.query_scopes||[]},isInBardField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.constructor.name==="BardFieldtype")return!0;M=$}},isInGridField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.grid)return!0;M=$}},isInLinkField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.$options.name==="link-fieldtype")return!0;M=$}},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return replicatorPreviewHtml(_.map(this.assets,M=>M.isImage||M.isSvg?`<img src="${M.thumbnail}" width="20" height="20" title="${M.basename}" />`:M.basename).join(", "))},showPicker(){return!(!this.canBrowse&&!this.canUpload||this.maxFilesReached&&!this.isFullWidth||this.maxFilesReached&&(this.isInGridField||this.isInLinkField))},isFullWidth(){return!(this.config.width&&this.config.width<100)},showSetAlt(){return this.config.show_set_alt&&!this.isReadOnly},canBrowse(){return this.can("configure asset containers")||this.can("view "+this.container+" assets")},canUpload(){return this.config.allow_uploads&&(this.can("configure asset containers")||this.can("upload "+this.container+" assets"))}},events:{"close-selector"(){this.closeSelector()}},methods:{initializeAssets(){if(!this.meta.data){this.loadAssets(this.value),this.initializing=!1;return}this.assets=clone(this.meta.data),this.$nextTick(()=>{this.initializing=!1,this.loading=!1}),this.$emit("replicator-preview-updated",this.replicatorPreview)},loadAssets(M){if(!M||!M.length){this.loading=!1,this.assets=[];return}this.loading=!0,this.$axios.post(cp_url("assets-fieldtype"),{assets:M}).then($=>{this.assets=$.data,this.loading=!1})},assetsSelected(M){this.loadAssets(M)},openSelector(){this.showSelector=!0},closeSelector(){this.showSelector=!1},assetUpdated(M){const $=_(this.assets).findIndex({id:M.id});this.assets.splice($,1,M)},assetRemoved(M){const $=_(this.assets).findIndex({id:M.id});this.assets.splice($,1)},uploadComplete(M){this.assets.push(M)},uploadsUpdated(M){this.uploads=M},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},uploadFile(){this.$refs.uploader.browse()},idChanged(M,$){const I=this.value.indexOf(M);this.update([...this.value.slice(0,I),$,...this.value.slice(I+1)])}},watch:{assets(M){this.initializing||(this.update(this.assetIds),this.updateMeta({...this.meta,data:[...M]}))},loading(M){this.$progress.loading(`assets-fieldtype-${this._uid}`,M)},value(M){_.isEqual(M,this.assetIds)||this.loadAssets(M)},showSelector(M){this.$emit(M?"focus":"blur")}},mounted(){this.displayMode=this.isInsideGridField?"list":this.config.mode||"grid",this.selectorViewMode=Cookies.get("statamic.assets.listing_view_mode")||"grid",this.initializeAssets()}};var _sfc_render$28=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"@container"},[I("uploader",{ref:"uploader",attrs:{container:$.container,enabled:$.canUpload,path:$.folder},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"assets-fieldtype-drag-container"},[$.config.allow_uploads?I("div",{directives:[{name:"show",rawName:"v-show",value:N&&!$.showSelector,expression:"dragging && !showSelector"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-6 @md:h-8 w-6 @md:w-8 rtl:ml-2 ltr:mr-2 @md:mr-6",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop to Upload")))])],1):$._e(),!$.isReadOnly&&$.showPicker?I("div",{staticClass:"assets-fieldtype-picker",class:{"is-expanded":$.expanded,"bard-drag-handle":$.isInBardField}},[$.canBrowse?I("button",{staticClass:"btn btn-with-icon",class:{"opacity-0":N},attrs:{type:"button",tabindex:"0"},on:{click:$.openSelector,keyup:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"space",32,B.key,[" ","Spacebar"])&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.openSelector.apply(null,arguments)}}},[I("svg-icon",{staticClass:"w-4 h-4 text-gray-800",attrs:{name:"folder-image"}}),$._v(" "+$._s($.__("Browse"))+" ")],1):$._e(),$.canUpload?I("p",{staticClass:"asset-upload-control"},[I("button",{staticClass:"upload-text-button",attrs:{type:"button"},on:{click:function(B){return B.preventDefault(),$.uploadFile.apply(null,arguments)}}},[$._v(" "+$._s($.__("Upload file"))+" ")]),$.soloAsset?I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here to replace."))}}):I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here."))}})]):$._e()]):$._e(),$.uploads.length?I("uploads",{attrs:{uploads:$.uploads}}):$._e(),$.expanded?[$.displayMode==="grid"?I("sortable-list",{attrs:{"item-class":"asset-tile","handle-class":"asset-thumb-container","constrain-dimensions":!0,disabled:$.isReadOnly,distance:5,animate:!1,"append-to":"body"},on:{dragstart:function(B){return $.$emit("focus")},dragend:function(B){return $.$emit("blur")}},model:{value:$.assets,callback:function(B){$.assets=B},expression:"assets"}},[I("div",{ref:"assets",staticClass:"asset-grid-listing border rounded overflow-hidden rounded-t-none"},$._l($.assets,function(B){return I("asset-tile",{key:B.id,attrs:{asset:B,"read-only":$.isReadOnly,"show-filename":$.config.show_filename,"show-set-alt":$.showSetAlt},on:{updated:$.assetUpdated,removed:$.assetRemoved,"id-changed":function(j){return $.idChanged(B.id,j)}}})}),1)]):$._e(),$.displayMode==="list"?I("div",{staticClass:"asset-table-listing"},[I("table",{staticClass:"table-fixed"},[I("sortable-list",{attrs:{"item-class":"asset-row","handle-class":"asset-row",vertical:!0,disabled:$.isReadOnly,distance:5,mirror:!1},model:{value:$.assets,callback:function(B){$.assets=B},expression:"assets"}},[I("tbody",{ref:"assets"},$._l($.assets,function(B){return I("assetRow",{key:B.id,tag:"tr",staticClass:"asset-row",attrs:{asset:B,"read-only":$.isReadOnly,"show-filename":$.config.show_filename,"show-set-alt":$.showSetAlt},on:{updated:$.assetUpdated,removed:$.assetRemoved,"id-changed":function(j){return $.idChanged(B.id,j)}}})}),1)])],1)]):$._e()]:$._e()],2)}}])}),$.showSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeSelector}},[I("selector",{attrs:{container:$.container,folder:$.folder,"restrict-container-navigation":!0,"restrict-folder-navigation":$.restrictNavigation,selected:$.selectedAssets,"view-mode":$.selectorViewMode,"max-files":$.maxFiles,"query-scopes":$.queryScopes},on:{selected:$.assetsSelected,closed:$.closeSelector}})],1):$._e()],1)},_sfc_staticRenderFns$28=[],__component__$29=normalizeComponent$3(_sfc_main$28,_sfc_render$28,_sfc_staticRenderFns$28,!1,null,null,null,null);const AssetsFieldtype=__component__$29.exports,_sfc_main$27={mixins:[IndexFieldtype],components:{AssetThumbnail}};var _sfc_render$27=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"text-2xs flex"},$._l($.value,function(N){return I("a",{key:N.id,attrs:{href:N.url,target:"_blank"}},[I("asset-thumbnail",{staticClass:"h-8 max-w-3xs -my-1",attrs:{asset:N}})],1)}),0)},_sfc_staticRenderFns$27=[],__component__$28=normalizeComponent$3(_sfc_main$27,_sfc_render$27,_sfc_staticRenderFns$27,!1,null,null,null,null);const AssetsIndexFieldtype=__component__$28.exports,_sfc_main$26={mixins:[Fieldtype],inject:["storeName"],computed:{container(){return data_get(this.$store.state.publish[this.storeName].values.container,"0",null)},relationshipMeta(){return{...this.meta,getBaseSelectionsUrlParameters:{container:this.container}}}}};var _sfc_render$26=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-folder-fieldtype-wrapper"},[$.container?$._e():I("small",{staticClass:"help-block text-gray-600"},[$._v($._s($.__("Select asset container")))]),$.container?I("relationship-fieldtype",{attrs:{handle:$.handle,value:$.value,meta:$.relationshipMeta,config:{type:"asset_folder"}},on:{input:$.update}}):$._e()],1)},_sfc_staticRenderFns$26=[],__component__$27=normalizeComponent$3(_sfc_main$26,_sfc_render$26,_sfc_staticRenderFns$26,!1,null,null,null,null);const AssetFolderFieldtype=__component__$27.exports;class FloatingMenuView{constructor({editor:$,element:I,view:N,shouldShow:B,vm:j}){Wl(this,"focusHandler",()=>{this.update(this.editor.view)});this.editor=$,this.element=I,this.view=N,this.vm=j,this.shouldShow=B,this.editor.on("focus",this.focusHandler)}update($,I){var Z;const{state:N}=$,{doc:B,selection:j}=N,{from:U,to:q}=j;if(I&&I.doc.eq(B)&&I.selection.eq(j))return;if(!((Z=this.shouldShow)==null?void 0:Z.call(this,{editor:this.editor,view:$,state:N,oldState:I})))return this.hide();const{top:G}=posToDOMRect($,U,q),{top:J}=this.editor.options.element.getBoundingClientRect();this.vm.y=Math.round(G-J),this.show()}show(){this.vm.show=!0}hide(){this.vm.show=!1}destroy(){this.editor.off("focus",this.focusHandler)}}const FloatingMenuPlugin=M=>new Plugin({key:new PluginKey(M.pluginKey),view:$=>new FloatingMenuView({view:$,...M})}),FloatingMenu={name:"FloatingMenu",props:{editor:{type:Object,required:!0},shouldShow:{type:Function,default:null},isShowing:{type:Boolean}},data(){return{show:!1,x:0,y:0}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(FloatingMenuPlugin({pluginKey:"floatingMenu",editor:M,vm:this,element:this.$el,shouldShow:this.shouldShow}))})}},isShowing(M){this.show=M},show(M){M?this.$emit("shown"):this.$emit("hidden")}},render(){return this.$scopedSlots.default({x:this.x,y:this.y})},beforeDestroy(){this.editor.unregisterPlugin("floatingMenu")}},inputRegex$4=/^\s*>\s$/,Blockquote=Node$1.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:M}){return["blockquote",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setBlockquote:()=>({commands:M})=>M.wrapIn(this.name),toggleBlockquote:()=>({commands:M})=>M.toggleWrap(this.name),unsetBlockquote:()=>({commands:M})=>M.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[wrappingInputRule({find:inputRegex$4,type:this.type})]}}),starInputRegex$1=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,starPasteRegex$1=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,underscoreInputRegex$1=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,underscorePasteRegex$1=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Bold=Mark.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:M=>M.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:M=>/^(bold(er)?|[5-9]\d{2,})$/.test(M)&&null}]},renderHTML({HTMLAttributes:M}){return["strong",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setBold:()=>({commands:M})=>M.setMark(this.name),toggleBold:()=>({commands:M})=>M.toggleMark(this.name),unsetBold:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[markInputRule({find:starInputRegex$1,type:this.type}),markInputRule({find:underscoreInputRegex$1,type:this.type})]},addPasteRules(){return[markPasteRule({find:starPasteRegex$1,type:this.type}),markPasteRule({find:underscorePasteRegex$1,type:this.type})]}}),ListItem$2=Node$1.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:M}){return["li",mergeAttributes(this.options.HTMLAttributes,M),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),TextStyle$1=Mark.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:M=>M.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["span",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:M,commands:$})=>{const I=getMarkAttributes(M,this.type);return Object.entries(I).some(([,B])=>!!B)?!0:$.unsetMark(this.name)}}}}),inputRegex$3=/^\s*([-+*])\s$/,BulletList=Node$1.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:M}){return["ul",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleBulletList:()=>({commands:M,chain:$})=>this.options.keepAttributes?$().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ListItem$2.name,this.editor.getAttributes(TextStyle$1.name)).run():M.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let M=wrappingInputRule({find:inputRegex$3,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(M=wrappingInputRule({find:inputRegex$3,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(TextStyle$1.name),editor:this.editor})),[M]}}),CharacterCount=Extension.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize"}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=M=>{const $=(M==null?void 0:M.node)||this.editor.state.doc;return((M==null?void 0:M.mode)||this.options.mode)==="textSize"?$.textBetween(0,$.content.size,void 0," ").length:$.nodeSize},this.storage.words=M=>{const $=(M==null?void 0:M.node)||this.editor.state.doc;return $.textBetween(0,$.content.size," "," ").split(" ").filter(B=>B!=="").length}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("characterCount"),filterTransaction:(M,$)=>{const I=this.options.limit;if(!M.docChanged||I===0||I===null||I===void 0)return!0;const N=this.storage.characters({node:$.doc}),B=this.storage.characters({node:M.doc});if(B<=I||N>I&&B>I&&B<=N)return!0;if(N>I&&B>I&&B>N||!M.getMeta("paste"))return!1;const U=M.selection.$head.pos,q=B-I,Y=U-q,K=U;return M.deleteRange(Y,K),!(this.storage.characters({node:M.doc})>I)}})]}}),inputRegex$2=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,pasteRegex$1=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Code=Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:M}){return["code",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setCode:()=>({commands:M})=>M.setMark(this.name),toggleCode:()=>({commands:M})=>M.toggleMark(this.name),unsetCode:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[markInputRule({find:inputRegex$2,type:this.type})]},addPasteRules(){return[markPasteRule({find:pasteRegex$1,type:this.type})]}}),backtickInputRegex=/^```([a-z]+)?[\s\n]$/,tildeInputRegex=/^~~~([a-z]+)?[\s\n]$/,CodeBlock=Node$1.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:M=>{var $;const{languageClassPrefix:I}=this.options,j=[...(($=M.firstElementChild)===null||$===void 0?void 0:$.classList)||[]].filter(U=>U.startsWith(I)).map(U=>U.replace(I,""))[0];return j||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:M,HTMLAttributes:$}){return["pre",mergeAttributes(this.options.HTMLAttributes,$),["code",{class:M.attrs.language?this.options.languageClassPrefix+M.attrs.language:null},0]]},addCommands(){return{setCodeBlock:M=>({commands:$})=>$.setNode(this.name,M),toggleCodeBlock:M=>({commands:$})=>$.toggleNode(this.name,"paragraph",M)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:M,$anchor:$}=this.editor.state.selection,I=$.pos===1;return!M||$.parent.type.name!==this.name?!1:I||!$.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:M})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:$}=M,{selection:I}=$,{$from:N,empty:B}=I;if(!B||N.parent.type!==this.type)return!1;const j=N.parentOffset===N.parent.nodeSize-2,U=N.parent.textContent.endsWith(`
-
- `);return!j||!U?!1:M.chain().command(({tr:q})=>(q.delete(N.pos-2,N.pos),!0)).exitCode().run()},ArrowDown:({editor:M})=>{if(!this.options.exitOnArrowDown)return!1;const{state:$}=M,{selection:I,doc:N}=$,{$from:B,empty:j}=I;if(!j||B.parent.type!==this.type||!(B.parentOffset===B.parent.nodeSize-2))return!1;const q=B.after();return q===void 0||N.nodeAt(q)?!1:M.commands.exitCode()}}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex,type:this.type,getAttributes:M=>({language:M[1]})}),textblockTypeInputRule({find:tildeInputRegex,type:this.type,getAttributes:M=>({language:M[1]})})]},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("codeBlockVSCodeHandler"),props:{handlePaste:(M,$)=>{if(!$.clipboardData||this.editor.isActive(this.type.name))return!1;const I=$.clipboardData.getData("text/plain"),N=$.clipboardData.getData("vscode-editor-data"),B=N?JSON.parse(N):void 0,j=B==null?void 0:B.mode;if(!I||!j)return!1;const{tr:U}=M.state;return U.replaceSelectionWith(this.type.create({language:j})),U.setSelection(TextSelection.near(U.doc.resolve(Math.max(0,U.selection.from-2)))),U.insertText(I.replace(/\r\n?/g,`
- `)),U.setMeta("paste",!0),M.dispatch(U),!0}}})]}});var deepFreezeEs6$1={exports:{}};function deepFreeze$1(M){return M instanceof Map?M.clear=M.delete=M.set=function(){throw new Error("map is read-only")}:M instanceof Set&&(M.add=M.clear=M.delete=function(){throw new Error("set is read-only")}),Object.freeze(M),Object.getOwnPropertyNames(M).forEach(function($){var I=M[$];typeof I=="object"&&!Object.isFrozen(I)&&deepFreeze$1(I)}),M}deepFreezeEs6$1.exports=deepFreeze$1;deepFreezeEs6$1.exports.default=deepFreeze$1;let Response$1=class{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML$1(M){return M.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1$1(M,...$){const I=Object.create(null);for(const N in M)I[N]=M[N];return $.forEach(function(N){for(const B in N)I[B]=N[B]}),I}const SPAN_CLOSE$1="</span>",emitsWrappingTags$1=M=>!!M.scope||M.sublanguage&&M.language,scopeToCSSClass$1=(M,{prefix:$})=>{if(M.includes(".")){const I=M.split(".");return[`${$}${I.shift()}`,...I.map((N,B)=>`${N}${"_".repeat(B+1)}`)].join(" ")}return`${$}${M}`};let HTMLRenderer$1=class{constructor($,I){this.buffer="",this.classPrefix=I.classPrefix,$.walk(this)}addText($){this.buffer+=escapeHTML$1($)}openNode($){if(!emitsWrappingTags$1($))return;let I="";$.sublanguage?I=`language-${$.language}`:I=scopeToCSSClass$1($.scope,{prefix:this.classPrefix}),this.span(I)}closeNode($){emitsWrappingTags$1($)&&(this.buffer+=SPAN_CLOSE$1)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}};const newNode$1=(M={})=>{const $={children:[]};return Object.assign($,M),$};let TokenTree$1=class Ec{constructor(){this.rootNode=newNode$1(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){const I=newNode$1({scope:$});this.add(I),this.stack.push(I)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,I){return typeof I=="string"?$.addText(I):I.children&&($.openNode(I),I.children.forEach(N=>this._walk($,N)),$.closeNode(I)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(I=>typeof I=="string")?$.children=[$.children.join("")]:$.children.forEach(I=>{Ec._collapse(I)}))}},TokenTreeEmitter$1=class extends TokenTree$1{constructor($){super(),this.options=$}addKeyword($,I){$!==""&&(this.openNode(I),this.addText($),this.closeNode())}addText($){$!==""&&this.add($)}addSublanguage($,I){const N=$.root;N.sublanguage=!0,N.language=I,this.add(N)}toHTML(){return new HTMLRenderer$1(this,this.options).value()}finalize(){return!0}};function source$2(M){return M?typeof M=="string"?M:M.source:null}function lookahead$2(M){return concat$2("(?=",M,")")}function anyNumberOfTimes$1(M){return concat$2("(?:",M,")*")}function optional$1(M){return concat$2("(?:",M,")?")}function concat$2(...M){return M.map(I=>source$2(I)).join("")}function stripOptionsFromArgs$2(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either$2(...M){return"("+(stripOptionsFromArgs$2(M).capture?"":"?:")+M.map(N=>source$2(N)).join("|")+")"}function countMatchGroups$1(M){return new RegExp(M.toString()+"|").exec("").length-1}function startsWith$1(M,$){const I=M&&M.exec($);return I&&I.index===0}const BACKREF_RE$1=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences$1(M,{joinWith:$}){let I=0;return M.map(N=>{I+=1;const B=I;let j=source$2(N),U="";for(;j.length>0;){const q=BACKREF_RE$1.exec(j);if(!q){U+=j;break}U+=j.substring(0,q.index),j=j.substring(q.index+q[0].length),q[0][0]==="\\"&&q[1]?U+="\\"+String(Number(q[1])+B):(U+=q[0],q[0]==="("&&I++)}return U}).map(N=>`(${N})`).join($)}const MATCH_NOTHING_RE$1=/\b\B/,IDENT_RE$3="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE$1="[a-zA-Z_]\\w*",NUMBER_RE$1="\\b\\d+(\\.\\d+)?",C_NUMBER_RE$1="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE$1="\\b(0b[01]+)",RE_STARTERS_RE$1="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG$1=(M={})=>{const $=/^#![ ]*\//;return M.binary&&(M.begin=concat$2($,/.*\b/,M.binary,/\b.*/)),inherit$1$1({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(I,N)=>{I.index!==0&&N.ignoreMatch()}},M)},BACKSLASH_ESCAPE$1={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE$1={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},QUOTE_STRING_MODE$1={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},PHRASAL_WORDS_MODE$1={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT$1=function(M,$,I={}){const N=inherit$1$1({scope:"comment",begin:M,end:$,contains:[]},I);N.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const B=either$2("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return N.contains.push({begin:concat$2(/[ ]+/,"(",B,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),N},C_LINE_COMMENT_MODE$1=COMMENT$1("//","$"),C_BLOCK_COMMENT_MODE$1=COMMENT$1("/\\*","\\*/"),HASH_COMMENT_MODE$1=COMMENT$1("#","$"),NUMBER_MODE$1={scope:"number",begin:NUMBER_RE$1,relevance:0},C_NUMBER_MODE$1={scope:"number",begin:C_NUMBER_RE$1,relevance:0},BINARY_NUMBER_MODE$1={scope:"number",begin:BINARY_NUMBER_RE$1,relevance:0},REGEXP_MODE$1={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE$1,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE$1]}]}]},TITLE_MODE$1={scope:"title",begin:IDENT_RE$3,relevance:0},UNDERSCORE_TITLE_MODE$1={scope:"title",begin:UNDERSCORE_IDENT_RE$1,relevance:0},METHOD_GUARD$1={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE$1,relevance:0},END_SAME_AS_BEGIN$1=function(M){return Object.assign(M,{"on:begin":($,I)=>{I.data._beginMatch=$[1]},"on:end":($,I)=>{I.data._beginMatch!==$[1]&&I.ignoreMatch()}})};var MODES$4=Object.freeze({__proto__:null,MATCH_NOTHING_RE:MATCH_NOTHING_RE$1,IDENT_RE:IDENT_RE$3,UNDERSCORE_IDENT_RE:UNDERSCORE_IDENT_RE$1,NUMBER_RE:NUMBER_RE$1,C_NUMBER_RE:C_NUMBER_RE$1,BINARY_NUMBER_RE:BINARY_NUMBER_RE$1,RE_STARTERS_RE:RE_STARTERS_RE$1,SHEBANG:SHEBANG$1,BACKSLASH_ESCAPE:BACKSLASH_ESCAPE$1,APOS_STRING_MODE:APOS_STRING_MODE$1,QUOTE_STRING_MODE:QUOTE_STRING_MODE$1,PHRASAL_WORDS_MODE:PHRASAL_WORDS_MODE$1,COMMENT:COMMENT$1,C_LINE_COMMENT_MODE:C_LINE_COMMENT_MODE$1,C_BLOCK_COMMENT_MODE:C_BLOCK_COMMENT_MODE$1,HASH_COMMENT_MODE:HASH_COMMENT_MODE$1,NUMBER_MODE:NUMBER_MODE$1,C_NUMBER_MODE:C_NUMBER_MODE$1,BINARY_NUMBER_MODE:BINARY_NUMBER_MODE$1,REGEXP_MODE:REGEXP_MODE$1,TITLE_MODE:TITLE_MODE$1,UNDERSCORE_TITLE_MODE:UNDERSCORE_TITLE_MODE$1,METHOD_GUARD:METHOD_GUARD$1,END_SAME_AS_BEGIN:END_SAME_AS_BEGIN$1});function skipIfHasPrecedingDot$1(M,$){M.input[M.index-1]==="."&&$.ignoreMatch()}function scopeClassName$1(M,$){M.className!==void 0&&(M.scope=M.className,delete M.className)}function beginKeywords$1(M,$){$&&M.beginKeywords&&(M.begin="\\b("+M.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",M.__beforeBegin=skipIfHasPrecedingDot$1,M.keywords=M.keywords||M.beginKeywords,delete M.beginKeywords,M.relevance===void 0&&(M.relevance=0))}function compileIllegal$1(M,$){Array.isArray(M.illegal)&&(M.illegal=either$2(...M.illegal))}function compileMatch$1(M,$){if(M.match){if(M.begin||M.end)throw new Error("begin & end are not supported with match");M.begin=M.match,delete M.match}}function compileRelevance$1(M,$){M.relevance===void 0&&(M.relevance=1)}const beforeMatchExt$1=(M,$)=>{if(!M.beforeMatch)return;if(M.starts)throw new Error("beforeMatch cannot be used with starts");const I=Object.assign({},M);Object.keys(M).forEach(N=>{delete M[N]}),M.keywords=I.keywords,M.begin=concat$2(I.beforeMatch,lookahead$2(I.begin)),M.starts={relevance:0,contains:[Object.assign(I,{endsParent:!0})]},M.relevance=0,delete I.beforeMatch},COMMON_KEYWORDS$1=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE$1="keyword";function compileKeywords$1(M,$,I=DEFAULT_KEYWORD_SCOPE$1){const N=Object.create(null);return typeof M=="string"?B(I,M.split(" ")):Array.isArray(M)?B(I,M):Object.keys(M).forEach(function(j){Object.assign(N,compileKeywords$1(M[j],$,j))}),N;function B(j,U){$&&(U=U.map(q=>q.toLowerCase())),U.forEach(function(q){const Y=q.split("|");N[Y[0]]=[j,scoreForKeyword$1(Y[0],Y[1])]})}}function scoreForKeyword$1(M,$){return $?Number($):commonKeyword$1(M)?0:1}function commonKeyword$1(M){return COMMON_KEYWORDS$1.includes(M.toLowerCase())}const seenDeprecations$1={},error$2=M=>{console.error(M)},warn$2=(M,...$)=>{console.log(`WARN: ${M}`,...$)},deprecated$1=(M,$)=>{seenDeprecations$1[`${M}/${$}`]||(console.log(`Deprecated as of ${M}. ${$}`),seenDeprecations$1[`${M}/${$}`]=!0)},MultiClassError$1=new Error;function remapScopeNames$1(M,$,{key:I}){let N=0;const B=M[I],j={},U={};for(let q=1;q<=$.length;q++)U[q+N]=B[q],j[q+N]=!0,N+=countMatchGroups$1($[q-1]);M[I]=U,M[I]._emit=j,M[I]._multi=!0}function beginMultiClass$1(M){if(Array.isArray(M.begin)){if(M.skip||M.excludeBegin||M.returnBegin)throw error$2("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError$1;if(typeof M.beginScope!="object"||M.beginScope===null)throw error$2("beginScope must be object"),MultiClassError$1;remapScopeNames$1(M,M.begin,{key:"beginScope"}),M.begin=_rewriteBackreferences$1(M.begin,{joinWith:""})}}function endMultiClass$1(M){if(Array.isArray(M.end)){if(M.skip||M.excludeEnd||M.returnEnd)throw error$2("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError$1;if(typeof M.endScope!="object"||M.endScope===null)throw error$2("endScope must be object"),MultiClassError$1;remapScopeNames$1(M,M.end,{key:"endScope"}),M.end=_rewriteBackreferences$1(M.end,{joinWith:""})}}function scopeSugar$1(M){M.scope&&typeof M.scope=="object"&&M.scope!==null&&(M.beginScope=M.scope,delete M.scope)}function MultiClass$1(M){scopeSugar$1(M),typeof M.beginScope=="string"&&(M.beginScope={_wrap:M.beginScope}),typeof M.endScope=="string"&&(M.endScope={_wrap:M.endScope}),beginMultiClass$1(M),endMultiClass$1(M)}function compileLanguage$1(M){function $(U,q){return new RegExp(source$2(U),"m"+(M.case_insensitive?"i":"")+(M.unicodeRegex?"u":"")+(q?"g":""))}class I{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(q,Y){Y.position=this.position++,this.matchIndexes[this.matchAt]=Y,this.regexes.push([Y,q]),this.matchAt+=countMatchGroups$1(q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const q=this.regexes.map(Y=>Y[1]);this.matcherRe=$(_rewriteBackreferences$1(q,{joinWith:"|"}),!0),this.lastIndex=0}exec(q){this.matcherRe.lastIndex=this.lastIndex;const Y=this.matcherRe.exec(q);if(!Y)return null;const K=Y.findIndex((J,Z)=>Z>0&&J!==void 0),G=this.matchIndexes[K];return Y.splice(0,K),Object.assign(Y,G)}}class N{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(q){if(this.multiRegexes[q])return this.multiRegexes[q];const Y=new I;return this.rules.slice(q).forEach(([K,G])=>Y.addRule(K,G)),Y.compile(),this.multiRegexes[q]=Y,Y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(q,Y){this.rules.push([q,Y]),Y.type==="begin"&&this.count++}exec(q){const Y=this.getMatcher(this.regexIndex);Y.lastIndex=this.lastIndex;let K=Y.exec(q);if(this.resumingScanAtSamePosition()&&!(K&&K.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,K=G.exec(q)}return K&&(this.regexIndex+=K.position+1,this.regexIndex===this.count&&this.considerAll()),K}}function B(U){const q=new N;return U.contains.forEach(Y=>q.addRule(Y.begin,{rule:Y,type:"begin"})),U.terminatorEnd&&q.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&q.addRule(U.illegal,{type:"illegal"}),q}function j(U,q){const Y=U;if(U.isCompiled)return Y;[scopeClassName$1,compileMatch$1,MultiClass$1,beforeMatchExt$1].forEach(G=>G(U,q)),M.compilerExtensions.forEach(G=>G(U,q)),U.__beforeBegin=null,[beginKeywords$1,compileIllegal$1,compileRelevance$1].forEach(G=>G(U,q)),U.isCompiled=!0;let K=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),K=U.keywords.$pattern,delete U.keywords.$pattern),K=K||/\w+/,U.keywords&&(U.keywords=compileKeywords$1(U.keywords,M.case_insensitive)),Y.keywordPatternRe=$(K,!0),q&&(U.begin||(U.begin=/\B|\b/),Y.beginRe=$(Y.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(Y.endRe=$(Y.end)),Y.terminatorEnd=source$2(Y.end)||"",U.endsWithParent&&q.terminatorEnd&&(Y.terminatorEnd+=(U.end?"|":"")+q.terminatorEnd)),U.illegal&&(Y.illegalRe=$(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(G){return expandOrCloneMode$1(G==="self"?U:G)})),U.contains.forEach(function(G){j(G,Y)}),U.starts&&j(U.starts,q),Y.matcher=B(Y),Y}if(M.compilerExtensions||(M.compilerExtensions=[]),M.contains&&M.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return M.classNameAliases=inherit$1$1(M.classNameAliases||{}),j(M)}function dependencyOnParent$1(M){return M?M.endsWithParent||dependencyOnParent$1(M.starts):!1}function expandOrCloneMode$1(M){return M.variants&&!M.cachedVariants&&(M.cachedVariants=M.variants.map(function($){return inherit$1$1(M,{variants:null},$)})),M.cachedVariants?M.cachedVariants:dependencyOnParent$1(M)?inherit$1$1(M,{starts:M.starts?inherit$1$1(M.starts):null}):Object.isFrozen(M)?inherit$1$1(M):M}var version$1="11.6.0";let HTMLInjectionError$1=class extends Error{constructor($,I){super($),this.name="HTMLInjectionError",this.html=I}};const escape$2=escapeHTML$1,inherit$2=inherit$1$1,NO_MATCH$1=Symbol("nomatch"),MAX_KEYWORD_HITS$1=7,HLJS$1=function(M){const $=Object.create(null),I=Object.create(null),N=[];let B=!0;const j="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter$1};function Y(Oe){return q.noHighlightRe.test(Oe)}function K(Oe){let Me=Oe.className+" ";Me+=Oe.parentNode?Oe.parentNode.className:"";const ze=q.languageDetectRe.exec(Me);if(ze){const Fe=xe(ze[1]);return Fe||(warn$2(j.replace("{}",ze[1])),warn$2("Falling back to no-highlight mode for this block.",Oe)),Fe?ze[1]:"no-highlight"}return Me.split(/\s+/).find(Fe=>Y(Fe)||xe(Fe))}function G(Oe,Me,ze){let Fe="",Ze="";typeof Me=="object"?(Fe=Oe,ze=Me.ignoreIllegals,Ze=Me.language):(deprecated$1("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated$1("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),Ze=Oe,Fe=Me),ze===void 0&&(ze=!0);const lt={code:Fe,language:Ze};Ae("before:highlight",lt);const qe=lt.result?lt.result:J(lt.language,lt.code,ze);return qe.code=lt.code,Ae("after:highlight",qe),qe}function J(Oe,Me,ze,Fe){const Ze=Object.create(null);function lt(Ue,Qe){return Ue.keywords[Qe]}function qe(){if(!dn.keywords){Ye.addText(_t);return}let Ue=0;dn.keywordPatternRe.lastIndex=0;let Qe=dn.keywordPatternRe.exec(_t),mt="";for(;Qe;){mt+=_t.substring(Ue,Qe.index);const ht=On.case_insensitive?Qe[0].toLowerCase():Qe[0],at=lt(dn,ht);if(at){const[ut,Rt]=at;if(Ye.addText(mt),mt="",Ze[ht]=(Ze[ht]||0)+1,Ze[ht]<=MAX_KEYWORD_HITS$1&&(We+=Rt),ut.startsWith("_"))mt+=Qe[0];else{const fn=On.classNameAliases[ut]||ut;Ye.addKeyword(Qe[0],fn)}}else mt+=Qe[0];Ue=dn.keywordPatternRe.lastIndex,Qe=dn.keywordPatternRe.exec(_t)}mt+=_t.substring(Ue),Ye.addText(mt)}function Ve(){if(_t==="")return;let Ue=null;if(typeof dn.subLanguage=="string"){if(!$[dn.subLanguage]){Ye.addText(_t);return}Ue=J(dn.subLanguage,_t,!0,kt[dn.subLanguage]),kt[dn.subLanguage]=Ue._top}else Ue=ee(_t,dn.subLanguage.length?dn.subLanguage:null);dn.relevance>0&&(We+=Ue.relevance),Ye.addSublanguage(Ue._emitter,Ue.language)}function At(){dn.subLanguage!=null?Ve():qe(),_t=""}function Nt(Ue,Qe){let mt=1;const ht=Qe.length-1;for(;mt<=ht;){if(!Ue._emit[mt]){mt++;continue}const at=On.classNameAliases[Ue[mt]]||Ue[mt],ut=Qe[mt];at?Ye.addKeyword(ut,at):(_t=ut,qe(),_t=""),mt++}}function zt(Ue,Qe){return Ue.scope&&typeof Ue.scope=="string"&&Ye.openNode(On.classNameAliases[Ue.scope]||Ue.scope),Ue.beginScope&&(Ue.beginScope._wrap?(Ye.addKeyword(_t,On.classNameAliases[Ue.beginScope._wrap]||Ue.beginScope._wrap),_t=""):Ue.beginScope._multi&&(Nt(Ue.beginScope,Qe),_t="")),dn=Object.create(Ue,{parent:{value:dn}}),dn}function Ht(Ue,Qe,mt){let ht=startsWith$1(Ue.endRe,mt);if(ht){if(Ue["on:end"]){const at=new Response$1(Ue);Ue["on:end"](Qe,at),at.isMatchIgnored&&(ht=!1)}if(ht){for(;Ue.endsParent&&Ue.parent;)Ue=Ue.parent;return Ue}}if(Ue.endsWithParent)return Ht(Ue.parent,Qe,mt)}function qt(Ue){return dn.matcher.regexIndex===0?(_t+=Ue[0],1):($e=!0,0)}function Qt(Ue){const Qe=Ue[0],mt=Ue.rule,ht=new Response$1(mt),at=[mt.__beforeBegin,mt["on:begin"]];for(const ut of at)if(ut&&(ut(Ue,ht),ht.isMatchIgnored))return qt(Qe);return mt.skip?_t+=Qe:(mt.excludeBegin&&(_t+=Qe),At(),!mt.returnBegin&&!mt.excludeBegin&&(_t=Qe)),zt(mt,Ue),mt.returnBegin?0:Qe.length}function Jt(Ue){const Qe=Ue[0],mt=Me.substring(Ue.index),ht=Ht(dn,Ue,mt);if(!ht)return NO_MATCH$1;const at=dn;dn.endScope&&dn.endScope._wrap?(At(),Ye.addKeyword(Qe,dn.endScope._wrap)):dn.endScope&&dn.endScope._multi?(At(),Nt(dn.endScope,Ue)):at.skip?_t+=Qe:(at.returnEnd||at.excludeEnd||(_t+=Qe),At(),at.excludeEnd&&(_t=Qe));do dn.scope&&Ye.closeNode(),!dn.skip&&!dn.subLanguage&&(We+=dn.relevance),dn=dn.parent;while(dn!==ht.parent);return ht.starts&&zt(ht.starts,Ue),at.returnEnd?0:Qe.length}function yn(){const Ue=[];for(let Qe=dn;Qe!==On;Qe=Qe.parent)Qe.scope&&Ue.unshift(Qe.scope);Ue.forEach(Qe=>Ye.openNode(Qe))}let _n={};function Hn(Ue,Qe){const mt=Qe&&Qe[0];if(_t+=Ue,mt==null)return At(),0;if(_n.type==="begin"&&Qe.type==="end"&&_n.index===Qe.index&&mt===""){if(_t+=Me.slice(Qe.index,Qe.index+1),!B){const ht=new Error(`0 width match regex (${Oe})`);throw ht.languageName=Oe,ht.badRule=_n.rule,ht}return 1}if(_n=Qe,Qe.type==="begin")return Qt(Qe);if(Qe.type==="illegal"&&!ze){const ht=new Error('Illegal lexeme "'+mt+'" for mode "'+(dn.scope||"<unnamed>")+'"');throw ht.mode=dn,ht}else if(Qe.type==="end"){const ht=Jt(Qe);if(ht!==NO_MATCH$1)return ht}if(Qe.type==="illegal"&&mt==="")return 1;if(Se>1e5&&Se>Qe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _t+=mt,mt.length}const On=xe(Oe);if(!On)throw error$2(j.replace("{}",Oe)),new Error('Unknown language: "'+Oe+'"');const Fn=compileLanguage$1(On);let In="",dn=Fe||Fn;const kt={},Ye=new q.__emitter(q);yn();let _t="",We=0,Pe=0,Se=0,$e=!1;try{for(dn.matcher.considerAll();;){Se++,$e?$e=!1:dn.matcher.considerAll(),dn.matcher.lastIndex=Pe;const Ue=dn.matcher.exec(Me);if(!Ue)break;const Qe=Me.substring(Pe,Ue.index),mt=Hn(Qe,Ue);Pe=Ue.index+mt}return Hn(Me.substring(Pe)),Ye.closeAllNodes(),Ye.finalize(),In=Ye.toHTML(),{language:Oe,value:In,relevance:We,illegal:!1,_emitter:Ye,_top:dn}}catch(Ue){if(Ue.message&&Ue.message.includes("Illegal"))return{language:Oe,value:escape$2(Me),illegal:!0,relevance:0,_illegalBy:{message:Ue.message,index:Pe,context:Me.slice(Pe-100,Pe+100),mode:Ue.mode,resultSoFar:In},_emitter:Ye};if(B)return{language:Oe,value:escape$2(Me),illegal:!1,relevance:0,errorRaised:Ue,_emitter:Ye,_top:dn};throw Ue}}function Z(Oe){const Me={value:escape$2(Oe),illegal:!1,relevance:0,_top:U,_emitter:new q.__emitter(q)};return Me._emitter.addText(Oe),Me}function ee(Oe,Me){Me=Me||q.languages||Object.keys($);const ze=Z(Oe),Fe=Me.filter(xe).filter(ye).map(At=>J(At,Oe,!1));Fe.unshift(ze);const Ze=Fe.sort((At,Nt)=>{if(At.relevance!==Nt.relevance)return Nt.relevance-At.relevance;if(At.language&&Nt.language){if(xe(At.language).supersetOf===Nt.language)return 1;if(xe(Nt.language).supersetOf===At.language)return-1}return 0}),[lt,qe]=Ze,Ve=lt;return Ve.secondBest=qe,Ve}function te(Oe,Me,ze){const Fe=Me&&I[Me]||ze;Oe.classList.add("hljs"),Oe.classList.add(`language-${Fe}`)}function re(Oe){let Me=null;const ze=K(Oe);if(Y(ze))return;if(Ae("before:highlightElement",{el:Oe,language:ze}),Oe.children.length>0&&(q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Oe)),q.throwUnescapedHTML))throw new HTMLInjectionError$1("One of your code blocks includes unescaped HTML.",Oe.innerHTML);Me=Oe;const Fe=Me.textContent,Ze=ze?G(Fe,{language:ze,ignoreIllegals:!0}):ee(Fe);Oe.innerHTML=Ze.value,te(Oe,ze,Ze.language),Oe.result={language:Ze.language,re:Ze.relevance,relevance:Ze.relevance},Ze.secondBest&&(Oe.secondBest={language:Ze.secondBest.language,relevance:Ze.secondBest.relevance}),Ae("after:highlightElement",{el:Oe,result:Ze,text:Fe})}function se(Oe){q=inherit$2(q,Oe)}const ne=()=>{ue(),deprecated$1("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function le(){ue(),deprecated$1("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ge=!1;function ue(){if(document.readyState==="loading"){ge=!0;return}document.querySelectorAll(q.cssSelector).forEach(re)}function _e(){ge&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_e,!1);function fe(Oe,Me){let ze=null;try{ze=Me(M)}catch(Fe){if(error$2("Language definition for '{}' could not be registered.".replace("{}",Oe)),B)error$2(Fe);else throw Fe;ze=U}ze.name||(ze.name=Oe),$[Oe]=ze,ze.rawDefinition=Me.bind(null,M),ze.aliases&&oe(ze.aliases,{languageName:Oe})}function me(Oe){delete $[Oe];for(const Me of Object.keys(I))I[Me]===Oe&&delete I[Me]}function ve(){return Object.keys($)}function xe(Oe){return Oe=(Oe||"").toLowerCase(),$[Oe]||$[I[Oe]]}function oe(Oe,{languageName:Me}){typeof Oe=="string"&&(Oe=[Oe]),Oe.forEach(ze=>{I[ze.toLowerCase()]=Me})}function ye(Oe){const Me=xe(Oe);return Me&&!Me.disableAutodetect}function be(Oe){Oe["before:highlightBlock"]&&!Oe["before:highlightElement"]&&(Oe["before:highlightElement"]=Me=>{Oe["before:highlightBlock"](Object.assign({block:Me.el},Me))}),Oe["after:highlightBlock"]&&!Oe["after:highlightElement"]&&(Oe["after:highlightElement"]=Me=>{Oe["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function we(Oe){be(Oe),N.push(Oe)}function Ae(Oe,Me){const ze=Oe;N.forEach(function(Fe){Fe[ze]&&Fe[ze](Me)})}function ke(Oe){return deprecated$1("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated$1("10.7.0","Please use highlightElement now."),re(Oe)}Object.assign(M,{highlight:G,highlightAuto:ee,highlightAll:ue,highlightElement:re,highlightBlock:ke,configure:se,initHighlighting:ne,initHighlightingOnLoad:le,registerLanguage:fe,unregisterLanguage:me,listLanguages:ve,getLanguage:xe,registerAliases:oe,autoDetection:ye,inherit:inherit$2,addPlugin:we}),M.debugMode=function(){B=!1},M.safeMode=function(){B=!0},M.versionString=version$1,M.regex={concat:concat$2,lookahead:lookahead$2,either:either$2,optional:optional$1,anyNumberOfTimes:anyNumberOfTimes$1};for(const Oe in MODES$4)typeof MODES$4[Oe]=="object"&&deepFreezeEs6$1.exports(MODES$4[Oe]);return Object.assign(M,MODES$4),M};var highlight$2=HLJS$1({}),core$1=highlight$2;highlight$2.HighlightJS=highlight$2;highlight$2.default=highlight$2;var HighlightJS$1=core$1;function parseNodes(M,$=[]){return M.map(I=>{const N=[...$,...I.properties?I.properties.className:[]];return I.children?parseNodes(I.children,N):{text:I.value,classes:N}}).flat()}function getHighlightNodes(M){return M.value||M.children||[]}function registered$1(M){return!!HighlightJS$1.getLanguage(M)}function getDecorations({doc:M,name:$,lowlight:I,defaultLanguage:N}){const B=[];return findChildren(M,j=>j.type.name===$).forEach(j=>{let U=j.pos+1;const q=j.node.attrs.language||N,Y=I.listLanguages(),K=q&&(Y.includes(q)||registered$1(q))?getHighlightNodes(I.highlight(q,j.node.textContent)):getHighlightNodes(I.highlightAuto(j.node.textContent));parseNodes(K).forEach(G=>{const J=U+G.text.length;if(G.classes.length){const Z=Decoration.inline(U,J,{class:G.classes.join(" ")});B.push(Z)}U=J})}),DecorationSet.create(M,B)}function isFunction$2(M){return typeof M=="function"}function LowlightPlugin({name:M,lowlight:$,defaultLanguage:I}){if(!["highlight","highlightAuto","listLanguages"].every(B=>isFunction$2($[B])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const N=new Plugin({key:new PluginKey("lowlight"),state:{init:(B,{doc:j})=>getDecorations({doc:j,name:M,lowlight:$,defaultLanguage:I}),apply:(B,j,U,q)=>{const Y=U.selection.$head.parent.type.name,K=q.selection.$head.parent.type.name,G=findChildren(U.doc,Z=>Z.type.name===M),J=findChildren(q.doc,Z=>Z.type.name===M);return B.docChanged&&([Y,K].includes(M)||J.length!==G.length||B.steps.some(Z=>Z.from!==void 0&&Z.to!==void 0&&G.some(ee=>ee.pos>=Z.from&&ee.pos+ee.node.nodeSize<=Z.to)))?getDecorations({doc:B.doc,name:M,lowlight:$,defaultLanguage:I}):j.map(B.mapping,B.doc)}},props:{decorations(B){return N.getState(B)}}});return N}const CodeBlockLowlight=CodeBlock.extend({addOptions(){var M;return{...(M=this.parent)===null||M===void 0?void 0:M.call(this),lowlight:{},defaultLanguage:null}},addProseMirrorPlugins(){var M;return[...((M=this.parent)===null||M===void 0?void 0:M.call(this))||[],LowlightPlugin({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function dropCursor(M={}){return new Plugin({view($){return new DropCursorView($,M)}})}class DropCursorView{constructor($,I){var N;this.editorView=$,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(N=I.width)!==null&&N!==void 0?N:1,this.color=I.color===!1?void 0:I.color||"black",this.class=I.class,this.handlers=["dragover","dragend","drop","dragleave"].map(B=>{let j=U=>{this[B](U)};return $.dom.addEventListener(B,j),{name:B,handler:j}})}destroy(){this.handlers.forEach(({name:$,handler:I})=>this.editorView.dom.removeEventListener($,I))}update($,I){this.cursorPos!=null&&I.doc!=$.state.doc&&(this.cursorPos>$.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor($){$!=this.cursorPos&&(this.cursorPos=$,$==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let $=this.editorView.state.doc.resolve(this.cursorPos),I=!$.parent.inlineContent,N;if(I){let q=$.nodeBefore,Y=$.nodeAfter;if(q||Y){let K=this.editorView.nodeDOM(this.cursorPos-(q?q.nodeSize:0));if(K){let G=K.getBoundingClientRect(),J=q?G.bottom:G.top;q&&Y&&(J=(J+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),N={left:G.left,right:G.right,top:J-this.width/2,bottom:J+this.width/2}}}}if(!N){let q=this.editorView.coordsAtPos(this.cursorPos);N={left:q.left-this.width/2,right:q.left+this.width/2,top:q.top,bottom:q.bottom}}let B=this.editorView.dom.offsetParent;this.element||(this.element=B.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",I),this.element.classList.toggle("prosemirror-dropcursor-inline",!I);let j,U;if(!B||B==document.body&&getComputedStyle(B).position=="static")j=-pageXOffset,U=-pageYOffset;else{let q=B.getBoundingClientRect();j=q.left-B.scrollLeft,U=q.top-B.scrollTop}this.element.style.left=N.left-j+"px",this.element.style.top=N.top-U+"px",this.element.style.width=N.right-N.left+"px",this.element.style.height=N.bottom-N.top+"px"}scheduleRemoval($){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),$)}dragover($){if(!this.editorView.editable)return;let I=this.editorView.posAtCoords({left:$.clientX,top:$.clientY}),N=I&&I.inside>=0&&this.editorView.state.doc.nodeAt(I.inside),B=N&&N.type.spec.disableDropCursor,j=typeof B=="function"?B(this.editorView,I,$):B;if(I&&!j){let U=I.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let q=dropPoint(this.editorView.state.doc,U,this.editorView.dragging.slice);q!=null&&(U=q)}this.setCursor(U),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave($){($.target==this.editorView.dom||!this.editorView.dom.contains($.relatedTarget))&&this.setCursor(null)}}const Dropcursor=Extension.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[dropCursor(this.options)]}});class GapCursor extends Selection{constructor($){super($,$)}map($,I){let N=$.resolve(I.map(this.head));return GapCursor.valid(N)?new GapCursor(N):Selection.near(N)}content(){return Slice.empty}eq($){return $ instanceof GapCursor&&$.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new GapCursor($.resolve(I.pos))}getBookmark(){return new GapBookmark(this.anchor)}static valid($){let I=$.parent;if(I.isTextblock||!closedBefore($)||!closedAfter($))return!1;let N=I.type.spec.allowGapCursor;if(N!=null)return N;let B=I.contentMatchAt($.index()).defaultType;return B&&B.isTextblock}static findGapCursorFrom($,I,N=!1){e:for(;;){if(!N&&GapCursor.valid($))return $;let B=$.pos,j=null;for(let U=$.depth;;U--){let q=$.node(U);if(I>0?$.indexAfter(U)<q.childCount:$.index(U)>0){j=q.child(I>0?$.indexAfter(U):$.index(U)-1);break}else if(U==0)return null;B+=I;let Y=$.doc.resolve(B);if(GapCursor.valid(Y))return Y}for(;;){let U=I>0?j.firstChild:j.lastChild;if(!U){if(j.isAtom&&!j.isText&&!NodeSelection.isSelectable(j)){$=$.doc.resolve(B+j.nodeSize*I),N=!1;continue e}break}j=U,B+=I;let q=$.doc.resolve(B);if(GapCursor.valid(q))return q}return null}}}GapCursor.prototype.visible=!1;GapCursor.findFrom=GapCursor.findGapCursorFrom;Selection.jsonID("gapcursor",GapCursor);class GapBookmark{constructor($){this.pos=$}map($){return new GapBookmark($.map(this.pos))}resolve($){let I=$.resolve(this.pos);return GapCursor.valid(I)?new GapCursor(I):Selection.near(I)}}function closedBefore(M){for(let $=M.depth;$>=0;$--){let I=M.index($),N=M.node($);if(I==0){if(N.type.spec.isolating)return!0;continue}for(let B=N.child(I-1);;B=B.lastChild){if(B.childCount==0&&!B.inlineContent||B.isAtom||B.type.spec.isolating)return!0;if(B.inlineContent)return!1}}return!0}function closedAfter(M){for(let $=M.depth;$>=0;$--){let I=M.indexAfter($),N=M.node($);if(I==N.childCount){if(N.type.spec.isolating)return!0;continue}for(let B=N.child(I);;B=B.firstChild){if(B.childCount==0&&!B.inlineContent||B.isAtom||B.type.spec.isolating)return!0;if(B.inlineContent)return!1}}return!0}function gapCursor(){return new Plugin({props:{decorations:drawGapCursor,createSelectionBetween(M,$,I){return $.pos==I.pos&&GapCursor.valid(I)?new GapCursor(I):null},handleClick,handleKeyDown:handleKeyDown$1,handleDOMEvents:{beforeinput}}})}const handleKeyDown$1=keydownHandler({ArrowLeft:arrow$2("horiz",-1),ArrowRight:arrow$2("horiz",1),ArrowUp:arrow$2("vert",-1),ArrowDown:arrow$2("vert",1)});function arrow$2(M,$){const I=M=="vert"?$>0?"down":"up":$>0?"right":"left";return function(N,B,j){let U=N.selection,q=$>0?U.$to:U.$from,Y=U.empty;if(U instanceof TextSelection){if(!j.endOfTextblock(I)||q.depth==0)return!1;Y=!1,q=N.doc.resolve($>0?q.after():q.before())}let K=GapCursor.findGapCursorFrom(q,$,Y);return K?(B&&B(N.tr.setSelection(new GapCursor(K))),!0):!1}}function handleClick(M,$,I){if(!M||!M.editable)return!1;let N=M.state.doc.resolve($);if(!GapCursor.valid(N))return!1;let B=M.posAtCoords({left:I.clientX,top:I.clientY});return B&&B.inside>-1&&NodeSelection.isSelectable(M.state.doc.nodeAt(B.inside))?!1:(M.dispatch(M.state.tr.setSelection(new GapCursor(N))),!0)}function beforeinput(M,$){if($.inputType!="insertCompositionText"||!(M.state.selection instanceof GapCursor))return!1;let{$from:I}=M.state.selection,N=I.parent.contentMatchAt(I.index()).findWrapping(M.state.schema.nodes.text);if(!N)return!1;let B=Fragment.empty;for(let U=N.length-1;U>=0;U--)B=Fragment.from(N[U].createAndFill(null,B));let j=M.state.tr.replace(I.pos,I.pos,new Slice(B,0,0));return j.setSelection(TextSelection.near(j.doc.resolve(I.pos+1))),M.dispatch(j),!1}function drawGapCursor(M){if(!(M.selection instanceof GapCursor))return null;let $=document.createElement("div");return $.className="ProseMirror-gapcursor",DecorationSet.create(M.doc,[Decoration.widget(M.selection.head,$,{key:"gapcursor"})])}const Gapcursor=Extension.create({name:"gapCursor",addProseMirrorPlugins(){return[gapCursor()]},extendNodeSchema(M){var $;const I={name:M.name,options:M.options,storage:M.storage};return{allowGapCursor:($=callOrReturn(getExtensionField(M,"allowGapCursor",I)))!==null&&$!==void 0?$:null}}}),HardBreak=Node$1.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:M}){return["br",mergeAttributes(this.options.HTMLAttributes,M)]},renderText(){return`
- `},addCommands(){return{setHardBreak:()=>({commands:M,chain:$,state:I,editor:N})=>M.first([()=>M.exitCode(),()=>M.command(()=>{const{selection:B,storedMarks:j}=I;if(B.$from.parent.type.spec.isolating)return!1;const{keepMarks:U}=this.options,{splittableMarks:q}=N.extensionManager,Y=j||B.$to.parentOffset&&B.$from.marks();return $().insertContent({type:this.name}).command(({tr:K,dispatch:G})=>{if(G&&Y&&U){const J=Y.filter(Z=>q.includes(Z.type.name));K.ensureMarks(J)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Heading=Node$1.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(M=>({tag:`h${M}`,attrs:{level:M}}))},renderHTML({node:M,HTMLAttributes:$}){return[`h${this.options.levels.includes(M.attrs.level)?M.attrs.level:this.options.levels[0]}`,mergeAttributes(this.options.HTMLAttributes,$),0]},addCommands(){return{setHeading:M=>({commands:$})=>this.options.levels.includes(M.level)?$.setNode(this.name,M):!1,toggleHeading:M=>({commands:$})=>this.options.levels.includes(M.level)?$.toggleNode(this.name,"paragraph",M):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((M,$)=>({...M,[`Mod-Alt-${$}`]:()=>this.editor.commands.toggleHeading({level:$})}),{})},addInputRules(){return this.options.levels.map(M=>textblockTypeInputRule({find:new RegExp(`^(#{1,${M}})\\s$`),type:this.type,getAttributes:{level:M}}))}});var GOOD_LEAF_SIZE=200,RopeSequence=function M(){};RopeSequence.prototype.append=function M($){return $.length?($=RopeSequence.from($),!this.length&&$||$.length<GOOD_LEAF_SIZE&&this.leafAppend($)||this.length<GOOD_LEAF_SIZE&&$.leafPrepend(this)||this.appendInner($)):this};RopeSequence.prototype.prepend=function M($){return $.length?RopeSequence.from($).append(this):this};RopeSequence.prototype.appendInner=function M($){return new Append(this,$)};RopeSequence.prototype.slice=function M($,I){return $===void 0&&($=0),I===void 0&&(I=this.length),$>=I?RopeSequence.empty:this.sliceInner(Math.max(0,$),Math.min(this.length,I))};RopeSequence.prototype.get=function M($){if(!($<0||$>=this.length))return this.getInner($)};RopeSequence.prototype.forEach=function M($,I,N){I===void 0&&(I=0),N===void 0&&(N=this.length),I<=N?this.forEachInner($,I,N,0):this.forEachInvertedInner($,I,N,0)};RopeSequence.prototype.map=function M($,I,N){I===void 0&&(I=0),N===void 0&&(N=this.length);var B=[];return this.forEach(function(j,U){return B.push($(j,U))},I,N),B};RopeSequence.from=function M($){return $ instanceof RopeSequence?$:$&&$.length?new Leaf($):RopeSequence.empty};var Leaf=function(M){function $(N){M.call(this),this.values=N}M&&($.__proto__=M),$.prototype=Object.create(M&&M.prototype),$.prototype.constructor=$;var I={length:{configurable:!0},depth:{configurable:!0}};return $.prototype.flatten=function(){return this.values},$.prototype.sliceInner=function(B,j){return B==0&&j==this.length?this:new $(this.values.slice(B,j))},$.prototype.getInner=function(B){return this.values[B]},$.prototype.forEachInner=function(B,j,U,q){for(var Y=j;Y<U;Y++)if(B(this.values[Y],q+Y)===!1)return!1},$.prototype.forEachInvertedInner=function(B,j,U,q){for(var Y=j-1;Y>=U;Y--)if(B(this.values[Y],q+Y)===!1)return!1},$.prototype.leafAppend=function(B){if(this.length+B.length<=GOOD_LEAF_SIZE)return new $(this.values.concat(B.flatten()))},$.prototype.leafPrepend=function(B){if(this.length+B.length<=GOOD_LEAF_SIZE)return new $(B.flatten().concat(this.values))},I.length.get=function(){return this.values.length},I.depth.get=function(){return 0},Object.defineProperties($.prototype,I),$}(RopeSequence);RopeSequence.empty=new Leaf([]);var Append=function(M){function $(I,N){M.call(this),this.left=I,this.right=N,this.length=I.length+N.length,this.depth=Math.max(I.depth,N.depth)+1}return M&&($.__proto__=M),$.prototype=Object.create(M&&M.prototype),$.prototype.constructor=$,$.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},$.prototype.getInner=function(N){return N<this.left.length?this.left.get(N):this.right.get(N-this.left.length)},$.prototype.forEachInner=function(N,B,j,U){var q=this.left.length;if(B<q&&this.left.forEachInner(N,B,Math.min(j,q),U)===!1||j>q&&this.right.forEachInner(N,Math.max(B-q,0),Math.min(this.length,j)-q,U+q)===!1)return!1},$.prototype.forEachInvertedInner=function(N,B,j,U){var q=this.left.length;if(B>q&&this.right.forEachInvertedInner(N,B-q,Math.max(j,q)-q,U+q)===!1||j<q&&this.left.forEachInvertedInner(N,Math.min(B,q),j,U)===!1)return!1},$.prototype.sliceInner=function(N,B){if(N==0&&B==this.length)return this;var j=this.left.length;return B<=j?this.left.slice(N,B):N>=j?this.right.slice(N-j,B-j):this.left.slice(N,j).append(this.right.slice(0,B-j))},$.prototype.leafAppend=function(N){var B=this.right.leafAppend(N);if(B)return new $(this.left,B)},$.prototype.leafPrepend=function(N){var B=this.left.leafPrepend(N);if(B)return new $(B,this.right)},$.prototype.appendInner=function(N){return this.left.depth>=Math.max(this.right.depth,N.depth)+1?new $(this.left,new $(this.right,N)):new $(this,N)},$}(RopeSequence),ropeSequence=RopeSequence;const max_empty_items=500;class Branch{constructor($,I){this.items=$,this.eventCount=I}popEvent($,I){if(this.eventCount==0)return null;let N=this.items.length;for(;;N--)if(this.items.get(N-1).selection){--N;break}let B,j;I&&(B=this.remapping(N,this.items.length),j=B.maps.length);let U=$.tr,q,Y,K=[],G=[];return this.items.forEach((J,Z)=>{if(!J.step){B||(B=this.remapping(N,Z+1),j=B.maps.length),j--,G.push(J);return}if(B){G.push(new Item(J.map));let ee=J.step.map(B.slice(j)),te;ee&&U.maybeStep(ee).doc&&(te=U.mapping.maps[U.mapping.maps.length-1],K.push(new Item(te,void 0,void 0,K.length+G.length))),j--,te&&B.appendMap(te,j)}else U.maybeStep(J.step);if(J.selection)return q=B?J.selection.map(B.slice(j)):J.selection,Y=new Branch(this.items.slice(0,N).append(G.reverse().concat(K)),this.eventCount-1),!1},this.items.length,0),{remaining:Y,transform:U,selection:q}}addTransform($,I,N,B){let j=[],U=this.eventCount,q=this.items,Y=!B&&q.length?q.get(q.length-1):null;for(let G=0;G<$.steps.length;G++){let J=$.steps[G].invert($.docs[G]),Z=new Item($.mapping.maps[G],J,I),ee;(ee=Y&&Y.merge(Z))&&(Z=ee,G?j.pop():q=q.slice(0,q.length-1)),j.push(Z),I&&(U++,I=void 0),B||(Y=Z)}let K=U-N.depth;return K>DEPTH_OVERFLOW&&(q=cutOffEvents(q,K),U-=K),new Branch(q.append(j),U)}remapping($,I){let N=new Mapping;return this.items.forEach((B,j)=>{let U=B.mirrorOffset!=null&&j-B.mirrorOffset>=$?N.maps.length-B.mirrorOffset:void 0;N.appendMap(B.map,U)},$,I),N}addMaps($){return this.eventCount==0?this:new Branch(this.items.append($.map(I=>new Item(I))),this.eventCount)}rebased($,I){if(!this.eventCount)return this;let N=[],B=Math.max(0,this.items.length-I),j=$.mapping,U=$.steps.length,q=this.eventCount;this.items.forEach(Z=>{Z.selection&&q--},B);let Y=I;this.items.forEach(Z=>{let ee=j.getMirror(--Y);if(ee==null)return;U=Math.min(U,ee);let te=j.maps[ee];if(Z.step){let re=$.steps[ee].invert($.docs[ee]),se=Z.selection&&Z.selection.map(j.slice(Y+1,ee));se&&q++,N.push(new Item(te,re,se))}else N.push(new Item(te))},B);let K=[];for(let Z=I;Z<U;Z++)K.push(new Item(j.maps[Z]));let G=this.items.slice(0,B).append(K).append(N),J=new Branch(G,q);return J.emptyItemCount()>max_empty_items&&(J=J.compress(this.items.length-N.length)),J}emptyItemCount(){let $=0;return this.items.forEach(I=>{I.step||$++}),$}compress($=this.items.length){let I=this.remapping(0,$),N=I.maps.length,B=[],j=0;return this.items.forEach((U,q)=>{if(q>=$)B.push(U),U.selection&&j++;else if(U.step){let Y=U.step.map(I.slice(N)),K=Y&&Y.getMap();if(N--,K&&I.appendMap(K,N),Y){let G=U.selection&&U.selection.map(I.slice(N));G&&j++;let J=new Item(K.invert(),Y,G),Z,ee=B.length-1;(Z=B.length&&B[ee].merge(J))?B[ee]=Z:B.push(J)}}else U.map&&N--},this.items.length,0),new Branch(ropeSequence.from(B.reverse()),j)}}Branch.empty=new Branch(ropeSequence.empty,0);function cutOffEvents(M,$){let I;return M.forEach((N,B)=>{if(N.selection&&$--==0)return I=B,!1}),M.slice(I)}class Item{constructor($,I,N,B){this.map=$,this.step=I,this.selection=N,this.mirrorOffset=B}merge($){if(this.step&&$.step&&!$.selection){let I=$.step.merge(this.step);if(I)return new Item(I.getMap().invert(),I,this.selection)}}}class HistoryState{constructor($,I,N,B){this.done=$,this.undone=I,this.prevRanges=N,this.prevTime=B}}const DEPTH_OVERFLOW=20;function applyTransaction(M,$,I,N){let B=I.getMeta(historyKey),j;if(B)return B.historyState;I.getMeta(closeHistoryKey)&&(M=new HistoryState(M.done,M.undone,null,0));let U=I.getMeta("appendedTransaction");if(I.steps.length==0)return M;if(U&&U.getMeta(historyKey))return U.getMeta(historyKey).redo?new HistoryState(M.done.addTransform(I,void 0,N,mustPreserveItems($)),M.undone,rangesFor(I.mapping.maps[I.steps.length-1]),M.prevTime):new HistoryState(M.done,M.undone.addTransform(I,void 0,N,mustPreserveItems($)),null,M.prevTime);if(I.getMeta("addToHistory")!==!1&&!(U&&U.getMeta("addToHistory")===!1)){let q=M.prevTime==0||!U&&(M.prevTime<(I.time||0)-N.newGroupDelay||!isAdjacentTo(I,M.prevRanges)),Y=U?mapRanges(M.prevRanges,I.mapping):rangesFor(I.mapping.maps[I.steps.length-1]);return new HistoryState(M.done.addTransform(I,q?$.selection.getBookmark():void 0,N,mustPreserveItems($)),Branch.empty,Y,I.time)}else return(j=I.getMeta("rebased"))?new HistoryState(M.done.rebased(I,j),M.undone.rebased(I,j),mapRanges(M.prevRanges,I.mapping),M.prevTime):new HistoryState(M.done.addMaps(I.mapping.maps),M.undone.addMaps(I.mapping.maps),mapRanges(M.prevRanges,I.mapping),M.prevTime)}function isAdjacentTo(M,$){if(!$)return!1;if(!M.docChanged)return!0;let I=!1;return M.mapping.maps[0].forEach((N,B)=>{for(let j=0;j<$.length;j+=2)N<=$[j+1]&&B>=$[j]&&(I=!0)}),I}function rangesFor(M){let $=[];return M.forEach((I,N,B,j)=>$.push(B,j)),$}function mapRanges(M,$){if(!M)return null;let I=[];for(let N=0;N<M.length;N+=2){let B=$.map(M[N],1),j=$.map(M[N+1],-1);B<=j&&I.push(B,j)}return I}function histTransaction(M,$,I,N){let B=mustPreserveItems($),j=historyKey.get($).spec.config,U=(N?M.undone:M.done).popEvent($,B);if(!U)return;let q=U.selection.resolve(U.transform.doc),Y=(N?M.done:M.undone).addTransform(U.transform,$.selection.getBookmark(),j,B),K=new HistoryState(N?Y:U.remaining,N?U.remaining:Y,null,0);I(U.transform.setSelection(q).setMeta(historyKey,{redo:N,historyState:K}).scrollIntoView())}let cachedPreserveItems=!1,cachedPreserveItemsPlugins=null;function mustPreserveItems(M){let $=M.plugins;if(cachedPreserveItemsPlugins!=$){cachedPreserveItems=!1,cachedPreserveItemsPlugins=$;for(let I=0;I<$.length;I++)if($[I].spec.historyPreserveItems){cachedPreserveItems=!0;break}}return cachedPreserveItems}const historyKey=new PluginKey("history"),closeHistoryKey=new PluginKey("closeHistory");function history(M={}){return M={depth:M.depth||100,newGroupDelay:M.newGroupDelay||500},new Plugin({key:historyKey,state:{init(){return new HistoryState(Branch.empty,Branch.empty,null,0)},apply($,I,N){return applyTransaction(I,N,$,M)}},config:M,props:{handleDOMEvents:{beforeinput($,I){let N=I.inputType,B=N=="historyUndo"?undo:N=="historyRedo"?redo:null;return B?(I.preventDefault(),B($.state,$.dispatch)):!1}}}})}const undo=(M,$)=>{let I=historyKey.getState(M);return!I||I.done.eventCount==0?!1:($&&histTransaction(I,M,$,!1),!0)},redo=(M,$)=>{let I=historyKey.getState(M);return!I||I.undone.eventCount==0?!1:($&&histTransaction(I,M,$,!0),!0)},History=Extension.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:M,dispatch:$})=>undo(M,$),redo:()=>({state:M,dispatch:$})=>redo(M,$)}},addProseMirrorPlugins(){return[history(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),HorizontalRule=Node$1.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:M}){return["hr",mergeAttributes(this.options.HTMLAttributes,M)]},addCommands(){return{setHorizontalRule:()=>({chain:M})=>M().insertContent({type:this.name}).command(({tr:$,dispatch:I})=>{var N;if(I){const{$to:B}=$.selection,j=B.end();if(B.nodeAfter)$.setSelection(TextSelection.create($.doc,B.pos));else{const U=(N=B.parent.type.contentMatch.defaultType)===null||N===void 0?void 0:N.create();U&&($.insert(j,U),$.setSelection(TextSelection.create($.doc,j)))}$.scrollIntoView()}return!0}).run()}},addInputRules(){return[nodeInputRule({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),starInputRegex=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,starPasteRegex=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,underscoreInputRegex=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,underscorePasteRegex=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,Italic=Mark.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:M=>M.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:M}){return["em",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setItalic:()=>({commands:M})=>M.setMark(this.name),toggleItalic:()=>({commands:M})=>M.toggleMark(this.name),unsetItalic:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[markInputRule({find:starInputRegex,type:this.type}),markInputRule({find:underscoreInputRegex,type:this.type})]},addPasteRules(){return[markPasteRule({find:starPasteRegex,type:this.type}),markPasteRule({find:underscorePasteRegex,type:this.type})]}}),ListItem$1=Node$1.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:M}){return["li",mergeAttributes(this.options.HTMLAttributes,M),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ListItem=Node$1.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:M}){return["li",mergeAttributes(this.options.HTMLAttributes,M),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),TextStyle=Mark.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:M=>M.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["span",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:M,commands:$})=>{const I=getMarkAttributes(M,this.type);return Object.entries(I).some(([,B])=>!!B)?!0:$.unsetMark(this.name)}}}}),inputRegex$1=/^(\d+)\.\s$/,OrderedList=Node$1.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:M=>M.hasAttribute("start")?parseInt(M.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:M}){const{start:$,...I}=M;return $===1?["ol",mergeAttributes(this.options.HTMLAttributes,I),0]:["ol",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleOrderedList:()=>({commands:M,chain:$})=>this.options.keepAttributes?$().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ListItem.name,this.editor.getAttributes(TextStyle.name)).run():M.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let M=wrappingInputRule({find:inputRegex$1,type:this.type,getAttributes:$=>({start:+$[1]}),joinPredicate:($,I)=>I.childCount+I.attrs.start===+$[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(M=wrappingInputRule({find:inputRegex$1,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:$=>({start:+$[1],...this.editor.getAttributes(TextStyle.name)}),joinPredicate:($,I)=>I.childCount+I.attrs.start===+$[1],editor:this.editor})),[M]}}),Paragraph=Node$1.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:M}){return["p",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setParagraph:()=>({commands:M})=>M.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Placeholder=Extension.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("placeholder"),props:{decorations:({doc:M,selection:$})=>{const I=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:N}=$,B=[];if(!I)return null;const j=M.type.createAndFill(),U=(j==null?void 0:j.sameMarkup(M))&&j.content.findDiffStart(M.content)===null;return M.descendants((q,Y)=>{const K=N>=Y&&N<=Y+q.nodeSize,G=!q.isLeaf&&!q.childCount;if((K||!this.options.showOnlyCurrent)&&G){const J=[this.options.emptyNodeClass];U&&J.push(this.options.emptyEditorClass);const Z=Decoration.node(Y,Y+q.nodeSize,{class:J.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:q,pos:Y,hasAnchor:K}):this.options.placeholder});B.push(Z)}return this.options.includeChildren}),DecorationSet.create(M,B)}}})]}}),inputRegex=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,pasteRegex=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Strike=Mark.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:M=>M.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["s",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setStrike:()=>({commands:M})=>M.setMark(this.name),toggleStrike:()=>({commands:M})=>M.toggleMark(this.name),unsetStrike:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[markInputRule({find:inputRegex,type:this.type})]},addPasteRules(){return[markPasteRule({find:pasteRegex,type:this.type})]}}),Subscript=Mark.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(M){return M!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:M}){return["sub",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setSubscript:()=>({commands:M})=>M.setMark(this.name),toggleSubscript:()=>({commands:M})=>M.toggleMark(this.name),unsetSubscript:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),Superscript=Mark.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(M){return M!=="super"?!1:null}}]},renderHTML({HTMLAttributes:M}){return["sup",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setSuperscript:()=>({commands:M})=>M.setMark(this.name),toggleSuperscript:()=>({commands:M})=>M.toggleMark(this.name),unsetSuperscript:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}});var readFromCache,addToCache;if(typeof WeakMap<"u"){let M=new WeakMap;readFromCache=$=>M.get($),addToCache=($,I)=>(M.set($,I),I)}else{const M=[];let I=0;readFromCache=N=>{for(let B=0;B<M.length;B+=2)if(M[B]==N)return M[B+1]},addToCache=(N,B)=>(I==10&&(I=0),M[I++]=N,M[I++]=B)}var TableMap=class{constructor(M,$,I,N){this.width=M,this.height=$,this.map=I,this.problems=N}findCell(M){for(let $=0;$<this.map.length;$++){const I=this.map[$];if(I!=M)continue;const N=$%this.width,B=$/this.width|0;let j=N+1,U=B+1;for(let q=1;j<this.width&&this.map[$+q]==I;q++)j++;for(let q=1;U<this.height&&this.map[$+this.width*q]==I;q++)U++;return{left:N,top:B,right:j,bottom:U}}throw new RangeError(`No cell with offset ${M} found`)}colCount(M){for(let $=0;$<this.map.length;$++)if(this.map[$]==M)return $%this.width;throw new RangeError(`No cell with offset ${M} found`)}nextCell(M,$,I){const{left:N,right:B,top:j,bottom:U}=this.findCell(M);return $=="horiz"?(I<0?N==0:B==this.width)?null:this.map[j*this.width+(I<0?N-1:B)]:(I<0?j==0:U==this.height)?null:this.map[N+this.width*(I<0?j-1:U)]}rectBetween(M,$){const{left:I,right:N,top:B,bottom:j}=this.findCell(M),{left:U,right:q,top:Y,bottom:K}=this.findCell($);return{left:Math.min(I,U),top:Math.min(B,Y),right:Math.max(N,q),bottom:Math.max(j,K)}}cellsInRect(M){const $=[],I={};for(let N=M.top;N<M.bottom;N++)for(let B=M.left;B<M.right;B++){const j=N*this.width+B,U=this.map[j];I[U]||(I[U]=!0,!(B==M.left&&B&&this.map[j-1]==U||N==M.top&&N&&this.map[j-this.width]==U)&&$.push(U))}return $}positionAt(M,$,I){for(let N=0,B=0;;N++){const j=B+I.child(N).nodeSize;if(N==M){let U=$+M*this.width;const q=(M+1)*this.width;for(;U<q&&this.map[U]<B;)U++;return U==q?j-1:this.map[U]}B=j}}static get(M){return readFromCache(M)||addToCache(M,computeMap(M))}};function computeMap(M){if(M.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+M.type.name);const $=findWidth(M),I=M.childCount,N=[];let B=0,j=null;const U=[];for(let K=0,G=$*I;K<G;K++)N[K]=0;for(let K=0,G=0;K<I;K++){const J=M.child(K);G++;for(let te=0;;te++){for(;B<N.length&&N[B]!=0;)B++;if(te==J.childCount)break;const re=J.child(te),{colspan:se,rowspan:ne,colwidth:le}=re.attrs;for(let ge=0;ge<ne;ge++){if(ge+K>=I){(j||(j=[])).push({type:"overlong_rowspan",pos:G,n:ne-ge});break}const ue=B+ge*$;for(let _e=0;_e<se;_e++){N[ue+_e]==0?N[ue+_e]=G:(j||(j=[])).push({type:"collision",row:K,pos:G,n:se-_e});const fe=le&&le[_e];if(fe){const me=(ue+_e)%$*2,ve=U[me];ve==null||ve!=fe&&U[me+1]==1?(U[me]=fe,U[me+1]=1):ve==fe&&U[me+1]++}}}B+=se,G+=re.nodeSize}const Z=(K+1)*$;let ee=0;for(;B<Z;)N[B++]==0&&ee++;ee&&(j||(j=[])).push({type:"missing",row:K,n:ee}),G++}const q=new TableMap($,I,N,j);let Y=!1;for(let K=0;!Y&&K<U.length;K+=2)U[K]!=null&&U[K+1]<I&&(Y=!0);return Y&&findBadColWidths(q,U,M),q}function findWidth(M){let $=-1,I=!1;for(let N=0;N<M.childCount;N++){const B=M.child(N);let j=0;if(I)for(let U=0;U<N;U++){const q=M.child(U);for(let Y=0;Y<q.childCount;Y++){const K=q.child(Y);U+K.attrs.rowspan>N&&(j+=K.attrs.colspan)}}for(let U=0;U<B.childCount;U++){const q=B.child(U);j+=q.attrs.colspan,q.attrs.rowspan>1&&(I=!0)}$==-1?$=j:$!=j&&($=Math.max($,j))}return $}function findBadColWidths(M,$,I){M.problems||(M.problems=[]);const N={};for(let B=0;B<M.map.length;B++){const j=M.map[B];if(N[j])continue;N[j]=!0;const U=I.nodeAt(j);if(!U)throw new RangeError(`No cell with offset ${j} found`);let q=null;const Y=U.attrs;for(let K=0;K<Y.colspan;K++){const G=(B+K)%M.width,J=$[G*2];J!=null&&(!Y.colwidth||Y.colwidth[K]!=J)&&((q||(q=freshColWidth(Y)))[K]=J)}q&&M.problems.unshift({type:"colwidth mismatch",pos:j,colwidth:q})}}function freshColWidth(M){if(M.colwidth)return M.colwidth.slice();const $=[];for(let I=0;I<M.colspan;I++)$.push(0);return $}function tableNodeTypes(M){let $=M.cached.tableNodeTypes;if(!$){$=M.cached.tableNodeTypes={};for(const I in M.nodes){const N=M.nodes[I],B=N.spec.tableRole;B&&($[B]=N)}}return $}var tableEditingKey=new PluginKey("selectingCells");function cellAround(M){for(let $=M.depth-1;$>0;$--)if(M.node($).type.spec.tableRole=="row")return M.node(0).resolve(M.before($+1));return null}function cellWrapping(M){for(let $=M.depth;$>0;$--){const I=M.node($).type.spec.tableRole;if(I==="cell"||I==="header_cell")return M.node($)}return null}function isInTable(M){const $=M.selection.$head;for(let I=$.depth;I>0;I--)if($.node(I).type.spec.tableRole=="row")return!0;return!1}function selectionCell(M){const $=M.selection;if("$anchorCell"in $&&$.$anchorCell)return $.$anchorCell.pos>$.$headCell.pos?$.$anchorCell:$.$headCell;if("node"in $&&$.node&&$.node.type.spec.tableRole=="cell")return $.$anchor;const I=cellAround($.$head)||cellNear($.$head);if(I)return I;throw new RangeError(`No cell found around position ${$.head}`)}function cellNear(M){for(let $=M.nodeAfter,I=M.pos;$;$=$.firstChild,I++){const N=$.type.spec.tableRole;if(N=="cell"||N=="header_cell")return M.doc.resolve(I)}for(let $=M.nodeBefore,I=M.pos;$;$=$.lastChild,I--){const N=$.type.spec.tableRole;if(N=="cell"||N=="header_cell")return M.doc.resolve(I-$.nodeSize)}}function pointsAtCell(M){return M.parent.type.spec.tableRole=="row"&&!!M.nodeAfter}function moveCellForward(M){return M.node(0).resolve(M.pos+M.nodeAfter.nodeSize)}function inSameTable(M,$){return M.depth==$.depth&&M.pos>=$.start(-1)&&M.pos<=$.end(-1)}function nextCell(M,$,I){const N=M.node(-1),B=TableMap.get(N),j=M.start(-1),U=B.nextCell(M.pos-j,$,I);return U==null?null:M.node(0).resolve(j+U)}function removeColSpan(M,$,I=1){const N={...M,colspan:M.colspan-I};return N.colwidth&&(N.colwidth=N.colwidth.slice(),N.colwidth.splice($,I),N.colwidth.some(B=>B>0)||(N.colwidth=null)),N}function addColSpan(M,$,I=1){const N={...M,colspan:M.colspan+I};if(N.colwidth){N.colwidth=N.colwidth.slice();for(let B=0;B<I;B++)N.colwidth.splice($,0,0)}return N}function columnIsHeader(M,$,I){const N=tableNodeTypes($.type.schema).header_cell;for(let B=0;B<M.height;B++)if($.nodeAt(M.map[I+B*M.width]).type!=N)return!1;return!0}var CellSelection=class extends Selection{constructor(M,$=M){const I=M.node(-1),N=TableMap.get(I),B=M.start(-1),j=N.rectBetween(M.pos-B,$.pos-B),U=M.node(0),q=N.cellsInRect(j).filter(K=>K!=$.pos-B);q.unshift($.pos-B);const Y=q.map(K=>{const G=I.nodeAt(K);if(!G)throw RangeError(`No cell with offset ${K} found`);const J=B+K+1;return new SelectionRange(U.resolve(J),U.resolve(J+G.content.size))});super(Y[0].$from,Y[0].$to,Y),this.$anchorCell=M,this.$headCell=$}map(M,$){const I=M.resolve($.map(this.$anchorCell.pos)),N=M.resolve($.map(this.$headCell.pos));if(pointsAtCell(I)&&pointsAtCell(N)&&inSameTable(I,N)){const B=this.$anchorCell.node(-1)!=I.node(-1);return B&&this.isRowSelection()?CellSelection.rowSelection(I,N):B&&this.isColSelection()?CellSelection.colSelection(I,N):new CellSelection(I,N)}return TextSelection.between(I,N)}content(){const M=this.$anchorCell.node(-1),$=TableMap.get(M),I=this.$anchorCell.start(-1),N=$.rectBetween(this.$anchorCell.pos-I,this.$headCell.pos-I),B={},j=[];for(let q=N.top;q<N.bottom;q++){const Y=[];for(let K=q*$.width+N.left,G=N.left;G<N.right;G++,K++){const J=$.map[K];if(B[J])continue;B[J]=!0;const Z=$.findCell(J);let ee=M.nodeAt(J);if(!ee)throw RangeError(`No cell with offset ${J} found`);const te=N.left-Z.left,re=Z.right-N.right;if(te>0||re>0){let se=ee.attrs;if(te>0&&(se=removeColSpan(se,0,te)),re>0&&(se=removeColSpan(se,se.colspan-re,re)),Z.left<N.left){if(ee=ee.type.createAndFill(se),!ee)throw RangeError(`Could not create cell with attrs ${JSON.stringify(se)}`)}else ee=ee.type.create(se,ee.content)}if(Z.top<N.top||Z.bottom>N.bottom){const se={...ee.attrs,rowspan:Math.min(Z.bottom,N.bottom)-Math.max(Z.top,N.top)};Z.top<N.top?ee=ee.type.createAndFill(se):ee=ee.type.create(se,ee.content)}Y.push(ee)}j.push(M.child(q).copy(Fragment.from(Y)))}const U=this.isColSelection()&&this.isRowSelection()?M:j;return new Slice(Fragment.from(U),1,1)}replace(M,$=Slice.empty){const I=M.steps.length,N=this.ranges;for(let j=0;j<N.length;j++){const{$from:U,$to:q}=N[j],Y=M.mapping.slice(I);M.replace(Y.map(U.pos),Y.map(q.pos),j?Slice.empty:$)}const B=Selection.findFrom(M.doc.resolve(M.mapping.slice(I).map(this.to)),-1);B&&M.setSelection(B)}replaceWith(M,$){this.replace(M,new Slice(Fragment.from($),0,0))}forEachCell(M){const $=this.$anchorCell.node(-1),I=TableMap.get($),N=this.$anchorCell.start(-1),B=I.cellsInRect(I.rectBetween(this.$anchorCell.pos-N,this.$headCell.pos-N));for(let j=0;j<B.length;j++)M($.nodeAt(B[j]),N+B[j])}isColSelection(){const M=this.$anchorCell.index(-1),$=this.$headCell.index(-1);if(Math.min(M,$)>0)return!1;const I=M+this.$anchorCell.nodeAfter.attrs.rowspan,N=$+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(I,N)==this.$headCell.node(-1).childCount}static colSelection(M,$=M){const I=M.node(-1),N=TableMap.get(I),B=M.start(-1),j=N.findCell(M.pos-B),U=N.findCell($.pos-B),q=M.node(0);return j.top<=U.top?(j.top>0&&(M=q.resolve(B+N.map[j.left])),U.bottom<N.height&&($=q.resolve(B+N.map[N.width*(N.height-1)+U.right-1]))):(U.top>0&&($=q.resolve(B+N.map[U.left])),j.bottom<N.height&&(M=q.resolve(B+N.map[N.width*(N.height-1)+j.right-1]))),new CellSelection(M,$)}isRowSelection(){const M=this.$anchorCell.node(-1),$=TableMap.get(M),I=this.$anchorCell.start(-1),N=$.colCount(this.$anchorCell.pos-I),B=$.colCount(this.$headCell.pos-I);if(Math.min(N,B)>0)return!1;const j=N+this.$anchorCell.nodeAfter.attrs.colspan,U=B+this.$headCell.nodeAfter.attrs.colspan;return Math.max(j,U)==$.width}eq(M){return M instanceof CellSelection&&M.$anchorCell.pos==this.$anchorCell.pos&&M.$headCell.pos==this.$headCell.pos}static rowSelection(M,$=M){const I=M.node(-1),N=TableMap.get(I),B=M.start(-1),j=N.findCell(M.pos-B),U=N.findCell($.pos-B),q=M.node(0);return j.left<=U.left?(j.left>0&&(M=q.resolve(B+N.map[j.top*N.width])),U.right<N.width&&($=q.resolve(B+N.map[N.width*(U.top+1)-1]))):(U.left>0&&($=q.resolve(B+N.map[U.top*N.width])),j.right<N.width&&(M=q.resolve(B+N.map[N.width*(j.top+1)-1]))),new CellSelection(M,$)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(M,$){return new CellSelection(M.resolve($.anchor),M.resolve($.head))}static create(M,$,I=$){return new CellSelection(M.resolve($),M.resolve(I))}getBookmark(){return new CellBookmark(this.$anchorCell.pos,this.$headCell.pos)}};CellSelection.prototype.visible=!1;Selection.jsonID("cell",CellSelection);var CellBookmark=class{constructor(M,$){this.anchor=M,this.head=$}map(M){return new CellBookmark(M.map(this.anchor),M.map(this.head))}resolve(M){const $=M.resolve(this.anchor),I=M.resolve(this.head);return $.parent.type.spec.tableRole=="row"&&I.parent.type.spec.tableRole=="row"&&$.index()<$.parent.childCount&&I.index()<I.parent.childCount&&inSameTable($,I)?new CellSelection($,I):Selection.near(I,1)}};function drawCellSelection(M){if(!(M.selection instanceof CellSelection))return null;const $=[];return M.selection.forEachCell((I,N)=>{$.push(Decoration.node(N,N+I.nodeSize,{class:"selectedCell"}))}),DecorationSet.create(M.doc,$)}function isCellBoundarySelection({$from:M,$to:$}){if(M.pos==$.pos||M.pos<M.pos-6)return!1;let I=M.pos,N=$.pos,B=M.depth;for(;B>=0&&!(M.after(B+1)<M.end(B));B--,I++);for(let j=$.depth;j>=0&&!($.before(j+1)>$.start(j));j--,N--);return I==N&&/row|table/.test(M.node(B).type.spec.tableRole)}function isTextSelectionAcrossCells({$from:M,$to:$}){let I,N;for(let B=M.depth;B>0;B--){const j=M.node(B);if(j.type.spec.tableRole==="cell"||j.type.spec.tableRole==="header_cell"){I=j;break}}for(let B=$.depth;B>0;B--){const j=$.node(B);if(j.type.spec.tableRole==="cell"||j.type.spec.tableRole==="header_cell"){N=j;break}}return I!==N&&$.parentOffset===0}function normalizeSelection(M,$,I){const N=($||M).selection,B=($||M).doc;let j,U;if(N instanceof NodeSelection&&(U=N.node.type.spec.tableRole)){if(U=="cell"||U=="header_cell")j=CellSelection.create(B,N.from);else if(U=="row"){const q=B.resolve(N.from+1);j=CellSelection.rowSelection(q,q)}else if(!I){const q=TableMap.get(N.node),Y=N.from+1,K=Y+q.map[q.width*q.height-1];j=CellSelection.create(B,Y+1,K)}}else N instanceof TextSelection&&isCellBoundarySelection(N)?j=TextSelection.create(B,N.from):N instanceof TextSelection&&isTextSelectionAcrossCells(N)&&(j=TextSelection.create(B,N.$from.start(),N.$from.end()));return j&&($||($=M.tr)).setSelection(j),$}var fixTablesKey=new PluginKey("fix-tables");function changedDescendants(M,$,I,N){const B=M.childCount,j=$.childCount;e:for(let U=0,q=0;U<j;U++){const Y=$.child(U);for(let K=q,G=Math.min(B,U+3);K<G;K++)if(M.child(K)==Y){q=K+1,I+=Y.nodeSize;continue e}N(Y,I),q<B&&M.child(q).sameMarkup(Y)?changedDescendants(M.child(q),Y,I+1,N):Y.nodesBetween(0,Y.content.size,N,I+1),I+=Y.nodeSize}}function fixTables(M,$){let I;const N=(B,j)=>{B.type.spec.tableRole=="table"&&(I=fixTable(M,B,j,I))};return $?$.doc!=M.doc&&changedDescendants($.doc,M.doc,0,N):M.doc.descendants(N),I}function fixTable(M,$,I,N){const B=TableMap.get($);if(!B.problems)return N;N||(N=M.tr);const j=[];for(let Y=0;Y<B.height;Y++)j.push(0);for(let Y=0;Y<B.problems.length;Y++){const K=B.problems[Y];if(K.type=="collision"){const G=$.nodeAt(K.pos);if(!G)continue;const J=G.attrs;for(let Z=0;Z<J.rowspan;Z++)j[K.row+Z]+=K.n;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,removeColSpan(J,J.colspan-K.n,K.n))}else if(K.type=="missing")j[K.row]+=K.n;else if(K.type=="overlong_rowspan"){const G=$.nodeAt(K.pos);if(!G)continue;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,{...G.attrs,rowspan:G.attrs.rowspan-K.n})}else if(K.type=="colwidth mismatch"){const G=$.nodeAt(K.pos);if(!G)continue;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,{...G.attrs,colwidth:K.colwidth})}}let U,q;for(let Y=0;Y<j.length;Y++)j[Y]&&(U==null&&(U=Y),q=Y);for(let Y=0,K=I+1;Y<B.height;Y++){const G=$.child(Y),J=K+G.nodeSize,Z=j[Y];if(Z>0){let ee="cell";G.firstChild&&(ee=G.firstChild.type.spec.tableRole);const te=[];for(let se=0;se<Z;se++){const ne=tableNodeTypes(M.schema)[ee].createAndFill();ne&&te.push(ne)}const re=(Y==0||U==Y-1)&&q==Y?K+1:J-1;N.insert(N.mapping.map(re),te)}K=J}return N.setMeta(fixTablesKey,{fixTables:!0})}function pastedCells(M){if(!M.size)return null;let{content:$,openStart:I,openEnd:N}=M;for(;$.childCount==1&&(I>0&&N>0||$.child(0).type.spec.tableRole=="table");)I--,N--,$=$.child(0).content;const B=$.child(0),j=B.type.spec.tableRole,U=B.type.schema,q=[];if(j=="row")for(let Y=0;Y<$.childCount;Y++){let K=$.child(Y).content;const G=Y?0:Math.max(0,I-1),J=Y<$.childCount-1?0:Math.max(0,N-1);(G||J)&&(K=fitSlice(tableNodeTypes(U).row,new Slice(K,G,J)).content),q.push(K)}else if(j=="cell"||j=="header_cell")q.push(I||N?fitSlice(tableNodeTypes(U).row,new Slice($,I,N)).content:$);else return null;return ensureRectangular(U,q)}function ensureRectangular(M,$){const I=[];for(let B=0;B<$.length;B++){const j=$[B];for(let U=j.childCount-1;U>=0;U--){const{rowspan:q,colspan:Y}=j.child(U).attrs;for(let K=B;K<B+q;K++)I[K]=(I[K]||0)+Y}}let N=0;for(let B=0;B<I.length;B++)N=Math.max(N,I[B]);for(let B=0;B<I.length;B++)if(B>=$.length&&$.push(Fragment.empty),I[B]<N){const j=tableNodeTypes(M).cell.createAndFill(),U=[];for(let q=I[B];q<N;q++)U.push(j);$[B]=$[B].append(Fragment.from(U))}return{height:$.length,width:N,rows:$}}function fitSlice(M,$){const I=M.createAndFill();return new Transform(I).replace(0,I.content.size,$).doc}function clipCells({width:M,height:$,rows:I},N,B){if(M!=N){const j=[],U=[];for(let q=0;q<I.length;q++){const Y=I[q],K=[];for(let G=j[q]||0,J=0;G<N;J++){let Z=Y.child(J%Y.childCount);G+Z.attrs.colspan>N&&(Z=Z.type.createChecked(removeColSpan(Z.attrs,Z.attrs.colspan,G+Z.attrs.colspan-N),Z.content)),K.push(Z),G+=Z.attrs.colspan;for(let ee=1;ee<Z.attrs.rowspan;ee++)j[q+ee]=(j[q+ee]||0)+Z.attrs.colspan}U.push(Fragment.from(K))}I=U,M=N}if($!=B){const j=[];for(let U=0,q=0;U<B;U++,q++){const Y=[],K=I[q%$];for(let G=0;G<K.childCount;G++){let J=K.child(G);U+J.attrs.rowspan>B&&(J=J.type.create({...J.attrs,rowspan:Math.max(1,B-J.attrs.rowspan)},J.content)),Y.push(J)}j.push(Fragment.from(Y))}I=j,$=B}return{width:M,height:$,rows:I}}function growTable(M,$,I,N,B,j,U){const q=M.doc.type.schema,Y=tableNodeTypes(q);let K,G;if(B>$.width)for(let J=0,Z=0;J<$.height;J++){const ee=I.child(J);Z+=ee.nodeSize;const te=[];let re;ee.lastChild==null||ee.lastChild.type==Y.cell?re=K||(K=Y.cell.createAndFill()):re=G||(G=Y.header_cell.createAndFill());for(let se=$.width;se<B;se++)te.push(re);M.insert(M.mapping.slice(U).map(Z-1+N),te)}if(j>$.height){const J=[];for(let te=0,re=($.height-1)*$.width;te<Math.max($.width,B);te++){const se=te>=$.width?!1:I.nodeAt($.map[re+te]).type==Y.header_cell;J.push(se?G||(G=Y.header_cell.createAndFill()):K||(K=Y.cell.createAndFill()))}const Z=Y.row.create(null,Fragment.from(J)),ee=[];for(let te=$.height;te<j;te++)ee.push(Z);M.insert(M.mapping.slice(U).map(N+I.nodeSize-2),ee)}return!!(K||G)}function isolateHorizontal(M,$,I,N,B,j,U,q){if(U==0||U==$.height)return!1;let Y=!1;for(let K=B;K<j;K++){const G=U*$.width+K,J=$.map[G];if($.map[G-$.width]==J){Y=!0;const Z=I.nodeAt(J),{top:ee,left:te}=$.findCell(J);M.setNodeMarkup(M.mapping.slice(q).map(J+N),null,{...Z.attrs,rowspan:U-ee}),M.insert(M.mapping.slice(q).map($.positionAt(U,te,I)),Z.type.createAndFill({...Z.attrs,rowspan:ee+Z.attrs.rowspan-U})),K+=Z.attrs.colspan-1}}return Y}function isolateVertical(M,$,I,N,B,j,U,q){if(U==0||U==$.width)return!1;let Y=!1;for(let K=B;K<j;K++){const G=K*$.width+U,J=$.map[G];if($.map[G-1]==J){Y=!0;const Z=I.nodeAt(J),ee=$.colCount(J),te=M.mapping.slice(q).map(J+N);M.setNodeMarkup(te,null,removeColSpan(Z.attrs,U-ee,Z.attrs.colspan-(U-ee))),M.insert(te+Z.nodeSize,Z.type.createAndFill(removeColSpan(Z.attrs,0,U-ee))),K+=Z.attrs.rowspan-1}}return Y}function insertCells(M,$,I,N,B){let j=I?M.doc.nodeAt(I-1):M.doc;if(!j)throw new Error("No table found");let U=TableMap.get(j);const{top:q,left:Y}=N,K=Y+B.width,G=q+B.height,J=M.tr;let Z=0;function ee(){if(j=I?J.doc.nodeAt(I-1):J.doc,!j)throw new Error("No table found");U=TableMap.get(j),Z=J.mapping.maps.length}growTable(J,U,j,I,K,G,Z)&&ee(),isolateHorizontal(J,U,j,I,Y,K,q,Z)&&ee(),isolateHorizontal(J,U,j,I,Y,K,G,Z)&&ee(),isolateVertical(J,U,j,I,q,G,Y,Z)&&ee(),isolateVertical(J,U,j,I,q,G,K,Z)&&ee();for(let te=q;te<G;te++){const re=U.positionAt(te,Y,j),se=U.positionAt(te,K,j);J.replace(J.mapping.slice(Z).map(re+I),J.mapping.slice(Z).map(se+I),new Slice(B.rows[te-q],0,0))}ee(),J.setSelection(new CellSelection(J.doc.resolve(I+U.positionAt(q,Y,j)),J.doc.resolve(I+U.positionAt(G-1,K-1,j)))),$(J)}var handleKeyDown=keydownHandler({ArrowLeft:arrow$1("horiz",-1),ArrowRight:arrow$1("horiz",1),ArrowUp:arrow$1("vert",-1),ArrowDown:arrow$1("vert",1),"Shift-ArrowLeft":shiftArrow("horiz",-1),"Shift-ArrowRight":shiftArrow("horiz",1),"Shift-ArrowUp":shiftArrow("vert",-1),"Shift-ArrowDown":shiftArrow("vert",1),Backspace:deleteCellSelection,"Mod-Backspace":deleteCellSelection,Delete:deleteCellSelection,"Mod-Delete":deleteCellSelection});function maybeSetSelection(M,$,I){return I.eq(M.selection)?!1:($&&$(M.tr.setSelection(I).scrollIntoView()),!0)}function arrow$1(M,$){return(I,N,B)=>{if(!B)return!1;const j=I.selection;if(j instanceof CellSelection)return maybeSetSelection(I,N,Selection.near(j.$headCell,$));if(M!="horiz"&&!j.empty)return!1;const U=atEndOfCell(B,M,$);if(U==null)return!1;if(M=="horiz")return maybeSetSelection(I,N,Selection.near(I.doc.resolve(j.head+$),$));{const q=I.doc.resolve(U),Y=nextCell(q,M,$);let K;return Y?K=Selection.near(Y,1):$<0?K=Selection.near(I.doc.resolve(q.before(-1)),-1):K=Selection.near(I.doc.resolve(q.after(-1)),1),maybeSetSelection(I,N,K)}}}function shiftArrow(M,$){return(I,N,B)=>{if(!B)return!1;const j=I.selection;let U;if(j instanceof CellSelection)U=j;else{const Y=atEndOfCell(B,M,$);if(Y==null)return!1;U=new CellSelection(I.doc.resolve(Y))}const q=nextCell(U.$headCell,M,$);return q?maybeSetSelection(I,N,new CellSelection(U.$anchorCell,q)):!1}}function deleteCellSelection(M,$){const I=M.selection;if(!(I instanceof CellSelection))return!1;if($){const N=M.tr,B=tableNodeTypes(M.schema).cell.createAndFill().content;I.forEachCell((j,U)=>{j.content.eq(B)||N.replace(N.mapping.map(U+1),N.mapping.map(U+j.nodeSize-1),new Slice(B,0,0))}),N.docChanged&&$(N)}return!0}function handleTripleClick(M,$){const I=M.state.doc,N=cellAround(I.resolve($));return N?(M.dispatch(M.state.tr.setSelection(new CellSelection(N))),!0):!1}function handlePaste(M,$,I){if(!isInTable(M.state))return!1;let N=pastedCells(I);const B=M.state.selection;if(B instanceof CellSelection){N||(N={width:1,height:1,rows:[Fragment.from(fitSlice(tableNodeTypes(M.state.schema).cell,I))]});const j=B.$anchorCell.node(-1),U=B.$anchorCell.start(-1),q=TableMap.get(j).rectBetween(B.$anchorCell.pos-U,B.$headCell.pos-U);return N=clipCells(N,q.right-q.left,q.bottom-q.top),insertCells(M.state,M.dispatch,U,q,N),!0}else if(N){const j=selectionCell(M.state),U=j.start(-1);return insertCells(M.state,M.dispatch,U,TableMap.get(j.node(-1)).findCell(j.pos-U),N),!0}else return!1}function handleMouseDown(M,$){var I;if($.ctrlKey||$.metaKey)return;const N=domInCell(M,$.target);let B;if($.shiftKey&&M.state.selection instanceof CellSelection)j(M.state.selection.$anchorCell,$),$.preventDefault();else if($.shiftKey&&N&&(B=cellAround(M.state.selection.$anchor))!=null&&((I=cellUnderMouse(M,$))==null?void 0:I.pos)!=B.pos)j(B,$),$.preventDefault();else if(!N)return;function j(Y,K){let G=cellUnderMouse(M,K);const J=tableEditingKey.getState(M.state)==null;if(!G||!inSameTable(Y,G))if(J)G=Y;else return;const Z=new CellSelection(Y,G);if(J||!M.state.selection.eq(Z)){const ee=M.state.tr.setSelection(Z);J&&ee.setMeta(tableEditingKey,Y.pos),M.dispatch(ee)}}function U(){M.root.removeEventListener("mouseup",U),M.root.removeEventListener("dragstart",U),M.root.removeEventListener("mousemove",q),tableEditingKey.getState(M.state)!=null&&M.dispatch(M.state.tr.setMeta(tableEditingKey,-1))}function q(Y){const K=Y,G=tableEditingKey.getState(M.state);let J;if(G!=null)J=M.state.doc.resolve(G);else if(domInCell(M,K.target)!=N&&(J=cellUnderMouse(M,$),!J))return U();J&&j(J,K)}M.root.addEventListener("mouseup",U),M.root.addEventListener("dragstart",U),M.root.addEventListener("mousemove",q)}function atEndOfCell(M,$,I){if(!(M.state.selection instanceof TextSelection))return null;const{$head:N}=M.state.selection;for(let B=N.depth-1;B>=0;B--){const j=N.node(B);if((I<0?N.index(B):N.indexAfter(B))!=(I<0?0:j.childCount))return null;if(j.type.spec.tableRole=="cell"||j.type.spec.tableRole=="header_cell"){const q=N.before(B),Y=$=="vert"?I>0?"down":"up":I>0?"right":"left";return M.endOfTextblock(Y)?q:null}}return null}function domInCell(M,$){for(;$&&$!=M.dom;$=$.parentNode)if($.nodeName=="TD"||$.nodeName=="TH")return $;return null}function cellUnderMouse(M,$){const I=M.posAtCoords({left:$.clientX,top:$.clientY});return I&&I?cellAround(M.state.doc.resolve(I.pos)):null}var TableView$1=class{constructor($,I){this.node=$,this.cellMinWidth=I,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),updateColumnsOnResize($,this.colgroup,this.table,I),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update($){return $.type!=this.node.type?!1:(this.node=$,updateColumnsOnResize($,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation($){return $.type=="attributes"&&($.target==this.table||this.colgroup.contains($.target))}};function updateColumnsOnResize(M,$,I,N,B,j){var U;let q=0,Y=!0,K=$.firstChild;const G=M.firstChild;if(G){for(let J=0,Z=0;J<G.childCount;J++){const{colspan:ee,colwidth:te}=G.child(J).attrs;for(let re=0;re<ee;re++,Z++){const se=B==Z?j:te&&te[re],ne=se?se+"px":"";q+=se||N,se||(Y=!1),K?(K.style.width!=ne&&(K.style.width=ne),K=K.nextSibling):$.appendChild(document.createElement("col")).style.width=ne}}for(;K;){const J=K.nextSibling;(U=K.parentNode)==null||U.removeChild(K),K=J}Y?(I.style.width=q+"px",I.style.minWidth=""):(I.style.width="",I.style.minWidth=q+"px")}}var columnResizingPluginKey=new PluginKey("tableColumnResizing");function columnResizing({handleWidth:M=5,cellMinWidth:$=25,View:I=TableView$1,lastColumnResizable:N=!0}={}){const B=new Plugin({key:columnResizingPluginKey,state:{init(j,U){return B.spec.props.nodeViews[tableNodeTypes(U.schema).table.name]=(q,Y)=>new I(q,$,Y),new ResizeState(-1,!1)},apply(j,U){return U.apply(j)}},props:{attributes:j=>{const U=columnResizingPluginKey.getState(j);return U&&U.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(j,U)=>{handleMouseMove(j,U,M,$,N)},mouseleave:j=>{handleMouseLeave(j)},mousedown:(j,U)=>{handleMouseDown2(j,U,$)}},decorations:j=>{const U=columnResizingPluginKey.getState(j);if(U&&U.activeHandle>-1)return handleDecorations(j,U.activeHandle)},nodeViews:{}}});return B}var ResizeState=class{constructor(M,$){this.activeHandle=M,this.dragging=$}apply(M){const $=this,I=M.getMeta(columnResizingPluginKey);if(I&&I.setHandle!=null)return new ResizeState(I.setHandle,!1);if(I&&I.setDragging!==void 0)return new ResizeState($.activeHandle,I.setDragging);if($.activeHandle>-1&&M.docChanged){let N=M.mapping.map($.activeHandle,-1);return pointsAtCell(M.doc.resolve(N))||(N=-1),new ResizeState(N,$.dragging)}return $}};function handleMouseMove(M,$,I,N,B){const j=columnResizingPluginKey.getState(M.state);if(j&&!j.dragging){const U=domCellAround($.target);let q=-1;if(U){const{left:Y,right:K}=U.getBoundingClientRect();$.clientX-Y<=I?q=edgeCell(M,$,"left"):K-$.clientX<=I&&(q=edgeCell(M,$,"right"))}if(q!=j.activeHandle){if(!B&&q!==-1){const Y=M.state.doc.resolve(q),K=Y.node(-1),G=TableMap.get(K),J=Y.start(-1);if(G.colCount(Y.pos-J)+Y.nodeAfter.attrs.colspan-1==G.width-1)return}updateHandle(M,q)}}}function handleMouseLeave(M){const $=columnResizingPluginKey.getState(M.state);$&&$.activeHandle>-1&&!$.dragging&&updateHandle(M,-1)}function handleMouseDown2(M,$,I){const N=columnResizingPluginKey.getState(M.state);if(!N||N.activeHandle==-1||N.dragging)return!1;const B=M.state.doc.nodeAt(N.activeHandle),j=currentColWidth(M,N.activeHandle,B.attrs);M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setDragging:{startX:$.clientX,startWidth:j}}));function U(Y){window.removeEventListener("mouseup",U),window.removeEventListener("mousemove",q);const K=columnResizingPluginKey.getState(M.state);K!=null&&K.dragging&&(updateColumnWidth(M,K.activeHandle,draggedWidth(K.dragging,Y,I)),M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setDragging:null})))}function q(Y){if(!Y.which)return U(Y);const K=columnResizingPluginKey.getState(M.state);if(K&&K.dragging){const G=draggedWidth(K.dragging,Y,I);displayColumnWidth(M,K.activeHandle,G,I)}}return window.addEventListener("mouseup",U),window.addEventListener("mousemove",q),$.preventDefault(),!0}function currentColWidth(M,$,{colspan:I,colwidth:N}){const B=N&&N[N.length-1];if(B)return B;const j=M.domAtPos($);let q=j.node.childNodes[j.offset].offsetWidth,Y=I;if(N)for(let K=0;K<I;K++)N[K]&&(q-=N[K],Y--);return q/Y}function domCellAround(M){for(;M&&M.nodeName!="TD"&&M.nodeName!="TH";)M=M.classList&&M.classList.contains("ProseMirror")?null:M.parentNode;return M}function edgeCell(M,$,I){const N=M.posAtCoords({left:$.clientX,top:$.clientY});if(!N)return-1;const{pos:B}=N,j=cellAround(M.state.doc.resolve(B));if(!j)return-1;if(I=="right")return j.pos;const U=TableMap.get(j.node(-1)),q=j.start(-1),Y=U.map.indexOf(j.pos-q);return Y%U.width==0?-1:q+U.map[Y-1]}function draggedWidth(M,$,I){const N=$.clientX-M.startX;return Math.max(I,M.startWidth+N)}function updateHandle(M,$){M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setHandle:$}))}function updateColumnWidth(M,$,I){const N=M.state.doc.resolve($),B=N.node(-1),j=TableMap.get(B),U=N.start(-1),q=j.colCount(N.pos-U)+N.nodeAfter.attrs.colspan-1,Y=M.state.tr;for(let K=0;K<j.height;K++){const G=K*j.width+q;if(K&&j.map[G]==j.map[G-j.width])continue;const J=j.map[G],Z=B.nodeAt(J).attrs,ee=Z.colspan==1?0:q-j.colCount(J);if(Z.colwidth&&Z.colwidth[ee]==I)continue;const te=Z.colwidth?Z.colwidth.slice():zeroes(Z.colspan);te[ee]=I,Y.setNodeMarkup(U+J,null,{...Z,colwidth:te})}Y.docChanged&&M.dispatch(Y)}function displayColumnWidth(M,$,I,N){const B=M.state.doc.resolve($),j=B.node(-1),U=B.start(-1),q=TableMap.get(j).colCount(B.pos-U)+B.nodeAfter.attrs.colspan-1;let Y=M.domAtPos(B.start(-1)).node;for(;Y&&Y.nodeName!="TABLE";)Y=Y.parentNode;Y&&updateColumnsOnResize(j,Y.firstChild,Y,N,q,I)}function zeroes(M){return Array(M).fill(0)}function handleDecorations(M,$){const I=[],N=M.doc.resolve($),B=N.node(-1);if(!B)return DecorationSet.empty;const j=TableMap.get(B),U=N.start(-1),q=j.colCount(N.pos-U)+N.nodeAfter.attrs.colspan;for(let Y=0;Y<j.height;Y++){const K=q+Y*j.width-1;if((q==j.width||j.map[K]!=j.map[K+1])&&(Y==0||j.map[K-1]!=j.map[K-1-j.width])){const G=j.map[K],J=U+G+B.nodeAt(G).nodeSize-1,Z=document.createElement("div");Z.className="column-resize-handle",I.push(Decoration.widget(J,Z))}}return DecorationSet.create(M.doc,I)}function selectedRect(M){const $=M.selection,I=selectionCell(M),N=I.node(-1),B=I.start(-1),j=TableMap.get(N);return{...$ instanceof CellSelection?j.rectBetween($.$anchorCell.pos-B,$.$headCell.pos-B):j.findCell(I.pos-B),tableStart:B,map:j,table:N}}function addColumn(M,{map:$,tableStart:I,table:N},B){let j=B>0?-1:0;columnIsHeader($,N,B+j)&&(j=B==0||B==$.width?null:0);for(let U=0;U<$.height;U++){const q=U*$.width+B;if(B>0&&B<$.width&&$.map[q-1]==$.map[q]){const Y=$.map[q],K=N.nodeAt(Y);M.setNodeMarkup(M.mapping.map(I+Y),null,addColSpan(K.attrs,B-$.colCount(Y))),U+=K.attrs.rowspan-1}else{const Y=j==null?tableNodeTypes(N.type.schema).cell:N.nodeAt($.map[q+j]).type,K=$.positionAt(U,B,N);M.insert(M.mapping.map(I+K),Y.createAndFill())}}return M}function addColumnBefore(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addColumn(M.tr,I,I.left))}return!0}function addColumnAfter(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addColumn(M.tr,I,I.right))}return!0}function removeColumn(M,{map:$,table:I,tableStart:N},B){const j=M.mapping.maps.length;for(let U=0;U<$.height;){const q=U*$.width+B,Y=$.map[q],K=I.nodeAt(Y),G=K.attrs;if(B>0&&$.map[q-1]==Y||B<$.width-1&&$.map[q+1]==Y)M.setNodeMarkup(M.mapping.slice(j).map(N+Y),null,removeColSpan(G,B-$.colCount(Y)));else{const J=M.mapping.slice(j).map(N+Y);M.delete(J,J+K.nodeSize)}U+=G.rowspan}}function deleteColumn(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M),N=M.tr;if(I.left==0&&I.right==I.map.width)return!1;for(let B=I.right-1;removeColumn(N,I,B),B!=I.left;B--){const j=I.tableStart?N.doc.nodeAt(I.tableStart-1):N.doc;if(!j)throw RangeError("No table found");I.table=j,I.map=TableMap.get(j)}$(N)}return!0}function rowIsHeader(M,$,I){var N;const B=tableNodeTypes($.type.schema).header_cell;for(let j=0;j<M.width;j++)if(((N=$.nodeAt(M.map[j+I*M.width]))==null?void 0:N.type)!=B)return!1;return!0}function addRow(M,{map:$,tableStart:I,table:N},B){var j;let U=I;for(let K=0;K<B;K++)U+=N.child(K).nodeSize;const q=[];let Y=B>0?-1:0;rowIsHeader($,N,B+Y)&&(Y=B==0||B==$.height?null:0);for(let K=0,G=$.width*B;K<$.width;K++,G++)if(B>0&&B<$.height&&$.map[G]==$.map[G-$.width]){const J=$.map[G],Z=N.nodeAt(J).attrs;M.setNodeMarkup(I+J,null,{...Z,rowspan:Z.rowspan+1}),K+=Z.colspan-1}else{const J=Y==null?tableNodeTypes(N.type.schema).cell:(j=N.nodeAt($.map[G+Y*$.width]))==null?void 0:j.type,Z=J==null?void 0:J.createAndFill();Z&&q.push(Z)}return M.insert(U,tableNodeTypes(N.type.schema).row.create(null,q)),M}function addRowBefore(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addRow(M.tr,I,I.top))}return!0}function addRowAfter(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addRow(M.tr,I,I.bottom))}return!0}function removeRow(M,{map:$,table:I,tableStart:N},B){let j=0;for(let Y=0;Y<B;Y++)j+=I.child(Y).nodeSize;const U=j+I.child(B).nodeSize,q=M.mapping.maps.length;M.delete(j+N,U+N);for(let Y=0,K=B*$.width;Y<$.width;Y++,K++){const G=$.map[K];if(B>0&&G==$.map[K-$.width]){const J=I.nodeAt(G).attrs;M.setNodeMarkup(M.mapping.slice(q).map(G+N),null,{...J,rowspan:J.rowspan-1}),Y+=J.colspan-1}else if(B<$.width&&G==$.map[K+$.width]){const J=I.nodeAt(G),Z=J.attrs,ee=J.type.create({...Z,rowspan:J.attrs.rowspan-1},J.content),te=$.positionAt(B+1,Y,I);M.insert(M.mapping.slice(q).map(N+te),ee),Y+=Z.colspan-1}}}function deleteRow(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M),N=M.tr;if(I.top==0&&I.bottom==I.map.height)return!1;for(let B=I.bottom-1;removeRow(N,I,B),B!=I.top;B--){const j=I.tableStart?N.doc.nodeAt(I.tableStart-1):N.doc;if(!j)throw RangeError("No table found");I.table=j,I.map=TableMap.get(I.table)}$(N)}return!0}function isEmpty(M){const $=M.content;return $.childCount==1&&$.child(0).isTextblock&&$.child(0).childCount==0}function cellsOverlapRectangle({width:M,height:$,map:I},N){let B=N.top*M+N.left,j=B,U=(N.bottom-1)*M+N.left,q=B+(N.right-N.left-1);for(let Y=N.top;Y<N.bottom;Y++){if(N.left>0&&I[j]==I[j-1]||N.right<M&&I[q]==I[q+1])return!0;j+=M,q+=M}for(let Y=N.left;Y<N.right;Y++){if(N.top>0&&I[B]==I[B-M]||N.bottom<$&&I[U]==I[U+M])return!0;B++,U++}return!1}function mergeCells(M,$){const I=M.selection;if(!(I instanceof CellSelection)||I.$anchorCell.pos==I.$headCell.pos)return!1;const N=selectedRect(M),{map:B}=N;if(cellsOverlapRectangle(B,N))return!1;if($){const j=M.tr,U={};let q=Fragment.empty,Y,K;for(let G=N.top;G<N.bottom;G++)for(let J=N.left;J<N.right;J++){const Z=B.map[G*B.width+J],ee=N.table.nodeAt(Z);if(!(U[Z]||!ee))if(U[Z]=!0,Y==null)Y=Z,K=ee;else{isEmpty(ee)||(q=q.append(ee.content));const te=j.mapping.map(Z+N.tableStart);j.delete(te,te+ee.nodeSize)}}if(Y==null||K==null)return!0;if(j.setNodeMarkup(Y+N.tableStart,null,{...addColSpan(K.attrs,K.attrs.colspan,N.right-N.left-K.attrs.colspan),rowspan:N.bottom-N.top}),q.size){const G=Y+1+K.content.size,J=isEmpty(K)?Y+1:G;j.replaceWith(J+N.tableStart,G+N.tableStart,q)}j.setSelection(new CellSelection(j.doc.resolve(Y+N.tableStart))),$(j)}return!0}function splitCell(M,$){const I=tableNodeTypes(M.schema);return splitCellWithType(({node:N})=>I[N.type.spec.tableRole])(M,$)}function splitCellWithType(M){return($,I)=>{var N;const B=$.selection;let j,U;if(B instanceof CellSelection){if(B.$anchorCell.pos!=B.$headCell.pos)return!1;j=B.$anchorCell.nodeAfter,U=B.$anchorCell.pos}else{if(j=cellWrapping(B.$from),!j)return!1;U=(N=cellAround(B.$from))==null?void 0:N.pos}if(j==null||U==null||j.attrs.colspan==1&&j.attrs.rowspan==1)return!1;if(I){let q=j.attrs;const Y=[],K=q.colwidth;q.rowspan>1&&(q={...q,rowspan:1}),q.colspan>1&&(q={...q,colspan:1});const G=selectedRect($),J=$.tr;for(let ee=0;ee<G.right-G.left;ee++)Y.push(K?{...q,colwidth:K&&K[ee]?[K[ee]]:null}:q);let Z;for(let ee=G.top;ee<G.bottom;ee++){let te=G.map.positionAt(ee,G.left,G.table);ee==G.top&&(te+=j.nodeSize);for(let re=G.left,se=0;re<G.right;re++,se++)re==G.left&&ee==G.top||J.insert(Z=J.mapping.map(te+G.tableStart,1),M({node:j,row:ee,col:re}).createAndFill(Y[se]))}J.setNodeMarkup(U,M({node:j,row:G.top,col:G.left}),Y[0]),B instanceof CellSelection&&J.setSelection(new CellSelection(J.doc.resolve(B.$anchorCell.pos),Z?J.doc.resolve(Z):void 0)),I(J)}return!0}}function setCellAttr(M,$){return function(I,N){if(!isInTable(I))return!1;const B=selectionCell(I);if(B.nodeAfter.attrs[M]===$)return!1;if(N){const j=I.tr;I.selection instanceof CellSelection?I.selection.forEachCell((U,q)=>{U.attrs[M]!==$&&j.setNodeMarkup(q,null,{...U.attrs,[M]:$})}):j.setNodeMarkup(B.pos,null,{...B.nodeAfter.attrs,[M]:$}),N(j)}return!0}}function deprecated_toggleHeader(M){return function($,I){if(!isInTable($))return!1;if(I){const N=tableNodeTypes($.schema),B=selectedRect($),j=$.tr,U=B.map.cellsInRect(M=="column"?{left:B.left,top:0,right:B.right,bottom:B.map.height}:M=="row"?{left:0,top:B.top,right:B.map.width,bottom:B.bottom}:B),q=U.map(Y=>B.table.nodeAt(Y));for(let Y=0;Y<U.length;Y++)q[Y].type==N.header_cell&&j.setNodeMarkup(B.tableStart+U[Y],N.cell,q[Y].attrs);if(j.steps.length==0)for(let Y=0;Y<U.length;Y++)j.setNodeMarkup(B.tableStart+U[Y],N.header_cell,q[Y].attrs);I(j)}return!0}}function isHeaderEnabledByType(M,$,I){const N=$.map.cellsInRect({left:0,top:0,right:M=="row"?$.map.width:1,bottom:M=="column"?$.map.height:1});for(let B=0;B<N.length;B++){const j=$.table.nodeAt(N[B]);if(j&&j.type!==I.header_cell)return!1}return!0}function toggleHeader(M,$){return $=$||{useDeprecatedLogic:!1},$.useDeprecatedLogic?deprecated_toggleHeader(M):function(I,N){if(!isInTable(I))return!1;if(N){const B=tableNodeTypes(I.schema),j=selectedRect(I),U=I.tr,q=isHeaderEnabledByType("row",j,B),Y=isHeaderEnabledByType("column",j,B),G=(M==="column"?q:M==="row"?Y:!1)?1:0,J=M=="column"?{left:0,top:G,right:1,bottom:j.map.height}:M=="row"?{left:G,top:0,right:j.map.width,bottom:1}:j,Z=M=="column"?Y?B.cell:B.header_cell:M=="row"?q?B.cell:B.header_cell:B.cell;j.map.cellsInRect(J).forEach(ee=>{const te=ee+j.tableStart,re=U.doc.nodeAt(te);re&&U.setNodeMarkup(te,Z,re.attrs)}),N(U)}return!0}}toggleHeader("row",{useDeprecatedLogic:!0});toggleHeader("column",{useDeprecatedLogic:!0});var toggleHeaderCell=toggleHeader("cell",{useDeprecatedLogic:!0});function findNextCell(M,$){if($<0){const I=M.nodeBefore;if(I)return M.pos-I.nodeSize;for(let N=M.index(-1)-1,B=M.before();N>=0;N--){const j=M.node(-1).child(N),U=j.lastChild;if(U)return B-1-U.nodeSize;B-=j.nodeSize}}else{if(M.index()<M.parent.childCount-1)return M.pos+M.nodeAfter.nodeSize;const I=M.node(-1);for(let N=M.indexAfter(-1),B=M.after();N<I.childCount;N++){const j=I.child(N);if(j.childCount)return B+1;B+=j.nodeSize}}return null}function goToNextCell(M){return function($,I){if(!isInTable($))return!1;const N=findNextCell(selectionCell($),M);if(N==null)return!1;if(I){const B=$.doc.resolve(N);I($.tr.setSelection(TextSelection.between(B,moveCellForward(B))).scrollIntoView())}return!0}}function deleteTable(M,$){const I=M.selection.$anchor;for(let N=I.depth;N>0;N--)if(I.node(N).type.spec.tableRole=="table")return $&&$(M.tr.delete(I.before(N),I.after(N)).scrollIntoView()),!0;return!1}function tableEditing({allowTableNodeSelection:M=!1}={}){return new Plugin({key:tableEditingKey,state:{init(){return null},apply($,I){const N=$.getMeta(tableEditingKey);if(N!=null)return N==-1?null:N;if(I==null||!$.docChanged)return I;const{deleted:B,pos:j}=$.mapping.mapResult(I);return B?null:j}},props:{decorations:drawCellSelection,handleDOMEvents:{mousedown:handleMouseDown},createSelectionBetween($){return tableEditingKey.getState($.state)!=null?$.state.selection:null},handleTripleClick,handleKeyDown,handlePaste},appendTransaction($,I,N){return normalizeSelection(N,fixTables(N,I),M)}})}function updateColumns(M,$,I,N,B,j){let U=0,q=!0,Y=$.firstChild;const K=M.firstChild;for(let G=0,J=0;G<K.childCount;G+=1){const{colspan:Z,colwidth:ee}=K.child(G).attrs;for(let te=0;te<Z;te+=1,J+=1){const re=B===J?j:ee&&ee[te],se=re?`${re}px`:"";U+=re||N,re||(q=!1),Y?(Y.style.width!==se&&(Y.style.width=se),Y=Y.nextSibling):$.appendChild(document.createElement("col")).style.width=se}}for(;Y;){const G=Y.nextSibling;Y.parentNode.removeChild(Y),Y=G}q?(I.style.width=`${U}px`,I.style.minWidth=""):(I.style.width="",I.style.minWidth=`${U}px`)}class TableView{constructor($,I){this.node=$,this.cellMinWidth=I,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),updateColumns($,this.colgroup,this.table,I),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update($){return $.type!==this.node.type?!1:(this.node=$,updateColumns($,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation($){return $.type==="attributes"&&($.target===this.table||this.colgroup.contains($.target))}}function createCell(M,$){return $?M.createChecked(null,$):M.createAndFill()}function getTableNodeTypes(M){if(M.cached.tableNodeTypes)return M.cached.tableNodeTypes;const $={};return Object.keys(M.nodes).forEach(I=>{const N=M.nodes[I];N.spec.tableRole&&($[N.spec.tableRole]=N)}),M.cached.tableNodeTypes=$,$}function createTable(M,$,I,N,B){const j=getTableNodeTypes(M),U=[],q=[];for(let K=0;K<I;K+=1){const G=createCell(j.cell,B);if(G&&q.push(G),N){const J=createCell(j.header_cell,B);J&&U.push(J)}}const Y=[];for(let K=0;K<$;K+=1)Y.push(j.row.createChecked(null,N&&K===0?U:q));return j.table.createChecked(null,Y)}function isCellSelection(M){return M instanceof CellSelection}const deleteTableWhenAllCellsSelected=({editor:M})=>{const{selection:$}=M.state;if(!isCellSelection($))return!1;let I=0;const N=findParentNodeClosestToPos($.ranges[0].$from,j=>j.type.name==="table");return N==null||N.node.descendants(j=>{if(j.type.name==="table")return!1;["tableCell","tableHeader"].includes(j.type.name)&&(I+=1)}),I===$.ranges.length?(M.commands.deleteTable(),!0):!1},Table=Node$1.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:TableView,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({HTMLAttributes:M}){return["table",mergeAttributes(this.options.HTMLAttributes,M),["tbody",0]]},addCommands(){return{insertTable:({rows:M=3,cols:$=3,withHeaderRow:I=!0}={})=>({tr:N,dispatch:B,editor:j})=>{const U=createTable(j.schema,M,$,I);if(B){const q=N.selection.anchor+1;N.replaceSelectionWith(U).scrollIntoView().setSelection(TextSelection.near(N.doc.resolve(q)))}return!0},addColumnBefore:()=>({state:M,dispatch:$})=>addColumnBefore(M,$),addColumnAfter:()=>({state:M,dispatch:$})=>addColumnAfter(M,$),deleteColumn:()=>({state:M,dispatch:$})=>deleteColumn(M,$),addRowBefore:()=>({state:M,dispatch:$})=>addRowBefore(M,$),addRowAfter:()=>({state:M,dispatch:$})=>addRowAfter(M,$),deleteRow:()=>({state:M,dispatch:$})=>deleteRow(M,$),deleteTable:()=>({state:M,dispatch:$})=>deleteTable(M,$),mergeCells:()=>({state:M,dispatch:$})=>mergeCells(M,$),splitCell:()=>({state:M,dispatch:$})=>splitCell(M,$),toggleHeaderColumn:()=>({state:M,dispatch:$})=>toggleHeader("column")(M,$),toggleHeaderRow:()=>({state:M,dispatch:$})=>toggleHeader("row")(M,$),toggleHeaderCell:()=>({state:M,dispatch:$})=>toggleHeaderCell(M,$),mergeOrSplit:()=>({state:M,dispatch:$})=>mergeCells(M,$)?!0:splitCell(M,$),setCellAttribute:(M,$)=>({state:I,dispatch:N})=>setCellAttr(M,$)(I,N),goToNextCell:()=>({state:M,dispatch:$})=>goToNextCell(1)(M,$),goToPreviousCell:()=>({state:M,dispatch:$})=>goToNextCell(-1)(M,$),fixTables:()=>({state:M,dispatch:$})=>($&&fixTables(M),!0),setCellSelection:M=>({tr:$,dispatch:I})=>{if(I){const N=CellSelection.create($.doc,M.anchorCell,M.headCell);$.setSelection(N)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:deleteTableWhenAllCellsSelected,"Mod-Backspace":deleteTableWhenAllCellsSelected,Delete:deleteTableWhenAllCellsSelected,"Mod-Delete":deleteTableWhenAllCellsSelected}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[columnResizing({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],tableEditing({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(M){const $={name:M.name,options:M.options,storage:M.storage};return{tableRole:callOrReturn(getExtensionField(M,"tableRole",$))}}}),TableRow=Node$1.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:M}){return["tr",mergeAttributes(this.options.HTMLAttributes,M),0]}}),TableCell=Node$1.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:M=>{const $=M.getAttribute("colwidth");return $?[parseInt($,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:M}){return["td",mergeAttributes(this.options.HTMLAttributes,M),0]}}),TableHeader=Node$1.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:M=>{const $=M.getAttribute("colwidth");return $?[parseInt($,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:M}){return["th",mergeAttributes(this.options.HTMLAttributes,M),0]}}),Text=Node$1.create({name:"text",group:"inline"}),TextAlign=Extension.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:M=>M.style.textAlign||this.options.defaultAlignment,renderHTML:M=>M.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${M.textAlign}`}}}}]},addCommands(){return{setTextAlign:M=>({commands:$})=>this.options.alignments.includes(M)?this.options.types.every(I=>$.updateAttributes(I,{textAlign:M})):!1,unsetTextAlign:()=>({commands:M})=>this.options.types.every($=>M.resetAttributes($,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),emDash=textInputRule({find:/--$/,replace:"—"}),ellipsis=textInputRule({find:/\.\.\.$/,replace:"…"}),openDoubleQuote=textInputRule({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:"“"}),closeDoubleQuote=textInputRule({find:/"$/,replace:"”"}),openSingleQuote=textInputRule({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:"‘"}),closeSingleQuote=textInputRule({find:/'$/,replace:"’"}),leftArrow=textInputRule({find:/<-$/,replace:"←"}),rightArrow=textInputRule({find:/->$/,replace:"→"}),copyright=textInputRule({find:/\(c\)$/,replace:"©"}),trademark=textInputRule({find:/\(tm\)$/,replace:"™"}),servicemark=textInputRule({find:/\(sm\)$/,replace:"℠"}),registeredTrademark=textInputRule({find:/\(r\)$/,replace:"®"}),oneHalf=textInputRule({find:/(?:^|\s)(1\/2)$/,replace:"½"}),plusMinus=textInputRule({find:/\+\/-$/,replace:"±"}),notEqual=textInputRule({find:/!=$/,replace:"≠"}),laquo=textInputRule({find:/<<$/,replace:"«"}),raquo=textInputRule({find:/>>$/,replace:"»"}),multiplication=textInputRule({find:/\d+\s?([*x])\s?\d+$/,replace:"×"}),superscriptTwo=textInputRule({find:/\^2$/,replace:"²"}),superscriptThree=textInputRule({find:/\^3$/,replace:"³"}),oneQuarter=textInputRule({find:/(?:^|\s)(1\/4)$/,replace:"¼"}),threeQuarters=textInputRule({find:/(?:^|\s)(3\/4)$/,replace:"¾"}),Typography=Extension.create({name:"typography",addInputRules(){const M=[];return this.options.emDash!==!1&&M.push(emDash),this.options.ellipsis!==!1&&M.push(ellipsis),this.options.openDoubleQuote!==!1&&M.push(openDoubleQuote),this.options.closeDoubleQuote!==!1&&M.push(closeDoubleQuote),this.options.openSingleQuote!==!1&&M.push(openSingleQuote),this.options.closeSingleQuote!==!1&&M.push(closeSingleQuote),this.options.leftArrow!==!1&&M.push(leftArrow),this.options.rightArrow!==!1&&M.push(rightArrow),this.options.copyright!==!1&&M.push(copyright),this.options.trademark!==!1&&M.push(trademark),this.options.servicemark!==!1&&M.push(servicemark),this.options.registeredTrademark!==!1&&M.push(registeredTrademark),this.options.oneHalf!==!1&&M.push(oneHalf),this.options.plusMinus!==!1&&M.push(plusMinus),this.options.notEqual!==!1&&M.push(notEqual),this.options.laquo!==!1&&M.push(laquo),this.options.raquo!==!1&&M.push(raquo),this.options.multiplication!==!1&&M.push(multiplication),this.options.superscriptTwo!==!1&&M.push(superscriptTwo),this.options.superscriptThree!==!1&&M.push(superscriptThree),this.options.oneQuarter!==!1&&M.push(oneQuarter),this.options.threeQuarters!==!1&&M.push(threeQuarters),M}}),Underline=Mark.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:M=>M.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["u",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setUnderline:()=>({commands:M})=>M.setMark(this.name),toggleUnderline:()=>({commands:M})=>M.toggleMark(this.name),unsetUnderline:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});var js={exports:{}},src$1={},javascript$3={exports:{}},beautifier$2={},output={},hasRequiredOutput;function requireOutput(){if(hasRequiredOutput)return output;hasRequiredOutput=1;function M(N){this.__parent=N,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}M.prototype.clone_empty=function(){var N=new M(this.__parent);return N.set_indent(this.__indent_count,this.__alignment_count),N},M.prototype.item=function(N){return N<0?this.__items[this.__items.length+N]:this.__items[N]},M.prototype.has_match=function(N){for(var B=this.__items.length-1;B>=0;B--)if(this.__items[B].match(N))return!0;return!1},M.prototype.set_indent=function(N,B){this.is_empty()&&(this.__indent_count=N||0,this.__alignment_count=B||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},M.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},M.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},M.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var N=this.__parent.current_line;return N.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),N.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),N.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,N.__items[0]===" "&&(N.__items.splice(0,1),N.__character_count-=1),!0}return!1},M.prototype.is_empty=function(){return this.__items.length===0},M.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},M.prototype.push=function(N){this.__items.push(N);var B=N.lastIndexOf(`
- `);B!==-1?this.__character_count=N.length-B:this.__character_count+=N.length},M.prototype.pop=function(){var N=null;return this.is_empty()||(N=this.__items.pop(),this.__character_count-=N.length),N},M.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},M.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},M.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},M.prototype.toString=function(){var N="";return this.is_empty()?this.__parent.indent_empty_lines&&(N=this.__parent.get_indent_string(this.__indent_count)):(N=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),N+=this.__items.join("")),N};function $(N,B){this.__cache=[""],this.__indent_size=N.indent_size,this.__indent_string=N.indent_char,N.indent_with_tabs||(this.__indent_string=new Array(N.indent_size+1).join(N.indent_char)),B=B||"",N.indent_level>0&&(B=new Array(N.indent_level+1).join(this.__indent_string)),this.__base_string=B,this.__base_string_length=B.length}$.prototype.get_indent_size=function(N,B){var j=this.__base_string_length;return B=B||0,N<0&&(j=0),j+=N*this.__indent_size,j+=B,j},$.prototype.get_indent_string=function(N,B){var j=this.__base_string;return B=B||0,N<0&&(N=0,j=""),B+=N*this.__indent_size,this.__ensure_cache(B),j+=this.__cache[B],j},$.prototype.__ensure_cache=function(N){for(;N>=this.__cache.length;)this.__add_column()},$.prototype.__add_column=function(){var N=this.__cache.length,B=0,j="";this.__indent_size&&N>=this.__indent_size&&(B=Math.floor(N/this.__indent_size),N-=B*this.__indent_size,j=new Array(B+1).join(this.__indent_string)),N&&(j+=new Array(N+1).join(" ")),this.__cache.push(j)};function I(N,B){this.__indent_cache=new $(N,B),this.raw=!1,this._end_with_newline=N.end_with_newline,this.indent_size=N.indent_size,this.wrap_line_length=N.wrap_line_length,this.indent_empty_lines=N.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new M(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return I.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},I.prototype.get_line_number=function(){return this.__lines.length},I.prototype.get_indent_string=function(N,B){return this.__indent_cache.get_indent_string(N,B)},I.prototype.get_indent_size=function(N,B){return this.__indent_cache.get_indent_size(N,B)},I.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},I.prototype.add_new_line=function(N){return this.is_empty()||!N&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},I.prototype.get_code=function(N){this.trim(!0);var B=this.current_line.pop();B&&(B[B.length-1]===`
- `&&(B=B.replace(/\n+$/g,"")),this.current_line.push(B)),this._end_with_newline&&this.__add_outputline();var j=this.__lines.join(`
- `);return N!==`
- `&&(j=j.replace(/[\n]/g,N)),j},I.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},I.prototype.set_indent=function(N,B){return N=N||0,B=B||0,this.next_line.set_indent(N,B),this.__lines.length>1?(this.current_line.set_indent(N,B),!0):(this.current_line.set_indent(),!1)},I.prototype.add_raw_token=function(N){for(var B=0;B<N.newlines;B++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(N.whitespace_before),this.current_line.push(N.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},I.prototype.add_token=function(N){this.__add_space_before_token(),this.current_line.push(N),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},I.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},I.prototype.remove_indent=function(N){for(var B=this.__lines.length;N<B;)this.__lines[N]._remove_indent(),N++;this.current_line._remove_wrap_indent()},I.prototype.trim=function(N){for(N=N===void 0?!1:N,this.current_line.trim();N&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},I.prototype.just_added_newline=function(){return this.current_line.is_empty()},I.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},I.prototype.ensure_empty_line_above=function(N,B){for(var j=this.__lines.length-2;j>=0;){var U=this.__lines[j];if(U.is_empty())break;if(U.item(0).indexOf(N)!==0&&U.item(-1)!==B){this.__lines.splice(j+1,0,new M(this)),this.previous_line=this.__lines[this.__lines.length-2];break}j--}},output.Output=I,output}var token$1={},hasRequiredToken;function requireToken(){if(hasRequiredToken)return token$1;hasRequiredToken=1;function M($,I,N,B){this.type=$,this.text=I,this.comments_before=null,this.newlines=N||0,this.whitespace_before=B||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return token$1.Token=M,token$1}var acorn={},hasRequiredAcorn;function requireAcorn(){return hasRequiredAcorn||(hasRequiredAcorn=1,function(M){var $="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",I="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",B="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",j="(?:\\\\u[0-9a-fA-F]{4}|["+$+N+"])",U="(?:\\\\u[0-9a-fA-F]{4}|["+I+N+B+"])*";M.identifier=new RegExp(j+U,"g"),M.identifierStart=new RegExp(j),M.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+I+N+B+"])+"),M.newline=/[\n\r\u2028\u2029]/,M.lineBreak=new RegExp(`\r
- |`+M.newline.source),M.allLineBreaks=new RegExp(M.lineBreak.source,"g")}(acorn)),acorn}var options$3={},options$2={},hasRequiredOptions$3;function requireOptions$3(){if(hasRequiredOptions$3)return options$2;hasRequiredOptions$3=1;function M(N,B){this.raw_options=$(N,B),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}M.prototype._get_array=function(N,B){var j=this.raw_options[N],U=B||[];return typeof j=="object"?j!==null&&typeof j.concat=="function"&&(U=j.concat()):typeof j=="string"&&(U=j.split(/[^a-zA-Z0-9_\/\-]+/)),U},M.prototype._get_boolean=function(N,B){var j=this.raw_options[N],U=j===void 0?!!B:!!j;return U},M.prototype._get_characters=function(N,B){var j=this.raw_options[N],U=B||"";return typeof j=="string"&&(U=j.replace(/\\r/,"\r").replace(/\\n/,`
- `).replace(/\\t/," ")),U},M.prototype._get_number=function(N,B){var j=this.raw_options[N];B=parseInt(B,10),isNaN(B)&&(B=0);var U=parseInt(j,10);return isNaN(U)&&(U=B),U},M.prototype._get_selection=function(N,B,j){var U=this._get_selection_list(N,B,j);if(U.length!==1)throw new Error("Invalid Option Value: The option '"+N+`' can only be one of the following values:
- `+B+`
- You passed in: '`+this.raw_options[N]+"'");return U[0]},M.prototype._get_selection_list=function(N,B,j){if(!B||B.length===0)throw new Error("Selection list cannot be empty.");if(j=j||[B[0]],!this._is_valid_selection(j,B))throw new Error("Invalid Default Value!");var U=this._get_array(N,j);if(!this._is_valid_selection(U,B))throw new Error("Invalid Option Value: The option '"+N+`' can contain only the following values:
- `+B+`
- You passed in: '`+this.raw_options[N]+"'");return U},M.prototype._is_valid_selection=function(N,B){return N.length&&B.length&&!N.some(function(j){return B.indexOf(j)===-1})};function $(N,B){var j={};N=I(N);var U;for(U in N)U!==B&&(j[U]=N[U]);if(B&&N[B])for(U in N[B])j[U]=N[B][U];return j}function I(N){var B={},j;for(j in N){var U=j.replace(/-/g,"_");B[U]=N[j]}return B}return options$2.Options=M,options$2.normalizeOpts=I,options$2.mergeOpts=$,options$2}var hasRequiredOptions$2;function requireOptions$2(){if(hasRequiredOptions$2)return options$3;hasRequiredOptions$2=1;var M=requireOptions$3().Options,$=["before-newline","after-newline","preserve-newline"];function I(N){M.call(this,N,"js");var B=this.raw_options.brace_style||null;B==="expand-strict"?this.raw_options.brace_style="expand":B==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var j=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var U=0;U<j.length;U++)j[U]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=j[U];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",$),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return I.prototype=new M,options$3.Options=I,options$3}var tokenizer$2={},inputscanner={},hasRequiredInputscanner;function requireInputscanner(){if(hasRequiredInputscanner)return inputscanner;hasRequiredInputscanner=1;var M=RegExp.prototype.hasOwnProperty("sticky");function $(I){this.__input=I||"",this.__input_length=this.__input.length,this.__position=0}return $.prototype.restart=function(){this.__position=0},$.prototype.back=function(){this.__position>0&&(this.__position-=1)},$.prototype.hasNext=function(){return this.__position<this.__input_length},$.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__input.charAt(this.__position),this.__position+=1),I},$.prototype.peek=function(I){var N=null;return I=I||0,I+=this.__position,I>=0&&I<this.__input_length&&(N=this.__input.charAt(I)),N},$.prototype.__match=function(I,N){I.lastIndex=N;var B=I.exec(this.__input);return B&&!(M&&I.sticky)&&B.index!==N&&(B=null),B},$.prototype.test=function(I,N){return N=N||0,N+=this.__position,N>=0&&N<this.__input_length?!!this.__match(I,N):!1},$.prototype.testChar=function(I,N){var B=this.peek(N);return I.lastIndex=0,B!==null&&I.test(B)},$.prototype.match=function(I){var N=this.__match(I,this.__position);return N?this.__position+=N[0].length:N=null,N},$.prototype.read=function(I,N,B){var j="",U;return I&&(U=this.match(I),U&&(j+=U[0])),N&&(U||!I)&&(j+=this.readUntil(N,B)),j},$.prototype.readUntil=function(I,N){var B="",j=this.__position;I.lastIndex=this.__position;var U=I.exec(this.__input);return U?(j=U.index,N&&(j+=U[0].length)):j=this.__input_length,B=this.__input.substring(this.__position,j),this.__position=j,B},$.prototype.readUntilAfter=function(I){return this.readUntil(I,!0)},$.prototype.get_regexp=function(I,N){var B=null,j="g";return N&&M&&(j="y"),typeof I=="string"&&I!==""?B=new RegExp(I,j):I&&(B=new RegExp(I.source,j)),B},$.prototype.get_literal_regexp=function(I){return RegExp(I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},$.prototype.peekUntilAfter=function(I){var N=this.__position,B=this.readUntilAfter(I);return this.__position=N,B},$.prototype.lookBack=function(I){var N=this.__position-1;return N>=I.length&&this.__input.substring(N-I.length,N).toLowerCase()===I},inputscanner.InputScanner=$,inputscanner}var tokenizer$1={},tokenstream={},hasRequiredTokenstream;function requireTokenstream(){if(hasRequiredTokenstream)return tokenstream;hasRequiredTokenstream=1;function M($){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=$}return M.prototype.restart=function(){this.__position=0},M.prototype.isEmpty=function(){return this.__tokens_length===0},M.prototype.hasNext=function(){return this.__position<this.__tokens_length},M.prototype.next=function(){var $=null;return this.hasNext()&&($=this.__tokens[this.__position],this.__position+=1),$},M.prototype.peek=function($){var I=null;return $=$||0,$+=this.__position,$>=0&&$<this.__tokens_length&&(I=this.__tokens[$]),I},M.prototype.add=function($){this.__parent_token&&($.parent=this.__parent_token),this.__tokens.push($),this.__tokens_length+=1},tokenstream.TokenStream=M,tokenstream}var whitespacepattern={},pattern={},hasRequiredPattern;function requirePattern(){if(hasRequiredPattern)return pattern;hasRequiredPattern=1;function M($,I){this._input=$,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,I&&(this._starting_pattern=this._input.get_regexp(I._starting_pattern,!0),this._match_pattern=this._input.get_regexp(I._match_pattern,!0),this._until_pattern=this._input.get_regexp(I._until_pattern),this._until_after=I._until_after)}return M.prototype.read=function(){var $=this._input.read(this._starting_pattern);return(!this._starting_pattern||$)&&($+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),$},M.prototype.read_match=function(){return this._input.match(this._match_pattern)},M.prototype.until_after=function($){var I=this._create();return I._until_after=!0,I._until_pattern=this._input.get_regexp($),I._update(),I},M.prototype.until=function($){var I=this._create();return I._until_after=!1,I._until_pattern=this._input.get_regexp($),I._update(),I},M.prototype.starting_with=function($){var I=this._create();return I._starting_pattern=this._input.get_regexp($,!0),I._update(),I},M.prototype.matching=function($){var I=this._create();return I._match_pattern=this._input.get_regexp($,!0),I._update(),I},M.prototype._create=function(){return new M(this._input,this)},M.prototype._update=function(){},pattern.Pattern=M,pattern}var hasRequiredWhitespacepattern;function requireWhitespacepattern(){if(hasRequiredWhitespacepattern)return whitespacepattern;hasRequiredWhitespacepattern=1;var M=requirePattern().Pattern;function $(I,N){M.call(this,I,N),N?this._line_regexp=this._input.get_regexp(N._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return $.prototype=new M,$.prototype.__set_whitespace_patterns=function(I,N){I+="\\t ",N+="\\n\\r",this._match_pattern=this._input.get_regexp("["+I+N+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+N+"]")},$.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var I=this._input.read(this._match_pattern);if(I===" ")this.whitespace_before_token=" ";else if(I){var N=this.__split(this._newline_regexp,I);this.newline_count=N.length-1,this.whitespace_before_token=N[this.newline_count]}return I},$.prototype.matching=function(I,N){var B=this._create();return B.__set_whitespace_patterns(I,N),B._update(),B},$.prototype._create=function(){return new $(this._input,this)},$.prototype.__split=function(I,N){I.lastIndex=0;for(var B=0,j=[],U=I.exec(N);U;)j.push(N.substring(B,U.index)),B=U.index+U[0].length,U=I.exec(N);return B<N.length?j.push(N.substring(B,N.length)):j.push(""),j},whitespacepattern.WhitespacePattern=$,whitespacepattern}var hasRequiredTokenizer$2;function requireTokenizer$2(){if(hasRequiredTokenizer$2)return tokenizer$1;hasRequiredTokenizer$2=1;var M=requireInputscanner().InputScanner,$=requireToken().Token,I=requireTokenstream().TokenStream,N=requireWhitespacepattern().WhitespacePattern,B={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},j=function(U,q){this._input=new M(U),this._options=q||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new N(this._input)};return j.prototype.tokenize=function(){this._input.restart(),this.__tokens=new I,this._reset();for(var U,q=new $(B.START,""),Y=null,K=[],G=new I;q.type!==B.EOF;){for(U=this._get_next_token(q,Y);this._is_comment(U);)G.add(U),U=this._get_next_token(q,Y);G.isEmpty()||(U.comments_before=G,G=new I),U.parent=Y,this._is_opening(U)?(K.push(Y),Y=U):Y&&this._is_closing(U,Y)&&(U.opened=Y,Y.closed=U,Y=K.pop(),U.parent=Y),U.previous=q,q.next=U,this.__tokens.add(U),q=U}return this.__tokens},j.prototype._is_first_token=function(){return this.__tokens.isEmpty()},j.prototype._reset=function(){},j.prototype._get_next_token=function(U,q){this._readWhitespace();var Y=this._input.read(/.+/g);return Y?this._create_token(B.RAW,Y):this._create_token(B.EOF,"")},j.prototype._is_comment=function(U){return!1},j.prototype._is_opening=function(U){return!1},j.prototype._is_closing=function(U,q){return!1},j.prototype._create_token=function(U,q){var Y=new $(U,q,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return Y},j.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},tokenizer$1.Tokenizer=j,tokenizer$1.TOKEN=B,tokenizer$1}var directives={},hasRequiredDirectives;function requireDirectives(){if(hasRequiredDirectives)return directives;hasRequiredDirectives=1;function M($,I){$=typeof $=="string"?$:$.source,I=typeof I=="string"?I:I.source,this.__directives_block_pattern=new RegExp($+/ beautify( \w+[:]\w+)+ /.source+I,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp($+/\sbeautify\signore:end\s/.source+I,"g")}return M.prototype.get_directives=function($){if(!$.match(this.__directives_block_pattern))return null;var I={};this.__directive_pattern.lastIndex=0;for(var N=this.__directive_pattern.exec($);N;)I[N[1]]=N[2],N=this.__directive_pattern.exec($);return I},M.prototype.readIgnored=function($){return $.readUntilAfter(this.__directives_end_ignore_pattern)},directives.Directives=M,directives}var templatablepattern={},hasRequiredTemplatablepattern;function requireTemplatablepattern(){if(hasRequiredTemplatablepattern)return templatablepattern;hasRequiredTemplatablepattern=1;var M=requirePattern().Pattern,$={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function I(N,B){M.call(this,N,B),this.__template_pattern=null,this._disabled=Object.assign({},$),this._excluded=Object.assign({},$),B&&(this.__template_pattern=this._input.get_regexp(B.__template_pattern),this._excluded=Object.assign(this._excluded,B._excluded),this._disabled=Object.assign(this._disabled,B._disabled));var j=new M(N);this.__patterns={handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:j.starting_with(/{{{/).until_after(/}}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),php:j.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:j.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:j.starting_with(/{%/).until_after(/%}/),django_value:j.starting_with(/{{/).until_after(/}}/),django_comment:j.starting_with(/{#/).until_after(/#}/),smarty:j.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:j.starting_with(/{\*/).until_after(/\*}/),smarty_literal:j.starting_with(/{literal}/).until_after(/{\/literal}/)}}return I.prototype=new M,I.prototype._create=function(){return new I(this._input,this)},I.prototype._update=function(){this.__set_templated_pattern()},I.prototype.disable=function(N){var B=this._create();return B._disabled[N]=!0,B._update(),B},I.prototype.read_options=function(N){var B=this._create();for(var j in $)B._disabled[j]=N.templating.indexOf(j)===-1;return B._update(),B},I.prototype.exclude=function(N){var B=this._create();return B._excluded[N]=!0,B._update(),B},I.prototype.read=function(){var N="";this._match_pattern?N=this._input.read(this._starting_pattern):N=this._input.read(this._starting_pattern,this.__template_pattern);for(var B=this._read_template();B;)this._match_pattern?B+=this._input.read(this._match_pattern):B+=this._input.readUntil(this.__template_pattern),N+=B,B=this._read_template();return this._until_after&&(N+=this._input.readUntilAfter(this._until_pattern)),N},I.prototype.__set_templated_pattern=function(){var N=[];this._disabled.php||N.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||N.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||N.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(N.push(this.__patterns.django._starting_pattern.source),N.push(this.__patterns.django_value._starting_pattern.source),N.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||N.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&N.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+N.join("|")+")")},I.prototype._read_template=function(){var N="",B=this._input.peek();if(B==="<"){var j=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&j==="?"&&(N=N||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&j==="%"&&(N=N||this.__patterns.erb.read())}else B==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(N=N||this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars_unescaped.read(),N=N||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(N=N||this.__patterns.django_value.read()),this._excluded.django||(N=N||this.__patterns.django_comment.read(),N=N||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(N=N||this.__patterns.smarty_comment.read(),N=N||this.__patterns.smarty_literal.read(),N=N||this.__patterns.smarty.read()));return N},templatablepattern.TemplatablePattern=I,templatablepattern}var hasRequiredTokenizer$1;function requireTokenizer$1(){if(hasRequiredTokenizer$1)return tokenizer$2;hasRequiredTokenizer$1=1;var M=requireInputscanner().InputScanner,$=requireTokenizer$2().Tokenizer,I=requireTokenizer$2().TOKEN,N=requireDirectives().Directives,B=requireAcorn(),j=requirePattern().Pattern,U=requireTemplatablepattern().TemplatablePattern;function q(fe,me){return me.indexOf(fe)!==-1}var Y={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:I.START,RAW:I.RAW,EOF:I.EOF},K=new N(/\/\*/,/\*\//),G=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,J=/[0-9]/,Z=/[^\d\.]/,ee=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),te=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";te=te.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),te="\\?\\.(?!\\d) "+te,te=te.replace(/ /g,"|");var re=new RegExp(te),se="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ne=se.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),le=new RegExp("^(?:"+ne.join("|")+")$"),ge,ue=function(fe,me){$.call(this,fe,me),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ve=new j(this._input),xe=new U(this._input).read_options(this._options);this.__patterns={template:xe,identifier:xe.starting_with(B.identifier).matching(B.identifierMatch),number:ve.matching(G),punct:ve.matching(re),comment:ve.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ve.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ve.matching(/<!--/),html_comment_end:ve.matching(/-->/),include:ve.starting_with(/#include/).until_after(B.lineBreak),shebang:ve.starting_with(/#!/).until_after(B.lineBreak),xml:ve.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:xe.until(/['\\\n\r\u2028\u2029]/),double_quote:xe.until(/["\\\n\r\u2028\u2029]/),template_text:xe.until(/[`\\$]/),template_expression:xe.until(/[`}\\]/)}};ue.prototype=new $,ue.prototype._is_comment=function(fe){return fe.type===Y.COMMENT||fe.type===Y.BLOCK_COMMENT||fe.type===Y.UNKNOWN},ue.prototype._is_opening=function(fe){return fe.type===Y.START_BLOCK||fe.type===Y.START_EXPR},ue.prototype._is_closing=function(fe,me){return(fe.type===Y.END_BLOCK||fe.type===Y.END_EXPR)&&me&&(fe.text==="]"&&me.text==="["||fe.text===")"&&me.text==="("||fe.text==="}"&&me.text==="{")},ue.prototype._reset=function(){ge=!1},ue.prototype._get_next_token=function(fe,me){var ve=null;this._readWhitespace();var xe=this._input.peek();return xe===null?this._create_token(Y.EOF,""):(ve=ve||this._read_non_javascript(xe),ve=ve||this._read_string(xe),ve=ve||this._read_word(fe),ve=ve||this._read_singles(xe),ve=ve||this._read_comment(xe),ve=ve||this._read_regexp(xe,fe),ve=ve||this._read_xml(xe,fe),ve=ve||this._read_punctuation(),ve=ve||this._create_token(Y.UNKNOWN,this._input.next()),ve)},ue.prototype._read_word=function(fe){var me;if(me=this.__patterns.identifier.read(),me!=="")return me=me.replace(B.allLineBreaks,`
- `),!(fe.type===Y.DOT||fe.type===Y.RESERVED&&(fe.text==="set"||fe.text==="get"))&&le.test(me)?(me==="in"||me==="of")&&(fe.type===Y.WORD||fe.type===Y.STRING)?this._create_token(Y.OPERATOR,me):this._create_token(Y.RESERVED,me):this._create_token(Y.WORD,me);if(me=this.__patterns.number.read(),me!=="")return this._create_token(Y.WORD,me)},ue.prototype._read_singles=function(fe){var me=null;return fe==="("||fe==="["?me=this._create_token(Y.START_EXPR,fe):fe===")"||fe==="]"?me=this._create_token(Y.END_EXPR,fe):fe==="{"?me=this._create_token(Y.START_BLOCK,fe):fe==="}"?me=this._create_token(Y.END_BLOCK,fe):fe===";"?me=this._create_token(Y.SEMICOLON,fe):fe==="."&&Z.test(this._input.peek(1))?me=this._create_token(Y.DOT,fe):fe===","&&(me=this._create_token(Y.COMMA,fe)),me&&this._input.next(),me},ue.prototype._read_punctuation=function(){var fe=this.__patterns.punct.read();if(fe!=="")return fe==="="?this._create_token(Y.EQUALS,fe):fe==="?."?this._create_token(Y.DOT,fe):this._create_token(Y.OPERATOR,fe)},ue.prototype._read_non_javascript=function(fe){var me="";if(fe==="#"){if(this._is_first_token()&&(me=this.__patterns.shebang.read(),me))return this._create_token(Y.UNKNOWN,me.trim()+`
- `);if(me=this.__patterns.include.read(),me)return this._create_token(Y.UNKNOWN,me.trim()+`
- `);fe=this._input.next();var ve="#";if(this._input.hasNext()&&this._input.testChar(J)){do fe=this._input.next(),ve+=fe;while(this._input.hasNext()&&fe!=="#"&&fe!=="=");return fe==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ve+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ve+="{}",this._input.next(),this._input.next())),this._create_token(Y.WORD,ve)}this._input.back()}else if(fe==="<"&&this._is_first_token()){if(me=this.__patterns.html_comment_start.read(),me){for(;this._input.hasNext()&&!this._input.testChar(B.newline);)me+=this._input.next();return ge=!0,this._create_token(Y.COMMENT,me)}}else if(ge&&fe==="-"&&(me=this.__patterns.html_comment_end.read(),me))return ge=!1,this._create_token(Y.COMMENT,me);return null},ue.prototype._read_comment=function(fe){var me=null;if(fe==="/"){var ve="";if(this._input.peek(1)==="*"){ve=this.__patterns.block_comment.read();var xe=K.get_directives(ve);xe&&xe.ignore==="start"&&(ve+=K.readIgnored(this._input)),ve=ve.replace(B.allLineBreaks,`
- `),me=this._create_token(Y.BLOCK_COMMENT,ve),me.directives=xe}else this._input.peek(1)==="/"&&(ve=this.__patterns.comment.read(),me=this._create_token(Y.COMMENT,ve))}return me},ue.prototype._read_string=function(fe){if(fe==="`"||fe==="'"||fe==='"'){var me=this._input.next();return this.has_char_escapes=!1,fe==="`"?me+=this._read_string_recursive("`",!0,"${"):me+=this._read_string_recursive(fe),this.has_char_escapes&&this._options.unescape_strings&&(me=_e(me)),this._input.peek()===fe&&(me+=this._input.next()),me=me.replace(B.allLineBreaks,`
- `),this._create_token(Y.STRING,me)}return null},ue.prototype._allow_regexp_or_xml=function(fe){return fe.type===Y.RESERVED&&q(fe.text,["return","case","throw","else","do","typeof","yield"])||fe.type===Y.END_EXPR&&fe.text===")"&&fe.opened.previous.type===Y.RESERVED&&q(fe.opened.previous.text,["if","while","for"])||q(fe.type,[Y.COMMENT,Y.START_EXPR,Y.START_BLOCK,Y.START,Y.END_BLOCK,Y.OPERATOR,Y.EQUALS,Y.EOF,Y.SEMICOLON,Y.COMMA])},ue.prototype._read_regexp=function(fe,me){if(fe==="/"&&this._allow_regexp_or_xml(me)){for(var ve=this._input.next(),xe=!1,oe=!1;this._input.hasNext()&&(xe||oe||this._input.peek()!==fe)&&!this._input.testChar(B.newline);)ve+=this._input.peek(),xe?xe=!1:(xe=this._input.peek()==="\\",this._input.peek()==="["?oe=!0:this._input.peek()==="]"&&(oe=!1)),this._input.next();return this._input.peek()===fe&&(ve+=this._input.next(),ve+=this._input.read(B.identifier)),this._create_token(Y.STRING,ve)}return null},ue.prototype._read_xml=function(fe,me){if(this._options.e4x&&fe==="<"&&this._allow_regexp_or_xml(me)){var ve="",xe=this.__patterns.xml.read_match();if(xe){for(var oe=xe[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ye=oe.indexOf("{")===0,be=0;xe;){var we=!!xe[1],Ae=xe[2],ke=!!xe[xe.length-1]||Ae.slice(0,8)==="![CDATA[";if(!ke&&(Ae===oe||ye&&Ae.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(we?--be:++be),ve+=xe[0],be<=0)break;xe=this.__patterns.xml.read_match()}return xe||(ve+=this._input.match(/[\s\S]*/g)[0]),ve=ve.replace(B.allLineBreaks,`
- `),this._create_token(Y.STRING,ve)}}return null};function _e(fe){for(var me="",ve=0,xe=new M(fe),oe=null;xe.hasNext();)if(oe=xe.match(/([\s]|[^\\]|\\\\)+/g),oe&&(me+=oe[0]),xe.peek()==="\\"){if(xe.next(),xe.peek()==="x")oe=xe.match(/x([0-9A-Fa-f]{2})/g);else if(xe.peek()==="u")oe=xe.match(/u([0-9A-Fa-f]{4})/g);else{me+="\\",xe.hasNext()&&(me+=xe.next());continue}if(!oe||(ve=parseInt(oe[1],16),ve>126&&ve<=255&&oe[0].indexOf("x")===0))return fe;if(ve>=0&&ve<32){me+="\\"+oe[0];continue}else ve===34||ve===39||ve===92?me+="\\"+String.fromCharCode(ve):me+=String.fromCharCode(ve)}return me}return ue.prototype._read_string_recursive=function(fe,me,ve){var xe,oe;fe==="'"?oe=this.__patterns.single_quote:fe==='"'?oe=this.__patterns.double_quote:fe==="`"?oe=this.__patterns.template_text:fe==="}"&&(oe=this.__patterns.template_expression);for(var ye=oe.read(),be="";this._input.hasNext();){if(be=this._input.next(),be===fe||!me&&B.newline.test(be)){this._input.back();break}else be==="\\"&&this._input.hasNext()?(xe=this._input.peek(),xe==="x"||xe==="u"?this.has_char_escapes=!0:xe==="\r"&&this._input.peek(1)===`
- `&&this._input.next(),be+=this._input.next()):ve&&(ve==="${"&&be==="$"&&this._input.peek()==="{"&&(be+=this._input.next()),ve===be&&(fe==="`"?be+=this._read_string_recursive("}",me,"`"):be+=this._read_string_recursive("`",me,"${"),this._input.hasNext()&&(be+=this._input.next())));be+=oe.read(),ye+=be}return ye},tokenizer$2.Tokenizer=ue,tokenizer$2.TOKEN=Y,tokenizer$2.positionable_operators=ee.slice(),tokenizer$2.line_starters=se.slice(),tokenizer$2}var hasRequiredBeautifier$2;function requireBeautifier$2(){if(hasRequiredBeautifier$2)return beautifier$2;hasRequiredBeautifier$2=1;var M=requireOutput().Output,$=requireToken().Token,I=requireAcorn(),N=requireOptions$2().Options,B=requireTokenizer$1().Tokenizer,j=requireTokenizer$1().line_starters,U=requireTokenizer$1().positionable_operators,q=requireTokenizer$1().TOKEN;function Y(oe,ye){return ye.indexOf(oe)!==-1}function K(oe){return oe.replace(/^\s+/g,"")}function G(oe){for(var ye={},be=0;be<oe.length;be++)ye[oe[be].replace(/-/g,"_")]=oe[be];return ye}function J(oe,ye){return oe&&oe.type===q.RESERVED&&oe.text===ye}function Z(oe,ye){return oe&&oe.type===q.RESERVED&&Y(oe.text,ye)}var ee=["case","return","do","if","throw","else","await","break","continue","async"],te=["before-newline","after-newline","preserve-newline"],re=G(te),se=[re.before_newline,re.preserve_newline],ne={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function le(oe,ye){ye.multiline_frame||ye.mode===ne.ForInitializer||ye.mode===ne.Conditional||oe.remove_indent(ye.start_line_index)}function ge(oe){oe=oe.replace(I.allLineBreaks,`
- `);for(var ye=[],be=oe.indexOf(`
- `);be!==-1;)ye.push(oe.substring(0,be)),oe=oe.substring(be+1),be=oe.indexOf(`
- `);return oe.length&&ye.push(oe),ye}function ue(oe){return oe===ne.ArrayLiteral}function _e(oe){return Y(oe,[ne.Expression,ne.ForInitializer,ne.Conditional])}function fe(oe,ye){for(var be=0;be<oe.length;be++){var we=oe[be].trim();if(we.charAt(0)!==ye)return!1}return!0}function me(oe,ye){for(var be=0,we=oe.length,Ae;be<we;be++)if(Ae=oe[be],Ae&&Ae.indexOf(ye)!==0)return!1;return!0}function ve(oe,ye){ye=ye||{},this._source_text=oe||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new N(ye)}ve.prototype.create_flags=function(oe,ye){var be=0;oe&&(be=oe.indentation_level,!this._output.just_added_newline()&&oe.line_indent_level>be&&(be=oe.line_indent_level));var we={mode:ye,parent:oe,last_token:oe?oe.last_token:new $(q.START_BLOCK,""),last_word:oe?oe.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:be,alignment:0,line_indent_level:oe?oe.line_indent_level:be,start_line_index:this._output.get_line_number(),ternary_depth:0};return we},ve.prototype._reset=function(oe){var ye=oe.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new M(this._options,ye),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ne.BlockStatement);var be=new B(oe,this._options);return this._tokens=be.tokenize(),oe},ve.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var oe,ye=this._reset(this._source_text),be=this._options.eol;this._options.eol==="auto"&&(be=`
- `,ye&&I.lineBreak.test(ye||"")&&(be=ye.match(I.lineBreak)[0]));for(var we=this._tokens.next();we;)this.handle_token(we),this._last_last_text=this._flags.last_token.text,this._flags.last_token=we,we=this._tokens.next();return oe=this._output.get_code(be),oe},ve.prototype.handle_token=function(oe,ye){oe.type===q.START_EXPR?this.handle_start_expr(oe):oe.type===q.END_EXPR?this.handle_end_expr(oe):oe.type===q.START_BLOCK?this.handle_start_block(oe):oe.type===q.END_BLOCK?this.handle_end_block(oe):oe.type===q.WORD?this.handle_word(oe):oe.type===q.RESERVED?this.handle_word(oe):oe.type===q.SEMICOLON?this.handle_semicolon(oe):oe.type===q.STRING?this.handle_string(oe):oe.type===q.EQUALS?this.handle_equals(oe):oe.type===q.OPERATOR?this.handle_operator(oe):oe.type===q.COMMA?this.handle_comma(oe):oe.type===q.BLOCK_COMMENT?this.handle_block_comment(oe,ye):oe.type===q.COMMENT?this.handle_comment(oe,ye):oe.type===q.DOT?this.handle_dot(oe):oe.type===q.EOF?this.handle_eof(oe):oe.type===q.UNKNOWN?this.handle_unknown(oe,ye):this.handle_unknown(oe,ye)},ve.prototype.handle_whitespace_and_comments=function(oe,ye){var be=oe.newlines,we=this._options.keep_array_indentation&&ue(this._flags.mode);if(oe.comments_before)for(var Ae=oe.comments_before.next();Ae;)this.handle_whitespace_and_comments(Ae,ye),this.handle_token(Ae,ye),Ae=oe.comments_before.next();if(we)for(var ke=0;ke<be;ke+=1)this.print_newline(ke>0,ye);else if(this._options.max_preserve_newlines&&be>this._options.max_preserve_newlines&&(be=this._options.max_preserve_newlines),this._options.preserve_newlines&&be>1){this.print_newline(!1,ye);for(var Oe=1;Oe<be;Oe+=1)this.print_newline(!0,ye)}};var xe=["async","break","continue","return","throw","yield"];return ve.prototype.allow_wrap_or_preserved_newline=function(oe,ye){if(ye=ye===void 0?!1:ye,!this._output.just_added_newline()){var be=this._options.preserve_newlines&&oe.newlines||ye,we=Y(this._flags.last_token.text,U)||Y(oe.text,U);if(we){var Ae=Y(this._flags.last_token.text,U)&&Y(this._options.operator_position,se)||Y(oe.text,U);be=be&&Ae}if(be)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Z(this._flags.last_token,xe))return;this._output.set_wrap_point()}}},ve.prototype.print_newline=function(oe,ye){if(!ye&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==q.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var be=this._tokens.peek();this._flags.mode===ne.Statement&&!(this._flags.if_block&&J(be,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(oe)&&(this._flags.multiline_frame=!0)},ve.prototype.print_token_line_indentation=function(oe){this._output.just_added_newline()&&(this._options.keep_array_indentation&&oe.newlines&&(oe.text==="["||ue(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(oe.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},ve.prototype.print_token=function(oe){if(this._output.raw){this._output.add_raw_token(oe);return}if(this._options.comma_first&&oe.previous&&oe.previous.type===q.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var ye=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(ye),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(oe),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(oe),this._output.non_breaking_space=!0,this._output.add_token(oe.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ve.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.set_mode=function(oe){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,oe),this._flags=this.create_flags(this._previous_flags,oe),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ne.Statement&&le(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.start_of_object_property=function(){return this._flags.parent.mode===ne.ObjectLiteral&&this._flags.mode===ne.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Z(this._flags.last_token,["get","set"]))},ve.prototype.start_of_statement=function(oe){var ye=!1;return ye=ye||Z(this._flags.last_token,["var","let","const"])&&oe.type===q.WORD,ye=ye||J(this._flags.last_token,"do"),ye=ye||!(this._flags.parent.mode===ne.ObjectLiteral&&this._flags.mode===ne.Statement)&&Z(this._flags.last_token,xe)&&!oe.newlines,ye=ye||J(this._flags.last_token,"else")&&!(J(oe,"if")&&!oe.comments_before),ye=ye||this._flags.last_token.type===q.END_EXPR&&(this._previous_flags.mode===ne.ForInitializer||this._previous_flags.mode===ne.Conditional),ye=ye||this._flags.last_token.type===q.WORD&&this._flags.mode===ne.BlockStatement&&!this._flags.in_case&&!(oe.text==="--"||oe.text==="++")&&this._last_last_text!=="function"&&oe.type!==q.WORD&&oe.type!==q.RESERVED,ye=ye||this._flags.mode===ne.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Z(this._flags.last_token,["get","set"])),ye?(this.set_mode(ne.Statement),this.indent(),this.handle_whitespace_and_comments(oe,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(oe,Z(oe,["do","for","if","while"])),!0):!1},ve.prototype.handle_start_expr=function(oe){this.start_of_statement(oe)||this.handle_whitespace_and_comments(oe);var ye=ne.Expression;if(oe.text==="["){if(this._flags.last_token.type===q.WORD||this._flags.last_token.text===")"){Z(this._flags.last_token,j)&&(this._output.space_before_token=!0),this.print_token(oe),this.set_mode(ye),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}ye=ne.ArrayLiteral,ue(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),Y(this._flags.last_token.type,[q.START_EXPR,q.END_EXPR,q.WORD,q.OPERATOR,q.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===q.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,ye=ne.ForInitializer):Y(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ye=ne.Conditional):Y(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&oe.whitespace_before===""?this._output.space_before_token=!1:(Y(this._flags.last_token.text,j)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(oe);else if(this._flags.last_token.type===q.WORD){this._output.space_before_token=!1;var be=this._tokens.peek(-3);if(this._options.space_after_named_function&&be){var we=this._tokens.peek(-4);Z(be,["async","function"])||be.text==="*"&&Z(we,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ne.ObjectLiteral?(be.text==="{"||be.text===","||be.text==="*"&&(we.text==="{"||we.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(oe);(this._flags.last_token.type===q.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(Y(this._last_last_text,["function","yield"])||this._flags.mode===ne.ObjectLiteral&&Y(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===q.START_BLOCK?this.print_newline():(this._flags.last_token.type===q.END_EXPR||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===q.COMMA)&&this.allow_wrap_or_preserved_newline(oe,oe.newlines),this.print_token(oe),this.set_mode(ye),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ve.prototype.handle_end_expr=function(oe){for(;this._flags.mode===ne.Statement;)this.restore_mode();this.handle_whitespace_and_comments(oe),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(oe,oe.text==="]"&&ue(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===q.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(oe),this.restore_mode(),le(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ne.Conditional&&(this._previous_flags.mode=ne.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ve.prototype.handle_start_block=function(oe){this.handle_whitespace_and_comments(oe);var ye=this._tokens.peek(),be=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===q.END_EXPR?(this.set_mode(ne.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ne.BlockStatement):be&&(Y(be.text,[":",","])&&Y(ye.type,[q.STRING,q.WORD,q.RESERVED])||Y(ye.text,["get","set","..."])&&Y(be.type,[q.WORD,q.RESERVED]))?Y(this._last_last_text,["class","interface"])&&!Y(be.text,[":",","])?this.set_mode(ne.BlockStatement):this.set_mode(ne.ObjectLiteral):this._flags.last_token.type===q.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ne.BlockStatement):Y(this._flags.last_token.type,[q.EQUALS,q.START_EXPR,q.COMMA,q.OPERATOR])||Z(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ne.ObjectLiteral):this.set_mode(ne.BlockStatement),this._flags.last_token&&Z(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var we=!ye.comments_before&&ye.text==="}",Ae=we&&this._flags.last_word==="function"&&this._flags.last_token.type===q.END_EXPR;if(this._options.brace_preserve_inline){var ke=0,Oe=null;this._flags.inline_frame=!0;do if(ke+=1,Oe=this._tokens.peek(ke-1),Oe.newlines){this._flags.inline_frame=!1;break}while(Oe.type!==q.EOF&&!(Oe.type===q.END_BLOCK&&Oe.opened===oe))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&oe.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==q.OPERATOR&&(Ae||this._flags.last_token.type===q.EQUALS||Z(this._flags.last_token,ee)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(ue(this._previous_flags.mode)&&(this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.COMMA)&&((this._flags.last_token.type===q.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(oe),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==q.OPERATOR&&this._flags.last_token.type!==q.START_EXPR&&(this._flags.last_token.type===q.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(oe),this.indent(),!we&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ve.prototype.handle_end_block=function(oe){for(this.handle_whitespace_and_comments(oe);this._flags.mode===ne.Statement;)this.restore_mode();var ye=this._flags.last_token.type===q.START_BLOCK;this._flags.inline_frame&&!ye?this._output.space_before_token=!0:this._options.brace_style==="expand"?ye||this.print_newline():ye||(ue(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(oe)},ve.prototype.handle_word=function(oe){if(oe.type===q.RESERVED){if(Y(oe.text,["set","get"])&&this._flags.mode!==ne.ObjectLiteral)oe.type=q.WORD;else if(oe.text==="import"&&Y(this._tokens.peek().text,["(","."]))oe.type=q.WORD;else if(Y(oe.text,["as","from"])&&!this._flags.import_block)oe.type=q.WORD;else if(this._flags.mode===ne.ObjectLiteral){var ye=this._tokens.peek();ye.text===":"&&(oe.type=q.WORD)}}if(this.start_of_statement(oe)?Z(this._flags.last_token,["var","let","const"])&&oe.type===q.WORD&&(this._flags.declaration_statement=!0):oe.newlines&&!_e(this._flags.mode)&&(this._flags.last_token.type!==q.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==q.EQUALS&&(this._options.preserve_newlines||!Z(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(oe),this.print_newline()):this.handle_whitespace_and_comments(oe),this._flags.do_block&&!this._flags.do_while)if(J(oe,"while")){this._output.space_before_token=!0,this.print_token(oe),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&J(oe,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ne.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Z(oe,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(oe),this._flags.in_case=!0;return}if((this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(oe)),J(oe,"function")){(Y(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(Y(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===q.OPERATOR))&&!this._output.just_added_blankline()&&!oe.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD?Z(this._flags.last_token,["get","set","new","export"])||Z(this._flags.last_token,xe)?this._output.space_before_token=!0:J(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===q.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(_e(this._flags.mode)||ue(this._flags.mode))||this.print_newline(),this.print_token(oe),this._flags.last_word=oe.text;return}var be="NONE";if(this._flags.last_token.type===q.END_BLOCK?this._previous_flags.inline_frame?be="SPACE":Z(oe,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&oe.newlines?be="NEWLINE":(be="SPACE",this._output.space_before_token=!0):be="NEWLINE":this._flags.last_token.type===q.SEMICOLON&&this._flags.mode===ne.BlockStatement?be="NEWLINE":this._flags.last_token.type===q.SEMICOLON&&_e(this._flags.mode)?be="SPACE":this._flags.last_token.type===q.STRING?be="NEWLINE":this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD||this._flags.last_token.text==="*"&&(Y(this._last_last_text,["function","yield"])||this._flags.mode===ne.ObjectLiteral&&Y(this._last_last_text,["{",","]))?be="SPACE":this._flags.last_token.type===q.START_BLOCK?this._flags.inline_frame?be="SPACE":be="NEWLINE":this._flags.last_token.type===q.END_EXPR&&(this._output.space_before_token=!0,be="NEWLINE"),Z(oe,j)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?be="SPACE":be="NEWLINE"),Z(oe,["else","catch","finally"]))if((!(this._flags.last_token.type===q.END_BLOCK&&this._previous_flags.mode===ne.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&oe.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var we=this._output.current_line;we.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else be==="NEWLINE"?Z(this._flags.last_token,ee)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Z(oe,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==q.END_EXPR?(this._flags.last_token.type!==q.START_EXPR||!Z(oe,["var","let","const"]))&&this._flags.last_token.text!==":"&&(J(oe,"if")&&J(oe.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Z(oe,j)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&ue(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():be==="SPACE"&&(this._output.space_before_token=!0);oe.previous&&(oe.previous.type===q.WORD||oe.previous.type===q.RESERVED)&&(this._output.space_before_token=!0),this.print_token(oe),this._flags.last_word=oe.text,oe.type===q.RESERVED&&(oe.text==="do"?this._flags.do_block=!0:oe.text==="if"?this._flags.if_block=!0:oe.text==="import"?this._flags.import_block=!0:this._flags.import_block&&J(oe,"from")&&(this._flags.import_block=!1))},ve.prototype.handle_semicolon=function(oe){this.start_of_statement(oe)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(oe);for(var ye=this._tokens.peek();this._flags.mode===ne.Statement&&!(this._flags.if_block&&J(ye,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(oe)},ve.prototype.handle_string=function(oe){oe.text.startsWith("`")&&oe.newlines===0&&oe.whitespace_before===""&&(oe.previous.text===")"||this._flags.last_token.type===q.WORD)||(this.start_of_statement(oe)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(oe),this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(oe):oe.text.startsWith("`")&&this._flags.last_token.type===q.END_EXPR&&(oe.previous.text==="]"||oe.previous.text===")")&&oe.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(oe)},ve.prototype.handle_equals=function(oe){this.start_of_statement(oe)||this.handle_whitespace_and_comments(oe),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(oe),this._output.space_before_token=!0},ve.prototype.handle_comma=function(oe){this.handle_whitespace_and_comments(oe,!0),this.print_token(oe),this._output.space_before_token=!0,this._flags.declaration_statement?(_e(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(oe)):this._flags.mode===ne.ObjectLiteral||this._flags.mode===ne.Statement&&this._flags.parent.mode===ne.ObjectLiteral?(this._flags.mode===ne.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(oe)},ve.prototype.handle_operator=function(oe){var ye=oe.text==="*"&&(Z(this._flags.last_token,["function","yield"])||Y(this._flags.last_token.type,[q.START_BLOCK,q.COMMA,q.END_BLOCK,q.SEMICOLON])),be=Y(oe.text,["-","+"])&&(Y(this._flags.last_token.type,[q.START_BLOCK,q.START_EXPR,q.EQUALS,q.OPERATOR])||Y(this._flags.last_token.text,j)||this._flags.last_token.text===",");if(!this.start_of_statement(oe)){var we=!ye;this.handle_whitespace_and_comments(oe,we)}if(oe.text==="*"&&this._flags.last_token.type===q.DOT){this.print_token(oe);return}if(oe.text==="::"){this.print_token(oe);return}if(this._flags.last_token.type===q.OPERATOR&&Y(this._options.operator_position,se)&&this.allow_wrap_or_preserved_newline(oe),oe.text===":"&&this._flags.in_case){this.print_token(oe),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==q.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ae=!0,ke=!0,Oe=!1;if(oe.text===":"?this._flags.ternary_depth===0?Ae=!1:(this._flags.ternary_depth-=1,Oe=!0):oe.text==="?"&&(this._flags.ternary_depth+=1),!be&&!ye&&this._options.preserve_newlines&&Y(oe.text,U)){var Me=oe.text===":",ze=Me&&Oe,Fe=Me&&!Oe;switch(this._options.operator_position){case re.before_newline:this._output.space_before_token=!Fe,this.print_token(oe),(!Me||ze)&&this.allow_wrap_or_preserved_newline(oe),this._output.space_before_token=!0;return;case re.after_newline:this._output.space_before_token=!0,!Me||ze?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(oe):this._output.space_before_token=!1,this.print_token(oe),this._output.space_before_token=!0;return;case re.preserve_newline:Fe||this.allow_wrap_or_preserved_newline(oe),Ae=!(this._output.just_added_newline()||Fe),this._output.space_before_token=Ae,this.print_token(oe),this._output.space_before_token=!0;return}}if(ye){this.allow_wrap_or_preserved_newline(oe),Ae=!1;var Ze=this._tokens.peek();ke=Ze&&Y(Ze.type,[q.WORD,q.RESERVED])}else if(oe.text==="...")this.allow_wrap_or_preserved_newline(oe),Ae=this._flags.last_token.type===q.START_BLOCK,ke=!1;else if(Y(oe.text,["--","++","!","~"])||be){if((this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR)&&this.allow_wrap_or_preserved_newline(oe),Ae=!1,ke=!1,oe.newlines&&(oe.text==="--"||oe.text==="++"||oe.text==="~")){var lt=Z(this._flags.last_token,ee)&&oe.newlines;lt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(lt,!0)}this._flags.last_token.text===";"&&_e(this._flags.mode)&&(Ae=!0),this._flags.last_token.type===q.RESERVED?Ae=!0:this._flags.last_token.type===q.END_EXPR?Ae=!(this._flags.last_token.text==="]"&&(oe.text==="--"||oe.text==="++")):this._flags.last_token.type===q.OPERATOR&&(Ae=Y(oe.text,["--","-","++","+"])&&Y(this._flags.last_token.text,["--","-","++","+"]),Y(oe.text,["+","-"])&&Y(this._flags.last_token.text,["--","++"])&&(ke=!0)),(this._flags.mode===ne.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ne.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ae,this.print_token(oe),this._output.space_before_token=ke},ve.prototype.handle_block_comment=function(oe,ye){if(this._output.raw){this._output.add_raw_token(oe),oe.directives&&oe.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(oe.directives){this.print_newline(!1,ye),this.print_token(oe),oe.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!I.newline.test(oe.text)&&!oe.newlines){this._output.space_before_token=!0,this.print_token(oe),this._output.space_before_token=!0;return}else this.print_block_commment(oe,ye)},ve.prototype.print_block_commment=function(oe,ye){var be=ge(oe.text),we,Ae=!1,ke=!1,Oe=oe.whitespace_before,Me=Oe.length;if(this.print_newline(!1,ye),this.print_token_line_indentation(oe),this._output.add_token(be[0]),this.print_newline(!1,ye),be.length>1){for(be=be.slice(1),Ae=fe(be,"*"),ke=me(be,Oe),Ae&&(this._flags.alignment=1),we=0;we<be.length;we++)Ae?(this.print_token_line_indentation(oe),this._output.add_token(K(be[we]))):ke&&be[we]?(this.print_token_line_indentation(oe),this._output.add_token(be[we].substring(Me))):(this._output.current_line.set_indent(-1),this._output.add_token(be[we])),this.print_newline(!1,ye);this._flags.alignment=0}},ve.prototype.handle_comment=function(oe,ye){oe.newlines?this.print_newline(!1,ye):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(oe),this.print_newline(!1,ye)},ve.prototype.handle_dot=function(oe){this.start_of_statement(oe)||this.handle_whitespace_and_comments(oe,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Z(this._flags.last_token,ee)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(oe,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(oe)},ve.prototype.handle_unknown=function(oe,ye){this.print_token(oe),oe.text[oe.text.length-1]===`
- `&&this.print_newline(!1,ye)},ve.prototype.handle_eof=function(oe){for(;this._flags.mode===ne.Statement;)this.restore_mode();this.handle_whitespace_and_comments(oe)},beautifier$2.Beautifier=ve,beautifier$2}var hasRequiredJavascript$1;function requireJavascript$1(){if(hasRequiredJavascript$1)return javascript$3.exports;hasRequiredJavascript$1=1;var M=requireBeautifier$2().Beautifier,$=requireOptions$2().Options;function I(N,B){var j=new M(N,B);return j.beautify()}return javascript$3.exports=I,javascript$3.exports.defaultOptions=function(){return new $},javascript$3.exports}var css$2={exports:{}},beautifier$1={},options$1={},hasRequiredOptions$1;function requireOptions$1(){if(hasRequiredOptions$1)return options$1;hasRequiredOptions$1=1;var M=requireOptions$3().Options;function $(I){M.call(this,I,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var N=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||N;var B=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var j=0;j<B.length;j++)B[j]!=="expand"?this.brace_style="collapse":this.brace_style=B[j]}return $.prototype=new M,options$1.Options=$,options$1}var hasRequiredBeautifier$1;function requireBeautifier$1(){if(hasRequiredBeautifier$1)return beautifier$1;hasRequiredBeautifier$1=1;var M=requireOptions$1().Options,$=requireOutput().Output,I=requireInputscanner().InputScanner,N=requireDirectives().Directives,B=new N(/\/\*/,/\*\//),j=/\r\n|[\r\n]/,U=/\r\n|[\r\n]/g,q=/\s/,Y=/(?:\s|\n)+/g,K=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,G=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function J(Z,ee){this._source_text=Z||"",this._options=new M(ee),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return J.prototype.eatString=function(Z){var ee="";for(this._ch=this._input.next();this._ch;){if(ee+=this._ch,this._ch==="\\")ee+=this._input.next();else if(Z.indexOf(this._ch)!==-1||this._ch===`
- `)break;this._ch=this._input.next()}return ee},J.prototype.eatWhitespace=function(Z){for(var ee=q.test(this._input.peek()),te=0;q.test(this._input.peek());)this._ch=this._input.next(),Z&&this._ch===`
- `&&(te===0||te<this._options.max_preserve_newlines)&&(te++,this._output.add_new_line(!0));return ee},J.prototype.foundNestedPseudoClass=function(){for(var Z=0,ee=1,te=this._input.peek(ee);te;){if(te==="{")return!0;if(te==="(")Z+=1;else if(te===")"){if(Z===0)return!1;Z-=1}else if(te===";"||te==="}")return!1;ee++,te=this._input.peek(ee)}return!1},J.prototype.print_string=function(Z){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Z)},J.prototype.preserveSingleSpace=function(Z){Z&&(this._output.space_before_token=!0)},J.prototype.indent=function(){this._indentLevel++},J.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Z=this._source_text,ee=this._options.eol;ee==="auto"&&(ee=`
- `,Z&&j.test(Z||"")&&(ee=Z.match(j)[0])),Z=Z.replace(U,`
- `);var te=Z.match(/^[\t ]*/)[0];this._output=new $(this._options,te),this._input=new I(Z),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var re=0,se=!1,ne=!1,le=!1,ge=!1,ue=!1,_e=!1,fe=this._ch,me=!1,ve,xe,oe;ve=this._input.read(Y),xe=ve!=="",oe=fe,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),fe=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var ye=this._input.read(K),be=B.get_directives(ye);be&&be.ignore==="start"&&(ye+=B.readIgnored(this._input)),this.print_string(ye),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(G)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(xe),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var we=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);we.match(/[ :]$/)&&(we=this.eatString(": ").replace(/\s$/,""),this.print_string(we),this._output.space_before_token=!0),we=we.replace(/\s$/,""),we==="extend"?ge=!0:we==="import"&&(ue=!0),we in this.NESTED_AT_RULE?(this._nestedLevel+=1,we in this.CONDITIONAL_GROUP_RULE&&(le=!0)):!se&&re===0&&we.indexOf(":")!==-1&&(ne=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(xe),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ne&&(ne=!1,this.outdent()),le?(le=!1,se=this._indentLevel>=this._nestedLevel):se=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&se&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(oe==="("?this._output.space_before_token=!1:oe!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),oe==="{"&&this._output.trim(!0),ue=!1,ge=!1,ne&&(this.outdent(),ne=!1),this.print_string(this._ch),se=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ae=0;Ae<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ae++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ae])){me=!0;break}(se||le)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!ge&&re===0?(this.print_string(":"),ne||(ne=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var ke=oe==='"'||oe==="'";this.preserveSingleSpace(ke||xe),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")me=!1,re===0?(ne&&(this.outdent(),ne=!1),ge=!1,ue=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),re++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),re&&(re--,this.outdent()));else{var Oe=!1;this._input.lookBack("with")&&(Oe=!0),this.preserveSingleSpace(xe||Oe),this.print_string(this._ch),ne&&oe==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),_e=!0):(this.eatWhitespace(),re++,this.indent())}else if(this._ch===")")re&&(re--,this.outdent()),_e&&this._input.peek()===";"&&this._options.selector_separator_newline&&(_e=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!ne||_e)&&re===0&&!ue&&!ge?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ne&&re===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&q.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(xe),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),q.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Me=oe==='"'||oe==="'";this.preserveSingleSpace(Me||xe),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
- `&&me&&this._output.add_new_line()}var ze=this._output.get_code(ee);return ze},beautifier$1.Beautifier=J,beautifier$1}var hasRequiredCss;function requireCss(){if(hasRequiredCss)return css$2.exports;hasRequiredCss=1;var M=requireBeautifier$1().Beautifier,$=requireOptions$1().Options;function I(N,B){var j=new M(N,B);return j.beautify()}return css$2.exports=I,css$2.exports.defaultOptions=function(){return new $},css$2.exports}var html={exports:{}},beautifier={},options={},hasRequiredOptions;function requireOptions(){if(hasRequiredOptions)return options;hasRequiredOptions=1;var M=requireOptions$3().Options;function $(I){M.call(this,I,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return $.prototype=new M,options.Options=$,options}var tokenizer={},hasRequiredTokenizer;function requireTokenizer(){if(hasRequiredTokenizer)return tokenizer;hasRequiredTokenizer=1;var M=requireTokenizer$2().Tokenizer,$=requireTokenizer$2().TOKEN,I=requireDirectives().Directives,N=requireTemplatablepattern().TemplatablePattern,B=requirePattern().Pattern,j={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:$.START,RAW:$.RAW,EOF:$.EOF},U=new I(/<\!--/,/-->/),q=function(Y,K){M.call(this,Y,K),this._current_tag_name="";var G=new N(this._input).read_options(this._options),J=new B(this._input);if(this.__patterns={word:G.until(/[\n\r\t <]/),single_quote:G.until_after(/'/),double_quote:G.until_after(/"/),attribute:G.until(/[\n\r\t =>]|\/>/),element_name:G.until(/[\n\r\t >\/]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(/<!--/).until_after(/-->/),cdata:J.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:J.starting_with(/<!\[/).until_after(/]>/),processing:J.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var Z=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(Z).until_after(Z)}};return q.prototype=new M,q.prototype._is_comment=function(Y){return!1},q.prototype._is_opening=function(Y){return Y.type===j.TAG_OPEN},q.prototype._is_closing=function(Y,K){return Y.type===j.TAG_CLOSE&&K&&((Y.text===">"||Y.text==="/>")&&K.text[0]==="<"||Y.text==="}}"&&K.text[0]==="{"&&K.text[1]==="{")},q.prototype._reset=function(){this._current_tag_name=""},q.prototype._get_next_token=function(Y,K){var G=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(j.EOF,""):(G=G||this._read_open_handlebars(J,K),G=G||this._read_attribute(J,Y,K),G=G||this._read_close(J,K),G=G||this._read_raw_content(J,Y,K),G=G||this._read_content_word(J),G=G||this._read_comment_or_cdata(J),G=G||this._read_processing(J),G=G||this._read_open(J,K),G=G||this._create_token(j.UNKNOWN,this._input.next()),G)},q.prototype._read_comment_or_cdata=function(Y){var K=null,G=null,J=null;if(Y==="<"){var Z=this._input.peek(1);Z==="!"&&(G=this.__patterns.comment.read(),G?(J=U.get_directives(G),J&&J.ignore==="start"&&(G+=U.readIgnored(this._input))):G=this.__patterns.cdata.read()),G&&(K=this._create_token(j.COMMENT,G),K.directives=J)}return K},q.prototype._read_processing=function(Y){var K=null,G=null,J=null;if(Y==="<"){var Z=this._input.peek(1);(Z==="!"||Z==="?")&&(G=this.__patterns.conditional_comment.read(),G=G||this.__patterns.processing.read()),G&&(K=this._create_token(j.COMMENT,G),K.directives=J)}return K},q.prototype._read_open=function(Y,K){var G=null,J=null;return K||Y==="<"&&(G=this._input.next(),this._input.peek()==="/"&&(G+=this._input.next()),G+=this.__patterns.element_name.read(),J=this._create_token(j.TAG_OPEN,G)),J},q.prototype._read_open_handlebars=function(Y,K){var G=null,J=null;return K||this._options.indent_handlebars&&Y==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(G=this.__patterns.handlebars_comment.read(),G=G||this.__patterns.handlebars.read(),J=this._create_token(j.COMMENT,G)):(G=this.__patterns.handlebars_open.read(),J=this._create_token(j.TAG_OPEN,G))),J},q.prototype._read_close=function(Y,K){var G=null,J=null;return K&&(K.text[0]==="<"&&(Y===">"||Y==="/"&&this._input.peek(1)===">")?(G=this._input.next(),Y==="/"&&(G+=this._input.next()),J=this._create_token(j.TAG_CLOSE,G)):K.text[0]==="{"&&Y==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(j.TAG_CLOSE,"}}"))),J},q.prototype._read_attribute=function(Y,K,G){var J=null,Z="";if(G&&G.text[0]==="<")if(Y==="=")J=this._create_token(j.EQUALS,this._input.next());else if(Y==='"'||Y==="'"){var ee=this._input.next();Y==='"'?ee+=this.__patterns.double_quote.read():ee+=this.__patterns.single_quote.read(),J=this._create_token(j.VALUE,ee)}else Z=this.__patterns.attribute.read(),Z&&(K.type===j.EQUALS?J=this._create_token(j.VALUE,Z):J=this._create_token(j.ATTRIBUTE,Z));return J},q.prototype._is_content_unformatted=function(Y){return this._options.void_elements.indexOf(Y)===-1&&(this._options.content_unformatted.indexOf(Y)!==-1||this._options.unformatted.indexOf(Y)!==-1)},q.prototype._read_raw_content=function(Y,K,G){var J="";if(G&&G.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(K.type===j.TAG_CLOSE&&K.opened.text[0]==="<"&&K.text[0]!=="/"){var Z=K.opened.text.substr(1).toLowerCase();if(Z==="script"||Z==="style"){var ee=this._read_comment_or_cdata(Y);if(ee)return ee.type=j.TEXT,ee;J=this._input.readUntil(new RegExp("</"+Z+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(Z)&&(J=this._input.readUntil(new RegExp("</"+Z+"[\\n\\r\\t ]*?>","ig")))}return J?this._create_token(j.TEXT,J):null},q.prototype._read_content_word=function(Y){var K="";if(this._options.unformatted_content_delimiter&&Y===this._options.unformatted_content_delimiter[0]&&(K=this.__patterns.unformatted_content_delimiter.read()),K||(K=this.__patterns.word.read()),K)return this._create_token(j.TEXT,K)},tokenizer.Tokenizer=q,tokenizer.TOKEN=j,tokenizer}var hasRequiredBeautifier;function requireBeautifier(){if(hasRequiredBeautifier)return beautifier;hasRequiredBeautifier=1;var M=requireOptions().Options,$=requireOutput().Output,I=requireTokenizer().Tokenizer,N=requireTokenizer().TOKEN,B=/\r\n|[\r\n]/,j=/\r\n|[\r\n]/g,U=function(se,ne){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=se.max_preserve_newlines,this.preserve_newlines=se.preserve_newlines,this._output=new $(se,ne)};U.prototype.current_line_has_match=function(se){return this._output.current_line.has_match(se)},U.prototype.set_space_before_token=function(se,ne){this._output.space_before_token=se,this._output.non_breaking_space=ne},U.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},U.prototype.add_raw_token=function(se){this._output.add_raw_token(se)},U.prototype.print_preserved_newlines=function(se){var ne=0;se.type!==N.TEXT&&se.previous.type!==N.TEXT&&(ne=se.newlines?1:0),this.preserve_newlines&&(ne=se.newlines<this.max_preserve_newlines+1?se.newlines:this.max_preserve_newlines+1);for(var le=0;le<ne;le++)this.print_newline(le>0);return ne!==0},U.prototype.traverse_whitespace=function(se){return se.whitespace_before||se.newlines?(this.print_preserved_newlines(se)||(this._output.space_before_token=!0),!0):!1},U.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},U.prototype.print_newline=function(se){this._output.add_new_line(se)},U.prototype.print_token=function(se){se.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(se.text))},U.prototype.indent=function(){this.indent_level++},U.prototype.get_full_indent=function(se){return se=this.indent_level+(se||0),se<1?"":this._output.get_indent_string(se)};var q=function(se){for(var ne=null,le=se.next;le.type!==N.EOF&&se.closed!==le;){if(le.type===N.ATTRIBUTE&&le.text==="type"){le.next&&le.next.type===N.EQUALS&&le.next.next&&le.next.next.type===N.VALUE&&(ne=le.next.next.text);break}le=le.next}return ne},Y=function(se,ne){var le=null,ge=null;return ne.closed?(se==="script"?le="text/javascript":se==="style"&&(le="text/css"),le=q(ne)||le,le.search("text/css")>-1?ge="css":le.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ge="javascript":le.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ge="html":le.search(/test\/null/)>-1&&(ge="null"),ge):null};function K(se,ne){return ne.indexOf(se)!==-1}function G(se,ne,le){this.parent=se||null,this.tag=ne?ne.tag_name:"",this.indent_level=le||0,this.parser_token=ne||null}function J(se){this._printer=se,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(se){var ne=new G(this._current_frame,se,this._printer.indent_level);this._current_frame=ne},J.prototype._try_pop_frame=function(se){var ne=null;return se&&(ne=se.parser_token,this._printer.indent_level=se.indent_level,this._current_frame=se.parent),ne},J.prototype._get_frame=function(se,ne){for(var le=this._current_frame;le&&se.indexOf(le.tag)===-1;){if(ne&&ne.indexOf(le.tag)!==-1){le=null;break}le=le.parent}return le},J.prototype.try_pop=function(se,ne){var le=this._get_frame([se],ne);return this._try_pop_frame(le)},J.prototype.indent_to_tag=function(se){var ne=this._get_frame(se);ne&&(this._printer.indent_level=ne.indent_level)};function Z(se,ne,le,ge){this._source_text=se||"",ne=ne||{},this._js_beautify=le,this._css_beautify=ge,this._tag_stack=null;var ue=new M(ne,"html");this._options=ue,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Z.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var se=this._source_text,ne=this._options.eol;this._options.eol==="auto"&&(ne=`
- `,se&&B.test(se)&&(ne=se.match(B)[0])),se=se.replace(j,`
- `);var le=se.match(/^[\t ]*/)[0],ge={text:"",type:""},ue=new ee,_e=new U(this._options,le),fe=new I(se,this._options).tokenize();this._tag_stack=new J(_e);for(var me=null,ve=fe.next();ve.type!==N.EOF;)ve.type===N.TAG_OPEN||ve.type===N.COMMENT?(me=this._handle_tag_open(_e,ve,ue,ge),ue=me):ve.type===N.ATTRIBUTE||ve.type===N.EQUALS||ve.type===N.VALUE||ve.type===N.TEXT&&!ue.tag_complete?me=this._handle_inside_tag(_e,ve,ue,fe):ve.type===N.TAG_CLOSE?me=this._handle_tag_close(_e,ve,ue):ve.type===N.TEXT?me=this._handle_text(_e,ve,ue):_e.add_raw_token(ve),ge=me,ve=fe.next();var xe=_e._output.get_code(ne);return xe},Z.prototype._handle_tag_close=function(se,ne,le){var ge={text:ne.text,type:ne.type};return se.alignment_size=0,le.tag_complete=!0,se.set_space_before_token(ne.newlines||ne.whitespace_before!=="",!0),le.is_unformatted?se.add_raw_token(ne):(le.tag_start_char==="<"&&(se.set_space_before_token(ne.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&le.has_wrapped_attrs&&se.print_newline(!1)),se.print_token(ne)),le.indent_content&&!(le.is_unformatted||le.is_content_unformatted)&&(se.indent(),le.indent_content=!1),!le.is_inline_element&&!(le.is_unformatted||le.is_content_unformatted)&&se.set_wrap_point(),ge},Z.prototype._handle_inside_tag=function(se,ne,le,ge){var ue=le.has_wrapped_attrs,_e={text:ne.text,type:ne.type};if(se.set_space_before_token(ne.newlines||ne.whitespace_before!=="",!0),le.is_unformatted)se.add_raw_token(ne);else if(le.tag_start_char==="{"&&ne.type===N.TEXT)se.print_preserved_newlines(ne)?(ne.newlines=0,se.add_raw_token(ne)):se.print_token(ne);else{if(ne.type===N.ATTRIBUTE?(se.set_space_before_token(!0),le.attr_count+=1):(ne.type===N.EQUALS||ne.type===N.VALUE&&ne.previous.type===N.EQUALS)&&se.set_space_before_token(!1),ne.type===N.ATTRIBUTE&&le.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(se.traverse_whitespace(ne),ue=ue||ne.newlines!==0),this._is_wrap_attributes_force)){var fe=le.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&le.attr_count===1){var me=!0,ve=0,xe;do{if(xe=ge.peek(ve),xe.type===N.ATTRIBUTE){me=!1;break}ve+=1}while(ve<4&&xe.type!==N.EOF&&xe.type!==N.TAG_CLOSE);fe=!me}fe&&(se.print_newline(!1),ue=!0)}se.print_token(ne),ue=ue||se.previous_token_wrapped(),le.has_wrapped_attrs=ue}return _e},Z.prototype._handle_text=function(se,ne,le){var ge={text:ne.text,type:"TK_CONTENT"};return le.custom_beautifier_name?this._print_custom_beatifier_text(se,ne,le):le.is_unformatted||le.is_content_unformatted?se.add_raw_token(ne):(se.traverse_whitespace(ne),se.print_token(ne)),ge},Z.prototype._print_custom_beatifier_text=function(se,ne,le){var ge=this;if(ne.text!==""){var ue=ne.text,_e,fe=1,me="",ve="";le.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?_e=this._js_beautify:le.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?_e=this._css_beautify:le.custom_beautifier_name==="html"&&(_e=function(Ae,ke){var Oe=new Z(Ae,ke,ge._js_beautify,ge._css_beautify);return Oe.beautify()}),this._options.indent_scripts==="keep"?fe=0:this._options.indent_scripts==="separate"&&(fe=-se.indent_level);var xe=se.get_full_indent(fe);if(ue=ue.replace(/\n[ \t]*$/,""),le.custom_beautifier_name!=="html"&&ue[0]==="<"&&ue.match(/^(<!--|<!\[CDATA\[)/)){var oe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ue);if(!oe){se.add_raw_token(ne);return}me=xe+oe[1]+`
- `,ue=oe[4],oe[5]&&(ve=xe+oe[5]),ue=ue.replace(/\n[ \t]*$/,""),(oe[2]||oe[3].indexOf(`
- `)!==-1)&&(oe=oe[3].match(/[ \t]+$/),oe&&(ne.whitespace_before=oe[0]))}if(ue)if(_e){var ye=function(){this.eol=`
- `};ye.prototype=this._options.raw_options;var be=new ye;ue=_e(xe+ue,be)}else{var we=ne.whitespace_before;we&&(ue=ue.replace(new RegExp(`
- (`+we+")?","g"),`
- `)),ue=xe+ue.replace(/\n/g,`
- `+xe)}me&&(ue?ue=me+ue+`
- `+ve:ue=me+ve),se.print_newline(!1),ue&&(ne.text=ue,ne.whitespace_before="",ne.newlines=0,se.add_raw_token(ne),se.print_newline(!0))}},Z.prototype._handle_tag_open=function(se,ne,le,ge){var ue=this._get_tag_open_token(ne);return(le.is_unformatted||le.is_content_unformatted)&&!le.is_empty_element&&ne.type===N.TAG_OPEN&&ne.text.indexOf("</")===0?(se.add_raw_token(ne),ue.start_tag_token=this._tag_stack.try_pop(ue.tag_name)):(se.traverse_whitespace(ne),this._set_tag_position(se,ne,ue,le,ge),ue.is_inline_element||se.set_wrap_point(),se.print_token(ne)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ue.alignment_size=ne.text.length+1),!ue.tag_complete&&!ue.is_unformatted&&(se.alignment_size=ue.alignment_size),ue};var ee=function(se,ne){if(this.parent=se||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!ne)this.tag_complete=!0;else{var le;this.tag_start_char=ne.text[0],this.text=ne.text,this.tag_start_char==="<"?(le=ne.text.match(/^<([^\s>]*)/),this.tag_check=le?le[1]:""):(le=ne.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=le?le[1]:"",(ne.text.startsWith("{{#>")||ne.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&ne.next!==null?this.tag_check=ne.next.text.split(" ")[0]:this.tag_check=ne.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),ne.type===N.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||ne.closed&&ne.closed.text==="/>";var ge=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ge=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(ge)))}};Z.prototype._get_tag_open_token=function(se){var ne=new ee(this._tag_stack.get_parser_token(),se);return ne.alignment_size=this._options.wrap_attributes_indent_size,ne.is_end_tag=ne.is_end_tag||K(ne.tag_check,this._options.void_elements),ne.is_empty_element=ne.tag_complete||ne.is_start_tag&&ne.is_end_tag,ne.is_unformatted=!ne.tag_complete&&K(ne.tag_check,this._options.unformatted),ne.is_content_unformatted=!ne.is_empty_element&&K(ne.tag_check,this._options.content_unformatted),ne.is_inline_element=K(ne.tag_name,this._options.inline)||ne.tag_name.includes("-")||ne.tag_start_char==="{",ne},Z.prototype._set_tag_position=function(se,ne,le,ge,ue){if(le.is_empty_element||(le.is_end_tag?le.start_tag_token=this._tag_stack.try_pop(le.tag_name):(this._do_optional_end_element(le)&&(le.is_inline_element||se.print_newline(!1)),this._tag_stack.record_tag(le),(le.tag_name==="script"||le.tag_name==="style")&&!(le.is_unformatted||le.is_content_unformatted)&&(le.custom_beautifier_name=Y(le.tag_check,ne)))),K(le.tag_check,this._options.extra_liners)&&(se.print_newline(!1),se._output.just_added_blankline()||se.print_newline(!0)),le.is_empty_element){if(le.tag_start_char==="{"&&le.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),le.indent_content=!0;var _e=se.current_line_has_match(/{{#if/);_e||se.print_newline(!1)}le.tag_name==="!--"&&ue.type===N.TAG_CLOSE&&ge.is_end_tag&&le.text.indexOf(`
- `)===-1||(le.is_inline_element||le.is_unformatted||se.print_newline(!1),this._calcluate_parent_multiline(se,le))}else if(le.is_end_tag){var fe=!1;fe=le.start_tag_token&&le.start_tag_token.multiline_content,fe=fe||!le.is_inline_element&&!(ge.is_inline_element||ge.is_unformatted)&&!(ue.type===N.TAG_CLOSE&&le.start_tag_token===ge)&&ue.type!=="TK_CONTENT",(le.is_content_unformatted||le.is_unformatted)&&(fe=!1),fe&&se.print_newline(!1)}else le.indent_content=!le.custom_beautifier_name,le.tag_start_char==="<"&&(le.tag_name==="html"?le.indent_content=this._options.indent_inner_html:le.tag_name==="head"?le.indent_content=this._options.indent_head_inner_html:le.tag_name==="body"&&(le.indent_content=this._options.indent_body_inner_html)),!(le.is_inline_element||le.is_unformatted)&&(ue.type!=="TK_CONTENT"||le.is_content_unformatted)&&se.print_newline(!1),this._calcluate_parent_multiline(se,le)},Z.prototype._calcluate_parent_multiline=function(se,ne){ne.parent&&se._output.just_added_newline()&&!((ne.is_inline_element||ne.is_unformatted)&&ne.parent.is_inline_element)&&(ne.parent.multiline_content=!0)};var te=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],re=["a","audio","del","ins","map","noscript","video"];return Z.prototype._do_optional_end_element=function(se){var ne=null;if(!(se.is_empty_element||!se.is_start_tag||!se.parent)){if(se.tag_name==="body")ne=ne||this._tag_stack.try_pop("head");else if(se.tag_name==="li")ne=ne||this._tag_stack.try_pop("li",["ol","ul"]);else if(se.tag_name==="dd"||se.tag_name==="dt")ne=ne||this._tag_stack.try_pop("dt",["dl"]),ne=ne||this._tag_stack.try_pop("dd",["dl"]);else if(se.parent.tag_name==="p"&&te.indexOf(se.tag_name)!==-1){var le=se.parent.parent;(!le||re.indexOf(le.tag_name)===-1)&&(ne=ne||this._tag_stack.try_pop("p"))}else se.tag_name==="rp"||se.tag_name==="rt"?(ne=ne||this._tag_stack.try_pop("rt",["ruby","rtc"]),ne=ne||this._tag_stack.try_pop("rp",["ruby","rtc"])):se.tag_name==="optgroup"?ne=ne||this._tag_stack.try_pop("optgroup",["select"]):se.tag_name==="option"?ne=ne||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):se.tag_name==="colgroup"?ne=ne||this._tag_stack.try_pop("caption",["table"]):se.tag_name==="thead"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"])):se.tag_name==="tbody"||se.tag_name==="tfoot"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"]),ne=ne||this._tag_stack.try_pop("thead",["table"]),ne=ne||this._tag_stack.try_pop("tbody",["table"])):se.tag_name==="tr"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"]),ne=ne||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(se.tag_name==="th"||se.tag_name==="td")&&(ne=ne||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),ne=ne||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return se.parent=this._tag_stack.get_parser_token(),ne}},beautifier.Beautifier=Z,beautifier}var hasRequiredHtml;function requireHtml(){if(hasRequiredHtml)return html.exports;hasRequiredHtml=1;var M=requireBeautifier().Beautifier,$=requireOptions().Options;function I(N,B,j,U){var q=new M(N,B,j,U);return q.beautify()}return html.exports=I,html.exports.defaultOptions=function(){return new $},html.exports}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src$1;hasRequiredSrc=1;var M=requireJavascript$1(),$=requireCss(),I=requireHtml();function N(B,j,U,q){return U=U||M,q=q||$,I(B,j,U,q)}return N.defaultOptions=I.defaultOptions,src$1.js=M,src$1.css=$,src$1.html=N,src$1}(function(M){function $(I,N,B){var j=function(U,q){return I.js_beautify(U,q)};return j.js=I.js_beautify,j.css=N.css_beautify,j.html=B.html_beautify,j.js_beautify=I.js_beautify,j.css_beautify=N.css_beautify,j.html_beautify=B.html_beautify,j}(function(I){var N=requireSrc();N.js_beautify=N.js,N.css_beautify=N.css,N.html_beautify=N.html,I.exports=$(N,N,N)})(M)})(js);var jsExports=js.exports;/*!
- * is-whitespace <https://github.com/jonschlinkert/is-whitespace>
- *
- * Copyright (c) 2014-2015, Jon Schlinkert.
- * Licensed under the MIT License.
- */var cache,isWhitespace$1=function M($){return typeof $=="string"&®ex().test($)};function regex(){return cache||(cache=new RegExp(`^[\\s
- \v\f\r \u2028\u2029\uFEFF"]+$`))}/*!
- * is-extendable <https://github.com/jonschlinkert/is-extendable>
- *
- * Copyright (c) 2015, Jon Schlinkert.
- * Licensed under the MIT License.
- */var isExtendable=function M($){return typeof $<"u"&&$!==null&&(typeof $=="object"||typeof $=="function")},isObject$3=isExtendable,extendShallow=function M($){isObject$3($)||($={});for(var I=arguments.length,N=1;N<I;N++){var B=arguments[N];isObject$3(B)&&assign$2($,B)}return $};function assign$2(M,$){for(var I in $)hasOwn$2($,I)&&(M[I]=$[I])}function hasOwn$2(M,$){return Object.prototype.hasOwnProperty.call(M,$)}/*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */var isBuffer_1=function(M){return M!=null&&(isBuffer$3(M)||isSlowBuffer(M)||!!M._isBuffer)};function isBuffer$3(M){return!!M.constructor&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}function isSlowBuffer(M){return typeof M.readFloatLE=="function"&&typeof M.slice=="function"&&isBuffer$3(M.slice(0,0))}var isBuffer$2=isBuffer_1,toString$2=Object.prototype.toString,kindOf$1=function M($){if(typeof $>"u")return"undefined";if($===null)return"null";if($===!0||$===!1||$ instanceof Boolean)return"boolean";if(typeof $=="string"||$ instanceof String)return"string";if(typeof $=="number"||$ instanceof Number)return"number";if(typeof $=="function"||$ instanceof Function)return"function";if(typeof Array.isArray<"u"&&Array.isArray($))return"array";if($ instanceof RegExp)return"regexp";if($ instanceof Date)return"date";var I=toString$2.call($);return I==="[object RegExp]"?"regexp":I==="[object Date]"?"date":I==="[object Arguments]"?"arguments":I==="[object Error]"?"error":isBuffer$2($)?"buffer":I==="[object Set]"?"set":I==="[object WeakSet]"?"weakset":I==="[object Map]"?"map":I==="[object WeakMap]"?"weakmap":I==="[object Symbol]"?"symbol":I==="[object Int8Array]"?"int8array":I==="[object Uint8Array]"?"uint8array":I==="[object Uint8ClampedArray]"?"uint8clampedarray":I==="[object Int16Array]"?"int16array":I==="[object Uint16Array]"?"uint16array":I==="[object Int32Array]"?"int32array":I==="[object Uint32Array]"?"uint32array":I==="[object Float32Array]"?"float32array":I==="[object Float64Array]"?"float64array":"object"};/*!
- * condense-newlines <https://github.com/jonschlinkert/condense-newlines>
- *
- * Copyright (c) 2014 Jon Schlinkert, contributors.
- * Licensed under the MIT License
- */var isWhitespace=isWhitespace$1,extend$3=extendShallow,typeOf=kindOf$1,condenseNewlines=function(M,$){var I=extend$3({},$),N=I.sep||`
-
- `,B=I.min,j;return typeof B=="number"&&B!==2&&(j=new RegExp("(\\r\\n|\\n|\\u2424) {"+B+",}")),typeof j>"u"&&(j=I.regex||/(\r\n|\n|\u2424){2,}/g),I.keepWhitespace!==!0&&(M=M.split(`
- `).map(function(U){return isWhitespace(U)?U.trim():U}).join(`
- `)),M=trailingNewline(M,I),M.replace(j,N)};function trailingNewline(M,$){var I=$.trailingNewline;if(I===!1)return M;switch(typeOf(I)){case"string":M=M.replace(/\s+$/,$.trailingNewline);break;case"function":M=$.trailingNewline(M);break;case"undefined":case"boolean":default:{M=M.replace(/\s+$/,`
- `);break}}return M}/*!
- * pretty <https://github.com/jonschlinkert/pretty>
- *
- * Copyright (c) 2013-2015, 2017, Jon Schlinkert.
- * Released under the MIT License.
- */var beautify=jsExports,condense=condenseNewlines,extend$2=extendShallow,defaults$5={unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_char:" ",indent_size:2,sep:`
- `},pretty=function M($,I){var N=extend$2({},defaults$5,I);return $=beautify.html($,N),N.ocd===!0?(N.newlines&&(N.sep=N.newlines),ocd($,N)):$};function ocd(M,$){return condense(M,$).replace(/^\s+/g,"").replace(/\s+$/g,`
- `).replace(/(\s*<!--)/g,`
- $1`).replace(/>(\s*)(?=<!--\s*\/)/g,"> ")}const pretty$1=getDefaultExportFromCjs(pretty),_sfc_main$25={props:["html"],inject:["bard"],computed:{blocks(){return this.html.split(/(<bard-set>.*?<\/bard-set>)/).map(M=>{if(M.startsWith("<bard-set>")){let $=M.match(/^<bard-set>(.*)<\/bard-set>$/)[1];return{type:"set",set:JSON.parse($).values.type}}return{type:"text",text:pretty$1(M)}})}},methods:{setDisplay(M){return _.findWhere(this.bard.setConfigs,{handle:M}).display||M}}};var _sfc_render$25=function M(){var $=this,I=$._self._c;return I("div",$._l($.blocks,function(N,B){return I("div",{key:B,staticClass:"p-4"},[N.type==="text"?I("pre",{staticClass:"whitespace-pre-wrap leading-normal text-xs font-mono",domProps:{textContent:$._s(N.text)}}):$._e(),N.type==="set"?I("div",{staticClass:"border border-dashed p-2 rounded text-xs",domProps:{textContent:$._s($.setDisplay(N.set))}}):$._e()])}),0)},_sfc_staticRenderFns$25=[],__component__$26=normalizeComponent$3(_sfc_main$25,_sfc_render$25,_sfc_staticRenderFns$25,!1,null,null,null,null);const BardSource=__component__$26.exports,_sfc_main$24={props:{sets:Array},data(){return{selectedGroupHandle:null,search:null,selectionIndex:0,keybindings:[]}},computed:{showSearch(){return!this.hasMultipleGroups||!this.selectedGroup},showGroupBreadcrumb(){return this.hasMultipleGroups&&this.selectedGroup},showGroups(){return this.hasMultipleGroups&&!this.selectedGroup&&!this.search},hasMultipleSets(){return this.sets.reduce((M,$)=>M+$.sets.length,0)>1},hasMultipleGroups(){return this.sets.length>1},selectedGroup(){return this.sets.find(M=>M.handle===this.selectedGroupHandle)},selectedGroupDisplayText(){return this.selectedGroup?__(this.selectedGroup.display||this.selectedGroup.handle):null},visibleSets(){if(!this.selectedGroup&&!this.search)return[];let M=this.selectedGroup?this.selectedGroup.sets:this.sets.reduce(($,I)=>$.concat(I.sets),[]);return this.search?M.filter($=>__($.display).toLowerCase().includes(this.search.toLowerCase())||$.handle.toLowerCase().includes(this.search.toLowerCase())):M},items(){let M=[];return this.showGroups&&this.sets.forEach($=>{M.push({...$,type:"group"})}),this.visibleSets.forEach($=>{M.push({...$,type:"set"})}),M},noSearchResults(){return this.search&&this.visibleSets.length===0},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")},iconDirectory(){let M=this.$config.get("setIconsDirectory"),$=this.$config.get("setIconsFolder");return $&&(M=M+"/"+$),M}},watch:{search(){this.selectionIndex=0}},methods:{addSet(M){this.$emit("added",M),this.unselectGroup(),this.search=null,this.$refs.popover.close()},selectGroup(M){this.selectedGroupHandle=M,this.selectionIndex=0},unselectGroup(){this.selectedGroupHandle=null},opened(){this.$refs.search.focus(),this.sets.length===1&&(this.selectedGroupHandle=this.sets[0].handle),this.bindKeys()},closed(){this.unbindKeys()},bindKeys(){this.keybindings=[this.$keys.bindGlobal("up",M=>this.keypressUp(M)),this.$keys.bindGlobal("down",M=>this.keypressDown(M)),this.$keys.bindGlobal("enter",M=>this.keypressEnter(M))]},unbindKeys(){this.keybindings.forEach(M=>M.destroy()),this.keybindings=[]},keypressUp(M){M.preventDefault(),this.selectionIndex=this.selectionIndex===0?this.items.length-1:this.selectionIndex-1},keypressDown(M){M.preventDefault(),this.selectionIndex=this.selectionIndex===this.items.length-1?0:this.selectionIndex+1},keypressEnter(M){M.preventDefault();const $=this.items[this.selectionIndex];$.type==="group"?this.selectGroup($.handle):this.addSet($.handle)},triggerWasClicked(){this.hasMultipleSets||this.addSet(this.sets[0].sets[0].handle)},groupIconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"folder-generic"},setIconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"light/add"}}};var _sfc_render$24=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popover",staticClass:"set-picker select-none",attrs:{placement:"bottom-start",disabled:!$.hasMultipleSets},on:{opened:$.opened,closed:$.closed,click:$.triggerWasClicked,"clicked-away":function(N){return $.$emit("clicked-away",N)}},scopedSlots:$._u([{key:"trigger",fn:function(){return[$._t("trigger")]},proxy:!0},{key:"default",fn:function(){return[I("div",{staticClass:"set-picker-header p-3 border-b text-xs flex items-center"},[I("input",{directives:[{name:"show",rawName:"v-show",value:$.showSearch,expression:"showSearch"},{name:"model",rawName:"v-model",value:$.search,expression:"search"}],ref:"search",staticClass:"py-1 px-2 border rounded w-full",attrs:{type:"text",placeholder:$.__("Search Sets")},domProps:{value:$.search},on:{input:function(N){N.target.composing||($.search=N.target.value)}}}),$.showGroupBreadcrumb?I("div",{staticClass:"flex items-center text-gray-700 font-medium"},[I("button",{staticClass:"hover:text-gray-900 rtl:mr-2.5 ltr:ml-2.5 rounded",on:{click:$.unselectGroup}},[$._v(" "+$._s($.__("Groups"))+" ")]),I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"micro/chevron-right"}}),I("span",[$._v($._s($.selectedGroupDisplayText))])],1):$._e()]),I("div",{staticClass:"p-1 max-h-[21rem] overflow-auto"},[$._l($.items,function(N,B){return I("div",{key:N.handle,staticClass:"cursor-pointer rounded",class:{"bg-gray-200":$.selectionIndex===B},on:{mouseover:function(j){$.selectionIndex=B}}},[N.type==="group"?I("div",{staticClass:"flex items-center group px-2 py-1.5 rounded-md",on:{click:function(j){return $.selectGroup(N.handle)}}},[I("svg-icon",{staticClass:"h-9 w-9 rounded bg-white border border-gray-600 rtl:ml-2 ltr:mr-2 p-2 text-gray-800",attrs:{name:$.groupIconName(N.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"flex-1"},[I("div",{staticClass:"text-md font-medium text-gray-800 truncate w-52"},[$._v($._s($.__(N.display||N.handle)))]),N.instructions?I("div",{staticClass:"text-2xs text-gray-700 truncate w-52"},[$._v($._s($.__(N.instructions)))]):$._e()]),I("svg-icon",{staticClass:"text-gray-600 group-hover:text-gray-800",attrs:{name:"micro/chevron-right-thin"}})],1):$._e(),N.type==="set"?I("div",{staticClass:"flex items-center group px-2 py-1.5 rounded-md",on:{click:function(j){return $.addSet(N.handle)}}},[I("svg-icon",{staticClass:"h-9 w-9 rounded bg-white border border-gray-600 rtl:ml-2 ltr:mr-2 p-2 text-gray-800",attrs:{name:$.setIconName(N.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"flex-1"},[I("div",{staticClass:"text-md font-medium text-gray-800 truncate w-52"},[$._v($._s($.__(N.display||N.handle)))]),N.instructions?I("div",{staticClass:"text-2xs text-gray-700 truncate w-52"},[$._v($._s($.__(N.instructions)))]):$._e()])],1):$._e()])}),$.noSearchResults?I("div",{staticClass:"text-center text-gray-600 text-xs p-3"},[$._v(" "+$._s($.__("No results"))+" ")]):$._e()],2)]},proxy:!0}],null,!0)})},_sfc_staticRenderFns$24=[],__component__$25=normalizeComponent$3(_sfc_main$24,_sfc_render$24,_sfc_staticRenderFns$24,!1,null,null,null,null);const SetPicker=__component__$25.exports,Document=Node$1.create({name:"doc",topNode:!0,content:"block+"}),DocumentBlock=Document.extend({content:"(block | root)+"}),DocumentInline=Document.extend({content:"paragraph"}),_sfc_main$23={props:{field:{type:Object,required:!0},meta:{type:Object},value:{required:!0},parentName:{type:String,required:!0},setIndex:{type:Number,required:!0},fieldPath:{type:String},readOnly:Boolean,showFieldPreviews:Boolean},inject:["storeName"],computed:{fieldtypeComponent(){return`${this.field.component||this.field.type}-fieldtype`},namePrefix(){return`${this.parentName}[${this.setIndex}]`},display(){return __(this.field.display||this.field.handle[0].toUpperCase()+this.field.handle.slice(1))},instructions(){return this.field.instructions?this.$options.filters.markdown(__(this.field.instructions)):null},storeState(){return this.$store.state.publish[this.storeName]||[]},errors(){return this.storeState.errors[this.fieldPath]||[]},hasError(){return this.errors.length>0},hasNestedError(){const M=`${this.fieldPath}.`;return Object.keys(this.storeState.errors).some($=>$.startsWith(M))},isReadOnly(){return this.readOnly||this.field.visibility==="read_only"||!1},classes(){return["form-group publish-field",`${this.field.type}-fieldtype`,`${tailwind_width_class(this.field.width)}`,this.isReadOnly?"read-only-field":"",this.field.classes||"",{"has-error":this.hasError||this.hasNestedError}]},showLabel(){return this.showLabelText||this.isReadOnly||this.field.required},showLabelText(){return!this.field.hide_display},fieldId(){return(this.fieldPath?this.fieldPath+".":"")+"field_"+this.field.handle}}};var _sfc_render$23=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"p-4 m-0 @container",class:$.classes},[$.showLabel?I("label",{staticClass:"block",attrs:{for:$.fieldId}},[$.showLabelText?I("span",[$._v($._s($.display))]):$._e(),$.field.required?I("i",{staticClass:"required"},[$._v("*")]):$._e(),$.isReadOnly?I("span",{staticClass:"text-gray-500 font-normal text-2xs mx-1",domProps:{textContent:$._s($.__("Read Only"))}}):$._e()]):$._e(),$.instructions&&$.field.instructions_position!=="below"?I("div",{staticClass:"help-block",class:{"-mt-2":$.showLabel},domProps:{innerHTML:$._s($.instructions)}}):$._e(),I($.fieldtypeComponent,{tag:"component",attrs:{config:$.field,meta:$.meta,value:$.value,handle:$.field.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPath,"has-error":$.hasError||$.hasNestedError,"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{input:function(N){return $.$emit("updated",N)},"meta-updated":function(N){return $.$emit("meta-updated",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},"replicator-preview-updated":function(N){return $.$emit("replicator-preview-updated",N)}}}),$.instructions&&$.field.instructions_position==="below"?I("div",{staticClass:"help-block mt-2",domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.hasError?I("div",$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(N)}})}),0):$._e()],1)},_sfc_staticRenderFns$23=[],__component__$24=normalizeComponent$3(_sfc_main$23,_sfc_render$23,_sfc_staticRenderFns$23,!1,null,null,null,null);const SetField=__component__$24.exports,ManagesPreviewText={computed:{previewText(){const M=_(this.previews).filter(($,I)=>{const N=_.findWhere(this.config.fields,{handle:I})||{};return N.replicator_preview===void 0?this.showFieldPreviews:N.replicator_preview});return Object.values(M).filter($=>["null","[]","{}",""].includes(JSON.stringify($))?null:$).map($=>$ instanceof PreviewHtml?$.html:typeof $=="string"?escapeHtml($):Array.isArray($)&&typeof $[0]=="string"?escapeHtml($.join(", ")):escapeHtml(JSON.stringify($))).join(" / ")}}},_sfc_main$22={props:["editor","node","decorations","selected","extension","getPos","updateAttributes","deleteNode"],components:{NodeViewWrapper,SetField},mixins:[ValidatesFieldConditions,ManagesPreviewText],inject:["bard","bardSets"],computed:{fields(){return this.config.fields},display(){return __(this.config.display||this.values.type)},values(){return this.node.attrs.values},meta(){return this.extension.options.bard.meta.existing[this.node.attrs.id]||{}},previews(){return this.extension.options.bard.meta.previews[this.node.attrs.id]||{}},collapsed(){return this.extension.options.bard.meta.collapsed.includes(this.node.attrs.id)},config(){return _.findWhere(this.setConfigs,{handle:this.values.type})||{}},setConfigs(){return this.bard.setConfigs},setGroup(){return this.bardSets.length<1?null:this.bardSets.find(M=>M.sets.filter($=>$.handle===this.config.handle).length>0)},isSetGroupVisible(){var M;return this.bardSets.length>1&&((M=this.setGroup)==null?void 0:M.display)},isReadOnly(){return this.bard.isReadOnly},enabled:{get(){return this.node.attrs.enabled},set(M){return this.updateAttributes({enabled:M})}},parentName(){return this.extension.options.bard.name},index(){return this.extension.options.bard.setIndexes[this.node.attrs.id]},instructions(){return this.config.instructions?markdown(__(this.config.instructions)):null},hasError(){return this.extension.options.bard.setsWithErrors.includes(this.index)},showFieldPreviews(){return this.extension.options.bard.config.previews},isInvalid(){return Object.keys(this.config).length===0},decorationSpecs(){return Object.assign({},...this.decorations.map(M=>M.type.spec))},withinSelection(){return this.decorationSpecs.withinSelection}},methods:{updated(M,$){let I=Object.assign({},this.values);I.type=this.config.handle,I[M]=$,this.updateAttributes({values:I})},metaUpdated(M,$){let I=clone(this.meta);I[M]=$,this.extension.options.bard.updateSetMeta(this.node.attrs.id,I)},previewUpdated(M,$){this.extension.options.bard.updateSetPreviews(this.node.attrs.id,{...this.previews,[M]:$})},focused(){this.extension.options.bard.$emit("focus")},blurred(){setTimeout(()=>{const M=this.extension.options.bard;M.$el.contains(document.activeElement)||M.$emit("blur")},1)},toggleCollapsedState(){this.collapsed?this.expand():this.collapse()},collapse(){this.extension.options.bard.collapseSet(this.node.attrs.id)},expand(){this.extension.options.bard.expandSet(this.node.attrs.id)},duplicate(){this.extension.options.bard.duplicateSet(this.node.attrs.id,this.node.attrs,this.getPos()+this.node.nodeSize)},fieldPath(M){return`${this.extension.options.bard.fieldPathPrefix||this.extension.options.bard.handle}.${this.index}.attrs.values.${M.handle}`}},updated(){this.$el.setAttribute("draggable",!1)}};var _sfc_render$22=function M(){var $=this,I=$._self._c;return I("node-view-wrapper",[I("div",{staticClass:"bard-set whitespace-normal my-6 rounded bg-white border shadow-md",class:{"border-blue-400":$.selected||$.withinSelection,"has-error":$.hasError},attrs:{contenteditable:"false"},on:{copy:function(N){N.stopPropagation()},paste:function(N){N.stopPropagation()},cut:function(N){N.stopPropagation()}}},[I("div",{ref:"content",attrs:{hidden:""}}),I("div",{staticClass:"replicator-set-header",class:{collapsed:$.collapsed,invalid:$.isInvalid}},[I("div",{staticClass:"item-move sortable-handle",attrs:{"data-drag-handle":""}}),I("div",{staticClass:"flex items-center flex-1 p-2 replicator-set-header-inner cursor-pointer",class:{"flex items-center":$.collapsed},on:{click:$.toggleCollapsedState}},[I("label",{staticClass:"text-xs whitespace-nowrap rtl:ml-2 ltr:mr-2"},[$.isSetGroupVisible?I("span",[$._v(" "+$._s($.setGroup.display)+" "),I("svg-icon",{staticClass:"w-4",attrs:{name:"micro/chevron-right"}})],1):$._e(),$._v(" "+$._s($.display||$.config.handle)+" ")]),$.config.instructions&&!$.collapsed?I("div",{staticClass:"flex items-center"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.config.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(config.instructions)), html:true }"}],staticClass:"text-gray-700 hover:text-gray-800 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}})],1):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.collapsed,expression:"collapsed"}],staticClass:"flex-1 min-w-0 w-1 rtl:pl-8 ltr:pr-8"},[I("div",{staticClass:"help-block mb-0 whitespace-nowrap overflow-hidden text-ellipsis",domProps:{innerHTML:$._s($.previewText)}})])]),I("div",{staticClass:"replicator-set-controls"},[I("toggle-fieldtype",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.enabled?$.__("Included in output"):$.__("Hidden from output"),expression:"(enabled) ? __('Included in output') : __('Hidden from output')",modifiers:{top:!0}}],staticClass:"toggle-sm rtl:ml-4 ltr:mr-4",attrs:{handle:"set-enabled"},model:{value:$.enabled,callback:function(N){$.enabled=N},expression:"enabled"}}),I("dropdown-list",{staticClass:"-mt-1"},[I("dropdown-item",{attrs:{text:$.__($.collapsed?$.__("Expand Set"):$.__("Collapse Set"))},on:{click:$.toggleCollapsedState}}),I("dropdown-item",{attrs:{text:$.__("Duplicate Set")},on:{click:$.duplicate}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Set")},on:{click:$.deleteNode}})],1)],1)]),$.index!==void 0?I("div",{directives:[{name:"show",rawName:"v-show",value:!$.collapsed,expression:"!collapsed"}],staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N)),expression:"showField(field, fieldPath(field))"}],key:N.handle,attrs:{field:N,value:$.values[N.handle],meta:$.meta[N.handle],"parent-name":$.parentName,"set-index":$.index,"field-path":$.fieldPath(N),"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:$.focused,blur:$.blurred,"replicator-preview-updated":function(B){return $.previewUpdated(N.handle,B)}}})}),1):$._e()])])},_sfc_staticRenderFns$22=[],__component__$23=normalizeComponent$3(_sfc_main$22,_sfc_render$22,_sfc_staticRenderFns$22,!1,null,null,null,null);const BardSet=__component__$23.exports,Set$1=Node$1.create({name:"set",addNodeView(){return VueNodeViewRenderer(BardSet)},draggable:!0,group:"root",addAttributes(){return{id:{default:null,parseHTML:M=>{var $;return($=M.querySelector("div"))==null?void 0:$.getAttribute("id")}},enabled:{default:!0,parseHTML:M=>{var $;return($=M.querySelector("div"))==null?void 0:$.getAttribute("enabled")}},values:{default:null,parseHTML:M=>{var $;return($=M.querySelector("a"))==null?void 0:$.getAttribute("values")}}}},parseHTML(){return[{tag:"bard-set",getAttrs:M=>JSON.parse(M.innerHTML)}]},renderHTML({HTMLAttributes:M}){return["bard-set",{},JSON.stringify(M)]},addCommands(){return{set:M=>({tr:$,dispatch:I})=>{const{selection:N}=$,B=this.type.create(M);if(I){const j=N instanceof TextSelection?$.insert(N.$cursor.pos-1,B):$.insert(N.$head.pos,B);I(j)}},setAt:({attrs:M,pos:$})=>({tr:I,dispatch:N})=>{const B=this.type.create(M);if(N){const j=I.insert($,B);N(j)}}}},addProseMirrorPlugins(){const M=this.options.bard,$=this.type;return[new Plugin({key:new PluginKey("setSelectionDecorator"),props:{decorations(I){const{from:N,to:B}=I.selection,j=[];return I.doc.nodesBetween(N,B,(U,q)=>{U.type===$&&j.push(Decoration.node(q,q+U.nodeSize,{},{withinSelection:!0}))}),DecorationSet.create(I.doc,j)}}}),new Plugin({key:new PluginKey("setPastedTransformer"),props:{transformPasted:I=>{const{content:N}=I.content;return new Slice(Fragment.fromArray(N.map(B=>B.type===$?B.type.create(M.pasteSet(B.attrs)):B.copy(B.content))),I.openStart,I.openEnd)}}})]}}),Small=Mark.create({name:"small",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"small"}]},renderHTML({HTMLAttributes:M}){return["small",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleSmall:()=>({commands:M})=>M.toggleMark(this.name)}}}),_sfc_main$21={mixins:[Asset],components:{NodeViewWrapper,Selector},inject:["storeName"],props:["editor","node","decorations","selected","extension","getPos","updateAttributes","deleteNode"],data(){return{assetId:null,assetAlt:null,editorAsset:null,showingSelector:!1,loading:!1,alt:this.node.attrs.alt,showingAltEdit:!!this.node.attrs.alt}},computed:{src(){if(this.editorAsset)return this.editorAsset.url},actualSrc(){return this.editorAsset?`asset::${this.assetId}`:this.src},selections(){return this.assetId?[this.assetId]:[]}},created(){let M=this.node.attrs.src;this.node.isNew&&this.openSelector(),M&&M.startsWith("asset:")&&(this.assetId=M.substr(7));let $=this.assetId||M;$&&this.loadAsset($)},watch:{actualSrc(M){this.node.attrs.src||this.updateAttributes({src:M,asset:!!this.assetId})},alt(M){this.updateAttributes({alt:M})}},methods:{openSelector(){this.showingSelector=!0},closeSelector(){this.showingSelector=!1},assetsSelected(M){this.loading=!0,this.assetId=M[0],this.loadAsset(this.assetId)},loadAsset(M){_.find(this.$store.state.publish[this.storeName].preloadedAssets,$=>$.id===M),this.$axios.post(cp_url("assets-fieldtype"),{assets:[M]}).then($=>{this.setAsset($.data[0])})},setAsset(M){this.editorAsset=M,this.assetId=M.id,this.assetAlt=M.values.alt,this.loading=!1,this.updateAttributes({src:this.actualSrc})},toggleAltEditor(){this.showingAltEdit=!this.showingAltEdit,this.showingAltEdit||(this.alt=null)},editorAssetSaved(M){this.setAsset(M),this.closeEditor()}},updated(){this.$el.setAttribute("draggable",!1)}};var _sfc_render$21=function M(){var $=this,I=$._self._c;return I("node-view-wrapper",[I("div",{staticClass:"bard-inline-image-container shadow-sm",class:{"border-blue-400":$.selected}},[$.src?I("div",{staticClass:"p-2 text-center",attrs:{draggable:"true","data-drag-handle":""}},[I("div",{ref:"content",attrs:{hidden:""}}),I("img",{staticClass:"block mx-auto rounded-sm",attrs:{src:$.src}})]):$._e(),I("div",{staticClass:"@container/toolbar flex items-center border-t justify-center py-2 px-2 text-2xs text-white text-center space-x-1 sm:space-x-3"},[$.src?$._e():I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.openSelector}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"folder-image"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Choose Image")))])],1),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"pencil"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Edit Image")))])],1):$._e(),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",class:{active:$.showingAltEdit},attrs:{type:"button"},on:{click:$.toggleAltEditor}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"rename-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Override Alt")))])],1):$._e(),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.openSelector}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"swap"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Replace")))])],1):$._e(),I("button",{staticClass:"flex btn btn-sm text-red-500 px-3 py-1.5",on:{click:$.deleteNode}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"trash"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Delete")))])],1)]),$.showingAltEdit?I("div",{staticClass:"flex items-center p-2 border-t rounded-b",on:{paste:function(N){N.stopPropagation()}}},[I("text-input",{staticClass:"flex-1",attrs:{name:"alt",focus:$.showingAltEdit,placeholder:$.assetAlt,prepend:$.__("Alt Text")},model:{value:$.alt,callback:function(N){$.alt=N},expression:"alt"}})],1):$._e(),$.showingSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeSelector}},[I("selector",{attrs:{container:$.extension.options.bard.config.container,folder:$.extension.options.bard.config.folder||"/","restrict-container-navigation":!0,"restrict-folder-navigation":$.extension.options.bard.config.restrict_assets,selected:$.selections,"view-mode":"grid","max-files":1},on:{selected:$.assetsSelected,closed:$.closeSelector}})],1):$._e(),$.editing?I("asset-editor",{attrs:{id:$.assetId,showToolbar:!1,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.editorAssetSaved,actionCompleted:$.actionCompleted}}):$._e()],1)])},_sfc_staticRenderFns$21=[],__component__$22=normalizeComponent$3(_sfc_main$21,_sfc_render$21,_sfc_staticRenderFns$21,!1,null,null,null,null);const ImageComponent=__component__$22.exports,Image=Node$1.create({name:"image",addNodeView(){return VueNodeViewRenderer(ImageComponent)},inline:!0,group:"inline",draggable:!0,selectable:!0,addAttributes(){return{src:{default:null,parseHTML:M=>{var $;return($=M.querySelector("img"))==null?void 0:$.getAttribute("data-src")}},alt:{default:null,parseHTML:M=>{var $;return($=M.querySelector("img"))==null?void 0:$.getAttribute("alt")}}}},parseHTML(){return[{tag:"img[src]",getAttrs:M=>({src:M.getAttribute("data-src"),alt:M.getAttribute("alt")})}]},renderHTML({HTMLAttributes:M}){return["img",{...M,src:"","data-src":M.src}]},addCommands(){return{insertImage:M=>({tr:$,dispatch:I})=>{const{selection:N}=$,B=N.$cursor?N.$cursor.pos:N.$to.pos,j=this.type.create(M);if(j.isNew=!0,I){const U=$.insert(B,j);I(U)}}}}}),Link=Mark.create({name:"link",inclusive:!1,addAttributes(){return{href:{default:null},rel:{default:null},target:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]"}]},renderHTML({HTMLAttributes:M}){return["a",M,0]},addCommands(){return{setLink:M=>({chain:$})=>M.href?$().setMark(this.name,M).run():$().unsetMark(this.name,{extendEmptyMarkRange:!0}).run()}},addPasteRules(){return[markPasteRule({find:/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_+.~#?&//=]*)/g,type:this.type,getAttributes:M=>({href:M[0]})})]},addKeyboardShortcuts(){return{"Mod-k":()=>this.options.vm.$emit("link-toggle")}},addProseMirrorPlugins(){const M=this.options.vm;return[new Plugin({key:new PluginKey("eventHandler"),props:{handleClick($,I){const{schema:N,doc:B,tr:j}=$.state,U=getMarkRange(B.resolve(I),N.marks.link);if(U){if(U.to===I)return;const q=B.resolve(U.from),Y=B.resolve(U.to),K=new TextSelection(q,Y),G=j.setSelection(K),J=getAttributes($.state,N.marks.link);$.dispatch(G),M.$emit("link-selected",J)}else M.$emit("link-deselected")}}})]}});var shams=function M(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var $={},I=Symbol("test"),N=Object(I);if(typeof I=="string"||Object.prototype.toString.call(I)!=="[object Symbol]"||Object.prototype.toString.call(N)!=="[object Symbol]")return!1;var B=42;$[I]=B;for(I in $)return!1;if(typeof Object.keys=="function"&&Object.keys($).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames($).length!==0)return!1;var j=Object.getOwnPropertySymbols($);if(j.length!==1||j[0]!==I||!Object.prototype.propertyIsEnumerable.call($,I))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var U=Object.getOwnPropertyDescriptor($,I);if(U.value!==B||U.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function M(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function M($){var I=this;if(typeof I!="function"||toStr$1.call(I)!==funcType)throw new TypeError(ERROR_MESSAGE+I);for(var N=slice.call(arguments,1),B,j=function(){if(this instanceof B){var G=I.apply(this,N.concat(slice.call(arguments)));return Object(G)===G?G:this}else return I.apply($,N.concat(slice.call(arguments)))},U=Math.max(0,I.length-N.length),q=[],Y=0;Y<U;Y++)q.push("$"+Y);if(B=Function("binder","return function ("+q.join(",")+"){ return binder.apply(this,arguments); }")(j),I.prototype){var K=function(){};K.prototype=I.prototype,B.prototype=new K,K.prototype=null}return B},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(M){try{return $Function('"use strict"; return ('+M+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(M){return M.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch(M){var errorProto=getProto(getProto(M));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function M($){var I;if($==="%AsyncFunction%")I=getEvalledConstructor("async function () {}");else if($==="%GeneratorFunction%")I=getEvalledConstructor("function* () {}");else if($==="%AsyncGeneratorFunction%")I=getEvalledConstructor("async function* () {}");else if($==="%AsyncGenerator%"){var N=M("%AsyncGeneratorFunction%");N&&(I=N.prototype)}else if($==="%AsyncIteratorPrototype%"){var B=M("%AsyncGenerator%");B&&(I=getProto(B.prototype))}return INTRINSICS[$]=I,I},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$1=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function M($){var I=$strSlice($,0,1),N=$strSlice($,-1);if(I==="%"&&N!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&I!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var B=[];return $replace$1($,rePropName,function(j,U,q,Y){B[B.length]=q?$replace$1(Y,reEscapeChar,"$1"):U||j}),B},getBaseIntrinsic=function M($,I){var N=$,B;if(hasOwn$1(LEGACY_ALIASES,N)&&(B=LEGACY_ALIASES[N],N="%"+B[0]+"%"),hasOwn$1(INTRINSICS,N)){var j=INTRINSICS[N];if(j===needsEval&&(j=doEval(N)),typeof j>"u"&&!I)throw new $TypeError$1("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:B,name:N,value:j}}throw new $SyntaxError("intrinsic "+$+" does not exist!")},getIntrinsic=function M($,I){if(typeof $!="string"||$.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,$)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=stringToPath($),B=N.length>0?N[0]:"",j=getBaseIntrinsic("%"+B+"%",I),U=j.name,q=j.value,Y=!1,K=j.alias;K&&(B=K[0],$spliceApply(N,$concat$1([0,1],K)));for(var G=1,J=!0;G<N.length;G+=1){var Z=N[G],ee=$strSlice(Z,0,1),te=$strSlice(Z,-1);if((ee==='"'||ee==="'"||ee==="`"||te==='"'||te==="'"||te==="`")&&ee!==te)throw new $SyntaxError("property names with quotes must have matching quotes");if((Z==="constructor"||!J)&&(Y=!0),B+="."+Z,U="%"+B+"%",hasOwn$1(INTRINSICS,U))q=INTRINSICS[U];else if(q!=null){if(!(Z in q)){if(!I)throw new $TypeError$1("base intrinsic for "+$+" exists, but the property is not available.");return}if($gOPD&&G+1>=N.length){var re=$gOPD(q,Z);J=!!re,J&&"get"in re&&!("originalValue"in re.get)?q=re.get:q=q[Z]}else J=hasOwn$1(q,Z),q=q[Z];J&&!Y&&(INTRINSICS[U]=q)}}return q},callBind$1={exports:{}};(function(M){var $=functionBind,I=getIntrinsic,N=I("%Function.prototype.apply%"),B=I("%Function.prototype.call%"),j=I("%Reflect.apply%",!0)||$.call(B,N),U=I("%Object.getOwnPropertyDescriptor%",!0),q=I("%Object.defineProperty%",!0),Y=I("%Math.max%");if(q)try{q({},"a",{value:1})}catch{q=null}M.exports=function(J){var Z=j($,B,arguments);if(U&&q){var ee=U(Z,"length");ee.configurable&&q(Z,"length",{value:1+Y(0,J.length-(arguments.length-1))})}return Z};var K=function(){return j($,N,arguments)};q?q(M.exports,"apply",{value:K}):M.exports.apply=K})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function M($,I){var N=GetIntrinsic$1($,!!I);return typeof N=="function"&&$indexOf($,".prototype.")>-1?callBind(N):N},hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(M){return M.__proto__}:null);function addNumericSeparator(M,$){if(M===1/0||M===-1/0||M!==M||M&&M>-1e3&&M<1e3||$test.call(/e/,$))return $;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof M=="number"){var N=M<0?-$floor(-M):$floor(M);if(N!==M){var B=String(N),j=$slice.call($,B.length+1);return $replace.call(B,I,"$&_")+"."+$replace.call($replace.call(j,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call($,I,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function M($,I,N,B){var j=I||{};if(has$3(j,"quoteStyle")&&j.quoteStyle!=="single"&&j.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(j,"maxStringLength")&&(typeof j.maxStringLength=="number"?j.maxStringLength<0&&j.maxStringLength!==1/0:j.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=has$3(j,"customInspect")?j.customInspect:!0;if(typeof U!="boolean"&&U!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(j,"indent")&&j.indent!==null&&j.indent!==" "&&!(parseInt(j.indent,10)===j.indent&&j.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(j,"numericSeparator")&&typeof j.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=j.numericSeparator;if(typeof $>"u")return"undefined";if($===null)return"null";if(typeof $=="boolean")return $?"true":"false";if(typeof $=="string")return inspectString($,j);if(typeof $=="number"){if($===0)return 1/0/$>0?"0":"-0";var Y=String($);return q?addNumericSeparator($,Y):Y}if(typeof $=="bigint"){var K=String($)+"n";return q?addNumericSeparator($,K):K}var G=typeof j.depth>"u"?5:j.depth;if(typeof N>"u"&&(N=0),N>=G&&G>0&&typeof $=="object")return isArray$5($)?"[Array]":"[Object]";var J=getIndent(j,N);if(typeof B>"u")B=[];else if(indexOf$1(B,$)>=0)return"[Circular]";function Z(we,Ae,ke){if(Ae&&(B=$arrSlice.call(B),B.push(Ae)),ke){var Oe={depth:j.depth};return has$3(j,"quoteStyle")&&(Oe.quoteStyle=j.quoteStyle),M(we,Oe,N+1,B)}return M(we,j,N+1,B)}if(typeof $=="function"&&!isRegExp$2($)){var ee=nameOf($),te=arrObjKeys($,Z);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+$join.call(te,", ")+" }":"")}if(isSymbol($)){var re=hasShammedSymbols?$replace.call(String($),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call($);return typeof $=="object"&&!hasShammedSymbols?markBoxed(re):re}if(isElement$1($)){for(var se="<"+$toLowerCase.call(String($.nodeName)),ne=$.attributes||[],le=0;le<ne.length;le++)se+=" "+ne[le].name+"="+wrapQuotes(quote(ne[le].value),"double",j);return se+=">",$.childNodes&&$.childNodes.length&&(se+="..."),se+="</"+$toLowerCase.call(String($.nodeName))+">",se}if(isArray$5($)){if($.length===0)return"[]";var ge=arrObjKeys($,Z);return J&&!singleLineValues(ge)?"["+indentedJoin(ge,J)+"]":"[ "+$join.call(ge,", ")+" ]"}if(isError($)){var ue=arrObjKeys($,Z);return!("cause"in Error.prototype)&&"cause"in $&&!isEnumerable.call($,"cause")?"{ ["+String($)+"] "+$join.call($concat.call("[cause]: "+Z($.cause),ue),", ")+" }":ue.length===0?"["+String($)+"]":"{ ["+String($)+"] "+$join.call(ue,", ")+" }"}if(typeof $=="object"&&U){if(inspectSymbol&&typeof $[inspectSymbol]=="function"&&utilInspect)return utilInspect($,{depth:G-N});if(U!=="symbol"&&typeof $.inspect=="function")return $.inspect()}if(isMap($)){var _e=[];return mapForEach&&mapForEach.call($,function(we,Ae){_e.push(Z(Ae,$,!0)+" => "+Z(we,$))}),collectionOf("Map",mapSize.call($),_e,J)}if(isSet($)){var fe=[];return setForEach&&setForEach.call($,function(we){fe.push(Z(we,$))}),collectionOf("Set",setSize.call($),fe,J)}if(isWeakMap($))return weakCollectionOf("WeakMap");if(isWeakSet($))return weakCollectionOf("WeakSet");if(isWeakRef($))return weakCollectionOf("WeakRef");if(isNumber$2($))return markBoxed(Z(Number($)));if(isBigInt($))return markBoxed(Z(bigIntValueOf.call($)));if(isBoolean$1($))return markBoxed(booleanValueOf.call($));if(isString$3($))return markBoxed(Z(String($)));if(!isDate$2($)&&!isRegExp$2($)){var me=arrObjKeys($,Z),ve=gPO?gPO($)===Object.prototype:$ instanceof Object||$.constructor===Object,xe=$ instanceof Object?"":"null prototype",oe=!ve&&toStringTag&&Object($)===$&&toStringTag in $?$slice.call(toStr($),8,-1):xe?"Object":"",ye=ve||typeof $.constructor!="function"?"":$.constructor.name?$.constructor.name+" ":"",be=ye+(oe||xe?"["+$join.call($concat.call([],oe||[],xe||[]),": ")+"] ":"");return me.length===0?be+"{}":J?be+"{"+indentedJoin(me,J)+"}":be+"{ "+$join.call(me,", ")+" }"}return String($)};function wrapQuotes(M,$,I){var N=(I.quoteStyle||$)==="double"?'"':"'";return N+M+N}function quote(M){return $replace.call(String(M),/"/g,""")}function isArray$5(M){return toStr(M)==="[object Array]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isDate$2(M){return toStr(M)==="[object Date]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isRegExp$2(M){return toStr(M)==="[object RegExp]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isError(M){return toStr(M)==="[object Error]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isString$3(M){return toStr(M)==="[object String]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isNumber$2(M){return toStr(M)==="[object Number]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isBoolean$1(M){return toStr(M)==="[object Boolean]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isSymbol(M){if(hasShammedSymbols)return M&&typeof M=="object"&&M instanceof Symbol;if(typeof M=="symbol")return!0;if(!M||typeof M!="object"||!symToString)return!1;try{return symToString.call(M),!0}catch{}return!1}function isBigInt(M){if(!M||typeof M!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(M),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(M){return M in this};function has$3(M,$){return hasOwn.call(M,$)}function toStr(M){return objectToString.call(M)}function nameOf(M){if(M.name)return M.name;var $=$match.call(functionToString.call(M),/^function\s*([\w$]+)/);return $?$[1]:null}function indexOf$1(M,$){if(M.indexOf)return M.indexOf($);for(var I=0,N=M.length;I<N;I++)if(M[I]===$)return I;return-1}function isMap(M){if(!mapSize||!M||typeof M!="object")return!1;try{mapSize.call(M);try{setSize.call(M)}catch{return!0}return M instanceof Map}catch{}return!1}function isWeakMap(M){if(!weakMapHas||!M||typeof M!="object")return!1;try{weakMapHas.call(M,weakMapHas);try{weakSetHas.call(M,weakSetHas)}catch{return!0}return M instanceof WeakMap}catch{}return!1}function isWeakRef(M){if(!weakRefDeref||!M||typeof M!="object")return!1;try{return weakRefDeref.call(M),!0}catch{}return!1}function isSet(M){if(!setSize||!M||typeof M!="object")return!1;try{setSize.call(M);try{mapSize.call(M)}catch{return!0}return M instanceof Set}catch{}return!1}function isWeakSet(M){if(!weakSetHas||!M||typeof M!="object")return!1;try{weakSetHas.call(M,weakSetHas);try{weakMapHas.call(M,weakMapHas)}catch{return!0}return M instanceof WeakSet}catch{}return!1}function isElement$1(M){return!M||typeof M!="object"?!1:typeof HTMLElement<"u"&&M instanceof HTMLElement?!0:typeof M.nodeName=="string"&&typeof M.getAttribute=="function"}function inspectString(M,$){if(M.length>$.maxStringLength){var I=M.length-$.maxStringLength,N="... "+I+" more character"+(I>1?"s":"");return inspectString($slice.call(M,0,$.maxStringLength),$)+N}var B=$replace.call($replace.call(M,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(B,"single",$)}function lowbyte(M){var $=M.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[$];return I?"\\"+I:"\\x"+($<16?"0":"")+$toUpperCase.call($.toString(16))}function markBoxed(M){return"Object("+M+")"}function weakCollectionOf(M){return M+" { ? }"}function collectionOf(M,$,I,N){var B=N?indentedJoin(I,N):$join.call(I,", ");return M+" ("+$+") {"+B+"}"}function singleLineValues(M){for(var $=0;$<M.length;$++)if(indexOf$1(M[$],`
- `)>=0)return!1;return!0}function getIndent(M,$){var I;if(M.indent===" ")I=" ";else if(typeof M.indent=="number"&&M.indent>0)I=$join.call(Array(M.indent+1)," ");else return null;return{base:I,prev:$join.call(Array($+1),I)}}function indentedJoin(M,$){if(M.length===0)return"";var I=`
- `+$.prev+$.base;return I+$join.call(M,","+I)+`
- `+$.prev}function arrObjKeys(M,$){var I=isArray$5(M),N=[];if(I){N.length=M.length;for(var B=0;B<M.length;B++)N[B]=has$3(M,B)?$(M[B],M):""}var j=typeof gOPS=="function"?gOPS(M):[],U;if(hasShammedSymbols){U={};for(var q=0;q<j.length;q++)U["$"+j[q]]=j[q]}for(var Y in M)has$3(M,Y)&&(I&&String(Number(Y))===Y&&Y<M.length||hasShammedSymbols&&U["$"+Y]instanceof Symbol||($test.call(/[^\w$]/,Y)?N.push($(Y,M)+": "+$(M[Y],M)):N.push(Y+": "+$(M[Y],M))));if(typeof gOPS=="function")for(var K=0;K<j.length;K++)isEnumerable.call(M,j[K])&&N.push("["+$(j[K])+"]: "+$(M[j[K]],M));return N}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect$1=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(M,$){for(var I=M,N;(N=I.next)!==null;I=N)if(N.key===$)return I.next=N.next,N.next=M.next,M.next=N,N},listGet=function(M,$){var I=listGetNode(M,$);return I&&I.value},listSet=function(M,$,I){var N=listGetNode(M,$);N?N.value=I:M.next={key:$,next:M.next,value:I}},listHas=function(M,$){return!!listGetNode(M,$)},sideChannel=function M(){var $,I,N,B={assert:function(j){if(!B.has(j))throw new $TypeError("Side channel does not contain "+inspect$1(j))},get:function(j){if($WeakMap&&j&&(typeof j=="object"||typeof j=="function")){if($)return $weakMapGet($,j)}else if($Map){if(I)return $mapGet(I,j)}else if(N)return listGet(N,j)},has:function(j){if($WeakMap&&j&&(typeof j=="object"||typeof j=="function")){if($)return $weakMapHas($,j)}else if($Map){if(I)return $mapHas(I,j)}else if(N)return listHas(N,j);return!1},set:function(j,U){$WeakMap&&j&&(typeof j=="object"||typeof j=="function")?($||($=new $WeakMap),$weakMapSet($,j,U)):$Map?(I||(I=new $Map),$mapSet(I,j,U)):(N||(N={key:{},next:null}),listSet(N,j,U))}};return B},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(M){return replace.call(M,percentTwenties,"+")},RFC3986:function(M){return String(M)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,hexTable=function(){for(var M=[],$=0;$<256;++$)M.push("%"+(($<16?"0":"")+$.toString(16)).toUpperCase());return M}(),compactQueue=function M($){for(;$.length>1;){var I=$.pop(),N=I.obj[I.prop];if(isArray$4(N)){for(var B=[],j=0;j<N.length;++j)typeof N[j]<"u"&&B.push(N[j]);I.obj[I.prop]=B}}},arrayToObject$1=function M($,I){for(var N=I&&I.plainObjects?Object.create(null):{},B=0;B<$.length;++B)typeof $[B]<"u"&&(N[B]=$[B]);return N},merge$2=function M($,I,N){if(!I)return $;if(typeof I!="object"){if(isArray$4($))$.push(I);else if($&&typeof $=="object")(N&&(N.plainObjects||N.allowPrototypes)||!has$2.call(Object.prototype,I))&&($[I]=!0);else return[$,I];return $}if(!$||typeof $!="object")return[$].concat(I);var B=$;return isArray$4($)&&!isArray$4(I)&&(B=arrayToObject$1($,N)),isArray$4($)&&isArray$4(I)?(I.forEach(function(j,U){if(has$2.call($,U)){var q=$[U];q&&typeof q=="object"&&j&&typeof j=="object"?$[U]=M(q,j,N):$.push(j)}else $[U]=j}),$):Object.keys(I).reduce(function(j,U){var q=I[U];return has$2.call(j,U)?j[U]=M(j[U],q,N):j[U]=q,j},B)},assign$1=function M($,I){return Object.keys(I).reduce(function(N,B){return N[B]=I[B],N},$)},decode=function(M,$,I){var N=M.replace(/\+/g," ");if(I==="iso-8859-1")return N.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(N)}catch{return N}},encode$2=function M($,I,N,B,j){if($.length===0)return $;var U=$;if(typeof $=="symbol"?U=Symbol.prototype.toString.call($):typeof $!="string"&&(U=String($)),N==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var q="",Y=0;Y<U.length;++Y){var K=U.charCodeAt(Y);if(K===45||K===46||K===95||K===126||K>=48&&K<=57||K>=65&&K<=90||K>=97&&K<=122||j===formats$2.RFC1738&&(K===40||K===41)){q+=U.charAt(Y);continue}if(K<128){q=q+hexTable[K];continue}if(K<2048){q=q+(hexTable[192|K>>6]+hexTable[128|K&63]);continue}if(K<55296||K>=57344){q=q+(hexTable[224|K>>12]+hexTable[128|K>>6&63]+hexTable[128|K&63]);continue}Y+=1,K=65536+((K&1023)<<10|U.charCodeAt(Y)&1023),q+=hexTable[240|K>>18]+hexTable[128|K>>12&63]+hexTable[128|K>>6&63]+hexTable[128|K&63]}return q},compact=function M($){for(var I=[{obj:{o:$},prop:"o"}],N=[],B=0;B<I.length;++B)for(var j=I[B],U=j.obj[j.prop],q=Object.keys(U),Y=0;Y<q.length;++Y){var K=q[Y],G=U[K];typeof G=="object"&&G!==null&&N.indexOf(G)===-1&&(I.push({obj:U,prop:K}),N.push(G))}return compactQueue(I),$},isRegExp$1=function M($){return Object.prototype.toString.call($)==="[object RegExp]"},isBuffer$1=function M($){return!$||typeof $!="object"?!1:!!($.constructor&&$.constructor.isBuffer&&$.constructor.isBuffer($))},combine=function M($,I){return[].concat($,I)},maybeMap=function M($,I){if(isArray$4($)){for(var N=[],B=0;B<$.length;B+=1)N.push(I($[B]));return N}return I($)},utils$4={arrayToObject:arrayToObject$1,assign:assign$1,combine,compact,decode,encode:encode$2,isBuffer:isBuffer$1,isRegExp:isRegExp$1,maybeMap,merge:merge$2},getSideChannel=sideChannel,utils$3=utils$4,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function M($){return $+"[]"},comma:"comma",indices:function M($,I){return $+"["+I+"]"},repeat:function M($){return $}},isArray$3=Array.isArray,push=Array.prototype.push,pushToArray=function(M,$){push.apply(M,isArray$3($)?$:[$])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$4={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$3.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function M($){return toISO.call($)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function M($){return typeof $=="string"||typeof $=="number"||typeof $=="boolean"||typeof $=="symbol"||typeof $=="bigint"},sentinel={},stringify$1=function M($,I,N,B,j,U,q,Y,K,G,J,Z,ee,te,re,se){for(var ne=$,le=se,ge=0,ue=!1;(le=le.get(sentinel))!==void 0&&!ue;){var _e=le.get($);if(ge+=1,typeof _e<"u"){if(_e===ge)throw new RangeError("Cyclic object value");ue=!0}typeof le.get(sentinel)>"u"&&(ge=0)}if(typeof Y=="function"?ne=Y(I,ne):ne instanceof Date?ne=J(ne):N==="comma"&&isArray$3(ne)&&(ne=utils$3.maybeMap(ne,function(Oe){return Oe instanceof Date?J(Oe):Oe})),ne===null){if(j)return q&&!te?q(I,defaults$4.encoder,re,"key",Z):I;ne=""}if(isNonNullishPrimitive(ne)||utils$3.isBuffer(ne)){if(q){var fe=te?I:q(I,defaults$4.encoder,re,"key",Z);return[ee(fe)+"="+ee(q(ne,defaults$4.encoder,re,"value",Z))]}return[ee(I)+"="+ee(String(ne))]}var me=[];if(typeof ne>"u")return me;var ve;if(N==="comma"&&isArray$3(ne))te&&q&&(ne=utils$3.maybeMap(ne,q)),ve=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(isArray$3(Y))ve=Y;else{var xe=Object.keys(ne);ve=K?xe.sort(K):xe}for(var oe=B&&isArray$3(ne)&&ne.length===1?I+"[]":I,ye=0;ye<ve.length;++ye){var be=ve[ye],we=typeof be=="object"&&typeof be.value<"u"?be.value:ne[be];if(!(U&&we===null)){var Ae=isArray$3(ne)?typeof N=="function"?N(oe,be):oe:oe+(G?"."+be:"["+be+"]");se.set($,ge);var ke=getSideChannel();ke.set(sentinel,se),pushToArray(me,M(we,Ae,N,B,j,U,N==="comma"&&te&&isArray$3(ne)?null:q,Y,K,G,J,Z,ee,te,re,ke))}}return me},normalizeStringifyOptions=function M($){if(!$)return defaults$4;if($.encoder!==null&&typeof $.encoder<"u"&&typeof $.encoder!="function")throw new TypeError("Encoder has to be a function.");var I=$.charset||defaults$4.charset;if(typeof $.charset<"u"&&$.charset!=="utf-8"&&$.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var N=formats$1.default;if(typeof $.format<"u"){if(!has$1.call(formats$1.formatters,$.format))throw new TypeError("Unknown format option provided.");N=$.format}var B=formats$1.formatters[N],j=defaults$4.filter;return(typeof $.filter=="function"||isArray$3($.filter))&&(j=$.filter),{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:defaults$4.addQueryPrefix,allowDots:typeof $.allowDots>"u"?defaults$4.allowDots:!!$.allowDots,charset:I,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:defaults$4.charsetSentinel,delimiter:typeof $.delimiter>"u"?defaults$4.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:defaults$4.encode,encoder:typeof $.encoder=="function"?$.encoder:defaults$4.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:defaults$4.encodeValuesOnly,filter:j,format:N,formatter:B,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:defaults$4.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:defaults$4.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:defaults$4.strictNullHandling}},stringify_1=function(M,$){var I=M,N=normalizeStringifyOptions($),B,j;typeof N.filter=="function"?(j=N.filter,I=j("",I)):isArray$3(N.filter)&&(j=N.filter,B=j);var U=[];if(typeof I!="object"||I===null)return"";var q;$&&$.arrayFormat in arrayPrefixGenerators?q=$.arrayFormat:$&&"indices"in $?q=$.indices?"indices":"repeat":q="indices";var Y=arrayPrefixGenerators[q];if($&&"commaRoundTrip"in $&&typeof $.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var K=Y==="comma"&&$&&$.commaRoundTrip;B||(B=Object.keys(I)),N.sort&&B.sort(N.sort);for(var G=getSideChannel(),J=0;J<B.length;++J){var Z=B[J];N.skipNulls&&I[Z]===null||pushToArray(U,stringify$1(I[Z],Z,Y,K,N.strictNullHandling,N.skipNulls,N.encode?N.encoder:null,N.filter,N.sort,N.allowDots,N.serializeDate,N.format,N.formatter,N.encodeValuesOnly,N.charset,G))}var ee=U.join(N.delimiter),te=N.addQueryPrefix===!0?"?":"";return N.charsetSentinel&&(N.charset==="iso-8859-1"?te+="utf8=%26%2310003%3B&":te+="utf8=%E2%9C%93&"),ee.length>0?te+ee:""},utils$2=utils$4,has=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$3={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$2.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(M){return M.replace(/&#(\d+);/g,function($,I){return String.fromCharCode(parseInt(I,10))})},parseArrayValue=function(M,$){return M&&typeof M=="string"&&$.comma&&M.indexOf(",")>-1?M.split(","):M},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function M($,I){var N={},B=I.ignoreQueryPrefix?$.replace(/^\?/,""):$,j=I.parameterLimit===1/0?void 0:I.parameterLimit,U=B.split(I.delimiter,j),q=-1,Y,K=I.charset;if(I.charsetSentinel)for(Y=0;Y<U.length;++Y)U[Y].indexOf("utf8=")===0&&(U[Y]===charsetSentinel?K="utf-8":U[Y]===isoSentinel&&(K="iso-8859-1"),q=Y,Y=U.length);for(Y=0;Y<U.length;++Y)if(Y!==q){var G=U[Y],J=G.indexOf("]="),Z=J===-1?G.indexOf("="):J+1,ee,te;Z===-1?(ee=I.decoder(G,defaults$3.decoder,K,"key"),te=I.strictNullHandling?null:""):(ee=I.decoder(G.slice(0,Z),defaults$3.decoder,K,"key"),te=utils$2.maybeMap(parseArrayValue(G.slice(Z+1),I),function(re){return I.decoder(re,defaults$3.decoder,K,"value")})),te&&I.interpretNumericEntities&&K==="iso-8859-1"&&(te=interpretNumericEntities(te)),G.indexOf("[]=")>-1&&(te=isArray$2(te)?[te]:te),has.call(N,ee)?N[ee]=utils$2.combine(N[ee],te):N[ee]=te}return N},parseObject=function(M,$,I,N){for(var B=N?$:parseArrayValue($,I),j=M.length-1;j>=0;--j){var U,q=M[j];if(q==="[]"&&I.parseArrays)U=[].concat(B);else{U=I.plainObjects?Object.create(null):{};var Y=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,K=parseInt(Y,10);!I.parseArrays&&Y===""?U={0:B}:!isNaN(K)&&q!==Y&&String(K)===Y&&K>=0&&I.parseArrays&&K<=I.arrayLimit?(U=[],U[K]=B):Y!=="__proto__"&&(U[Y]=B)}B=U}return B},parseKeys=function M($,I,N,B){if($){var j=N.allowDots?$.replace(/\.([^.[]+)/g,"[$1]"):$,U=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Y=N.depth>0&&U.exec(j),K=Y?j.slice(0,Y.index):j,G=[];if(K){if(!N.plainObjects&&has.call(Object.prototype,K)&&!N.allowPrototypes)return;G.push(K)}for(var J=0;N.depth>0&&(Y=q.exec(j))!==null&&J<N.depth;){if(J+=1,!N.plainObjects&&has.call(Object.prototype,Y[1].slice(1,-1))&&!N.allowPrototypes)return;G.push(Y[1])}return Y&&G.push("["+j.slice(Y.index)+"]"),parseObject(G,I,N,B)}},normalizeParseOptions=function M($){if(!$)return defaults$3;if($.decoder!==null&&$.decoder!==void 0&&typeof $.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof $.charset<"u"&&$.charset!=="utf-8"&&$.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=typeof $.charset>"u"?defaults$3.charset:$.charset;return{allowDots:typeof $.allowDots>"u"?defaults$3.allowDots:!!$.allowDots,allowPrototypes:typeof $.allowPrototypes=="boolean"?$.allowPrototypes:defaults$3.allowPrototypes,allowSparse:typeof $.allowSparse=="boolean"?$.allowSparse:defaults$3.allowSparse,arrayLimit:typeof $.arrayLimit=="number"?$.arrayLimit:defaults$3.arrayLimit,charset:I,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:defaults$3.charsetSentinel,comma:typeof $.comma=="boolean"?$.comma:defaults$3.comma,decoder:typeof $.decoder=="function"?$.decoder:defaults$3.decoder,delimiter:typeof $.delimiter=="string"||utils$2.isRegExp($.delimiter)?$.delimiter:defaults$3.delimiter,depth:typeof $.depth=="number"||$.depth===!1?+$.depth:defaults$3.depth,ignoreQueryPrefix:$.ignoreQueryPrefix===!0,interpretNumericEntities:typeof $.interpretNumericEntities=="boolean"?$.interpretNumericEntities:defaults$3.interpretNumericEntities,parameterLimit:typeof $.parameterLimit=="number"?$.parameterLimit:defaults$3.parameterLimit,parseArrays:$.parseArrays!==!1,plainObjects:typeof $.plainObjects=="boolean"?$.plainObjects:defaults$3.plainObjects,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:defaults$3.strictNullHandling}},parse$1=function(M,$){var I=normalizeParseOptions($);if(M===""||M===null||typeof M>"u")return I.plainObjects?Object.create(null):{};for(var N=typeof M=="string"?parseValues(M,I):M,B=I.plainObjects?Object.create(null):{},j=Object.keys(N),U=0;U<j.length;++U){var q=j[U],Y=parseKeys(q,N[q],I,typeof M=="string");B=utils$2.merge(B,Y,I)}return I.allowSparse===!0?B:utils$2.compact(B)},stringify=stringify_1,parse=parse$1,formats=formats$3,lib={formats,parse,stringify};const qs=getDefaultExportFromCjs(lib),_sfc_main$20={components:{AssetSelector:Selector,SvgIcon},props:{bard:{},config:Object,linkAttrs:Object},data(){return{linkType:"url",linkTypes:[{type:"url",title:__("URL")},{type:"entry",title:__("Entry")},{type:"asset",title:__("Asset")},{type:"mailto",title:__("Email")},{type:"tel",title:__("Phone")}],url:{},urlData:{},itemData:{},title:null,rel:null,targetBlank:null,showAssetSelector:!1,isLoading:!1}},computed:{visibleLinkTypes(){return this.linkTypes.filter(M=>!(M.type==="asset"&&!this.config.container))},displayValue(){switch(this.linkType){case"url":return this.url.url;case"entry":return this.itemData.entry?this.itemData.entry.title:null;case"asset":return this.itemData.asset?this.itemData.asset.basename:null;case"mailto":return this.urlData.mailto?this.urlData.mailto:null;case"tel":return this.urlData.tel?this.urlData.tel:null}},canCommit(){return!!this.url[this.linkType]},href(){return this.sanitizeLink(this.url[this.linkType])},defaultRel(){let M=[];return this.config.link_noopener&&M.push("noopener"),this.config.link_noreferrer&&M.push("noreferrer"),M.length?M.join(" "):null},relationshipConfig(){return{type:"entries",collections:this.collections,max_items:1}},itemDataUrl(){return cp_url("fieldtypes/relationship/data")+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return cp_url("fieldtypes/relationship")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},filtersUrl(){return cp_url("fieldtypes/relationship/filters")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},configParameter(){return utf8btoa(JSON.stringify(this.relationshipConfig))},collections(){return this.bard.meta.linkCollections},canHaveTarget(){return["url","entry","asset"].includes(this.linkType)}},watch:{linkType(){this.autofocus()},urlData:{deep:!0,handler(){["mailto","tel"].includes(this.linkType)&&this.setUrl(this.linkType,this.urlData[this.linkType]?`${this.linkType}:${this.urlData[this.linkType]}`:null)}}},created(){this.applyAttrs(this.linkAttrs),this.bard.$on("link-selected",this.applyAttrs),this.bard.$on("link-deselected",()=>this.$emit("deselected"))},mounted(){this.autofocus()},beforeDestroy(){this.bard.$off("link-selected"),this.bard.$off("link-deselected")},methods:{applyAttrs(M){this.linkType=this.getLinkTypeForUrl(M.href),this.url={[this.linkType]:M.href},this.urlData={[this.linkType]:this.getUrlDataForUrl(M.href)},this.itemData={[this.linkType]:this.getItemDataForUrl(M.href)},this.title=M.title,this.rel=M.href?M.rel:this.defaultRel,this.targetBlank=M.href?M.target==="_blank":this.config.target_blank},autofocus(){this.linkType==="url"&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.urlInput.focus()},50)})},setUrl(M,$){this.url={...this.url,[M]:$}},setItemData(M,$){this.itemData={...this.itemData,[M]:$}},remove(){this.$emit("updated",{href:null})},commit(){if(!this.href)return this.remove();this.$emit("updated",{href:this.href,rel:this.rel,target:this.canHaveTarget&&this.targetBlank?"_blank":null,title:this.title})},sanitizeLink(M){const $=M.trim();return $.match(/^\w[\w\-_\.]+\.(co|uk|com|org|net|gov|biz|info|us|eu|de|fr|it|es|pl|nz)/i)?`https://${$}`:$},openSelector(){this.linkType==="entry"?this.openEntrySelector():this.linkType==="asset"&&this.openAssetSelector()},openEntrySelector(){this.$refs.relationshipInput.$refs.existing.click()},openAssetSelector(){this.showAssetSelector=!0},closeAssetSelector(){this.showAssetSelector=!1},assetSelected(M){M.length&&this.loadAssetData(M[0])},loadAssetData(M){this.$axios.post(cp_url("assets-fieldtype"),{assets:[M]}).then($=>{this.selectItem("asset",$.data[0]),this.isLoading=!1})},entrySelected(M){M.length&&this.selectItem("entry",M[0])},selectItem(M,$){const I=`${M}::${$.id}`;this.setItemData(M,$),this.setUrl(M,`statamic://${I}`),this.putItemDataIntoMeta(I,$)},putItemDataIntoMeta(M,$){let I=this.bard.meta;I.linkData[M]=$,this.bard.updateMeta(I)},getLinkTypeForUrl(M){const{type:$}=this.parseDataUrl(M);if($)return $;const I=M?M.match(/^(mailto|tel):(.*)$/):null;return I?I[1]:"url"},getUrlDataForUrl(M){const $=M?M.match(/^(mailto|tel):(.*)$/):null;return $?$[2]:null},getItemDataForUrl(M){const{ref:$}=this.parseDataUrl(M);return $?this.bard.meta.linkData[$]:null},parseDataUrl(M){if(!M)return{};const $=/^statamic:\/\/((.*?)::(.*))$/,I=M.match($);if(!I)return{};const[N,B,j,U]=I;return{ref:B,type:j,id:U}}}};var _sfc_render$20=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bard-link-toolbar"},[I("div",[I("div",{staticClass:"px-4 py-4 border-b"},[I("div",{staticClass:"flex"},[I("div",{staticClass:"h-8 mb-4 bg-gray-100 text-gray-800 border rounded shadow-inner flex items-center rtl:ml-1 ltr:mr-1"},[I("select",{directives:[{name:"model",rawName:"v-model",value:$.linkType,expression:"linkType"}],staticClass:"input w-auto text-sm px-1",on:{change:function(N){var B=Array.prototype.filter.call(N.target.options,function(j){return j.selected}).map(function(j){var U="_value"in j?j._value:j.value;return U});$.linkType=N.target.multiple?B:B[0]}}},$._l($.visibleLinkTypes,function(N){return I("option",{domProps:{value:N.type}},[$._v(" "+$._s(N.title)+" ")])}),0)]),I("div",{staticClass:"h-8 mb-4 p-2 bg-gray-100 text-gray-800 w-full border rounded shadow-inner placeholder:text-gray-600 flex items-center"},[$.linkType==="url"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.url.url,expression:"url.url"}],ref:"urlInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:$.__("URL")},domProps:{value:$.url.url},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.url,"url",N.target.value)}}}):$.linkType==="mailto"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.urlData.mailto,expression:"urlData.mailto"}],ref:"mailtoInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:$.__("Email Address")},domProps:{value:$.urlData.mailto},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.urlData,"mailto",N.target.value)}}}):$.linkType==="tel"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.urlData.tel,expression:"urlData.tel"}],ref:"telInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:"Phone Number"},domProps:{value:$.urlData.tel},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.urlData,"tel",N.target.value)}}}):I("div",{staticClass:"w-full flex items-center justify-between cursor-pointer",on:{click:$.openSelector}},[$.isLoading?I("loading-graphic",{attrs:{inline:!0}}):I("div",{staticClass:"flex-1 flex items-center rtl:ml-2 ltr:mr-2 truncate"},[$.linkType==="asset"&&$.itemData.asset&&$.itemData.isImage?I("img",{staticClass:"asset-thumbnail max-h-full max-w-full rounded w-6 h-6 rtl:ml-2 ltr:mr-2 object-cover lazyloaded",attrs:{src:$.itemData.asset.thumbnail||$.itemData.asset.url}}):$._e(),$._v(" "+$._s($.displayValue)+" ")]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:`${$.__("Browse")}...`,expression:"`${__('Browse')}...`"}],staticClass:"flex items-center",attrs:{"aria-label":`${$.__("Browse")}...`},on:{click:$.openSelector}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.linkType==="asset",expression:"linkType === 'asset'"}],staticClass:"h-4 w-4",attrs:{name:"folder-image"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.linkType!=="asset",expression:"linkType !== 'asset'"}],staticClass:"h-4 w-4",attrs:{name:"folder-generic"}})],1)],1)])]),I("div",{staticClass:"h-8 mb-4 p-2 bg-gray-100 text-gray-800 w-full border rounded shadow-inner placeholder:text-gray-600 flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],ref:"input",staticClass:"input h-auto text-sm placeholder-gray-50",attrs:{type:"text",placeholder:`${$.__("Label")} (${$.__("Optional")})`},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}})]),I("div",{staticClass:"h-8 p-2 bg-gray-100 text-gray-800 w-full border rounded shadow-inner placeholder:text-gray-600 flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.rel,expression:"rel"}],ref:"input",staticClass:"input h-auto text-sm placeholder-gray-50",attrs:{type:"text",placeholder:`${$.__("Relationship")} (${$.__("Optional")})`},domProps:{value:$.rel},on:{input:function(N){N.target.composing||($.rel=N.target.value)}}})]),$.canHaveTarget?I("label",{staticClass:"mt-4 flex items-center font-normal cursor-pointer text-gray-800 hover:text-black",attrs:{for:"target-blank"}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.targetBlank,expression:"targetBlank"}],staticClass:"checkbox rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox",id:"target-blank"},domProps:{checked:Array.isArray($.targetBlank)?$._i($.targetBlank,null)>-1:$.targetBlank},on:{change:function(N){var B=$.targetBlank,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.targetBlank=B.concat([q])):Y>-1&&($.targetBlank=B.slice(0,Y).concat(B.slice(Y+1)))}else $.targetBlank=U}}}),$._v(" "+$._s($.__("Open in new window"))+" ")]):$._e()]),I("footer",{staticClass:"bg-gray-100 rounded-b-md flex items-center justify-end space-x-3 font-normal p-2"},[I("button",{staticClass:"text-xs text-gray-600 hover:text-gray-800",on:{click:function(N){return $.$emit("canceled")}}},[$._v(" "+$._s($.__("Cancel"))+" ")]),I("button",{staticClass:"btn btn-sm",attrs:{"aria-label":$.__("Remove Link")},on:{click:$.remove}},[$._v(" "+$._s($.__("Remove Link"))+" ")]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Apply Link"),expression:"__('Apply Link')"}],staticClass:"btn btn-sm",attrs:{disabled:!$.canCommit,"aria-label":$.__("Apply Link")},on:{click:$.commit}},[$._v(" "+$._s($.__("Save"))+" ")])])]),I("relationship-input",{ref:"relationshipInput",staticClass:"hidden",attrs:{name:"link",value:[],config:$.relationshipConfig,"item-data-url":$.itemDataUrl,"selections-url":$.selectionsUrl,"filters-url":$.filtersUrl,columns:[{label:$.__("Title"),field:"title"}],"max-items":1,site:$.bard.site,search:!0},on:{loading:function(N){$.isLoading=N},"item-data-updated":$.entrySelected}}),$.showAssetSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeAssetSelector}},[I("asset-selector",{attrs:{container:$.config.container,folder:$.config.folder||"/","restrict-container-navigation":!0,"restrict-folder-navigation":$.config.restrict_assets,selected:[],"view-mode":"grid","max-files":1},on:{selected:$.assetSelected,closed:$.closeAssetSelector}})],1):$._e()],1)},_sfc_staticRenderFns$20=[],__component__$21=normalizeComponent$3(_sfc_main$20,_sfc_render$20,_sfc_staticRenderFns$20,!1,null,null,null,null);const LinkToolbar=__component__$21.exports,_sfc_main$1$={mixins:[BardToolbarButton],components:{LinkToolbar},data(){return{linkAttrs:null,showingToolbar:!1}},methods:{toggleLinkToolbar(){this.showingToolbar=!this.showingToolbar,this.showingToolbar?this.linkAttrs=this.editor.getAttributes("link"):this.editor.commands.focus()},close(){this.showingToolbar=!1,this.$refs.popover.close()},popoverClosed(){this.showingToolbar=!1},setLink(M){this.editor.chain().focus().setLink(M).run(),this.linkAttrs=null,this.close()}},created(){this.bard.$on("link-toggle",()=>{this.toggleLinkToolbar(),this.$refs.popover.toggle()})},beforeDestroy(){this.bard.$off("link-toggle")}};var _sfc_render$1$=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popover",attrs:{placement:"bottom-end",clickaway:!1},on:{closed:$.popoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.button.text,expression:"button.text"}],staticClass:"bard-toolbar-button",class:{active:$.active},attrs:{"aria-label":$.button.text},on:{click:$.toggleLinkToolbar}},[$.button.svg?I("svg-icon",{attrs:{name:$.button.svg}}):$._e()],1)]},proxy:!0},{key:"default",fn:function(){return[$.showingToolbar?I("link-toolbar",{ref:"toolbar",staticClass:"w-84",attrs:{"link-attrs":$.linkAttrs,config:$.config,bard:$.bard},on:{updated:$.setLink,canceled:$.close}}):$._e()]},proxy:!0}])})},_sfc_staticRenderFns$1$=[],__component__$20=normalizeComponent$3(_sfc_main$1$,_sfc_render$1$,_sfc_staticRenderFns$1$,!1,null,null,null,null);const LinkToolbarButton=__component__$20.exports,ManagesRowMeta={methods:{updateRowMeta(M,$){this.updateMeta({...this.meta,existing:{...this.meta.existing,[M]:clone($)}})},removeRowMeta(M){this.updateMeta({...this.meta,existing:_.omit(this.meta.existing,M)})}}},ManagesSetMeta={mixins:[ManagesRowMeta],methods:{updateSetMeta(M,$){this.updateRowMeta(M,$)},removeSetMeta(M){this.removeRowMeta(M)}}},availableButtons$1=()=>[{name:"h1",text:__("Heading 1"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:1},svg:"h1"},{name:"h2",text:__("Heading 2"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:2},svg:"h2"},{name:"h3",text:__("Heading 3"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:3},svg:"h3"},{name:"h4",text:__("Heading 4"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:4},svg:"h4"},{name:"h5",text:__("Heading 5"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:5},svg:"h5"},{name:"h6",text:__("Heading 6"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:6},svg:"h6"},{name:"bold",text:__("Bold"),command:M=>M.chain().focus().toggleBold().run(),svg:"text-bold"},{name:"italic",text:__("Italic"),command:M=>M.chain().focus().toggleItalic().run(),svg:"text-italic"},{name:"underline",text:__("Underline"),command:M=>M.chain().focus().toggleUnderline().run(),svg:"text-underline"},{name:"strikethrough",text:__("Strikethrough"),command:M=>M.chain().focus().toggleStrike().run(),activeName:"strike",svg:"text-strike-through"},{name:"small",text:__("Small"),command:M=>M.chain().focus().toggleSmall().run(),svg:"text-small"},{name:"unorderedlist",text:__("Unordered List"),command:M=>M.chain().focus().toggleBulletList().run(),activeName:"bulletList",svg:"list-ul"},{name:"orderedlist",text:__("Ordered List"),command:M=>M.chain().focus().toggleOrderedList().run(),activeName:"orderedList",svg:"list-ol"},{name:"removeformat",text:__("Remove Formatting"),command:M=>M.chain().focus().clearNodes().unsetAllMarks().run(),svg:"eraser"},{name:"quote",text:__("Blockquote"),command:M=>M.chain().focus().toggleBlockquote().run(),activeName:"blockquote",svg:"quote"},{name:"superscript",text:__("Superscript"),command:M=>M.chain().focus().toggleSuperscript().run(),svg:"superscript"},{name:"subscript",text:__("Subscript"),command:M=>M.chain().focus().toggleSubscript().run(),svg:"subscript"},{name:"anchor",text:__("Link"),command:M=>M.commands.setLink(),activeName:"link",svg:"insert-link",component:"LinkToolbarButton"},{name:"table",text:__("Table"),command:(M,$)=>M.commands.insertTable($),args:{rowsCount:3,colsCount:3,withHeaderRow:!1},svg:"add-table"},{name:"image",text:__("Image"),command:M=>M.commands.insertImage(),args:{src:""},svg:"insert-image",condition:M=>M.container},{name:"code",text:__("Inline Code"),command:M=>M.commands.toggleCode(),svg:"code-inline"},{name:"codeblock",text:__("Code Block"),command:M=>M.commands.toggleCodeBlock(),activeName:"codeBlock",svg:"code-block"},{name:"horizontalrule",text:__("Horizontal Rule"),command:M=>M.commands.setHorizontalRule(),activeName:"horizontalRule",svg:"subtract"},{name:"alignleft",text:__("Align Left"),command:M=>M.chain().focus().setTextAlign("left").run(),svg:"paragraph-align-left"},{name:"aligncenter",text:__("Align Center"),command:M=>M.chain().focus().setTextAlign("center").run(),svg:"paragraph-align-center"},{name:"alignright",text:__("Align Right"),command:M=>M.chain().focus().setTextAlign("right").run(),svg:"paragraph-align-right"},{name:"alignjustify",text:__("Align Justify"),command:M=>M.chain().focus().setTextAlign("justify").run(),svg:"paragraph-align-justified"}],addButtonHtml=M=>M.map($=>$),WORDS_PER_MIN=275,IMAGE_READ_TIME=12,CHINESE_KOREAN_READ_TIME=500,IMAGE_TAGS=["img","Image"];function imageCount(M,$){const N=`<(${M.join("|")})([\\w\\W]+?)[\\/]?>`,B=new RegExp(N,"g");return($.match(B)||[]).length}function imageReadTime(M=IMAGE_READ_TIME,$=IMAGE_TAGS,I){let N=0;const B=imageCount($,I);return B>10?N=B/2*(M+3)+(B-10)*3:N=B/2*(2*M+(1-B)),{time:N/60,count:B}}function wordsCount(M){const $="\\w+",I=new RegExp($,"g");return(M.match(I)||[]).length}function otherLanguageReadTime(M){const $="[-ヿ㐀-䶿一-鿿豈-ヲ-゚]",I=new RegExp($,"g"),N=(M.match(I)||[]).length,B=N/CHINESE_KOREAN_READ_TIME,j=M.replace(I,"");return{count:N,time:B,formattedString:j}}function wordsReadTime(M,$=WORDS_PER_MIN){const{count:I,time:N,formattedString:B}=otherLanguageReadTime(M),j=wordsCount(B),U=j/$;return{characterCount:I,otherLanguageTime:N,wordTime:U,wordCount:j}}function stripTags(M){const $=`<\\w+(\\s+("[^"]*"|\\'[^\\']*'|[^>])+)?>|<\\/\\w+>`,I=new RegExp($,"gi");return M.replace(I,"")}function stripWhitespace(M){return M.replace(/^\s+/,"").replace(/\s+$/,"")}function humanizeTime(M){return M<.5?"less than a minute":M>=.5&&M<1.5?"1 minute":`${Math.ceil(M)} minutes`}function readTime(M,$,I,N,B){const{time:j,count:U}=imageReadTime(I,B,M),q=stripTags(stripWhitespace(M)),{characterCount:Y,otherLanguageTime:K,wordTime:G,wordCount:J}=wordsReadTime(q,$);return{humanizedDuration:humanizeTime(j+G),duration:j+G,totalWords:J,wordTime:G,totalImages:U,imageTime:j,otherLanguageTimeCharacters:Y,otherLanguageTime:K}}function cPlusPlus(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="(?!struct)("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",te=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],re=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],se=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ne=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],ue={type:re,keyword:te,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:se},_e={className:"function.dispatch",relevance:0,keywords:{_hint:ne},begin:$.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,M.IDENT_RE,$.lookahead(/(<[^<>]+>|)\s*\(/))},fe=[_e,J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],me={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:ue,contains:fe.concat([{begin:/\(/,end:/\)/,keywords:ue,contains:fe.concat(["self"]),relevance:0}]),relevance:0},ve={className:"function",begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:ue,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:ue,relevance:0},{begin:ee,returnBegin:!0,contains:[Z],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[K,G]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:ue,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(me,ve,_e,fe,[J,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:ue,contains:["self",q]},{begin:M.IDENT_RE+"::",keywords:ue},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function arduino(M){const $={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},I=cPlusPlus(M),N=I.keywords;return N.type=[...N.type,...$.type],N.literal=[...N.literal,...$.literal],N.built_in=[...N.built_in,...$.built_in],N._hints=$._hints,I.name="Arduino",I.aliases=["ino"],I.supersetOf="cpp",I}function bash(M){const $=M.regex,I={},N={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[I]}]};Object.assign(I,{className:"variable",variants:[{begin:$.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},N]});const B={className:"subst",begin:/\$\(/,end:/\)/,contains:[M.BACKSLASH_ESCAPE]},j={begin:/<<-?\s*(?=\w+)/,starts:{contains:[M.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},U={className:"string",begin:/"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,I,B]};B.contains.push(U);const q={className:"",begin:/\\"/},Y={className:"string",begin:/'/,end:/'/},K={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},M.NUMBER_MODE,I]},G=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],J=M.SHEBANG({binary:`(${G.join("|")})`,relevance:10}),Z={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[M.inherit(M.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},ee=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],te=["true","false"],re={match:/(\/[a-z._-]+)+/},se=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],ne=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],le=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ge=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:ee,literal:te,built_in:[...se,...ne,"set","shopt",...le,...ge]},contains:[J,M.SHEBANG(),Z,K,M.HASH_COMMENT_MODE,j,re,U,q,Y,I]}}function c(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",se={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ne=[J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:se,contains:ne.concat([{begin:/\(/,end:/\)/,keywords:se,contains:ne.concat(["self"]),relevance:0}]),relevance:0},ge={begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:se,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:se,relevance:0},{begin:ee,returnBegin:!0,contains:[M.inherit(Z,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:se,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:se,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C",aliases:["h"],keywords:se,disableAutodetect:!0,illegal:"</",contains:[].concat(le,ge,ne,[J,{begin:M.IDENT_RE+"::",keywords:se},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},M.TITLE_MODE]}]),exports:{preprocessor:J,strings:K,keywords:se}}}function cpp(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="(?!struct)("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",te=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],re=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],se=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ne=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],ue={type:re,keyword:te,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:se},_e={className:"function.dispatch",relevance:0,keywords:{_hint:ne},begin:$.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,M.IDENT_RE,$.lookahead(/(<[^<>]+>|)\s*\(/))},fe=[_e,J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],me={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:ue,contains:fe.concat([{begin:/\(/,end:/\)/,keywords:ue,contains:fe.concat(["self"]),relevance:0}]),relevance:0},ve={className:"function",begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:ue,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:ue,relevance:0},{begin:ee,returnBegin:!0,contains:[Z],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[K,G]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:ue,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(me,ve,_e,fe,[J,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:ue,contains:["self",q]},{begin:M.IDENT_RE+"::",keywords:ue},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function csharp(M){const $=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],I=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],N=["default","false","null","true"],B=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],j=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],U={keyword:B.concat(j),built_in:$,literal:N},q=M.inherit(M.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),Y={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},K={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},G=M.inherit(K,{illegal:/\n/}),J={className:"subst",begin:/\{/,end:/\}/,keywords:U},Z=M.inherit(J,{illegal:/\n/}),ee={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},M.BACKSLASH_ESCAPE,Z]},te={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},J]},re=M.inherit(te,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},Z]});J.contains=[te,ee,K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,Y,M.C_BLOCK_COMMENT_MODE],Z.contains=[re,ee,G,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,Y,M.inherit(M.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const se={variants:[te,ee,K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},ne={begin:"<",end:">",contains:[{beginKeywords:"in out"},q]},le=M.IDENT_RE+"(<"+M.IDENT_RE+"(\\s*,\\s*"+M.IDENT_RE+")*>)?(\\[\\])?",ge={begin:"@"+M.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:U,illegal:/::/,contains:[M.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},se,Y,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},q,ne,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[q,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[q,ne,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+le+"\\s+)+"+M.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:U,contains:[{beginKeywords:I.join(" "),relevance:0},{begin:M.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[M.TITLE_MODE,ne],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,relevance:0,contains:[se,Y,M.C_BLOCK_COMMENT_MODE]},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},ge]}}const MODES$3=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$2=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function css$1(M){const $=M.regex,I=MODES$3(M),N={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},B="and or not only",j=/@-?\w[\w]*(-\w+)*/,U="[a-zA-Z-][a-zA-Z0-9_-]*",q=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[I.BLOCK_COMMENT,N,I.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+U,relevance:0},I.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+PSEUDO_CLASSES$2.join("|")+")"},{begin:":(:)?("+PSEUDO_ELEMENTS$2.join("|")+")"}]},I.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$2.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[I.BLOCK_COMMENT,I.HEXCOLOR,I.IMPORTANT,I.CSS_NUMBER_MODE,...q,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...q,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},I.FUNCTION_DISPATCH]},{begin:$.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:j},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:B,attribute:MEDIA_FEATURES$2.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...q,I.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TAGS$2.join("|")+")\\b"}]}}function diff$1(M){const $=M.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:$.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:$.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function go(M){const j={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:j,illegal:"</",contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{className:"string",variants:[M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:M.C_NUMBER_RE+"[i]",relevance:1},M.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[M.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:j,illegal:/["']/}]}]}}function graphql(M){const $=M.regex,I=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[M.HASH_COMMENT_MODE,M.QUOTE_STRING_MODE,M.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:$.concat(I,$.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function ini(M){const $=M.regex,I={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:M.NUMBER_RE}]},N=M.COMMENT();N.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const B={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},j={className:"literal",begin:/\bon|off|true|false|yes|no\b/},U={className:"string",contains:[M.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},q={begin:/\[/,end:/\]/,contains:[N,j,B,U,I,"self"],relevance:0},Y=/[A-Za-z0-9_-]+/,K=/"(\\"|[^"])*"/,G=/'[^']*'/,J=$.either(Y,K,G),Z=$.concat(J,"(\\s*\\.\\s*",J,")*",$.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[N,{className:"section",begin:/\[+/,end:/\]+/},{begin:Z,className:"attr",starts:{end:/$/,contains:[N,q,j,B,U,I]}}]}}var decimalDigits$1="[0-9](_*[0-9])*",frac$1=`\\.(${decimalDigits$1})`,hexDigits$1="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC$1={className:"number",variants:[{begin:`(\\b(${decimalDigits$1})((${frac$1})|\\.)?|(${frac$1}))[eE][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})((${frac$1})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits$1})\\.?|(${hexDigits$1})?\\.(${hexDigits$1}))[pP][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits$1})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function recurRegex(M,$,I){return I===-1?"":M.replace($,N=>recurRegex(M,$,I-1))}function java(M){const $=M.regex,I="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",N=I+recurRegex("(?:<"+I+"~~~(?:\\s*,\\s*"+I+"~~~)*>)?",/~~~/g,2),Y={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},K={className:"meta",begin:"@"+I,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},G={className:"params",begin:/\(/,end:/\)/,keywords:Y,relevance:0,contains:[M.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:Y,illegal:/<\/|#/,contains:[M.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[M.BACKSLASH_ESCAPE]},M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,I],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[$.concat(/(?!else)/,I),/\s+/,I,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,I],className:{1:"keyword",3:"title.class"},contains:[G,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+N+"\\s+)",M.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:Y,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:Y,relevance:0,contains:[K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,NUMERIC$1,M.C_BLOCK_COMMENT_MODE]},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},NUMERIC$1,K]}}const IDENT_RE$2="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS$1=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS$1=["true","false","null","undefined","NaN","Infinity"],TYPES$1=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES$1=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS$1=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES$1=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS$1=[].concat(BUILT_IN_GLOBALS$1,TYPES$1,ERROR_TYPES$1);function javascript$2(M){const $=M.regex,I=(Me,{after:ze})=>{const Fe="</"+Me[0].slice(1);return Me.input.indexOf(Fe,ze)!==-1},N=IDENT_RE$2,B={begin:"<>",end:"</>"},j=/<[A-Za-z0-9\\._:-]+\s*\/>/,U={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,ze)=>{const Fe=Me[0].length+Me.index,Ze=Me.input[Fe];if(Ze==="<"||Ze===","){ze.ignoreMatch();return}Ze===">"&&(I(Me,{after:Fe})||ze.ignoreMatch());let lt;const qe=Me.input.substring(Fe);if(lt=qe.match(/^\s*=/)){ze.ignoreMatch();return}if((lt=qe.match(/^\s+extends\s+/))&<.index===0){ze.ignoreMatch();return}}},q={$pattern:IDENT_RE$2,keyword:KEYWORDS$1,literal:LITERALS$1,built_in:BUILT_INS$1,"variable.language":BUILT_IN_VARIABLES$1},Y="[0-9](_?[0-9])*",K=`\\.(${Y})`,G="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",J={className:"number",variants:[{begin:`(\\b(${G})((${K})|\\.)?|(${K}))[eE][+-]?(${Y})\\b`},{begin:`\\b(${G})\\b((${K})\\b|\\.)?|(${K})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:q,contains:[]},ee={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},te={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},re={className:"string",begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE,Z]},ne={className:"comment",variants:[M.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:N+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),M.C_BLOCK_COMMENT_MODE,M.C_LINE_COMMENT_MODE]},le=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,re,{match:/\$\d+/},J];Z.contains=le.concat({begin:/\{/,end:/\}/,keywords:q,contains:["self"].concat(le)});const ge=[].concat(ne,Z.contains),ue=ge.concat([{begin:/\(/,end:/\)/,keywords:q,contains:["self"].concat(ge)}]),_e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue},fe={variants:[{match:[/class/,/\s+/,N,/\s+/,/extends/,/\s+/,$.concat(N,"(",$.concat(/\./,N),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,N],scope:{1:"keyword",3:"title.class"}}]},me={relevance:0,match:$.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES$1,...ERROR_TYPES$1]}},ve={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},xe={variants:[{match:[/function/,/\s+/,N,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_e],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(Me){return $.concat("(?!",Me.join("|"),")")}const be={match:$.concat(/\b/,ye([...BUILT_IN_GLOBALS$1,"super","import"]),N,$.lookahead(/\(/)),className:"title.function",relevance:0},we={begin:$.concat(/\./,$.lookahead($.concat(N,/(?![0-9A-Za-z$_(])/))),end:N,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,N,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_e]},ke="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+M.UNDERSCORE_IDENT_RE+")\\s*=>",Oe={match:[/const|var|let/,/\s+/,N,/\s*/,/=\s*/,/(async\s*)?/,$.lookahead(ke)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:q,exports:{PARAMS_CONTAINS:ue,CLASS_REFERENCE:me},illegal:/#(?![$_A-z])/,contains:[M.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,re,ne,{match:/\$\d+/},J,me,{className:"attr",begin:N+$.lookahead(":"),relevance:0},Oe,{begin:"("+M.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ne,M.REGEXP_MODE,{className:"function",begin:ke,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:M.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:B.begin,end:B.end},{match:j},{begin:U.begin,"on:begin":U.isTrulyOpeningTag,end:U.end}],subLanguage:"xml",contains:[{begin:U.begin,end:U.end,skip:!0,contains:["self"]}]}]},xe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+M.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_e,M.inherit(M.TITLE_MODE,{begin:N,className:"title.function"})]},{match:/\.\.\./,relevance:0},we,{match:"\\$"+N,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_e]},be,oe,fe,Ae,{match:/\$[(.]/}]}}function json(M){const $={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},I={match:/[{}[\],:]/,className:"punctuation",relevance:0},N=["true","false","null"],B={scope:"literal",beginKeywords:N.join(" ")};return{name:"JSON",keywords:{literal:N},contains:[$,I,M.QUOTE_STRING_MODE,B,M.C_NUMBER_MODE,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var decimalDigits="[0-9](_*[0-9])*",frac=`\\.(${decimalDigits})`,hexDigits="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC={className:"number",variants:[{begin:`(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function kotlin(M){const $={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},I={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},N={className:"symbol",begin:M.UNDERSCORE_IDENT_RE+"@"},B={className:"subst",begin:/\$\{/,end:/\}/,contains:[M.C_NUMBER_MODE]},j={className:"variable",begin:"\\$"+M.UNDERSCORE_IDENT_RE},U={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[j,B]},{begin:"'",end:"'",illegal:/\n/,contains:[M.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[M.BACKSLASH_ESCAPE,j,B]}]};B.contains.push(U);const q={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+M.UNDERSCORE_IDENT_RE+")?"},Y={className:"meta",begin:"@"+M.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[M.inherit(U,{className:"string"}),"self"]}]},K=NUMERIC,G=M.COMMENT("/\\*","\\*/",{contains:[M.C_BLOCK_COMMENT_MODE]}),J={variants:[{className:"type",begin:M.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},Z=J;return Z.variants[1].contains=[J],J.variants[1].contains=[Z],{name:"Kotlin",aliases:["kt","kts"],keywords:$,contains:[M.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),M.C_LINE_COMMENT_MODE,G,I,N,q,Y,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:$,relevance:5,contains:[{begin:M.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[M.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:$,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[J,M.C_LINE_COMMENT_MODE,G],relevance:0},M.C_LINE_COMMENT_MODE,G,q,Y,U,M.C_NUMBER_MODE]},G]},{begin:[/class|interface|trait/,/\s+/,M.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},M.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},q,Y]},U,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
- `},K]}}const MODES$2=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$1=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$1=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$1=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$1=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$1=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),PSEUDO_SELECTORS=PSEUDO_CLASSES$1.concat(PSEUDO_ELEMENTS$1);function less(M){const $=MODES$2(M),I=PSEUDO_SELECTORS,N="and or not only",B="[\\w-]+",j="("+B+"|@\\{"+B+"\\})",U=[],q=[],Y=function(ge){return{className:"string",begin:"~?"+ge+".*?"+ge}},K=function(ge,ue,_e){return{className:ge,begin:ue,relevance:_e}},G={$pattern:/[a-z-]+/,keyword:N,attribute:MEDIA_FEATURES$1.join(" ")},J={begin:"\\(",end:"\\)",contains:q,keywords:G,relevance:0};q.push(M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,Y("'"),Y('"'),$.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},$.HEXCOLOR,J,K("variable","@@?"+B,10),K("variable","@\\{"+B+"\\}"),K("built_in","~?`[^`]*?`"),{className:"attribute",begin:B+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},$.IMPORTANT,{beginKeywords:"and not"},$.FUNCTION_DISPATCH);const Z=q.concat({begin:/\{/,end:/\}/,contains:U}),ee={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(q)},te={begin:j+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},$.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$1.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:q}}]},re={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:G,returnEnd:!0,contains:q,relevance:0}},se={className:"variable",variants:[{begin:"@"+B+"\\s*:",relevance:15},{begin:"@"+B}],starts:{end:"[;}]",returnEnd:!0,contains:Z}},ne={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:j,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,ee,K("keyword","all\\b"),K("variable","@\\{"+B+"\\}"),{begin:"\\b("+TAGS$1.join("|")+")\\b",className:"selector-tag"},$.CSS_NUMBER_MODE,K("selector-tag",j,0),K("selector-id","#"+j),K("selector-class","\\."+j,0),K("selector-tag","&",0),$.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+PSEUDO_CLASSES$1.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PSEUDO_ELEMENTS$1.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Z},{begin:"!important"},$.FUNCTION_DISPATCH]},le={begin:B+`:(:)?(${I.join("|")})`,returnBegin:!0,contains:[ne]};return U.push(M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,re,se,le,te,ne,ee,$.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:U}}function lua(M){const $="\\[=*\\[",I="\\]=*\\]",N={begin:$,end:I,contains:["self"]},B=[M.COMMENT("--(?!"+$+")","$"),M.COMMENT("--"+$,I,{contains:[N],relevance:10})];return{name:"Lua",keywords:{$pattern:M.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:B.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[M.inherit(M.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:B}].concat(B)},M.C_NUMBER_MODE,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,{className:"string",begin:$,end:I,contains:[N],relevance:5}])}}function makefile(M){const $={className:"variable",variants:[{begin:"\\$\\("+M.UNDERSCORE_IDENT_RE+"\\)",contains:[M.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},I={className:"string",begin:/"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,$]},N={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[$]},B={begin:"^"+M.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},j={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},U={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[$]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[M.HASH_COMMENT_MODE,$,I,N,B,j,U]}}function markdown$2(M){const $=M.regex,I={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},N={begin:"^[-\\*]{3,}",end:"$"},B={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},j={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},U={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},q=/[A-Za-z][A-Za-z0-9+.-]*/,Y={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:$.concat(/\[.+?\]\(/,q,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},K={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},G={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},J=M.inherit(K,{contains:[]}),Z=M.inherit(G,{contains:[]});K.contains.push(Z),G.contains.push(J);let ee=[I,Y];return[K,G,J,Z].forEach(se=>{se.contains=se.contains.concat(ee)}),ee=ee.concat(K,G),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:ee},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:ee}]}]},I,j,K,G,{className:"quote",begin:"^>\\s+",contains:ee,end:"$"},B,N,Y,U]}}function objectivec(M){const $={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},I=/[a-zA-Z@][a-zA-Z0-9_]*/,q={"variable.language":["this","super"],$pattern:I,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},Y={$pattern:I,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:q,illegal:"</",contains:[$,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,M.C_NUMBER_MODE,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(M.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+Y.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:Y,contains:[M.UNDERSCORE_TITLE_MODE]},{begin:"\\."+M.UNDERSCORE_IDENT_RE,relevance:0}]}}function perl(M){const $=M.regex,I=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],N=/[dualxmsipngr]{0,12}/,B={$pattern:/[\w.]+/,keyword:I.join(" ")},j={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:B},U={begin:/->\{/,end:/\}/},q={variants:[{begin:/\$\d/},{begin:$.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},Y=[M.BACKSLASH_ESCAPE,j,q],K=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],G=(ee,te,re="\\1")=>{const se=re==="\\1"?re:$.concat(re,te);return $.concat($.concat("(?:",ee,")"),te,/(?:\\.|[^\\\/])*?/,se,/(?:\\.|[^\\\/])*?/,re,N)},J=(ee,te,re)=>$.concat($.concat("(?:",ee,")"),te,/(?:\\.|[^\\\/])*?/,re,N),Z=[q,M.HASH_COMMENT_MODE,M.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),U,{className:"string",contains:Y,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[M.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+M.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[M.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:G("s|tr|y",$.either(...K,{capture:!0}))},{begin:G("s|tr|y","\\(","\\)")},{begin:G("s|tr|y","\\[","\\]")},{begin:G("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:J("(?:m|qr)?",/\//,/\//)},{begin:J("m|qr",$.either(...K,{capture:!0}),/\1/)},{begin:J("m|qr",/\(/,/\)/)},{begin:J("m|qr",/\[/,/\]/)},{begin:J("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[M.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return j.contains=Z,U.contains=Z,{name:"Perl",aliases:["pl","pm"],keywords:B,contains:Z}}function php(M){const $=M.regex,I=/(?![A-Za-z0-9])(?![$])/,N=$.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,I),B=$.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,I),j={scope:"variable",match:"\\$+"+N},U={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},q={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},Y=M.inherit(M.APOS_STRING_MODE,{illegal:null}),K=M.inherit(M.QUOTE_STRING_MODE,{illegal:null,contains:M.QUOTE_STRING_MODE.contains.concat(q)}),G=M.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:M.QUOTE_STRING_MODE.contains.concat(q)}),J=`[
- ]`,Z={scope:"string",variants:[K,Y,G]},ee={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},te=["false","null","true"],re=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],se=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],le={keyword:re,literal:(be=>{const we=[];return be.forEach(Ae=>{we.push(Ae),Ae.toLowerCase()===Ae?we.push(Ae.toUpperCase()):we.push(Ae.toLowerCase())}),we})(te),built_in:se},ge=be=>be.map(we=>we.replace(/\|\d+$/,"")),ue={variants:[{match:[/new/,$.concat(J,"+"),$.concat("(?!",ge(se).join("\\b|"),"\\b)"),B],scope:{1:"keyword",4:"title.class"}}]},_e=$.concat(N,"\\b(?!\\()"),fe={variants:[{match:[$.concat(/::/,$.lookahead(/(?!class\b)/)),_e],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[B,$.concat(/::/,$.lookahead(/(?!class\b)/)),_e],scope:{1:"title.class",3:"variable.constant"}},{match:[B,$.concat("::",$.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[B,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},me={scope:"attr",match:$.concat(N,$.lookahead(":"),$.lookahead(/(?!::)/))},ve={relevance:0,begin:/\(/,end:/\)/,keywords:le,contains:[me,j,fe,M.C_BLOCK_COMMENT_MODE,Z,ee,ue]},xe={relevance:0,match:[/\b/,$.concat("(?!fn\\b|function\\b|",ge(re).join("\\b|"),"|",ge(se).join("\\b|"),"\\b)"),N,$.concat(J,"*"),$.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ve]};ve.contains.push(xe);const oe=[me,fe,M.C_BLOCK_COMMENT_MODE,Z,ee,ue],ye={begin:$.concat(/#\[\s*/,B),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:te,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:te,keyword:["new","array"]},contains:["self",...oe]},...oe,{scope:"meta",match:B}]};return{case_insensitive:!1,keywords:le,contains:[ye,M.HASH_COMMENT_MODE,M.COMMENT("//","$"),M.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:M.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},U,{scope:"variable.language",match:/\$this\b/},j,xe,fe,{match:[/const/,/\s/,N],scope:{1:"keyword",3:"variable.constant"}},ue,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},M.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:le,contains:["self",j,fe,M.C_BLOCK_COMMENT_MODE,Z,ee]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},M.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[M.inherit(M.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},M.UNDERSCORE_TITLE_MODE]},Z,ee]}}function phpTemplate(M){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},M.inherit(M.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),M.inherit(M.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function plaintext(M){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function python(M){const $=M.regex,I=/[\p{XID_Start}_]\p{XID_Continue}*/u,N=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],q={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:N,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},Y={className:"meta",begin:/^(>>>|\.\.\.) /},K={className:"subst",begin:/\{/,end:/\}/,keywords:q,illegal:/#/},G={begin:/\{\{/,relevance:0},J={className:"string",contains:[M.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[M.BACKSLASH_ESCAPE,Y],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[M.BACKSLASH_ESCAPE,Y],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[M.BACKSLASH_ESCAPE,Y,G,K]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[M.BACKSLASH_ESCAPE,Y,G,K]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[M.BACKSLASH_ESCAPE,G,K]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,G,K]},M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},Z="[0-9](_?[0-9])*",ee=`(\\b(${Z}))?\\.(${Z})|\\b(${Z})\\.`,te=`\\b|${N.join("|")}`,re={className:"number",relevance:0,variants:[{begin:`(\\b(${Z})|(${ee}))[eE][+-]?(${Z})[jJ]?(?=${te})`},{begin:`(${ee})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${te})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${te})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${te})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${te})`},{begin:`\\b(${Z})[jJ](?=${te})`}]},se={className:"comment",begin:$.lookahead(/# type:/),end:/$/,keywords:q,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},ne={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",Y,re,J,M.HASH_COMMENT_MODE]}]};return K.contains=[J,re,Y],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:q,illegal:/(<\/|->|\?)|=>/,contains:[Y,re,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},J,se,M.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,I],scope:{1:"keyword",3:"title.function"},contains:[ne]},{variants:[{match:[/\bclass/,/\s+/,I,/\s*/,/\(\s*/,I,/\s*\)/]},{match:[/\bclass/,/\s+/,I]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[re,ne,J]}]}}function pythonRepl(M){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function r(M){const $=M.regex,I=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,N=$.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),B=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,j=$.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:I,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[M.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:$.lookahead($.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:I},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),M.HASH_COMMENT_MODE,{scope:"string",contains:[M.BACKSLASH_ESCAPE],variants:[M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[B,N]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,N]},{scope:{1:"punctuation",2:"number"},match:[j,N]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,N]}]},{scope:{3:"operator"},match:[I,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:B},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:j},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function ruby$1(M){const $=M.regex,I="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",N=$.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),B=$.concat(N,/(::\w+)*/),U={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},q={className:"doctag",begin:"@[A-Za-z]+"},Y={begin:"#<",end:">"},K=[M.COMMENT("#","$",{contains:[q]}),M.COMMENT("^=begin","^=end",{contains:[q],relevance:10}),M.COMMENT("^__END__",M.MATCH_NOTHING_RE)],G={className:"subst",begin:/#\{/,end:/\}/,keywords:U},J={className:"string",contains:[M.BACKSLASH_ESCAPE,G],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:$.concat(/<<[-~]?'?/,$.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[M.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[M.BACKSLASH_ESCAPE,G]})]}]},Z="[1-9](_?[0-9])*|0",ee="[0-9](_?[0-9])*",te={className:"number",relevance:0,variants:[{begin:`\\b(${Z})(\\.(${ee}))?([eE][+-]?(${ee})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},re={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:U}]},fe=[J,{variants:[{match:[/class\s+/,B,/\s+<\s+/,B]},{match:[/\b(class|module)\s+/,B]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:U},{match:[/(include|extend)\s+/,B],scope:{2:"title.class"},keywords:U},{relevance:0,match:[B,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:N,scope:"title.class"},{match:[/def/,/\s+/,I],scope:{1:"keyword",3:"title.function"},contains:[re]},{begin:M.IDENT_RE+"::"},{className:"symbol",begin:M.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[J,{begin:I}],relevance:0},te,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:U},{begin:"("+M.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[M.BACKSLASH_ESCAPE,G],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(Y,K),relevance:0}].concat(Y,K);G.contains=fe,re.contains=fe;const me="[>?]>",ve="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",xe="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",oe=[{begin:/^\s*=>/,starts:{end:"$",contains:fe}},{className:"meta.prompt",begin:"^("+me+"|"+ve+"|"+xe+")(?=[ ])",starts:{end:"$",keywords:U,contains:fe}}];return K.unshift(Y),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:U,illegal:/\/\*/,contains:[M.SHEBANG({binary:"ruby"})].concat(oe).concat(K).concat(fe)}}function rust(M){const $=M.regex,I={className:"title.function.invoke",relevance:0,begin:$.concat(/\b/,/(?!let\b)/,M.IDENT_RE,$.lookahead(/\s*\(/))},N="([ui](8|16|32|64|128|size)|f(32|64))?",B=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],j=["true","false","Some","None","Ok","Err"],U=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],q=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:M.IDENT_RE+"!?",type:q,keyword:B,literal:j,built_in:U},illegal:"</",contains:[M.C_LINE_COMMENT_MODE,M.COMMENT("/\\*","\\*/",{contains:["self"]}),M.inherit(M.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+N},{begin:"\\b0o([0-7_]+)"+N},{begin:"\\b0x([A-Fa-f0-9_]+)"+N},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+N}],relevance:0},{begin:[/fn/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,M.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:M.IDENT_RE+"::",keywords:{keyword:"Self",built_in:U,type:q}},{className:"punctuation",begin:"->"},I]}}const MODES$1=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function scss(M){const $=MODES$1(M),I=PSEUDO_ELEMENTS,N=PSEUDO_CLASSES,B="@[a-z-]+",j="and or not only",q={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,$.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},$.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+TAGS.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+N.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+I.join("|")+")"},q,{begin:/\(/,end:/\)/,contains:[$.CSS_NUMBER_MODE]},$.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[$.BLOCK_COMMENT,q,$.HEXCOLOR,$.CSS_NUMBER_MODE,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,$.IMPORTANT,$.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:B,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:j,attribute:MEDIA_FEATURES.join(" ")},contains:[{begin:B,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},q,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,$.HEXCOLOR,$.CSS_NUMBER_MODE]},$.FUNCTION_DISPATCH]}}function shell(M){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sql(M){const $=M.regex,I=M.COMMENT("--","$"),N={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},B={begin:/"/,end:/"/,contains:[{begin:/""/}]},j=["true","false","unknown"],U=["double precision","large object","with timezone","without timezone"],q=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],Y=["add","asc","collation","desc","final","first","last","view"],K=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],G=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],J=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],Z=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],ee=G,te=[...K,...Y].filter(ge=>!G.includes(ge)),re={className:"variable",begin:/@[a-z0-9]+/},se={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},ne={begin:$.concat(/\b/,$.either(...ee),/\s*\(/),relevance:0,keywords:{built_in:ee}};function le(ge,{exceptions:ue,when:_e}={}){const fe=_e;return ue=ue||[],ge.map(me=>me.match(/\|\d+$/)||ue.includes(me)?me:fe(me)?`${me}|0`:me)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:le(te,{when:ge=>ge.length<3}),literal:j,type:q,built_in:J},contains:[{begin:$.either(...Z),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:te.concat(Z),literal:j,type:q}},{className:"type",begin:$.either(...U)},ne,re,N,B,M.C_NUMBER_MODE,M.C_BLOCK_COMMENT_MODE,I,se]}}function source$1(M){return M?typeof M=="string"?M:M.source:null}function lookahead$1(M){return concat$1("(?=",M,")")}function concat$1(...M){return M.map(I=>source$1(I)).join("")}function stripOptionsFromArgs$1(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either$1(...M){return"("+(stripOptionsFromArgs$1(M).capture?"":"?:")+M.map(N=>source$1(N)).join("|")+")"}const keywordWrapper=M=>concat$1(/\b/,M,/\w$/.test(M)?/\b/:/\B/),dotKeywords=["Protocol","Type"].map(keywordWrapper),optionalDotKeywords=["init","self"].map(keywordWrapper),keywordTypes=["Any","Self"],keywords=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],literals=["false","nil","true"],precedencegroupKeywords=["assignment","associativity","higherThan","left","lowerThan","none","right"],numberSignKeywords=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],builtIns=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],operatorHead=either$1(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),operatorCharacter=either$1(operatorHead,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),operator=concat$1(operatorHead,operatorCharacter,"*"),identifierHead=either$1(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),identifierCharacter=either$1(identifierHead,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),identifier=concat$1(identifierHead,identifierCharacter,"*"),typeIdentifier=concat$1(/[A-Z]/,identifierCharacter,"*"),keywordAttributes=["autoclosure",concat$1(/convention\(/,either$1("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",concat$1(/objc\(/,identifier,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],availabilityKeywords=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function swift(M){const $={match:/\s+/,relevance:0},I=M.COMMENT("/\\*","\\*/",{contains:["self"]}),N=[M.C_LINE_COMMENT_MODE,I],B={match:[/\./,either$1(...dotKeywords,...optionalDotKeywords)],className:{2:"keyword"}},j={match:concat$1(/\./,either$1(...keywords)),relevance:0},U=keywords.filter(Qt=>typeof Qt=="string").concat(["_|0"]),q=keywords.filter(Qt=>typeof Qt!="string").concat(keywordTypes).map(keywordWrapper),Y={variants:[{className:"keyword",match:either$1(...q,...optionalDotKeywords)}]},K={$pattern:either$1(/\b\w+/,/#\w+/),keyword:U.concat(numberSignKeywords),literal:literals},G=[B,j,Y],J={match:concat$1(/\./,either$1(...builtIns)),relevance:0},Z={className:"built_in",match:concat$1(/\b/,either$1(...builtIns),/(?=\()/)},ee=[J,Z],te={match:/->/,relevance:0},re={className:"operator",relevance:0,variants:[{match:operator},{match:`\\.(\\.|${operatorCharacter})+`}]},se=[te,re],ne="([0-9]_*)+",le="([0-9a-fA-F]_*)+",ge={className:"number",relevance:0,variants:[{match:`\\b(${ne})(\\.(${ne}))?([eE][+-]?(${ne}))?\\b`},{match:`\\b0x(${le})(\\.(${le}))?([pP][+-]?(${ne}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ue=(Qt="")=>({className:"subst",variants:[{match:concat$1(/\\/,Qt,/[0\\tnr"']/)},{match:concat$1(/\\/,Qt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_e=(Qt="")=>({className:"subst",match:concat$1(/\\/,Qt,/[\t ]*(?:[\r\n]|\r\n)/)}),fe=(Qt="")=>({className:"subst",label:"interpol",begin:concat$1(/\\/,Qt,/\(/),end:/\)/}),me=(Qt="")=>({begin:concat$1(Qt,/"""/),end:concat$1(/"""/,Qt),contains:[ue(Qt),_e(Qt),fe(Qt)]}),ve=(Qt="")=>({begin:concat$1(Qt,/"/),end:concat$1(/"/,Qt),contains:[ue(Qt),fe(Qt)]}),xe={className:"string",variants:[me(),me("#"),me("##"),me("###"),ve(),ve("#"),ve("##"),ve("###")]},oe={match:concat$1(/`/,identifier,/`/)},ye={className:"variable",match:/\$\d+/},be={className:"variable",match:`\\$${identifierCharacter}+`},we=[oe,ye,be],Ae={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:availabilityKeywords,contains:[...se,ge,xe]}]}},ke={className:"keyword",match:concat$1(/@/,either$1(...keywordAttributes))},Oe={className:"meta",match:concat$1(/@/,identifier)},Me=[Ae,ke,Oe],ze={match:lookahead$1(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:concat$1(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,identifierCharacter,"+")},{className:"type",match:typeIdentifier,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:concat$1(/\s+&\s+/,lookahead$1(typeIdentifier)),relevance:0}]},Fe={begin:/</,end:/>/,keywords:K,contains:[...N,...G,...Me,te,ze]};ze.contains.push(Fe);const Ze={match:concat$1(identifier,/\s*:/),keywords:"_|0",relevance:0},lt={begin:/\(/,end:/\)/,relevance:0,keywords:K,contains:["self",Ze,...N,...G,...ee,...se,ge,xe,...we,...Me,ze]},qe={begin:/</,end:/>/,contains:[...N,ze]},Ve={begin:either$1(lookahead$1(concat$1(identifier,/\s*:/)),lookahead$1(concat$1(identifier,/\s+/,identifier,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:identifier}]},At={begin:/\(/,end:/\)/,keywords:K,contains:[Ve,...N,...G,...se,ge,xe,...Me,ze,lt],endsParent:!0,illegal:/["']/},Nt={match:[/func/,/\s+/,either$1(oe.match,identifier,operator)],className:{1:"keyword",3:"title.function"},contains:[qe,At,$],illegal:[/\[/,/%/]},zt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[qe,At,$],illegal:/\[|%/},Ht={match:[/operator/,/\s+/,operator],className:{1:"keyword",3:"title"}},qt={begin:[/precedencegroup/,/\s+/,typeIdentifier],className:{1:"keyword",3:"title"},contains:[ze],keywords:[...precedencegroupKeywords,...literals],end:/}/};for(const Qt of xe.variants){const Jt=Qt.contains.find(_n=>_n.label==="interpol");Jt.keywords=K;const yn=[...G,...ee,...se,ge,xe,...we];Jt.contains=[...yn,{begin:/\(/,end:/\)/,contains:["self",...yn]}]}return{name:"Swift",keywords:K,contains:[...N,Nt,zt,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:K,contains:[M.inherit(M.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...G]},Ht,qt,{beginKeywords:"import",end:/$/,contains:[...N],relevance:0},...G,...ee,...se,ge,xe,...we,...Me,ze,lt]}}const IDENT_RE$1="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS=["true","false","null","undefined","NaN","Infinity"],TYPES=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS=[].concat(BUILT_IN_GLOBALS,TYPES,ERROR_TYPES);function javascript$1(M){const $=M.regex,I=(Me,{after:ze})=>{const Fe="</"+Me[0].slice(1);return Me.input.indexOf(Fe,ze)!==-1},N=IDENT_RE$1,B={begin:"<>",end:"</>"},j=/<[A-Za-z0-9\\._:-]+\s*\/>/,U={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,ze)=>{const Fe=Me[0].length+Me.index,Ze=Me.input[Fe];if(Ze==="<"||Ze===","){ze.ignoreMatch();return}Ze===">"&&(I(Me,{after:Fe})||ze.ignoreMatch());let lt;const qe=Me.input.substring(Fe);if(lt=qe.match(/^\s*=/)){ze.ignoreMatch();return}if((lt=qe.match(/^\s+extends\s+/))&<.index===0){ze.ignoreMatch();return}}},q={$pattern:IDENT_RE$1,keyword:KEYWORDS,literal:LITERALS,built_in:BUILT_INS,"variable.language":BUILT_IN_VARIABLES},Y="[0-9](_?[0-9])*",K=`\\.(${Y})`,G="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",J={className:"number",variants:[{begin:`(\\b(${G})((${K})|\\.)?|(${K}))[eE][+-]?(${Y})\\b`},{begin:`\\b(${G})\\b((${K})\\b|\\.)?|(${K})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:q,contains:[]},ee={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},te={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},re={className:"string",begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE,Z]},ne={className:"comment",variants:[M.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:N+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),M.C_BLOCK_COMMENT_MODE,M.C_LINE_COMMENT_MODE]},le=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,re,{match:/\$\d+/},J];Z.contains=le.concat({begin:/\{/,end:/\}/,keywords:q,contains:["self"].concat(le)});const ge=[].concat(ne,Z.contains),ue=ge.concat([{begin:/\(/,end:/\)/,keywords:q,contains:["self"].concat(ge)}]),_e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue},fe={variants:[{match:[/class/,/\s+/,N,/\s+/,/extends/,/\s+/,$.concat(N,"(",$.concat(/\./,N),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,N],scope:{1:"keyword",3:"title.class"}}]},me={relevance:0,match:$.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES,...ERROR_TYPES]}},ve={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},xe={variants:[{match:[/function/,/\s+/,N,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_e],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(Me){return $.concat("(?!",Me.join("|"),")")}const be={match:$.concat(/\b/,ye([...BUILT_IN_GLOBALS,"super","import"]),N,$.lookahead(/\(/)),className:"title.function",relevance:0},we={begin:$.concat(/\./,$.lookahead($.concat(N,/(?![0-9A-Za-z$_(])/))),end:N,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,N,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_e]},ke="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+M.UNDERSCORE_IDENT_RE+")\\s*=>",Oe={match:[/const|var|let/,/\s+/,N,/\s*/,/=\s*/,/(async\s*)?/,$.lookahead(ke)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:q,exports:{PARAMS_CONTAINS:ue,CLASS_REFERENCE:me},illegal:/#(?![$_A-z])/,contains:[M.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,re,ne,{match:/\$\d+/},J,me,{className:"attr",begin:N+$.lookahead(":"),relevance:0},Oe,{begin:"("+M.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ne,M.REGEXP_MODE,{className:"function",begin:ke,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:M.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:B.begin,end:B.end},{match:j},{begin:U.begin,"on:begin":U.isTrulyOpeningTag,end:U.end}],subLanguage:"xml",contains:[{begin:U.begin,end:U.end,skip:!0,contains:["self"]}]}]},xe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+M.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_e,M.inherit(M.TITLE_MODE,{begin:N,className:"title.function"})]},{match:/\.\.\./,relevance:0},we,{match:"\\$"+N,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_e]},be,oe,fe,Ae,{match:/\$[(.]/}]}}function typescript(M){const $=javascript$1(M),I=IDENT_RE$1,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],B={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[$.exports.CLASS_REFERENCE]},j={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[$.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},q=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],Y={$pattern:IDENT_RE$1,keyword:KEYWORDS.concat(q),literal:LITERALS,built_in:BUILT_INS.concat(N),"variable.language":BUILT_IN_VARIABLES},K={className:"meta",begin:"@"+I},G=(Z,ee,te)=>{const re=Z.contains.findIndex(se=>se.label===ee);if(re===-1)throw new Error("can not find mode to replace");Z.contains.splice(re,1,te)};Object.assign($.keywords,Y),$.exports.PARAMS_CONTAINS.push(K),$.contains=$.contains.concat([K,B,j]),G($,"shebang",M.SHEBANG()),G($,"use_strict",U);const J=$.contains.find(Z=>Z.label==="func.def");return J.relevance=0,Object.assign($,{name:"TypeScript",aliases:["ts","tsx"]}),$}function vbnet(M){const $=M.regex,I={className:"string",begin:/"(""|[^/n])"C\b/},N={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},B=/\d{1,2}\/\d{1,2}\/\d{4}/,j=/\d{4}-\d{1,2}-\d{1,2}/,U=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,q=/\d{1,2}(:\d{1,2}){1,2}/,Y={className:"literal",variants:[{begin:$.concat(/# */,$.either(j,B),/ *#/)},{begin:$.concat(/# */,q,/ *#/)},{begin:$.concat(/# */,U,/ *#/)},{begin:$.concat(/# */,$.either(j,B),/ +/,$.either(U,q),/ *#/)}]},K={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},G={className:"label",begin:/^\w+:/},J=M.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),Z=M.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[I,N,Y,K,G,J,Z,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[Z]}]}}function wasm(M){M.regex;const $=M.COMMENT(/\(;/,/;\)/);$.contains.push("self");const I=M.COMMENT(/;;/,/$/),N=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],B={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},j={className:"variable",begin:/\$[\w_]+/},U={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},q={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},Y={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},K={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:N},contains:[I,$,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},j,U,B,M.QUOTE_STRING_MODE,Y,K,q]}}function xml$1(M){const $=M.regex,I=$.concat(/[\p{L}_]/u,$.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),N=/[\p{L}0-9._:-]+/u,B={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},j={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},U=M.inherit(j,{begin:/\(/,end:/\)/}),q=M.inherit(M.APOS_STRING_MODE,{className:"string"}),Y=M.inherit(M.QUOTE_STRING_MODE,{className:"string"}),K={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:N,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[B]},{begin:/'/,end:/'/,contains:[B]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[j,Y,q,U,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[j,U,Y,q]}]}]},M.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},B,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[Y]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[K],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[K],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:$.concat(/</,$.lookahead($.concat(I,$.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:I,relevance:0,starts:K}]},{className:"tag",begin:$.concat(/<\//,$.lookahead($.concat(I,/>/))),contains:[{className:"name",begin:I,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function yaml$1(M){const $="true false yes no null",I="[\\w#;/?:@&=+$,.~*'()[\\]]+",N={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},B={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},j={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[M.BACKSLASH_ESCAPE,B]},U=M.inherit(j,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),q="[0-9]{4}(-[0-9][0-9]){0,2}",Y="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",K="(\\.[0-9]*)?",G="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",J={className:"number",begin:"\\b"+q+Y+K+G+"\\b"},Z={end:",",endsWithParent:!0,excludeEnd:!0,keywords:$,relevance:0},ee={begin:/\{/,end:/\}/,contains:[Z],illegal:"\\n",relevance:0},te={begin:"\\[",end:"\\]",contains:[Z],illegal:"\\n",relevance:0},re=[N,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+I},{className:"type",begin:"!<"+I+">"},{className:"type",begin:"!"+I},{className:"type",begin:"!!"+I},{className:"meta",begin:"&"+M.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+M.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},M.HASH_COMMENT_MODE,{beginKeywords:$,keywords:{literal:$}},J,{className:"number",begin:M.C_NUMBER_RE+"\\b",relevance:0},ee,te,j],se=[...re];return se.pop(),se.push(U),Z.contains=se,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:re}}var deepFreezeEs6={exports:{}};function deepFreeze(M){return M instanceof Map?M.clear=M.delete=M.set=function(){throw new Error("map is read-only")}:M instanceof Set&&(M.add=M.clear=M.delete=function(){throw new Error("set is read-only")}),Object.freeze(M),Object.getOwnPropertyNames(M).forEach(function($){var I=M[$];typeof I=="object"&&!Object.isFrozen(I)&&deepFreeze(I)}),M}deepFreezeEs6.exports=deepFreeze;deepFreezeEs6.exports.default=deepFreeze;class Response{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(M){return M.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(M,...$){const I=Object.create(null);for(const N in M)I[N]=M[N];return $.forEach(function(N){for(const B in N)I[B]=N[B]}),I}const SPAN_CLOSE="</span>",emitsWrappingTags=M=>!!M.scope||M.sublanguage&&M.language,scopeToCSSClass=(M,{prefix:$})=>{if(M.includes(".")){const I=M.split(".");return[`${$}${I.shift()}`,...I.map((N,B)=>`${N}${"_".repeat(B+1)}`)].join(" ")}return`${$}${M}`};class HTMLRenderer{constructor($,I){this.buffer="",this.classPrefix=I.classPrefix,$.walk(this)}addText($){this.buffer+=escapeHTML($)}openNode($){if(!emitsWrappingTags($))return;let I="";$.sublanguage?I=`language-${$.language}`:I=scopeToCSSClass($.scope,{prefix:this.classPrefix}),this.span(I)}closeNode($){emitsWrappingTags($)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}}const newNode=(M={})=>{const $={children:[]};return Object.assign($,M),$};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){const I=newNode({scope:$});this.add(I),this.stack.push(I)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,I){return typeof I=="string"?$.addText(I):I.children&&($.openNode(I),I.children.forEach(N=>this._walk($,N)),$.closeNode(I)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(I=>typeof I=="string")?$.children=[$.children.join("")]:$.children.forEach(I=>{TokenTree._collapse(I)}))}}class TokenTreeEmitter extends TokenTree{constructor($){super(),this.options=$}addKeyword($,I){$!==""&&(this.openNode(I),this.addText($),this.closeNode())}addText($){$!==""&&this.add($)}addSublanguage($,I){const N=$.root;N.sublanguage=!0,N.language=I,this.add(N)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return!0}}function source(M){return M?typeof M=="string"?M:M.source:null}function lookahead(M){return concat("(?=",M,")")}function anyNumberOfTimes(M){return concat("(?:",M,")*")}function optional(M){return concat("(?:",M,")?")}function concat(...M){return M.map(I=>source(I)).join("")}function stripOptionsFromArgs(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either(...M){return"("+(stripOptionsFromArgs(M).capture?"":"?:")+M.map(N=>source(N)).join("|")+")"}function countMatchGroups(M){return new RegExp(M.toString()+"|").exec("").length-1}function startsWith(M,$){const I=M&&M.exec($);return I&&I.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(M,{joinWith:$}){let I=0;return M.map(N=>{I+=1;const B=I;let j=source(N),U="";for(;j.length>0;){const q=BACKREF_RE.exec(j);if(!q){U+=j;break}U+=j.substring(0,q.index),j=j.substring(q.index+q[0].length),q[0][0]==="\\"&&q[1]?U+="\\"+String(Number(q[1])+B):(U+=q[0],q[0]==="("&&I++)}return U}).map(N=>`(${N})`).join($)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(M={})=>{const $=/^#![ ]*\//;return M.binary&&(M.begin=concat($,/.*\b/,M.binary,/\b.*/)),inherit$1({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(I,N)=>{I.index!==0&&N.ignoreMatch()}},M)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(M,$,I={}){const N=inherit$1({scope:"comment",begin:M,end:$,contains:[]},I);N.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const B=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return N.contains.push({begin:concat(/[ ]+/,"(",B,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),N},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(M){return Object.assign(M,{"on:begin":($,I)=>{I.data._beginMatch=$[1]},"on:end":($,I)=>{I.data._beginMatch!==$[1]&&I.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,MATCH_NOTHING_RE,IDENT_RE,UNDERSCORE_IDENT_RE,NUMBER_RE,C_NUMBER_RE,BINARY_NUMBER_RE,RE_STARTERS_RE,SHEBANG,BACKSLASH_ESCAPE,APOS_STRING_MODE,QUOTE_STRING_MODE,PHRASAL_WORDS_MODE,COMMENT,C_LINE_COMMENT_MODE,C_BLOCK_COMMENT_MODE,HASH_COMMENT_MODE,NUMBER_MODE,C_NUMBER_MODE,BINARY_NUMBER_MODE,REGEXP_MODE,TITLE_MODE,UNDERSCORE_TITLE_MODE,METHOD_GUARD,END_SAME_AS_BEGIN});function skipIfHasPrecedingDot(M,$){M.input[M.index-1]==="."&&$.ignoreMatch()}function scopeClassName(M,$){M.className!==void 0&&(M.scope=M.className,delete M.className)}function beginKeywords(M,$){$&&M.beginKeywords&&(M.begin="\\b("+M.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",M.__beforeBegin=skipIfHasPrecedingDot,M.keywords=M.keywords||M.beginKeywords,delete M.beginKeywords,M.relevance===void 0&&(M.relevance=0))}function compileIllegal(M,$){Array.isArray(M.illegal)&&(M.illegal=either(...M.illegal))}function compileMatch(M,$){if(M.match){if(M.begin||M.end)throw new Error("begin & end are not supported with match");M.begin=M.match,delete M.match}}function compileRelevance(M,$){M.relevance===void 0&&(M.relevance=1)}const beforeMatchExt=(M,$)=>{if(!M.beforeMatch)return;if(M.starts)throw new Error("beforeMatch cannot be used with starts");const I=Object.assign({},M);Object.keys(M).forEach(N=>{delete M[N]}),M.keywords=I.keywords,M.begin=concat(I.beforeMatch,lookahead(I.begin)),M.starts={relevance:0,contains:[Object.assign(I,{endsParent:!0})]},M.relevance=0,delete I.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(M,$,I=DEFAULT_KEYWORD_SCOPE){const N=Object.create(null);return typeof M=="string"?B(I,M.split(" ")):Array.isArray(M)?B(I,M):Object.keys(M).forEach(function(j){Object.assign(N,compileKeywords(M[j],$,j))}),N;function B(j,U){$&&(U=U.map(q=>q.toLowerCase())),U.forEach(function(q){const Y=q.split("|");N[Y[0]]=[j,scoreForKeyword(Y[0],Y[1])]})}}function scoreForKeyword(M,$){return $?Number($):commonKeyword(M)?0:1}function commonKeyword(M){return COMMON_KEYWORDS.includes(M.toLowerCase())}const seenDeprecations={},error$1=M=>{console.error(M)},warn$1=(M,...$)=>{console.log(`WARN: ${M}`,...$)},deprecated=(M,$)=>{seenDeprecations[`${M}/${$}`]||(console.log(`Deprecated as of ${M}. ${$}`),seenDeprecations[`${M}/${$}`]=!0)},MultiClassError=new Error;function remapScopeNames(M,$,{key:I}){let N=0;const B=M[I],j={},U={};for(let q=1;q<=$.length;q++)U[q+N]=B[q],j[q+N]=!0,N+=countMatchGroups($[q-1]);M[I]=U,M[I]._emit=j,M[I]._multi=!0}function beginMultiClass(M){if(Array.isArray(M.begin)){if(M.skip||M.excludeBegin||M.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof M.beginScope!="object"||M.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(M,M.begin,{key:"beginScope"}),M.begin=_rewriteBackreferences(M.begin,{joinWith:""})}}function endMultiClass(M){if(Array.isArray(M.end)){if(M.skip||M.excludeEnd||M.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof M.endScope!="object"||M.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(M,M.end,{key:"endScope"}),M.end=_rewriteBackreferences(M.end,{joinWith:""})}}function scopeSugar(M){M.scope&&typeof M.scope=="object"&&M.scope!==null&&(M.beginScope=M.scope,delete M.scope)}function MultiClass(M){scopeSugar(M),typeof M.beginScope=="string"&&(M.beginScope={_wrap:M.beginScope}),typeof M.endScope=="string"&&(M.endScope={_wrap:M.endScope}),beginMultiClass(M),endMultiClass(M)}function compileLanguage(M){function $(U,q){return new RegExp(source(U),"m"+(M.case_insensitive?"i":"")+(M.unicodeRegex?"u":"")+(q?"g":""))}class I{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(q,Y){Y.position=this.position++,this.matchIndexes[this.matchAt]=Y,this.regexes.push([Y,q]),this.matchAt+=countMatchGroups(q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const q=this.regexes.map(Y=>Y[1]);this.matcherRe=$(_rewriteBackreferences(q,{joinWith:"|"}),!0),this.lastIndex=0}exec(q){this.matcherRe.lastIndex=this.lastIndex;const Y=this.matcherRe.exec(q);if(!Y)return null;const K=Y.findIndex((J,Z)=>Z>0&&J!==void 0),G=this.matchIndexes[K];return Y.splice(0,K),Object.assign(Y,G)}}class N{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(q){if(this.multiRegexes[q])return this.multiRegexes[q];const Y=new I;return this.rules.slice(q).forEach(([K,G])=>Y.addRule(K,G)),Y.compile(),this.multiRegexes[q]=Y,Y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(q,Y){this.rules.push([q,Y]),Y.type==="begin"&&this.count++}exec(q){const Y=this.getMatcher(this.regexIndex);Y.lastIndex=this.lastIndex;let K=Y.exec(q);if(this.resumingScanAtSamePosition()&&!(K&&K.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,K=G.exec(q)}return K&&(this.regexIndex+=K.position+1,this.regexIndex===this.count&&this.considerAll()),K}}function B(U){const q=new N;return U.contains.forEach(Y=>q.addRule(Y.begin,{rule:Y,type:"begin"})),U.terminatorEnd&&q.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&q.addRule(U.illegal,{type:"illegal"}),q}function j(U,q){const Y=U;if(U.isCompiled)return Y;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(G=>G(U,q)),M.compilerExtensions.forEach(G=>G(U,q)),U.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(G=>G(U,q)),U.isCompiled=!0;let K=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),K=U.keywords.$pattern,delete U.keywords.$pattern),K=K||/\w+/,U.keywords&&(U.keywords=compileKeywords(U.keywords,M.case_insensitive)),Y.keywordPatternRe=$(K,!0),q&&(U.begin||(U.begin=/\B|\b/),Y.beginRe=$(Y.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(Y.endRe=$(Y.end)),Y.terminatorEnd=source(Y.end)||"",U.endsWithParent&&q.terminatorEnd&&(Y.terminatorEnd+=(U.end?"|":"")+q.terminatorEnd)),U.illegal&&(Y.illegalRe=$(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(G){return expandOrCloneMode(G==="self"?U:G)})),U.contains.forEach(function(G){j(G,Y)}),U.starts&&j(U.starts,q),Y.matcher=B(Y),Y}if(M.compilerExtensions||(M.compilerExtensions=[]),M.contains&&M.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return M.classNameAliases=inherit$1(M.classNameAliases||{}),j(M)}function dependencyOnParent(M){return M?M.endsWithParent||dependencyOnParent(M.starts):!1}function expandOrCloneMode(M){return M.variants&&!M.cachedVariants&&(M.cachedVariants=M.variants.map(function($){return inherit$1(M,{variants:null},$)})),M.cachedVariants?M.cachedVariants:dependencyOnParent(M)?inherit$1(M,{starts:M.starts?inherit$1(M.starts):null}):Object.isFrozen(M)?inherit$1(M):M}var version="11.7.0";class HTMLInjectionError extends Error{constructor($,I){super($),this.name="HTMLInjectionError",this.html=I}}const escape$1=escapeHTML,inherit=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(M){const $=Object.create(null),I=Object.create(null),N=[];let B=!0;const j="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function Y(Oe){return q.noHighlightRe.test(Oe)}function K(Oe){let Me=Oe.className+" ";Me+=Oe.parentNode?Oe.parentNode.className:"";const ze=q.languageDetectRe.exec(Me);if(ze){const Fe=xe(ze[1]);return Fe||(warn$1(j.replace("{}",ze[1])),warn$1("Falling back to no-highlight mode for this block.",Oe)),Fe?ze[1]:"no-highlight"}return Me.split(/\s+/).find(Fe=>Y(Fe)||xe(Fe))}function G(Oe,Me,ze){let Fe="",Ze="";typeof Me=="object"?(Fe=Oe,ze=Me.ignoreIllegals,Ze=Me.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),Ze=Oe,Fe=Me),ze===void 0&&(ze=!0);const lt={code:Fe,language:Ze};Ae("before:highlight",lt);const qe=lt.result?lt.result:J(lt.language,lt.code,ze);return qe.code=lt.code,Ae("after:highlight",qe),qe}function J(Oe,Me,ze,Fe){const Ze=Object.create(null);function lt(Ue,Qe){return Ue.keywords[Qe]}function qe(){if(!dn.keywords){Ye.addText(_t);return}let Ue=0;dn.keywordPatternRe.lastIndex=0;let Qe=dn.keywordPatternRe.exec(_t),mt="";for(;Qe;){mt+=_t.substring(Ue,Qe.index);const ht=On.case_insensitive?Qe[0].toLowerCase():Qe[0],at=lt(dn,ht);if(at){const[ut,Rt]=at;if(Ye.addText(mt),mt="",Ze[ht]=(Ze[ht]||0)+1,Ze[ht]<=MAX_KEYWORD_HITS&&(We+=Rt),ut.startsWith("_"))mt+=Qe[0];else{const fn=On.classNameAliases[ut]||ut;Ye.addKeyword(Qe[0],fn)}}else mt+=Qe[0];Ue=dn.keywordPatternRe.lastIndex,Qe=dn.keywordPatternRe.exec(_t)}mt+=_t.substring(Ue),Ye.addText(mt)}function Ve(){if(_t==="")return;let Ue=null;if(typeof dn.subLanguage=="string"){if(!$[dn.subLanguage]){Ye.addText(_t);return}Ue=J(dn.subLanguage,_t,!0,kt[dn.subLanguage]),kt[dn.subLanguage]=Ue._top}else Ue=ee(_t,dn.subLanguage.length?dn.subLanguage:null);dn.relevance>0&&(We+=Ue.relevance),Ye.addSublanguage(Ue._emitter,Ue.language)}function At(){dn.subLanguage!=null?Ve():qe(),_t=""}function Nt(Ue,Qe){let mt=1;const ht=Qe.length-1;for(;mt<=ht;){if(!Ue._emit[mt]){mt++;continue}const at=On.classNameAliases[Ue[mt]]||Ue[mt],ut=Qe[mt];at?Ye.addKeyword(ut,at):(_t=ut,qe(),_t=""),mt++}}function zt(Ue,Qe){return Ue.scope&&typeof Ue.scope=="string"&&Ye.openNode(On.classNameAliases[Ue.scope]||Ue.scope),Ue.beginScope&&(Ue.beginScope._wrap?(Ye.addKeyword(_t,On.classNameAliases[Ue.beginScope._wrap]||Ue.beginScope._wrap),_t=""):Ue.beginScope._multi&&(Nt(Ue.beginScope,Qe),_t="")),dn=Object.create(Ue,{parent:{value:dn}}),dn}function Ht(Ue,Qe,mt){let ht=startsWith(Ue.endRe,mt);if(ht){if(Ue["on:end"]){const at=new Response(Ue);Ue["on:end"](Qe,at),at.isMatchIgnored&&(ht=!1)}if(ht){for(;Ue.endsParent&&Ue.parent;)Ue=Ue.parent;return Ue}}if(Ue.endsWithParent)return Ht(Ue.parent,Qe,mt)}function qt(Ue){return dn.matcher.regexIndex===0?(_t+=Ue[0],1):($e=!0,0)}function Qt(Ue){const Qe=Ue[0],mt=Ue.rule,ht=new Response(mt),at=[mt.__beforeBegin,mt["on:begin"]];for(const ut of at)if(ut&&(ut(Ue,ht),ht.isMatchIgnored))return qt(Qe);return mt.skip?_t+=Qe:(mt.excludeBegin&&(_t+=Qe),At(),!mt.returnBegin&&!mt.excludeBegin&&(_t=Qe)),zt(mt,Ue),mt.returnBegin?0:Qe.length}function Jt(Ue){const Qe=Ue[0],mt=Me.substring(Ue.index),ht=Ht(dn,Ue,mt);if(!ht)return NO_MATCH;const at=dn;dn.endScope&&dn.endScope._wrap?(At(),Ye.addKeyword(Qe,dn.endScope._wrap)):dn.endScope&&dn.endScope._multi?(At(),Nt(dn.endScope,Ue)):at.skip?_t+=Qe:(at.returnEnd||at.excludeEnd||(_t+=Qe),At(),at.excludeEnd&&(_t=Qe));do dn.scope&&Ye.closeNode(),!dn.skip&&!dn.subLanguage&&(We+=dn.relevance),dn=dn.parent;while(dn!==ht.parent);return ht.starts&&zt(ht.starts,Ue),at.returnEnd?0:Qe.length}function yn(){const Ue=[];for(let Qe=dn;Qe!==On;Qe=Qe.parent)Qe.scope&&Ue.unshift(Qe.scope);Ue.forEach(Qe=>Ye.openNode(Qe))}let _n={};function Hn(Ue,Qe){const mt=Qe&&Qe[0];if(_t+=Ue,mt==null)return At(),0;if(_n.type==="begin"&&Qe.type==="end"&&_n.index===Qe.index&&mt===""){if(_t+=Me.slice(Qe.index,Qe.index+1),!B){const ht=new Error(`0 width match regex (${Oe})`);throw ht.languageName=Oe,ht.badRule=_n.rule,ht}return 1}if(_n=Qe,Qe.type==="begin")return Qt(Qe);if(Qe.type==="illegal"&&!ze){const ht=new Error('Illegal lexeme "'+mt+'" for mode "'+(dn.scope||"<unnamed>")+'"');throw ht.mode=dn,ht}else if(Qe.type==="end"){const ht=Jt(Qe);if(ht!==NO_MATCH)return ht}if(Qe.type==="illegal"&&mt==="")return 1;if(Se>1e5&&Se>Qe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _t+=mt,mt.length}const On=xe(Oe);if(!On)throw error$1(j.replace("{}",Oe)),new Error('Unknown language: "'+Oe+'"');const Fn=compileLanguage(On);let In="",dn=Fe||Fn;const kt={},Ye=new q.__emitter(q);yn();let _t="",We=0,Pe=0,Se=0,$e=!1;try{for(dn.matcher.considerAll();;){Se++,$e?$e=!1:dn.matcher.considerAll(),dn.matcher.lastIndex=Pe;const Ue=dn.matcher.exec(Me);if(!Ue)break;const Qe=Me.substring(Pe,Ue.index),mt=Hn(Qe,Ue);Pe=Ue.index+mt}return Hn(Me.substring(Pe)),Ye.closeAllNodes(),Ye.finalize(),In=Ye.toHTML(),{language:Oe,value:In,relevance:We,illegal:!1,_emitter:Ye,_top:dn}}catch(Ue){if(Ue.message&&Ue.message.includes("Illegal"))return{language:Oe,value:escape$1(Me),illegal:!0,relevance:0,_illegalBy:{message:Ue.message,index:Pe,context:Me.slice(Pe-100,Pe+100),mode:Ue.mode,resultSoFar:In},_emitter:Ye};if(B)return{language:Oe,value:escape$1(Me),illegal:!1,relevance:0,errorRaised:Ue,_emitter:Ye,_top:dn};throw Ue}}function Z(Oe){const Me={value:escape$1(Oe),illegal:!1,relevance:0,_top:U,_emitter:new q.__emitter(q)};return Me._emitter.addText(Oe),Me}function ee(Oe,Me){Me=Me||q.languages||Object.keys($);const ze=Z(Oe),Fe=Me.filter(xe).filter(ye).map(At=>J(At,Oe,!1));Fe.unshift(ze);const Ze=Fe.sort((At,Nt)=>{if(At.relevance!==Nt.relevance)return Nt.relevance-At.relevance;if(At.language&&Nt.language){if(xe(At.language).supersetOf===Nt.language)return 1;if(xe(Nt.language).supersetOf===At.language)return-1}return 0}),[lt,qe]=Ze,Ve=lt;return Ve.secondBest=qe,Ve}function te(Oe,Me,ze){const Fe=Me&&I[Me]||ze;Oe.classList.add("hljs"),Oe.classList.add(`language-${Fe}`)}function re(Oe){let Me=null;const ze=K(Oe);if(Y(ze))return;if(Ae("before:highlightElement",{el:Oe,language:ze}),Oe.children.length>0&&(q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Oe)),q.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",Oe.innerHTML);Me=Oe;const Fe=Me.textContent,Ze=ze?G(Fe,{language:ze,ignoreIllegals:!0}):ee(Fe);Oe.innerHTML=Ze.value,te(Oe,ze,Ze.language),Oe.result={language:Ze.language,re:Ze.relevance,relevance:Ze.relevance},Ze.secondBest&&(Oe.secondBest={language:Ze.secondBest.language,relevance:Ze.secondBest.relevance}),Ae("after:highlightElement",{el:Oe,result:Ze,text:Fe})}function se(Oe){q=inherit(q,Oe)}const ne=()=>{ue(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function le(){ue(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ge=!1;function ue(){if(document.readyState==="loading"){ge=!0;return}document.querySelectorAll(q.cssSelector).forEach(re)}function _e(){ge&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_e,!1);function fe(Oe,Me){let ze=null;try{ze=Me(M)}catch(Fe){if(error$1("Language definition for '{}' could not be registered.".replace("{}",Oe)),B)error$1(Fe);else throw Fe;ze=U}ze.name||(ze.name=Oe),$[Oe]=ze,ze.rawDefinition=Me.bind(null,M),ze.aliases&&oe(ze.aliases,{languageName:Oe})}function me(Oe){delete $[Oe];for(const Me of Object.keys(I))I[Me]===Oe&&delete I[Me]}function ve(){return Object.keys($)}function xe(Oe){return Oe=(Oe||"").toLowerCase(),$[Oe]||$[I[Oe]]}function oe(Oe,{languageName:Me}){typeof Oe=="string"&&(Oe=[Oe]),Oe.forEach(ze=>{I[ze.toLowerCase()]=Me})}function ye(Oe){const Me=xe(Oe);return Me&&!Me.disableAutodetect}function be(Oe){Oe["before:highlightBlock"]&&!Oe["before:highlightElement"]&&(Oe["before:highlightElement"]=Me=>{Oe["before:highlightBlock"](Object.assign({block:Me.el},Me))}),Oe["after:highlightBlock"]&&!Oe["after:highlightElement"]&&(Oe["after:highlightElement"]=Me=>{Oe["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function we(Oe){be(Oe),N.push(Oe)}function Ae(Oe,Me){const ze=Oe;N.forEach(function(Fe){Fe[ze]&&Fe[ze](Me)})}function ke(Oe){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),re(Oe)}Object.assign(M,{highlight:G,highlightAuto:ee,highlightAll:ue,highlightElement:re,highlightBlock:ke,configure:se,initHighlighting:ne,initHighlightingOnLoad:le,registerLanguage:fe,unregisterLanguage:me,listLanguages:ve,getLanguage:xe,registerAliases:oe,autoDetection:ye,inherit,addPlugin:we}),M.debugMode=function(){B=!1},M.safeMode=function(){B=!0},M.versionString=version,M.regex={concat,lookahead,either,optional,anyNumberOfTimes};for(const Oe in MODES)typeof MODES[Oe]=="object"&&deepFreezeEs6.exports(MODES[Oe]);return Object.assign(M,MODES),M};var highlight$1=HLJS({}),core=highlight$1;highlight$1.HighlightJS=highlight$1;highlight$1.default=highlight$1;const HighlightJS=getDefaultExportFromCjs(core);var format$1={exports:{}};(function(M){(function(){var $;$=M.exports=B,$.format=B,$.vsprintf=N,typeof console<"u"&&typeof console.log=="function"&&($.printf=I);function I(){console.log(B.apply(null,arguments))}function N(j,U){return B.apply(null,[j].concat(U))}function B(j){for(var U=1,q=[].slice.call(arguments),Y=0,K=j.length,G="",J,Z=!1,ee,te,re=!1,se,ne=function(){return q[U++]},le=function(){for(var ge="";/\d/.test(j[Y]);)ge+=j[Y++],J=j[Y];return ge.length>0?parseInt(ge):null};Y<K;++Y)if(J=j[Y],Z)switch(Z=!1,J=="."?(re=!1,J=j[++Y]):J=="0"&&j[Y+1]=="."?(re=!0,Y+=2,J=j[Y]):re=!0,se=le(),J){case"b":G+=parseInt(ne(),10).toString(2);break;case"c":ee=ne(),typeof ee=="string"||ee instanceof String?G+=ee:G+=String.fromCharCode(parseInt(ee,10));break;case"d":G+=parseInt(ne(),10);break;case"f":te=String(parseFloat(ne()).toFixed(se||6)),G+=re?te:te.replace(/^0/,"");break;case"j":G+=JSON.stringify(ne());break;case"o":G+="0"+parseInt(ne(),10).toString(8);break;case"s":G+=ne();break;case"x":G+="0x"+parseInt(ne(),10).toString(16);break;case"X":G+="0x"+parseInt(ne(),10).toString(16).toUpperCase();break;default:G+=J;break}else J==="%"?Z=!0:G+=J;return G}})()})(format$1);var formatExports=format$1.exports;const formatter=getDefaultExportFromCjs(formatExports),fault=Object.assign(create(Error),{eval:create(EvalError),range:create(RangeError),reference:create(ReferenceError),syntax:create(SyntaxError),type:create(TypeError),uri:create(URIError)});function create(M){return $.displayName=M.displayName||M.name,$;function $(I,...N){const B=I&&formatter(I,...N);return new M(B)}}const own={}.hasOwnProperty,defaultPrefix="hljs-";function highlight(M,$,I={}){let N=I.prefix;if(typeof M!="string")throw fault("Expected `string` for name, got `%s`",M);if(!HighlightJS.getLanguage(M))throw fault("Unknown language: `%s` is not registered",M);if(typeof $!="string")throw fault("Expected `string` for value, got `%s`",$);N==null&&(N=defaultPrefix),HighlightJS.configure({__emitter:HastEmitter,classPrefix:N});const B=HighlightJS.highlight($,{language:M,ignoreIllegals:!0});if(HighlightJS.configure({}),B.errorRaised)throw B.errorRaised;return B._emitter.root.data.language=B.language,B._emitter.root.data.relevance=B.relevance,B._emitter.root}function highlightAuto(M,$={}){const I=$.subset||HighlightJS.listLanguages();$.prefix;let N=-1,B={type:"root",data:{language:null,relevance:0},children:[]};if(typeof M!="string")throw fault("Expected `string` for value, got `%s`",M);for(;++N<I.length;){const j=I[N];if(!HighlightJS.getLanguage(j))continue;const U=highlight(j,M,$);U.data.relevance>B.data.relevance&&(B=U)}return B}function registerLanguage(M,$){HighlightJS.registerLanguage(M,$)}const registerAlias=function(M,$){if(typeof M=="string")HighlightJS.registerAliases($,{languageName:M});else{let I;for(I in M)own.call(M,I)&&HighlightJS.registerAliases(M[I],{languageName:I})}};function registered(M){return!!HighlightJS.getLanguage(M)}function listLanguages(){return HighlightJS.listLanguages()}class HastEmitter{constructor($){this.options=$,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText($){if($==="")return;const I=this.stack[this.stack.length-1],N=I.children[I.children.length-1];N&&N.type==="text"?N.value+=$:I.children.push({type:"text",value:$})}addKeyword($,I){this.openNode(I),this.addText($),this.closeNode()}addSublanguage($,I){const N=this.stack[this.stack.length-1],B=$.root.children;I?N.children.push({type:"element",tagName:"span",properties:{className:[I]},children:B}):N.children.push(...B)}openNode($){const I=$.split(".").map((j,U)=>U?j+"_".repeat(U):this.options.classPrefix+j),N=this.stack[this.stack.length-1],B={type:"element",tagName:"span",properties:{className:I},children:[]};N.children.push(B),this.stack.push(B)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const lowlight={highlight,highlightAuto,registerLanguage,registered,listLanguages,registerAlias};lowlight.registerLanguage("arduino",arduino);lowlight.registerLanguage("bash",bash);lowlight.registerLanguage("c",c);lowlight.registerLanguage("cpp",cpp);lowlight.registerLanguage("csharp",csharp);lowlight.registerLanguage("css",css$1);lowlight.registerLanguage("diff",diff$1);lowlight.registerLanguage("go",go);lowlight.registerLanguage("graphql",graphql);lowlight.registerLanguage("ini",ini);lowlight.registerLanguage("java",java);lowlight.registerLanguage("javascript",javascript$2);lowlight.registerLanguage("json",json);lowlight.registerLanguage("kotlin",kotlin);lowlight.registerLanguage("less",less);lowlight.registerLanguage("lua",lua);lowlight.registerLanguage("makefile",makefile);lowlight.registerLanguage("markdown",markdown$2);lowlight.registerLanguage("objectivec",objectivec);lowlight.registerLanguage("perl",perl);lowlight.registerLanguage("php",php);lowlight.registerLanguage("php-template",phpTemplate);lowlight.registerLanguage("plaintext",plaintext);lowlight.registerLanguage("python",python);lowlight.registerLanguage("python-repl",pythonRepl);lowlight.registerLanguage("r",r);lowlight.registerLanguage("ruby",ruby$1);lowlight.registerLanguage("rust",rust);lowlight.registerLanguage("scss",scss);lowlight.registerLanguage("shell",shell);lowlight.registerLanguage("sql",sql);lowlight.registerLanguage("swift",swift);lowlight.registerLanguage("typescript",typescript);lowlight.registerLanguage("vbnet",vbnet);lowlight.registerLanguage("wasm",wasm);lowlight.registerLanguage("xml",xml$1);lowlight.registerLanguage("yaml",yaml$1);const github="",_sfc_main$1_={mixins:[Fieldtype,ManagesSetMeta],components:{BubbleMenu,BardSource,BardToolbarButton,SetPicker,EditorContent,FloatingMenu,LinkToolbarButton},inject:["storeName"],data(){return{editor:null,html:null,json:[],showSource:!1,fullScreenMode:!1,buttons:[],collapsed:this.meta.collapsed,previews:this.meta.previews,mounted:!1,initError:null,pageHeader:null,escBinding:null,showAddSetButton:!1,provide:{bard:this.makeBardProvide(),storeName:this.storeName,bardSets:this.config.sets}}},computed:{allowSource(){return this.config.allow_source===void 0?!0:this.config.allow_source},toolbarIsFixed(){return this.config.toolbar_mode==="fixed"},toolbarIsFloating(){return this.config.toolbar_mode==="floating"},showFixedToolbar(){return this.toolbarIsFixed&&(this.visibleButtons.length>0||this.allowSource||this.hasExtraButtons)},hasExtraButtons(){return this.allowSource||this.setConfigs.length>0||this.config.fullscreen},readingTime(){if(this.html){var M=readTime(this.html,265,12,500,["img","Image","bard-set"]),$=moment.duration(M.duration,"minutes");return moment.utc($.asMilliseconds()).format("mm:ss")}},characterAndWordCountText(){const M=this.config.word_count,$=this.editor.storage.characterCount.words(),I=`${__n(":count word|:count words",$)}`,N=this.config.character_limit,B=N>0,j=this.editor.storage.characterCount.characters();if(B&&M)return`${I}, ${__(":count/:total characters",{count:j,total:N})}`;if(B)return`${j}/${N}`;if(M)return I},isFirstCreation(){return!this.$config.get("bard.meta").hasOwnProperty(this.id)},id(){return`${this.storeName}.${this.name}`},setIndexes(){let M={};return this.json.forEach(($,I)=>{$.type==="set"&&(M[$.attrs.id]=I)}),M},storeState(){if(this.storeName)return this.$store.state.publish[this.storeName]},site(){return this.storeState?this.storeState.site:this.$config.get("selectedSite")},htmlWithReplacedLinks(){return this.html.replaceAll(/\"statamic:\/\/(.*?)\"/g,(M,$)=>{const I=this.meta.linkData[$];return I?`"${I.permalink}"`:(this.$toast.error(`${__("No link data found for")} ${$}`),'""')})},setsWithErrors(){return this.storeState?Object.values(this.setIndexes).filter(M=>{const $=`${this.fieldPathPrefix||this.handle}.${M}.`;return Object.keys(this.storeState.errors).some(I=>I.startsWith($))}):[]},replicatorPreview(){if(!this.showFieldPreviews||!this.config.replicator_preview)return;const M=JSON.parse(this.value);let $="";for(;M.length;){const I=M.shift();if(I.type==="text")$+=` ${I.text||""}`;else if(I.type==="set"){const N=I.attrs.values.type,B=this.setConfigs.find(j=>j.handle===N);$+=` [${__(B?B.display:N)}]`}if($.length>150)break;I.content&&M.unshift(...I.content)}return $},inputIsInline(){return this.config.inline},wrapperClasses(){return`form-group publish-field publish-field__${this.handle} bard-fieldtype`},setConfigs(){return reduce(this.groupConfigs,(M,$)=>M.concat($.sets),[])},groupConfigs(){return this.config.sets}},mounted(){this.initToolbarButtons(),this.initEditor(),this.json=this.editor.getJSON().content,this.html=this.editor.getHTML(),this.escBinding=this.$keys.bind("esc",this.closeFullscreen),this.$nextTick(()=>{this.mounted=!0,this.config.collapse&&this.collapseAll()}),this.pageHeader=document.querySelector(".global-header"),this.$store.commit(`publish/${this.storeName}/setFieldSubmitsJson`,this.fieldPathPrefix||this.handle),this.$nextTick(()=>{let M=document.querySelector(`label[for="${this.fieldId}"]`);M&&M.addEventListener("click",()=>{this.editor.commands.focus()})})},beforeDestroy(){this.editor.destroy(),this.escBinding.destroy(),this.$store.commit(`publish/${this.storeName}/unsetFieldSubmitsJson`,this.fieldPathPrefix||this.handle)},watch:{json(M,$){if(!this.mounted)return;let I=JSON.stringify(M),N=JSON.stringify($);I!==N&&this.updateDebounced(I)},value(M,$){if(M===$)return;const I=this.editor.getJSON(),N=this.valueToContent(M);JSON.stringify(N)!==JSON.stringify(I)&&(this.editor.commands.clearContent(),this.editor.commands.setContent(N,!0))},readOnly(M){this.editor.setEditable(!this.readOnly)},collapsed(M){const $=this.meta;$.collapsed=M,this.updateMeta($)},previews:{deep:!0,handler(M){if(JSON.stringify(this.meta.previews)===JSON.stringify(M))return;const $=this.meta;$.previews=M,this.updateMeta($)}},fieldPathPrefix(M,$){this.$store.commit(`publish/${this.storeName}/unsetFieldSubmitsJson`,$),this.$nextTick(()=>{this.$store.commit(`publish/${this.storeName}/setFieldSubmitsJson`,M)})},fullScreenMode(){this.initEditor()}},methods:{addSet(M){const $=uniqid$1(),I=Object.assign({},{type:M},this.meta.defaults[M]);let N={};Object.keys(this.meta.defaults[M]).forEach(U=>N[U]=null),this.previews=Object.assign({},this.previews,{[$]:N}),this.updateSetMeta($,this.meta.new[M]);const{$head:B}=this.editor.view.state.selection,{nodeBefore:j}=B;this.$nextTick(()=>{j?this.editor.commands.setAt({attrs:{id:$,values:I},pos:B.pos}):this.editor.commands.set({id:$,values:I})})},duplicateSet(M,$,I){const N=uniqid$1(),B=$.enabled,j=Object.assign({},$.values);let U=Object.assign({},this.previews[M]);this.previews=Object.assign({},this.previews,{[N]:U}),this.updateSetMeta(N,this.meta.existing[M]),this.$nextTick(()=>{this.editor.commands.setAt({attrs:{id:N,enabled:B,values:j},pos:I})})},pasteSet(M){const $=M.id,I=uniqid$1(),N=M.enabled,B=Object.assign({},M.values);let j=Object.assign({},this.previews[$]||{});return this.previews=Object.assign({},this.previews,{[I]:j}),this.updateSetMeta(I,this.meta.existing[$]||this.meta.defaults[B.type]||{}),{id:I,enabled:N,values:B}},collapseSet(M){this.collapsed.includes(M)||this.collapsed.push(M)},expandSet(M){if(this.config.collapse==="accordion"){this.collapsed=Object.keys(this.meta.existing).filter(I=>I!==M);return}if(this.collapsed.includes(M)){var $=this.collapsed.indexOf(M);this.collapsed.splice($,1)}},collapseAll(){this.collapsed=Object.keys(this.meta.existing)},expandAll(){this.collapsed=[]},toggleCollapseSets(){this.collapsed.length===0?this.collapseAll():this.expandAll()},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode},closeFullscreen(){this.fullScreenMode=!1},shouldShowSetButton({view:M,state:$}){var K,G;const{selection:I}=$,{$anchor:N,empty:B}=I,j=N.depth===1,U=N.parent.isTextblock&&!N.parent.type.spec.code&&!N.parent.textContent,q=((K=$.selection.$to.nodeBefore)==null?void 0:K.type.name)==="image"||((G=$.selection.$to.nodeAfter)==null?void 0:G.type.name)==="image",Y=M.hasFocus()&&B&&j&&U&&!q;return this.setConfigs.length&&(this.config.always_show_set_button||Y)},initToolbarButtons(){const M=this.config.buttons||["h2","h3","bold","italic","unorderedlist","orderedlist","removeformat","quote","anchor","table"];M.includes("table")&&M.push("deletetable","addcolumnbefore","addcolumnafter","deletecolumn","addrowbefore","addrowafter","deleterow","togglecellmerge","toggleheadercell");let $=M.map(I=>_.findWhere(availableButtons$1(),{name:I.toLowerCase()})||I);this.$bard.buttonCallbacks.forEach(I=>{const B=I($,j=>M.includes(j.name)?j:null);B&&($=$.concat(Array.isArray(B)?B:[B]))}),$=$.filter(I=>!!I),$=$.filter(I=>typeof I!="string"),$=addButtonHtml($),$=$.filter(I=>I.condition?I.condition.call(null,this.config):!0),_.findWhere($,{name:"table"})&&$.push({name:"deletetable",text:__("Delete Table"),command:I=>I.commands.deleteTable(),svg:"delete-table",visibleWhenActive:"table"},{name:"addcolumnbefore",text:__("Add Column Before"),command:I=>I.commands.addColumnBefore(),svg:"add-col-before",visibleWhenActive:"table"},{name:"addcolumnafter",text:__("Add Column After"),command:I=>I.commands.addColumnAfter(),svg:"add-col-after",visibleWhenActive:"table"},{name:"deletecolumn",text:__("Delete Column"),command:I=>I.commands.deleteColumn(),svg:"delete-col",visibleWhenActive:"table"},{name:"addrowbefore",text:__("Add Row Before"),command:I=>I.commands.addRowBefore(),svg:"add-row-before",visibleWhenActive:"table"},{name:"addrowafter",text:__("Add Row After"),command:I=>I.commands.addRowAfter(),svg:"add-row-after",visibleWhenActive:"table"},{name:"deleterow",text:__("Delete Row"),command:I=>I.commands.deleteRow(),svg:"delete-row",visibleWhenActive:"table"},{name:"toggleheadercell",text:__("Toggle Header Cell"),command:I=>I.commands.toggleHeaderCell(),svg:"flip-vertical",visibleWhenActive:"table"},{name:"togglecellmerge",text:__("Merge Cells"),command:I=>I.commands.mergeCells(),svg:"combine-cells",visibleWhenActive:"table"}),this.buttons=$},buttonIsActive(M){if(M.hasOwnProperty("active"))return M.active(this.editor,M.args);const $=M.hasOwnProperty("activeName")?"activeName":"name",I=M[$];return this.editor.isActive(I,M.args)},buttonIsVisible(M){return M.hasOwnProperty("visible")?M.visible(this.editor,M.args):M.hasOwnProperty("visibleWhenActive")?this.editor.isActive(M.visibleWhenActive,M.args):!0},visibleButtons(M){return M.filter($=>this.buttonIsVisible($))},initEditor(){this.editor&&this.editor.destroy();const M=this.valueToContent(clone(this.value));this.editor=new Editor({extensions:this.getExtensions(),content:M,editable:!this.readOnly,enableInputRules:this.config.enable_input_rules,enablePasteRules:this.config.enable_paste_rules,editorProps:{attributes:{class:"bard-content"}},onFocus:()=>this.$emit("focus"),onBlur:()=>{setTimeout(()=>{this.$refs.container.contains(document.activeElement)||(this.$emit("blur"),this.showAddSetButton=!1)},1)},onUpdate:()=>{this.json=clone(this.editor.getJSON().content),this.html=this.editor.getHTML()},onCreate:({editor:$})=>{const I=$.view.state;if(M!==null&&typeof M=="object")try{I.schema.nodeFromJSON(M)}catch(N){const B=this.invalidError(N);B?this.initError=B:(this.initError=__("Something went wrong"),console.error(N))}}})},invalidError(M){const $={"Invalid text node in JSON":"Invalid content, text values must be strings","Empty text nodes are not allowed":"Invalid content, text values cannot be empty"};if($[M.message])return __($[M.message]);let I;if(I=M.message.match(/^(?:There is no|Unknown) (?:node|mark) type:? (\w*)(?: in this schema)?$/))return I[1]?__("Invalid content, :type button/extension is not enabled",{type:I[1]}):__("Invalid content, nodes and marks must have a type")},valueToContent(M){return M=JSON.parse(M),M.length?{type:"doc",content:M}:null},getExtensions(){let M=this.inputIsInline?[DocumentInline]:[DocumentBlock,HardBreak];this.config.inline==="break"&&M.push(HardBreak.extend({addKeyboardShortcuts(){var q;return{...(q=this.parent)==null?void 0:q.call(this),Enter:()=>this.editor.commands.setHardBreak()}}})),this.config.placeholder&&M.push(Placeholder.configure({placeholder:__(this.config.placeholder)}));const $=Extension.create({addKeyboardShortcuts(){return{"Ctrl-Enter":()=>!0,"Cmd-Enter":()=>!0}}});let I=[CharacterCount.configure({limit:this.config.character_limit}),...M,$,Dropcursor,Gapcursor,History,Paragraph,Set$1.configure({bard:this}),Text];this.config.smart_typography&&I.push(Typography);let N=this.buttons.map(q=>q.name);N.includes("anchor")&&I.push(Link.configure({vm:this})),N.includes("bold")&&I.push(Bold),N.includes("code")&&I.push(Code),N.includes("codeblock")&&I.push(CodeBlockLowlight.configure({lowlight})),N.includes("horizontalrule")&&I.push(HorizontalRule),N.includes("image")&&I.push(Image.configure({bard:this})),N.includes("italic")&&I.push(Italic),N.includes("quote")&&I.push(Blockquote),N.includes("orderedlist")&&I.push(OrderedList),(N.includes("orderedlist")||N.includes("unorderedlist"))&&I.push(ListItem$1),N.includes("underline")&&I.push(Underline),N.includes("unorderedlist")&&I.push(BulletList),N.includes("small")&&I.push(Small),N.includes("strikethrough")&&I.push(Strike),N.includes("subscript")&&I.push(Subscript),N.includes("superscript")&&I.push(Superscript);let B=[];N.includes("h1")&&B.push(1),N.includes("h2")&&B.push(2),N.includes("h3")&&B.push(3),N.includes("h4")&&B.push(4),N.includes("h5")&&B.push(5),N.includes("h6")&&B.push(6),B.length&&I.push(Heading.configure({levels:B}));let j=["paragraph"];B.length&&j.push("heading");let U=[];return N.includes("alignleft")&&U.push("left"),N.includes("aligncenter")&&U.push("center"),N.includes("alignright")&&U.push("right"),N.includes("alignjustify")&&U.push("justify"),U.length&&I.push(TextAlign.configure({types:j,alignments:U})),N.includes("table")&&I.push(Table.configure({resizable:!0}),TableHeader,TableCell,TableRow),this.$bard.extensionCallbacks.forEach(q=>{let Y=q({bard:this});I=I.concat(Array.isArray(Y)?Y:[Y])}),this.$bard.extensionReplacementCallbacks.forEach(({callback:q,name:Y})=>{let K=I.findIndex(Z=>Z.name===Y);if(K===-1)return;let G=I[K],J=q({bard:this,extension:G});I[K]=J}),I},updateSetPreviews(M,$){this.previews[M]=$},ignorePageHeader(M){this.pageHeader&&(this.pageHeader.style["pointer-events"]=M?"none":"all")},makeBardProvide(){const M={};return Object.defineProperties(M,{setConfigs:{get:()=>this.setConfigs},isReadOnly:{get:()=>this.readOnly}}),M},addSetButtonClicked(){this.setConfigs.length===1&&this.addSet(this.setConfigs[0].handle)},clickedAwayFromSetPicker(M){this.$el.contains(M.target)||(this.showAddSetButton=!1)}}};var _sfc_render$1_=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"bard-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("div",{class:{"publish-fields":$.fullScreenMode}},[I("div",{class:$.fullScreenMode&&$.wrapperClasses},[I("div",{ref:"container",staticClass:"bard-fieldtype-wrapper",class:{"bard-fullscreen":$.fullScreenMode},on:{dragstart:function(N){return N.stopPropagation(),$.ignorePageHeader(!0)},dragend:function(N){return $.ignorePageHeader(!1)}}},[!$.readOnly&&$.showFixedToolbar?I("div",{staticClass:"bard-fixed-toolbar"},[$.toolbarIsFixed?I("div",{staticClass:"flex flex-wrap flex-1 items-center no-select",class:{"justify-center":$.fullScreenMode}},[$._l($.visibleButtons($.buttons),function(N){return I(N.component||"BardToolbarButton",{key:N.name,tag:"component",attrs:{button:N,active:$.buttonIsActive(N),config:$.config,bard:$._self,editor:$.editor}})}),$.allowSource?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Show HTML Source"),expression:"__('Show HTML Source')"}],staticClass:"bard-toolbar-button",attrs:{"aria-label":$.__("Show HTML Source")},on:{click:function(N){$.showSource=!$.showSource}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"show-source"}})],1):$._e(),$.config.collapse!=="accordion"&&$.setConfigs.length>0?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Expand/Collapse Sets"),expression:"__('Expand/Collapse Sets')"}],staticClass:"bard-toolbar-button",attrs:{"aria-label":$.__("Expand/Collapse Sets")},on:{click:$.toggleCollapseSets}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"expand-collapse-vertical-2"}})],1):$._e(),$.config.fullscreen?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen Mode"),expression:"__('Toggle Fullscreen Mode')"}],staticClass:"bard-toolbar-button",attrs:{"aria-label":$.__("Toggle Fullscreen Mode")},on:{click:$.toggleFullscreen}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.fullScreenMode,expression:"fullScreenMode"}],staticClass:"w-4 h-4",attrs:{name:"arrows-shrink"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.fullScreenMode,expression:"!fullScreenMode"}],staticClass:"w-4 h-4",attrs:{name:"expand-bold"}})],1):$._e()],2):$._e()]):$._e(),I("div",{staticClass:"bard-editor @container/bard",class:{"mode:read-only":$.readOnly,"mode:minimal":!$.showFixedToolbar,"mode:inline":$.inputIsInline},attrs:{tabindex:"0"}},[$.editor&&$.toolbarIsFloating&&!$.readOnly?I("bubble-menu",{staticClass:"bard-floating-toolbar",attrs:{editor:$.editor,"tippy-options":{maxWidth:"none",zIndex:1e3}}},$._l($.visibleButtons($.buttons),function(N){return I(N.component||"BardToolbarButton",{key:N.name,tag:"component",attrs:{button:N,active:$.buttonIsActive(N),bard:$._self,config:$.config,editor:$.editor}})}),1):$._e(),$.editor?I("floating-menu",{staticClass:"bard-set-selector",attrs:{editor:$.editor,"should-show":$.shouldShowSetButton,"is-showing":$.showAddSetButton},on:{shown:function(N){$.showAddSetButton=!0},hidden:function(N){$.showAddSetButton=!1}},scopedSlots:$._u([{key:"default",fn:function({y:N}){return[$.showAddSetButton?I("set-picker",{attrs:{sets:$.groupConfigs},on:{added:$.addSet,"clicked-away":$.clickedAwayFromSetPicker},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Add Set"),expression:"__('Add Set')"}],staticClass:"btn-round group bard-add-set-button",style:{transform:`translateY(${N}px)`},attrs:{type:"button","aria-label":$.__("Add Set")},on:{click:$.addSetButtonClicked}},[I("svg-icon",{staticClass:"w-3 h-3 text-gray-800 group-hover:text-black",attrs:{name:"micro/plus"}})],1)]},proxy:!0}],null,!0)}):$._e()]}}],null,!1,1927636986)}):$._e(),$.initError?I("div",{staticClass:"bard-error",domProps:{innerHTML:$._s($.initError)}}):$._e(),I("editor-content",{directives:[{name:"show",rawName:"v-show",value:!$.showSource,expression:"!showSource"}],attrs:{editor:$.editor,id:$.fieldId}}),$.showSource?I("bard-source",{attrs:{html:$.htmlWithReplacedLinks}}):$._e()],1),$.editor&&($.config.reading_time||$.config.character_limit||$.config.word_count)?I("div",{staticClass:"bard-footer-toolbar"},[$.config.reading_time?I("div",[$._v($._s($.readingTime)+" "+$._s($.__("Reading Time")))]):I("div"),$.config.character_limit||$.config.word_count?I("div",{domProps:{textContent:$._s($.characterAndWordCountText)}}):$._e()]):$._e()])])])])},_sfc_staticRenderFns$1_=[],__component__$1$=normalizeComponent$3(_sfc_main$1_,_sfc_render$1_,_sfc_staticRenderFns$1_,!1,null,null,null,null);const BardFieldtype=__component__$1$.exports,_sfc_main$1Z={mixins:[Fieldtype],data(){return{data:this.value,buttons:[],autoBindChangeWatcher:!1}},mounted(){this.initButtons(),this.initSortable()},watch:{buttons:{deep:!0,handler(M){const $=M.filter(I=>I.enabled).map(I=>I.name);JSON.stringify($)!==JSON.stringify(this.data)&&(this.data=$)}},data(M){this.update(M)}},methods:{initButtons(){let M=availableButtons$1();this.$bard.buttonCallbacks.map(j=>{let q=j(M,Y=>Y);q&&(M=M.concat(Array.isArray(q)?q:[q]))}),M=addButtonHtml(M);let $=M.map(j=>(j.enabled=this.data.includes(j.name),j)),I=M.map(j=>j.name),N=this.data.filter(j=>!I.includes(j));N.length&&(N=N.map(j=>({name:j,text:j,html:`<span>${j.charAt(0).toUpperCase()}</span>`,enabled:!0})),$=[...$,...N]);let B=$.filter(j=>j.enabled).map(j=>j.name);if(JSON.stringify(B)!==JSON.stringify(this.data)){$=this.data.map(U=>_.findWhere($,{name:U}));let j=M.filter(U=>!this.data.includes(U.name));$=[...$,...j]}this.buttons=$},initSortable(){new draggable_bundleExports.Sortable(this.$refs.buttons,{draggable:"button",mirror:{constrainDimensions:!0,xAxis:!0,appendTo:"body"},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.buttons.splice(M.newIndex,0,this.buttons.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},toggleButton(M){const $=_.findWhere(this.buttons,{name:M});$.enabled=!$.enabled},enabled(M){return _.findWhere(this.buttons,{name:M}).enabled}}};var _sfc_render$1Z=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative"},[I("div",{ref:"buttons",staticClass:"bard-fixed-toolbar dark bard-toolbar-setting"},$._l($.buttons,function(N){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.text,expression:"button.text"}],key:N.name,class:{active:$.enabled(N.name)},on:{click:function(B){return $.toggleButton(N.name)}}},[N.svg?I("svg-icon",{attrs:{name:N.svg}}):$._e(),N.html?I("div",{staticClass:"flex items-center",domProps:{innerHTML:$._s(N.html)}}):$._e()],1)}),0)])},_sfc_staticRenderFns$1Z=[],__component__$1_=normalizeComponent$3(_sfc_main$1Z,_sfc_render$1Z,_sfc_staticRenderFns$1Z,!1,null,null,null,null);const BardButtonsSettingFieldtype=__component__$1_.exports,_sfc_main$1Y={mixins:[Fieldtype,HasInputOptions],data(){return{resizeObserver:null}},mounted(){this.setupResizeObserver()},beforeDestroy(){this.resizeObserver.disconnect()},computed:{options(){return this.normalizeInputOptions(this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview)){var M=_.findWhere(this.config.options,{value:this.value});return M?M.label:this.value}}},methods:{setupResizeObserver(){this.resizeObserver=new index$1(()=>{this.handleWrappingOfNode(this.$refs.buttonGroup)}),this.resizeObserver.observe(this.$refs.buttonGroup)},handleWrappingOfNode(M){const $=M.lastChild;$&&(M.classList.remove("btn-vertical"),$.offsetTop>M.clientTop&&M.classList.add("btn-vertical"))},focus(){this.$refs.button[0].focus()}}};var _sfc_render$1Y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"button-group-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},[I("div",{ref:"buttonGroup",staticClass:"btn-group"},$._l($.options,function(N,B){return I("button",{key:B,ref:"button",refInFor:!0,staticClass:"btn px-4",class:{active:$.value===N.value},attrs:{name:$.name,value:N.value,disabled:$.isReadOnly},domProps:{textContent:$._s(N.label||N.value)},on:{click:function(j){return $.update(j.target.value)}}})}),0)])},_sfc_staticRenderFns$1Y=[],__component__$1Z=normalizeComponent$3(_sfc_main$1Y,_sfc_render$1Y,_sfc_staticRenderFns$1Y,!1,null,null,null,null);const ButtonGroupFieldtype=__component__$1Z.exports,_sfc_main$1X={mixins:[Fieldtype,HasInputOptions],data(){return{values:this.value||[]}},computed:{options(){return this.normalizeInputOptions(this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.values.map(M=>{const $=_.findWhere(this.options,{value:M});return $?$.label:M}).join(", ")}},watch:{values(M,$){M=this.sortValues(M),JSON.stringify(M)!==JSON.stringify($)&&this.update(M)},value(M){this.values=this.sortValues(M)}},methods:{focus(){this.$refs.checkbox[0].focus()},sortValues(M){return M?this.options.filter($=>M.includes($.value)).map($=>$.value):[]}}};var _sfc_render$1X=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"checkboxes-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},$._l($.options,function(N,B){return I("div",{key:B,staticClass:"option"},[I("label",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.values,expression:"values"}],ref:"checkbox",refInFor:!0,attrs:{type:"checkbox",name:$.name+"[]",disabled:$.isReadOnly},domProps:{value:N.value,checked:Array.isArray($.values)?$._i($.values,N.value)>-1:$.values},on:{change:function(j){var U=$.values,q=j.target,Y=!!q.checked;if(Array.isArray(U)){var K=N.value,G=$._i(U,K);q.checked?G<0&&($.values=U.concat([K])):G>-1&&($.values=U.slice(0,G).concat(U.slice(G+1)))}else $.values=Y}}}),$._v(" "+$._s(N.label||N.value)+" ")])])}),0)},_sfc_staticRenderFns$1X=[],__component__$1Y=normalizeComponent$3(_sfc_main$1X,_sfc_render$1X,_sfc_staticRenderFns$1X,!1,null,null,null,null);const CheckboxesFieldtype=__component__$1Y.exports;var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){var I=navigator.userAgent,N=navigator.platform,B=/gecko\/\d/i.test(I),j=/MSIE \d/.test(I),U=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),q=/Edge\/(\d+)/.exec(I),Y=j||U||q,K=Y&&(j?document.documentMode||6:+(q||U)[1]),G=!q&&/WebKit\//.test(I),J=G&&/Qt\/\d+\.\d+/.test(I),Z=!q&&/Chrome\/(\d+)/.exec(I),ee=Z&&+Z[1],te=/Opera\//.test(I),re=/Apple Computer/.test(navigator.vendor),se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),ne=/PhantomJS/.test(I),le=re&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),ge=/Android/.test(I),ue=le||ge||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),_e=le||/Mac/.test(N),fe=/\bCrOS\b/.test(I),me=/win/i.test(N),ve=te&&I.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(te=!1,G=!0);var xe=_e&&(J||te&&(ve==null||ve<12.11)),oe=B||Y&&K>=9;function ye(X){return new RegExp("(^|\\s)"+X+"(?:$|\\s)\\s*")}var be=function(X,Q){var ce=X.className,ae=ye(Q).exec(ce);if(ae){var de=ce.slice(ae.index+ae[0].length);X.className=ce.slice(0,ae.index)+(de?ae[1]+de:"")}};function we(X){for(var Q=X.childNodes.length;Q>0;--Q)X.removeChild(X.firstChild);return X}function Ae(X,Q){return we(X).appendChild(Q)}function ke(X,Q,ce,ae){var de=document.createElement(X);if(ce&&(de.className=ce),ae&&(de.style.cssText=ae),typeof Q=="string")de.appendChild(document.createTextNode(Q));else if(Q)for(var Ee=0;Ee<Q.length;++Ee)de.appendChild(Q[Ee]);return de}function Oe(X,Q,ce,ae){var de=ke(X,Q,ce,ae);return de.setAttribute("role","presentation"),de}var Me;document.createRange?Me=function(X,Q,ce,ae){var de=document.createRange();return de.setEnd(ae||X,ce),de.setStart(X,Q),de}:Me=function(X,Q,ce){var ae=document.body.createTextRange();try{ae.moveToElementText(X.parentNode)}catch{return ae}return ae.collapse(!0),ae.moveEnd("character",ce),ae.moveStart("character",Q),ae};function ze(X,Q){if(Q.nodeType==3&&(Q=Q.parentNode),X.contains)return X.contains(Q);do if(Q.nodeType==11&&(Q=Q.host),Q==X)return!0;while(Q=Q.parentNode)}function Fe(X){var Q;try{Q=X.activeElement}catch{Q=X.body||null}for(;Q&&Q.shadowRoot&&Q.shadowRoot.activeElement;)Q=Q.shadowRoot.activeElement;return Q}function Ze(X,Q){var ce=X.className;ye(Q).test(ce)||(X.className+=(ce?" ":"")+Q)}function lt(X,Q){for(var ce=X.split(" "),ae=0;ae<ce.length;ae++)ce[ae]&&!ye(ce[ae]).test(Q)&&(Q+=" "+ce[ae]);return Q}var qe=function(X){X.select()};le?qe=function(X){X.selectionStart=0,X.selectionEnd=X.value.length}:Y&&(qe=function(X){try{X.select()}catch{}});function Ve(X){return X.display.wrapper.ownerDocument}function At(X){return Ve(X).defaultView}function Nt(X){var Q=Array.prototype.slice.call(arguments,1);return function(){return X.apply(null,Q)}}function zt(X,Q,ce){Q||(Q={});for(var ae in X)X.hasOwnProperty(ae)&&(ce!==!1||!Q.hasOwnProperty(ae))&&(Q[ae]=X[ae]);return Q}function Ht(X,Q,ce,ae,de){Q==null&&(Q=X.search(/[^\s\u00a0]/),Q==-1&&(Q=X.length));for(var Ee=ae||0,Ie=de||0;;){var He=X.indexOf(" ",Ee);if(He<0||He>=Q)return Ie+(Q-Ee);Ie+=He-Ee,Ie+=ce-Ie%ce,Ee=He+1}}var qt=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};qt.prototype.onTimeout=function(X){X.id=0,X.time<=+new Date?X.f():setTimeout(X.handler,X.time-+new Date)},qt.prototype.set=function(X,Q){this.f=Q;var ce=+new Date+X;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,X),this.time=ce)};function Qt(X,Q){for(var ce=0;ce<X.length;++ce)if(X[ce]==Q)return ce;return-1}var Jt=50,yn={toString:function(){return"CodeMirror.Pass"}},_n={scroll:!1},Hn={origin:"*mouse"},On={origin:"+move"};function Fn(X,Q,ce){for(var ae=0,de=0;;){var Ee=X.indexOf(" ",ae);Ee==-1&&(Ee=X.length);var Ie=Ee-ae;if(Ee==X.length||de+Ie>=Q)return ae+Math.min(Ie,Q-de);if(de+=Ee-ae,de+=ce-de%ce,ae=Ee+1,de>=Q)return ae}}var In=[""];function dn(X){for(;In.length<=X;)In.push(kt(In)+" ");return In[X]}function kt(X){return X[X.length-1]}function Ye(X,Q){for(var ce=[],ae=0;ae<X.length;ae++)ce[ae]=Q(X[ae],ae);return ce}function _t(X,Q,ce){for(var ae=0,de=ce(Q);ae<X.length&&ce(X[ae])<=de;)ae++;X.splice(ae,0,Q)}function We(){}function Pe(X,Q){var ce;return Object.create?ce=Object.create(X):(We.prototype=X,ce=new We),Q&&zt(Q,ce),ce}var Se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $e(X){return/\w/.test(X)||X>""&&(X.toUpperCase()!=X.toLowerCase()||Se.test(X))}function Ue(X,Q){return Q?Q.source.indexOf("\\w")>-1&&$e(X)?!0:Q.test(X):$e(X)}function Qe(X){for(var Q in X)if(X.hasOwnProperty(Q)&&X[Q])return!1;return!0}var mt=/[\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 ht(X){return X.charCodeAt(0)>=768&&mt.test(X)}function at(X,Q,ce){for(;(ce<0?Q>0:Q<X.length)&&ht(X.charAt(Q));)Q+=ce;return Q}function ut(X,Q,ce){for(var ae=Q>ce?-1:1;;){if(Q==ce)return Q;var de=(Q+ce)/2,Ee=ae<0?Math.ceil(de):Math.floor(de);if(Ee==Q)return X(Ee)?Q:ce;X(Ee)?ce=Ee:Q=Ee+ae}}function Rt(X,Q,ce,ae){if(!X)return ae(Q,ce,"ltr",0);for(var de=!1,Ee=0;Ee<X.length;++Ee){var Ie=X[Ee];(Ie.from<ce&&Ie.to>Q||Q==ce&&Ie.to==Q)&&(ae(Math.max(Ie.from,Q),Math.min(Ie.to,ce),Ie.level==1?"rtl":"ltr",Ee),de=!0)}de||ae(Q,ce,"ltr")}var fn=null;function Bn(X,Q,ce){var ae;fn=null;for(var de=0;de<X.length;++de){var Ee=X[de];if(Ee.from<Q&&Ee.to>Q)return de;Ee.to==Q&&(Ee.from!=Ee.to&&ce=="before"?ae=de:fn=de),Ee.from==Q&&(Ee.from!=Ee.to&&ce!="before"?ae=de:fn=de)}return ae??fn}var en=function(){var X="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",Q="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(nt){return nt<=247?X.charAt(nt):1424<=nt&&nt<=1524?"R":1536<=nt&&nt<=1785?Q.charAt(nt-1536):1774<=nt&&nt<=2220?"r":8192<=nt&&nt<=8203?"w":nt==8204?"b":"L"}var ae=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,de=/[stwN]/,Ee=/[LRr]/,Ie=/[Lb1n]/,He=/[1n]/;function Xe(nt,Pt,It){this.level=nt,this.from=Pt,this.to=It}return function(nt,Pt){var It=Pt=="ltr"?"L":"R";if(nt.length==0||Pt=="ltr"&&!ae.test(nt))return!1;for(var rn=nt.length,Zt=[],Tn=0;Tn<rn;++Tn)Zt.push(ce(nt.charCodeAt(Tn)));for(var Ln=0,Yn=It;Ln<rn;++Ln){var nr=Zt[Ln];nr=="m"?Zt[Ln]=Yn:Yn=nr}for(var dr=0,rr=It;dr<rn;++dr){var gr=Zt[dr];gr=="1"&&rr=="r"?Zt[dr]="n":Ee.test(gr)&&(rr=gr,gr=="r"&&(Zt[dr]="R"))}for(var Or=1,kr=Zt[0];Or<rn-1;++Or){var jr=Zt[Or];jr=="+"&&kr=="1"&&Zt[Or+1]=="1"?Zt[Or]="1":jr==","&&kr==Zt[Or+1]&&(kr=="1"||kr=="n")&&(Zt[Or]=kr),kr=jr}for(var ci=0;ci<rn;++ci){var Fi=Zt[ci];if(Fi==",")Zt[ci]="N";else if(Fi=="%"){var yi=void 0;for(yi=ci+1;yi<rn&&Zt[yi]=="%";++yi);for(var fs=ci&&Zt[ci-1]=="!"||yi<rn&&Zt[yi]=="1"?"1":"N",ns=ci;ns<yi;++ns)Zt[ns]=fs;ci=yi-1}}for(var Oi=0,rs=It;Oi<rn;++Oi){var ji=Zt[Oi];rs=="L"&&ji=="1"?Zt[Oi]="L":Ee.test(ji)&&(rs=ji)}for(var Mi=0;Mi<rn;++Mi)if(de.test(Zt[Mi])){var Pi=void 0;for(Pi=Mi+1;Pi<rn&&de.test(Zt[Pi]);++Pi);for(var Si=(Mi?Zt[Mi-1]:It)=="L",is=(Pi<rn?Zt[Pi]:It)=="L",da=Si==is?Si?"L":"R":It,Eo=Mi;Eo<Pi;++Eo)Zt[Eo]=da;Mi=Pi-1}for(var qi=[],Ws,Bi=0;Bi<rn;)if(Ie.test(Zt[Bi])){var Ul=Bi;for(++Bi;Bi<rn&&Ie.test(Zt[Bi]);++Bi);qi.push(new Xe(0,Ul,Bi))}else{var oo=Bi,Uo=qi.length,Ho=Pt=="rtl"?1:0;for(++Bi;Bi<rn&&Zt[Bi]!="L";++Bi);for(var Ki=oo;Ki<Bi;)if(He.test(Zt[Ki])){oo<Ki&&(qi.splice(Uo,0,new Xe(1,oo,Ki)),Uo+=Ho);var fa=Ki;for(++Ki;Ki<Bi&&He.test(Zt[Ki]);++Ki);qi.splice(Uo,0,new Xe(2,fa,Ki)),Uo+=Ho,oo=Ki}else++Ki;oo<Bi&&qi.splice(Uo,0,new Xe(1,oo,Bi))}return Pt=="ltr"&&(qi[0].level==1&&(Ws=nt.match(/^\s+/))&&(qi[0].from=Ws[0].length,qi.unshift(new Xe(0,0,Ws[0].length))),kt(qi).level==1&&(Ws=nt.match(/\s+$/))&&(kt(qi).to-=Ws[0].length,qi.push(new Xe(0,rn-Ws[0].length,rn)))),Pt=="rtl"?qi.reverse():qi}}();function xn(X,Q){var ce=X.order;return ce==null&&(ce=X.order=en(X.text,Q)),ce}var ot=[],dt=function(X,Q,ce){if(X.addEventListener)X.addEventListener(Q,ce,!1);else if(X.attachEvent)X.attachEvent("on"+Q,ce);else{var ae=X._handlers||(X._handlers={});ae[Q]=(ae[Q]||ot).concat(ce)}};function Ot(X,Q){return X._handlers&&X._handlers[Q]||ot}function Yt(X,Q,ce){if(X.removeEventListener)X.removeEventListener(Q,ce,!1);else if(X.detachEvent)X.detachEvent("on"+Q,ce);else{var ae=X._handlers,de=ae&&ae[Q];if(de){var Ee=Qt(de,ce);Ee>-1&&(ae[Q]=de.slice(0,Ee).concat(de.slice(Ee+1)))}}}function Wt(X,Q){var ce=Ot(X,Q);if(ce.length)for(var ae=Array.prototype.slice.call(arguments,2),de=0;de<ce.length;++de)ce[de].apply(null,ae)}function gn(X,Q,ce){return typeof Q=="string"&&(Q={type:Q,preventDefault:function(){this.defaultPrevented=!0}}),Wt(X,ce||Q.type,X,Q),pn(Q)||Q.codemirrorIgnore}function Kn(X){var Q=X._handlers&&X._handlers.cursorActivity;if(Q)for(var ce=X.curOp.cursorActivityHandlers||(X.curOp.cursorActivityHandlers=[]),ae=0;ae<Q.length;++ae)Qt(ce,Q[ae])==-1&&ce.push(Q[ae])}function Ct(X,Q){return Ot(X,Q).length>0}function ft(X){X.prototype.on=function(Q,ce){dt(this,Q,ce)},X.prototype.off=function(Q,ce){Yt(this,Q,ce)}}function Tt(X){X.preventDefault?X.preventDefault():X.returnValue=!1}function Lt(X){X.stopPropagation?X.stopPropagation():X.cancelBubble=!0}function pn(X){return X.defaultPrevented!=null?X.defaultPrevented:X.returnValue==!1}function mn(X){Tt(X),Lt(X)}function En(X){return X.target||X.srcElement}function cr(X){var Q=X.which;return Q==null&&(X.button&1?Q=1:X.button&2?Q=3:X.button&4&&(Q=2)),_e&&X.ctrlKey&&Q==1&&(Q=3),Q}var jn=function(){if(Y&&K<9)return!1;var X=ke("div");return"draggable"in X||"dragDrop"in X}(),ir;function Ir(X){if(ir==null){var Q=ke("span","");Ae(X,ke("span",[Q,document.createTextNode("x")])),X.firstChild.offsetHeight!=0&&(ir=Q.offsetWidth<=1&&Q.offsetHeight>2&&!(Y&&K<8))}var ce=ir?ke("span",""):ke("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var Er;function Dr(X){if(Er!=null)return Er;var Q=Ae(X,document.createTextNode("AخA")),ce=Me(Q,0,1).getBoundingClientRect(),ae=Me(Q,1,2).getBoundingClientRect();return we(X),!ce||ce.left==ce.right?!1:Er=ae.right-ce.right<3}var Vr=`
-
- b`.split(/\n/).length!=3?function(X){for(var Q=0,ce=[],ae=X.length;Q<=ae;){var de=X.indexOf(`
- `,Q);de==-1&&(de=X.length);var Ee=X.slice(Q,X.charAt(de-1)=="\r"?de-1:de),Ie=Ee.indexOf("\r");Ie!=-1?(ce.push(Ee.slice(0,Ie)),Q+=Ie+1):(ce.push(Ee),Q=de+1)}return ce}:function(X){return X.split(/\r\n?|\n/)},Ge=window.getSelection?function(X){try{return X.selectionStart!=X.selectionEnd}catch{return!1}}:function(X){var Q;try{Q=X.ownerDocument.selection.createRange()}catch{}return!Q||Q.parentElement()!=X?!1:Q.compareEndPoints("StartToEnd",Q)!=0},pt=function(){var X=ke("div");return"oncopy"in X?!0:(X.setAttribute("oncopy","return;"),typeof X.oncopy=="function")}(),ct=null;function Ne(X){if(ct!=null)return ct;var Q=Ae(X,ke("span","x")),ce=Q.getBoundingClientRect(),ae=Me(Q,0,1).getBoundingClientRect();return ct=Math.abs(ce.left-ae.left)>1}var vt={},Xt={};function sn(X,Q){arguments.length>2&&(Q.dependencies=Array.prototype.slice.call(arguments,2)),vt[X]=Q}function Pn(X,Q){Xt[X]=Q}function Nn(X){if(typeof X=="string"&&Xt.hasOwnProperty(X))X=Xt[X];else if(X&&typeof X.name=="string"&&Xt.hasOwnProperty(X.name)){var Q=Xt[X.name];typeof Q=="string"&&(Q={name:Q}),X=Pe(Q,X),X.name=Q.name}else{if(typeof X=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(X))return Nn("application/xml");if(typeof X=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(X))return Nn("application/json")}return typeof X=="string"?{name:X}:X||{name:"null"}}function Qn(X,Q){Q=Nn(Q);var ce=vt[Q.name];if(!ce)return Qn(X,"text/plain");var ae=ce(X,Q);if(Xn.hasOwnProperty(Q.name)){var de=Xn[Q.name];for(var Ee in de)de.hasOwnProperty(Ee)&&(ae.hasOwnProperty(Ee)&&(ae["_"+Ee]=ae[Ee]),ae[Ee]=de[Ee])}if(ae.name=Q.name,Q.helperType&&(ae.helperType=Q.helperType),Q.modeProps)for(var Ie in Q.modeProps)ae[Ie]=Q.modeProps[Ie];return ae}var Xn={};function Rr(X,Q){var ce=Xn.hasOwnProperty(X)?Xn[X]:Xn[X]={};zt(Q,ce)}function tr(X,Q){if(Q===!0)return Q;if(X.copyState)return X.copyState(Q);var ce={};for(var ae in Q){var de=Q[ae];de instanceof Array&&(de=de.concat([])),ce[ae]=de}return ce}function fr(X,Q){for(var ce;X.innerMode&&(ce=X.innerMode(Q),!(!ce||ce.mode==X));)Q=ce.state,X=ce.mode;return ce||{mode:X,state:Q}}function Sr(X,Q,ce){return X.startState?X.startState(Q,ce):!0}var sr=function(X,Q,ce){this.pos=this.start=0,this.string=X,this.tabSize=Q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(X){var Q=this.string.charAt(this.pos),ce;if(typeof X=="string"?ce=Q==X:ce=Q&&(X.test?X.test(Q):X(Q)),ce)return++this.pos,Q},sr.prototype.eatWhile=function(X){for(var Q=this.pos;this.eat(X););return this.pos>Q},sr.prototype.eatSpace=function(){for(var X=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>X},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(X){var Q=this.string.indexOf(X,this.pos);if(Q>-1)return this.pos=Q,!0},sr.prototype.backUp=function(X){this.pos-=X},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ht(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ht(this.string,null,this.tabSize)-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(X,Q,ce){if(typeof X=="string"){var ae=function(Ie){return ce?Ie.toLowerCase():Ie},de=this.string.substr(this.pos,X.length);if(ae(de)==ae(X))return Q!==!1&&(this.pos+=X.length),!0}else{var Ee=this.string.slice(this.pos).match(X);return Ee&&Ee.index>0?null:(Ee&&Q!==!1&&(this.pos+=Ee[0].length),Ee)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(X,Q){this.lineStart+=X;try{return Q()}finally{this.lineStart-=X}},sr.prototype.lookAhead=function(X){var Q=this.lineOracle;return Q&&Q.lookAhead(X)},sr.prototype.baseToken=function(){var X=this.lineOracle;return X&&X.baseToken(this.pos)};function Rn(X,Q){if(Q-=X.first,Q<0||Q>=X.size)throw new Error("There is no line "+(Q+X.first)+" in the document.");for(var ce=X;!ce.lines;)for(var ae=0;;++ae){var de=ce.children[ae],Ee=de.chunkSize();if(Q<Ee){ce=de;break}Q-=Ee}return ce.lines[Q]}function mr(X,Q,ce){var ae=[],de=Q.line;return X.iter(Q.line,ce.line+1,function(Ee){var Ie=Ee.text;de==ce.line&&(Ie=Ie.slice(0,ce.ch)),de==Q.line&&(Ie=Ie.slice(Q.ch)),ae.push(Ie),++de}),ae}function br(X,Q,ce){var ae=[];return X.iter(Q,ce,function(de){ae.push(de.text)}),ae}function hr(X,Q){var ce=Q-X.height;if(ce)for(var ae=X;ae;ae=ae.parent)ae.height+=ce}function zn(X){if(X.parent==null)return null;for(var Q=X.parent,ce=Qt(Q.lines,X),ae=Q.parent;ae;Q=ae,ae=ae.parent)for(var de=0;ae.children[de]!=Q;++de)ce+=ae.children[de].chunkSize();return ce+Q.first}function er(X,Q){var ce=X.first;e:do{for(var ae=0;ae<X.children.length;++ae){var de=X.children[ae],Ee=de.height;if(Q<Ee){X=de;continue e}Q-=Ee,ce+=de.chunkSize()}return ce}while(!X.lines);for(var Ie=0;Ie<X.lines.length;++Ie){var He=X.lines[Ie],Xe=He.height;if(Q<Xe)break;Q-=Xe}return ce+Ie}function et(X,Q){return Q>=X.first&&Q<X.first+X.size}function yt(X,Q){return String(X.lineNumberFormatter(Q+X.firstLineNumber))}function wt(X,Q,ce){if(ce===void 0&&(ce=null),!(this instanceof wt))return new wt(X,Q,ce);this.line=X,this.ch=Q,this.sticky=ce}function Bt(X,Q){return X.line-Q.line||X.ch-Q.ch}function Kt(X,Q){return X.sticky==Q.sticky&&Bt(X,Q)==0}function Mt(X){return wt(X.line,X.ch)}function tn(X,Q){return Bt(X,Q)<0?Q:X}function hn(X,Q){return Bt(X,Q)<0?X:Q}function Cn(X,Q){return Math.max(X.first,Math.min(Q,X.first+X.size-1))}function cn(X,Q){if(Q.line<X.first)return wt(X.first,0);var ce=X.first+X.size-1;return Q.line>ce?wt(ce,Rn(X,ce).text.length):ur(Q,Rn(X,Q.line).text.length)}function ur(X,Q){var ce=X.ch;return ce==null||ce>Q?wt(X.line,Q):ce<0?wt(X.line,0):X}function or(X,Q){for(var ce=[],ae=0;ae<Q.length;ae++)ce[ae]=cn(X,Q[ae]);return ce}var rt=function(X,Q){this.state=X,this.lookAhead=Q},gt=function(X,Q,ce,ae){this.state=Q,this.doc=X,this.line=ce,this.maxLookAhead=ae||0,this.baseTokens=null,this.baseTokenPos=1};gt.prototype.lookAhead=function(X){var Q=this.doc.getLine(this.line+X);return Q!=null&&X>this.maxLookAhead&&(this.maxLookAhead=X),Q},gt.prototype.baseToken=function(X){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=X;)this.baseTokenPos+=2;var Q=this.baseTokens[this.baseTokenPos+1];return{type:Q&&Q.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-X}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(X,Q,ce){return Q instanceof rt?new gt(X,tr(X.mode,Q.state),ce,Q.lookAhead):new gt(X,tr(X.mode,Q),ce)},gt.prototype.save=function(X){var Q=X!==!1?tr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new rt(Q,this.maxLookAhead):Q};function tt(X,Q,ce,ae){var de=[X.state.modeGen],Ee={};Zr(X,Q.text,X.doc.mode,ce,function(nt,Pt){return de.push(nt,Pt)},Ee,ae);for(var Ie=ce.state,He=function(nt){ce.baseTokens=de;var Pt=X.state.overlays[nt],It=1,rn=0;ce.state=!0,Zr(X,Q.text,Pt.mode,ce,function(Zt,Tn){for(var Ln=It;rn<Zt;){var Yn=de[It];Yn>Zt&&de.splice(It,1,Zt,de[It+1],Yn),It+=2,rn=Math.min(Zt,Yn)}if(Tn)if(Pt.opaque)de.splice(Ln,It-Ln,Zt,"overlay "+Tn),It=Ln+2;else for(;Ln<It;Ln+=2){var nr=de[Ln+1];de[Ln+1]=(nr?nr+" ":"")+"overlay "+Tn}},Ee),ce.state=Ie,ce.baseTokens=null,ce.baseTokenPos=1},Xe=0;Xe<X.state.overlays.length;++Xe)He(Xe);return{styles:de,classes:Ee.bgClass||Ee.textClass?Ee:null}}function nn(X,Q,ce){if(!Q.styles||Q.styles[0]!=X.state.modeGen){var ae=kn(X,zn(Q)),de=Q.text.length>X.options.maxHighlightLength&&tr(X.doc.mode,ae.state),Ee=tt(X,Q,ae);de&&(ae.state=de),Q.stateAfter=ae.save(!de),Q.styles=Ee.styles,Ee.classes?Q.styleClasses=Ee.classes:Q.styleClasses&&(Q.styleClasses=null),ce===X.doc.highlightFrontier&&(X.doc.modeFrontier=Math.max(X.doc.modeFrontier,++X.doc.highlightFrontier))}return Q.styles}function kn(X,Q,ce){var ae=X.doc,de=X.display;if(!ae.mode.startState)return new gt(ae,!0,Q);var Ee=ti(X,Q,ce),Ie=Ee>ae.first&&Rn(ae,Ee-1).stateAfter,He=Ie?gt.fromSaved(ae,Ie,Ee):new gt(ae,Sr(ae.mode),Ee);return ae.iter(Ee,Q,function(Xe){Un(X,Xe.text,He);var nt=He.line;Xe.stateAfter=nt==Q-1||nt%5==0||nt>=de.viewFrom&&nt<de.viewTo?He.save():null,He.nextLine()}),ce&&(ae.modeFrontier=He.line),He}function Un(X,Q,ce,ae){var de=X.doc.mode,Ee=new sr(Q,X.options.tabSize,ce);for(Ee.start=Ee.pos=ae||0,Q==""&&Jn(de,ce.state);!Ee.eol();)_r(de,Ee,ce.state),Ee.start=Ee.pos}function Jn(X,Q){if(X.blankLine)return X.blankLine(Q);if(X.innerMode){var ce=fr(X,Q);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function _r(X,Q,ce,ae){for(var de=0;de<10;de++){ae&&(ae[0]=fr(X,ce).mode);var Ee=X.token(Q,ce);if(Q.pos>Q.start)return Ee}throw new Error("Mode "+X.name+" failed to advance stream.")}var xr=function(X,Q,ce){this.start=X.start,this.end=X.pos,this.string=X.current(),this.type=Q||null,this.state=ce};function Nr(X,Q,ce,ae){var de=X.doc,Ee=de.mode,Ie;Q=cn(de,Q);var He=Rn(de,Q.line),Xe=kn(X,Q.line,ce),nt=new sr(He.text,X.options.tabSize,Xe),Pt;for(ae&&(Pt=[]);(ae||nt.pos<Q.ch)&&!nt.eol();)nt.start=nt.pos,Ie=_r(Ee,nt,Xe.state),ae&&Pt.push(new xr(nt,Ie,tr(de.mode,Xe.state)));return ae?Pt:new xr(nt,Ie,Xe.state)}function Mr(X,Q){if(X)for(;;){var ce=X.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;X=X.slice(0,ce.index)+X.slice(ce.index+ce[0].length);var ae=ce[1]?"bgClass":"textClass";Q[ae]==null?Q[ae]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(Q[ae])||(Q[ae]+=" "+ce[2])}return X}function Zr(X,Q,ce,ae,de,Ee,Ie){var He=ce.flattenSpans;He==null&&(He=X.options.flattenSpans);var Xe=0,nt=null,Pt=new sr(Q,X.options.tabSize,ae),It,rn=X.options.addModeClass&&[null];for(Q==""&&Mr(Jn(ce,ae.state),Ee);!Pt.eol();){if(Pt.pos>X.options.maxHighlightLength?(He=!1,Ie&&Un(X,Q,ae,Pt.pos),Pt.pos=Q.length,It=null):It=Mr(_r(ce,Pt,ae.state,rn),Ee),rn){var Zt=rn[0].name;Zt&&(It="m-"+(It?Zt+" "+It:Zt))}if(!He||nt!=It){for(;Xe<Pt.start;)Xe=Math.min(Pt.start,Xe+5e3),de(Xe,nt);nt=It}Pt.start=Pt.pos}for(;Xe<Pt.pos;){var Tn=Math.min(Pt.pos,Xe+5e3);de(Tn,nt),Xe=Tn}}function ti(X,Q,ce){for(var ae,de,Ee=X.doc,Ie=ce?-1:Q-(X.doc.mode.innerMode?1e3:100),He=Q;He>Ie;--He){if(He<=Ee.first)return Ee.first;var Xe=Rn(Ee,He-1),nt=Xe.stateAfter;if(nt&&(!ce||He+(nt instanceof rt?nt.lookAhead:0)<=Ee.modeFrontier))return He;var Pt=Ht(Xe.text,null,X.options.tabSize);(de==null||ae>Pt)&&(de=He-1,ae=Pt)}return de}function Xr(X,Q){if(X.modeFrontier=Math.min(X.modeFrontier,Q),!(X.highlightFrontier<Q-10)){for(var ce=X.first,ae=Q-1;ae>ce;ae--){var de=Rn(X,ae).stateAfter;if(de&&(!(de instanceof rt)||ae+de.lookAhead<Q)){ce=ae+1;break}}X.highlightFrontier=Math.min(X.highlightFrontier,ce)}}var ni=!1,qr=!1;function ei(){ni=!0}function mi(){qr=!0}function Ai(X,Q,ce){this.marker=X,this.from=Q,this.to=ce}function Gi(X,Q){if(X)for(var ce=0;ce<X.length;++ce){var ae=X[ce];if(ae.marker==Q)return ae}}function Co(X,Q){for(var ce,ae=0;ae<X.length;++ae)X[ae]!=Q&&(ce||(ce=[])).push(X[ae]);return ce}function $o(X,Q,ce){var ae=ce&&window.WeakSet&&(ce.markedSpans||(ce.markedSpans=new WeakSet));ae&&X.markedSpans&&ae.has(X.markedSpans)?X.markedSpans.push(Q):(X.markedSpans=X.markedSpans?X.markedSpans.concat([Q]):[Q],ae&&ae.add(X.markedSpans)),Q.marker.attachLine(X)}function To(X,Q,ce){var ae;if(X)for(var de=0;de<X.length;++de){var Ee=X[de],Ie=Ee.marker,He=Ee.from==null||(Ie.inclusiveLeft?Ee.from<=Q:Ee.from<Q);if(He||Ee.from==Q&&Ie.type=="bookmark"&&(!ce||!Ee.marker.insertLeft)){var Xe=Ee.to==null||(Ie.inclusiveRight?Ee.to>=Q:Ee.to>Q);(ae||(ae=[])).push(new Ai(Ie,Ee.from,Xe?null:Ee.to))}}return ae}function Oo(X,Q,ce){var ae;if(X)for(var de=0;de<X.length;++de){var Ee=X[de],Ie=Ee.marker,He=Ee.to==null||(Ie.inclusiveRight?Ee.to>=Q:Ee.to>Q);if(He||Ee.from==Q&&Ie.type=="bookmark"&&(!ce||Ee.marker.insertLeft)){var Xe=Ee.from==null||(Ie.inclusiveLeft?Ee.from<=Q:Ee.from<Q);(ae||(ae=[])).push(new Ai(Ie,Xe?null:Ee.from-Q,Ee.to==null?null:Ee.to-Q))}}return ae}function Xi(X,Q){if(Q.full)return null;var ce=et(X,Q.from.line)&&Rn(X,Q.from.line).markedSpans,ae=et(X,Q.to.line)&&Rn(X,Q.to.line).markedSpans;if(!ce&&!ae)return null;var de=Q.from.ch,Ee=Q.to.ch,Ie=Bt(Q.from,Q.to)==0,He=To(ce,de,Ie),Xe=Oo(ae,Ee,Ie),nt=Q.text.length==1,Pt=kt(Q.text).length+(nt?de:0);if(He)for(var It=0;It<He.length;++It){var rn=He[It];if(rn.to==null){var Zt=Gi(Xe,rn.marker);Zt?nt&&(rn.to=Zt.to==null?null:Zt.to+Pt):rn.to=de}}if(Xe)for(var Tn=0;Tn<Xe.length;++Tn){var Ln=Xe[Tn];if(Ln.to!=null&&(Ln.to+=Pt),Ln.from==null){var Yn=Gi(He,Ln.marker);Yn||(Ln.from=Pt,nt&&(He||(He=[])).push(Ln))}else Ln.from+=Pt,nt&&(He||(He=[])).push(Ln)}He&&(He=Ys(He)),Xe&&Xe!=He&&(Xe=Ys(Xe));var nr=[He];if(!nt){var dr=Q.text.length-2,rr;if(dr>0&&He)for(var gr=0;gr<He.length;++gr)He[gr].to==null&&(rr||(rr=[])).push(new Ai(He[gr].marker,null,null));for(var Or=0;Or<dr;++Or)nr.push(rr);nr.push(Xe)}return nr}function Ys(X){for(var Q=0;Q<X.length;++Q){var ce=X[Q];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&X.splice(Q--,1)}return X.length?X:null}function ao(X,Q,ce){var ae=null;if(X.iter(Q.line,ce.line+1,function(Zt){if(Zt.markedSpans)for(var Tn=0;Tn<Zt.markedSpans.length;++Tn){var Ln=Zt.markedSpans[Tn].marker;Ln.readOnly&&(!ae||Qt(ae,Ln)==-1)&&(ae||(ae=[])).push(Ln)}}),!ae)return null;for(var de=[{from:Q,to:ce}],Ee=0;Ee<ae.length;++Ee)for(var Ie=ae[Ee],He=Ie.find(0),Xe=0;Xe<de.length;++Xe){var nt=de[Xe];if(!(Bt(nt.to,He.from)<0||Bt(nt.from,He.to)>0)){var Pt=[Xe,1],It=Bt(nt.from,He.from),rn=Bt(nt.to,He.to);(It<0||!Ie.inclusiveLeft&&!It)&&Pt.push({from:nt.from,to:He.from}),(rn>0||!Ie.inclusiveRight&&!rn)&&Pt.push({from:He.to,to:nt.to}),de.splice.apply(de,Pt),Xe+=Pt.length-3}}return de}function Ks(X){var Q=X.markedSpans;if(Q){for(var ce=0;ce<Q.length;++ce)Q[ce].marker.detachLine(X);X.markedSpans=null}}function Ns(X,Q){if(Q){for(var ce=0;ce<Q.length;++ce)Q[ce].marker.attachLine(X);X.markedSpans=Q}}function $s(X){return X.inclusiveLeft?-1:0}function ps(X){return X.inclusiveRight?1:0}function ws(X,Q){var ce=X.lines.length-Q.lines.length;if(ce!=0)return ce;var ae=X.find(),de=Q.find(),Ee=Bt(ae.from,de.from)||$s(X)-$s(Q);if(Ee)return-Ee;var Ie=Bt(ae.to,de.to)||ps(X)-ps(Q);return Ie||Q.id-X.id}function Ts(X,Q){var ce=qr&&X.markedSpans,ae;if(ce)for(var de=void 0,Ee=0;Ee<ce.length;++Ee)de=ce[Ee],de.marker.collapsed&&(Q?de.from:de.to)==null&&(!ae||ws(ae,de.marker)<0)&&(ae=de.marker);return ae}function Gs(X){return Ts(X,!0)}function pe(X){return Ts(X,!1)}function Te(X,Q){var ce=qr&&X.markedSpans,ae;if(ce)for(var de=0;de<ce.length;++de){var Ee=ce[de];Ee.marker.collapsed&&(Ee.from==null||Ee.from<Q)&&(Ee.to==null||Ee.to>Q)&&(!ae||ws(ae,Ee.marker)<0)&&(ae=Ee.marker)}return ae}function Re(X,Q,ce,ae,de){var Ee=Rn(X,Q),Ie=qr&&Ee.markedSpans;if(Ie)for(var He=0;He<Ie.length;++He){var Xe=Ie[He];if(Xe.marker.collapsed){var nt=Xe.marker.find(0),Pt=Bt(nt.from,ce)||$s(Xe.marker)-$s(de),It=Bt(nt.to,ae)||ps(Xe.marker)-ps(de);if(!(Pt>=0&&It<=0||Pt<=0&&It>=0)&&(Pt<=0&&(Xe.marker.inclusiveRight&&de.inclusiveLeft?Bt(nt.to,ce)>=0:Bt(nt.to,ce)>0)||Pt>=0&&(Xe.marker.inclusiveRight&&de.inclusiveLeft?Bt(nt.from,ae)<=0:Bt(nt.from,ae)<0)))return!0}}}function je(X){for(var Q;Q=Gs(X);)X=Q.find(-1,!0).line;return X}function Ke(X){for(var Q;Q=pe(X);)X=Q.find(1,!0).line;return X}function Je(X){for(var Q,ce;Q=pe(X);)X=Q.find(1,!0).line,(ce||(ce=[])).push(X);return ce}function bt(X,Q){var ce=Rn(X,Q),ae=je(ce);return ce==ae?Q:zn(ae)}function Dt(X,Q){if(Q>X.lastLine())return Q;var ce=Rn(X,Q),ae;if(!Et(X,ce))return Q;for(;ae=pe(ce);)ce=ae.find(1,!0).line;return zn(ce)+1}function Et(X,Q){var ce=qr&&Q.markedSpans;if(ce){for(var ae=void 0,de=0;de<ce.length;++de)if(ae=ce[de],!!ae.marker.collapsed){if(ae.from==null)return!0;if(!ae.marker.widgetNode&&ae.from==0&&ae.marker.inclusiveLeft&&jt(X,Q,ae))return!0}}}function jt(X,Q,ce){if(ce.to==null){var ae=ce.marker.find(1,!0);return jt(X,ae.line,Gi(ae.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==Q.text.length)return!0;for(var de=void 0,Ee=0;Ee<Q.markedSpans.length;++Ee)if(de=Q.markedSpans[Ee],de.marker.collapsed&&!de.marker.widgetNode&&de.from==ce.to&&(de.to==null||de.to!=ce.from)&&(de.marker.inclusiveLeft||ce.marker.inclusiveRight)&&jt(X,Q,de))return!0}function Vt(X){X=je(X);for(var Q=0,ce=X.parent,ae=0;ae<ce.lines.length;++ae){var de=ce.lines[ae];if(de==X)break;Q+=de.height}for(var Ee=ce.parent;Ee;ce=Ee,Ee=ce.parent)for(var Ie=0;Ie<Ee.children.length;++Ie){var He=Ee.children[Ie];if(He==ce)break;Q+=He.height}return Q}function Sn(X){if(X.height==0)return 0;for(var Q=X.text.length,ce,ae=X;ce=Gs(ae);){var de=ce.find(0,!0);ae=de.from.line,Q+=de.from.ch-de.to.ch}for(ae=X;ce=pe(ae);){var Ee=ce.find(0,!0);Q-=ae.text.length-Ee.from.ch,ae=Ee.to.line,Q+=ae.text.length-Ee.to.ch}return Q}function Mn(X){var Q=X.display,ce=X.doc;Q.maxLine=Rn(ce,ce.first),Q.maxLineLength=Sn(Q.maxLine),Q.maxLineChanged=!0,ce.iter(function(ae){var de=Sn(ae);de>Q.maxLineLength&&(Q.maxLineLength=de,Q.maxLine=ae)})}var bn=function(X,Q,ce){this.text=X,Ns(this,Q),this.height=ce?ce(this):1};bn.prototype.lineNo=function(){return zn(this)},ft(bn);function vn(X,Q,ce,ae){X.text=Q,X.stateAfter&&(X.stateAfter=null),X.styles&&(X.styles=null),X.order!=null&&(X.order=null),Ks(X),Ns(X,ce);var de=ae?ae(X):1;de!=X.height&&hr(X,de)}function ar(X){X.parent=null,Ks(X)}var Wn={},Cr={};function Pr(X,Q){if(!X||/^\s*$/.test(X))return null;var ce=Q.addModeClass?Cr:Wn;return ce[X]||(ce[X]=X.replace(/\S+/g,"cm-$&"))}function vr(X,Q){var ce=Oe("span",null,null,G?"padding-right: .1px":null),ae={pre:Oe("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:X,trailingSpace:!1,splitSpaces:X.getOption("lineWrapping")};Q.measure={};for(var de=0;de<=(Q.rest?Q.rest.length:0);de++){var Ee=de?Q.rest[de-1]:Q.line,Ie=void 0;ae.pos=0,ae.addToken=ui,Dr(X.display.measure)&&(Ie=xn(Ee,X.doc.direction))&&(ae.addToken=xi(ae.addToken,Ie)),ae.map=[];var He=Q!=X.display.externalMeasured&&zn(Ee);Fr(Ee,ae,nn(X,Ee,He)),Ee.styleClasses&&(Ee.styleClasses.bgClass&&(ae.bgClass=lt(Ee.styleClasses.bgClass,ae.bgClass||"")),Ee.styleClasses.textClass&&(ae.textClass=lt(Ee.styleClasses.textClass,ae.textClass||""))),ae.map.length==0&&ae.map.push(0,0,ae.content.appendChild(Ir(X.display.measure))),de==0?(Q.measure.map=ae.map,Q.measure.cache={}):((Q.measure.maps||(Q.measure.maps=[])).push(ae.map),(Q.measure.caches||(Q.measure.caches=[])).push({}))}if(G){var Xe=ae.content.lastChild;(/\bcm-tab\b/.test(Xe.className)||Xe.querySelector&&Xe.querySelector(".cm-tab"))&&(ae.content.className="cm-tab-wrap-hack")}return Wt(X,"renderLine",X,Q.line,ae.pre),ae.pre.className&&(ae.textClass=lt(ae.pre.className,ae.textClass||"")),ae}function Ur(X){var Q=ke("span","•","cm-invalidchar");return Q.title="\\u"+X.charCodeAt(0).toString(16),Q.setAttribute("aria-label",Q.title),Q}function ui(X,Q,ce,ae,de,Ee,Ie){if(Q){var He=X.splitSpaces?oi(Q,X.trailingSpace):Q,Xe=X.cm.state.specialChars,nt=!1,Pt;if(!Xe.test(Q))X.col+=Q.length,Pt=document.createTextNode(He),X.map.push(X.pos,X.pos+Q.length,Pt),Y&&K<9&&(nt=!0),X.pos+=Q.length;else{Pt=document.createDocumentFragment();for(var It=0;;){Xe.lastIndex=It;var rn=Xe.exec(Q),Zt=rn?rn.index-It:Q.length-It;if(Zt){var Tn=document.createTextNode(He.slice(It,It+Zt));Y&&K<9?Pt.appendChild(ke("span",[Tn])):Pt.appendChild(Tn),X.map.push(X.pos,X.pos+Zt,Tn),X.col+=Zt,X.pos+=Zt}if(!rn)break;It+=Zt+1;var Ln=void 0;if(rn[0]==" "){var Yn=X.cm.options.tabSize,nr=Yn-X.col%Yn;Ln=Pt.appendChild(ke("span",dn(nr),"cm-tab")),Ln.setAttribute("role","presentation"),Ln.setAttribute("cm-text"," "),X.col+=nr}else rn[0]=="\r"||rn[0]==`
- `?(Ln=Pt.appendChild(ke("span",rn[0]=="\r"?"␍":"","cm-invalidchar")),Ln.setAttribute("cm-text",rn[0]),X.col+=1):(Ln=X.cm.options.specialCharPlaceholder(rn[0]),Ln.setAttribute("cm-text",rn[0]),Y&&K<9?Pt.appendChild(ke("span",[Ln])):Pt.appendChild(Ln),X.col+=1);X.map.push(X.pos,X.pos+1,Ln),X.pos++}}if(X.trailingSpace=He.charCodeAt(Q.length-1)==32,ce||ae||de||nt||Ee||Ie){var dr=ce||"";ae&&(dr+=ae),de&&(dr+=de);var rr=ke("span",[Pt],dr,Ee);if(Ie)for(var gr in Ie)Ie.hasOwnProperty(gr)&&gr!="style"&&gr!="class"&&rr.setAttribute(gr,Ie[gr]);return X.content.appendChild(rr)}X.content.appendChild(Pt)}}function oi(X,Q){if(X.length>1&&!/ /.test(X))return X;for(var ce=Q,ae="",de=0;de<X.length;de++){var Ee=X.charAt(de);Ee==" "&&ce&&(de==X.length-1||X.charCodeAt(de+1)==32)&&(Ee=" "),ae+=Ee,ce=Ee==" "}return ae}function xi(X,Q){return function(ce,ae,de,Ee,Ie,He,Xe){de=de?de+" cm-force-border":"cm-force-border";for(var nt=ce.pos,Pt=nt+ae.length;;){for(var It=void 0,rn=0;rn<Q.length&&(It=Q[rn],!(It.to>nt&&It.from<=nt));rn++);if(It.to>=Pt)return X(ce,ae,de,Ee,Ie,He,Xe);X(ce,ae.slice(0,It.to-nt),de,Ee,null,He,Xe),Ee=null,ae=ae.slice(It.to-nt),nt=It.to}}}function Kr(X,Q,ce,ae){var de=!ae&&ce.widgetNode;de&&X.map.push(X.pos,X.pos+Q,de),!ae&&X.cm.display.input.needsContentAttribute&&(de||(de=X.content.appendChild(document.createElement("span"))),de.setAttribute("cm-marker",ce.id)),de&&(X.cm.display.input.setUneditable(de),X.content.appendChild(de)),X.pos+=Q,X.trailingSpace=!1}function Fr(X,Q,ce){var ae=X.markedSpans,de=X.text,Ee=0;if(!ae){for(var Ie=1;Ie<ce.length;Ie+=2)Q.addToken(Q,de.slice(Ee,Ee=ce[Ie]),Pr(ce[Ie+1],Q.cm.options));return}for(var He=de.length,Xe=0,nt=1,Pt="",It,rn,Zt=0,Tn,Ln,Yn,nr,dr;;){if(Zt==Xe){Tn=Ln=Yn=rn="",dr=null,nr=null,Zt=1/0;for(var rr=[],gr=void 0,Or=0;Or<ae.length;++Or){var kr=ae[Or],jr=kr.marker;if(jr.type=="bookmark"&&kr.from==Xe&&jr.widgetNode)rr.push(jr);else if(kr.from<=Xe&&(kr.to==null||kr.to>Xe||jr.collapsed&&kr.to==Xe&&kr.from==Xe)){if(kr.to!=null&&kr.to!=Xe&&Zt>kr.to&&(Zt=kr.to,Ln=""),jr.className&&(Tn+=" "+jr.className),jr.css&&(rn=(rn?rn+";":"")+jr.css),jr.startStyle&&kr.from==Xe&&(Yn+=" "+jr.startStyle),jr.endStyle&&kr.to==Zt&&(gr||(gr=[])).push(jr.endStyle,kr.to),jr.title&&((dr||(dr={})).title=jr.title),jr.attributes)for(var ci in jr.attributes)(dr||(dr={}))[ci]=jr.attributes[ci];jr.collapsed&&(!nr||ws(nr.marker,jr)<0)&&(nr=kr)}else kr.from>Xe&&Zt>kr.from&&(Zt=kr.from)}if(gr)for(var Fi=0;Fi<gr.length;Fi+=2)gr[Fi+1]==Zt&&(Ln+=" "+gr[Fi]);if(!nr||nr.from==Xe)for(var yi=0;yi<rr.length;++yi)Kr(Q,0,rr[yi]);if(nr&&(nr.from||0)==Xe){if(Kr(Q,(nr.to==null?He+1:nr.to)-Xe,nr.marker,nr.from==null),nr.to==null)return;nr.to==Xe&&(nr=!1)}}if(Xe>=He)break;for(var fs=Math.min(He,Zt);;){if(Pt){var ns=Xe+Pt.length;if(!nr){var Oi=ns>fs?Pt.slice(0,fs-Xe):Pt;Q.addToken(Q,Oi,It?It+Tn:Tn,Yn,Xe+Oi.length==Zt?Ln:"",rn,dr)}if(ns>=fs){Pt=Pt.slice(fs-Xe),Xe=fs;break}Xe=ns,Yn=""}Pt=de.slice(Ee,Ee=ce[nt++]),It=Pr(ce[nt++],Q.cm.options)}}}function fi(X,Q,ce){this.line=Q,this.rest=Je(Q),this.size=this.rest?zn(kt(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=Et(X,Q)}function pi(X,Q,ce){for(var ae=[],de,Ee=Q;Ee<ce;Ee=de){var Ie=new fi(X.doc,Rn(X.doc,Ee),Ee);de=Ee+Ie.size,ae.push(Ie)}return ae}var ai=null;function hs(X){ai?ai.ops.push(X):X.ownsGroup=ai={ops:[X],delayedCallbacks:[]}}function Os(X){var Q=X.delayedCallbacks,ce=0;do{for(;ce<Q.length;ce++)Q[ce].call(null);for(var ae=0;ae<X.ops.length;ae++){var de=X.ops[ae];if(de.cursorActivityHandlers)for(;de.cursorActivityCalled<de.cursorActivityHandlers.length;)de.cursorActivityHandlers[de.cursorActivityCalled++].call(null,de.cm)}}while(ce<Q.length)}function Ji(X,Q){var ce=X.ownsGroup;if(ce)try{Os(ce)}finally{ai=null,Q(ce)}}var Ls=null;function hi(X,Q){var ce=Ot(X,Q);if(ce.length){var ae=Array.prototype.slice.call(arguments,2),de;ai?de=ai.delayedCallbacks:Ls?de=Ls:(de=Ls=[],setTimeout(pa,0));for(var Ee=function(He){de.push(function(){return ce[He].apply(null,ae)})},Ie=0;Ie<ce.length;++Ie)Ee(Ie)}}function pa(){var X=Ls;Ls=null;for(var Q=0;Q<X.length;++Q)X[Q]()}function Wo(X,Q,ce,ae){for(var de=0;de<Q.changes.length;de++){var Ee=Q.changes[de];Ee=="text"?ha(X,Q):Ee=="gutter"?lo(X,Q,ce,ae):Ee=="class"?Po(X,Q):Ee=="widget"&&Ao(X,Q,ae)}Q.changes=null}function Fs(X){return X.node==X.text&&(X.node=ke("div",null,null,"position: relative"),X.text.parentNode&&X.text.parentNode.replaceChild(X.node,X.text),X.node.appendChild(X.text),Y&&K<8&&(X.node.style.zIndex=2)),X.node}function qo(X,Q){var ce=Q.bgClass?Q.bgClass+" "+(Q.line.bgClass||""):Q.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),Q.background)ce?Q.background.className=ce:(Q.background.parentNode.removeChild(Q.background),Q.background=null);else if(ce){var ae=Fs(Q);Q.background=ae.insertBefore(ke("div",null,ce),ae.firstChild),X.display.input.setUneditable(Q.background)}}function Xs(X,Q){var ce=X.display.externalMeasured;return ce&&ce.line==Q.line?(X.display.externalMeasured=null,Q.measure=ce.measure,ce.built):vr(X,Q)}function ha(X,Q){var ce=Q.text.className,ae=Xs(X,Q);Q.text==Q.node&&(Q.node=ae.pre),Q.text.parentNode.replaceChild(ae.pre,Q.text),Q.text=ae.pre,ae.bgClass!=Q.bgClass||ae.textClass!=Q.textClass?(Q.bgClass=ae.bgClass,Q.textClass=ae.textClass,Po(X,Q)):ce&&(Q.text.className=ce)}function Po(X,Q){qo(X,Q),Q.line.wrapClass?Fs(Q).className=Q.line.wrapClass:Q.node!=Q.text&&(Q.node.className="");var ce=Q.textClass?Q.textClass+" "+(Q.line.textClass||""):Q.line.textClass;Q.text.className=ce||""}function lo(X,Q,ce,ae){if(Q.gutter&&(Q.node.removeChild(Q.gutter),Q.gutter=null),Q.gutterBackground&&(Q.node.removeChild(Q.gutterBackground),Q.gutterBackground=null),Q.line.gutterClass){var de=Fs(Q);Q.gutterBackground=ke("div",null,"CodeMirror-gutter-background "+Q.line.gutterClass,"left: "+(X.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px; width: "+ae.gutterTotalWidth+"px"),X.display.input.setUneditable(Q.gutterBackground),de.insertBefore(Q.gutterBackground,Q.text)}var Ee=Q.line.gutterMarkers;if(X.options.lineNumbers||Ee){var Ie=Fs(Q),He=Q.gutter=ke("div",null,"CodeMirror-gutter-wrapper","left: "+(X.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px");if(He.setAttribute("aria-hidden","true"),X.display.input.setUneditable(He),Ie.insertBefore(He,Q.text),Q.line.gutterClass&&(He.className+=" "+Q.line.gutterClass),X.options.lineNumbers&&(!Ee||!Ee["CodeMirror-linenumbers"])&&(Q.lineNumber=He.appendChild(ke("div",yt(X.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ae.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+X.display.lineNumInnerWidth+"px"))),Ee)for(var Xe=0;Xe<X.display.gutterSpecs.length;++Xe){var nt=X.display.gutterSpecs[Xe].className,Pt=Ee.hasOwnProperty(nt)&&Ee[nt];Pt&&He.appendChild(ke("div",[Pt],"CodeMirror-gutter-elt","left: "+ae.gutterLeft[nt]+"px; width: "+ae.gutterWidth[nt]+"px"))}}}function Ao(X,Q,ce){Q.alignable&&(Q.alignable=null);for(var ae=ye("CodeMirror-linewidget"),de=Q.node.firstChild,Ee=void 0;de;de=Ee)Ee=de.nextSibling,ae.test(de.className)&&Q.node.removeChild(de);Yo(X,Q,ce)}function ma(X,Q,ce,ae){var de=Xs(X,Q);return Q.text=Q.node=de.pre,de.bgClass&&(Q.bgClass=de.bgClass),de.textClass&&(Q.textClass=de.textClass),Po(X,Q),lo(X,Q,ce,ae),Yo(X,Q,ae),Q.node}function Yo(X,Q,ce){if(Ko(X,Q.line,Q,ce,!0),Q.rest)for(var ae=0;ae<Q.rest.length;ae++)Ko(X,Q.rest[ae],Q,ce,!1)}function Ko(X,Q,ce,ae,de){if(Q.widgets)for(var Ee=Fs(ce),Ie=0,He=Q.widgets;Ie<He.length;++Ie){var Xe=He[Ie],nt=ke("div",[Xe.node],"CodeMirror-linewidget"+(Xe.className?" "+Xe.className:""));Xe.handleMouseEvents||nt.setAttribute("cm-ignore-events","true"),co(Xe,nt,ce,ae),X.display.input.setUneditable(nt),de&&Xe.above?Ee.insertBefore(nt,ce.gutter||ce.text):Ee.appendChild(nt),hi(Xe,"redraw")}}function co(X,Q,ce,ae){if(X.noHScroll){(ce.alignable||(ce.alignable=[])).push(Q);var de=ae.wrapperWidth;Q.style.left=ae.fixedPos+"px",X.coverGutter||(de-=ae.gutterTotalWidth,Q.style.paddingLeft=ae.gutterTotalWidth+"px"),Q.style.width=de+"px"}X.coverGutter&&(Q.style.zIndex=5,Q.style.position="relative",X.noHScroll||(Q.style.marginLeft=-ae.gutterTotalWidth+"px"))}function ms(X){if(X.height!=null)return X.height;var Q=X.doc.cm;if(!Q)return 0;if(!ze(document.body,X.node)){var ce="position: relative;";X.coverGutter&&(ce+="margin-left: -"+Q.display.gutters.offsetWidth+"px;"),X.noHScroll&&(ce+="width: "+Q.display.wrapper.clientWidth+"px;"),Ae(Q.display.measure,ke("div",[X.node],null,ce))}return X.height=X.node.parentNode.offsetHeight}function gs(X,Q){for(var ce=En(Q);ce!=X.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==X.sizer&&ce!=X.mover)return!0}function _s(X){return X.lineSpace.offsetTop}function Ii(X){return X.mover.offsetHeight-X.lineSpace.offsetHeight}function uo(X){if(X.cachedPaddingH)return X.cachedPaddingH;var Q=Ae(X.measure,ke("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(Q):Q.currentStyle,ae={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(ae.left)&&!isNaN(ae.right)&&(X.cachedPaddingH=ae),ae}function ss(X){return Jt-X.display.nativeBarWidth}function Ps(X){return X.display.scroller.clientWidth-ss(X)-X.display.barWidth}function Ro(X){return X.display.scroller.clientHeight-ss(X)-X.display.barHeight}function ga(X,Q,ce){var ae=X.options.lineWrapping,de=ae&&Ps(X);if(!Q.measure.heights||ae&&Q.measure.width!=de){var Ee=Q.measure.heights=[];if(ae){Q.measure.width=de;for(var Ie=Q.text.firstChild.getClientRects(),He=0;He<Ie.length-1;He++){var Xe=Ie[He],nt=Ie[He+1];Math.abs(Xe.bottom-nt.bottom)>2&&Ee.push((Xe.bottom+nt.top)/2-ce.top)}}Ee.push(ce.bottom-ce.top)}}function Go(X,Q,ce){if(X.line==Q)return{map:X.measure.map,cache:X.measure.cache};if(X.rest){for(var ae=0;ae<X.rest.length;ae++)if(X.rest[ae]==Q)return{map:X.measure.maps[ae],cache:X.measure.caches[ae]};for(var de=0;de<X.rest.length;de++)if(zn(X.rest[de])>ce)return{map:X.measure.maps[de],cache:X.measure.caches[de],before:!0}}}function Ce(X,Q){Q=je(Q);var ce=zn(Q),ae=X.display.externalMeasured=new fi(X.doc,Q,ce);ae.lineN=ce;var de=ae.built=vr(X,ae);return ae.text=de.pre,Ae(X.display.lineMeasure,de.pre),ae}function Be(X,Q,ce,ae){return Ft(X,St(X,Q),ce,ae)}function it(X,Q){if(Q>=X.display.viewFrom&&Q<X.display.viewTo)return X.display.view[bs(X,Q)];var ce=X.display.externalMeasured;if(ce&&Q>=ce.lineN&&Q<ce.lineN+ce.size)return ce}function St(X,Q){var ce=zn(Q),ae=it(X,ce);ae&&!ae.text?ae=null:ae&&ae.changes&&(Wo(X,ae,ce,Ss(X)),X.curOp.forceUpdate=!0),ae||(ae=Ce(X,Q));var de=Go(ae,Q,ce);return{line:Q,view:ae,rect:null,map:de.map,cache:de.cache,before:de.before,hasHeights:!1}}function Ft(X,Q,ce,ae,de){Q.before&&(ce=-1);var Ee=ce+(ae||""),Ie;return Q.cache.hasOwnProperty(Ee)?Ie=Q.cache[Ee]:(Q.rect||(Q.rect=Q.view.text.getBoundingClientRect()),Q.hasHeights||(ga(X,Q.view,Q.rect),Q.hasHeights=!0),Ie=Dn(X,Q,ce,ae),Ie.bogus||(Q.cache[Ee]=Ie)),{left:Ie.left,right:Ie.right,top:de?Ie.rtop:Ie.top,bottom:de?Ie.rbottom:Ie.bottom}}var Gt={left:0,right:0,top:0,bottom:0};function ln(X,Q,ce){for(var ae,de,Ee,Ie,He,Xe,nt=0;nt<X.length;nt+=3)if(He=X[nt],Xe=X[nt+1],Q<He?(de=0,Ee=1,Ie="left"):Q<Xe?(de=Q-He,Ee=de+1):(nt==X.length-3||Q==Xe&&X[nt+3]>Q)&&(Ee=Xe-He,de=Ee-1,Q>=Xe&&(Ie="right")),de!=null){if(ae=X[nt+2],He==Xe&&ce==(ae.insertLeft?"left":"right")&&(Ie=ce),ce=="left"&&de==0)for(;nt&&X[nt-2]==X[nt-3]&&X[nt-1].insertLeft;)ae=X[(nt-=3)+2],Ie="left";if(ce=="right"&&de==Xe-He)for(;nt<X.length-3&&X[nt+3]==X[nt+4]&&!X[nt+5].insertLeft;)ae=X[(nt+=3)+2],Ie="right";break}return{node:ae,start:de,end:Ee,collapse:Ie,coverStart:He,coverEnd:Xe}}function un(X,Q){var ce=Gt;if(Q=="left")for(var ae=0;ae<X.length&&(ce=X[ae]).left==ce.right;ae++);else for(var de=X.length-1;de>=0&&(ce=X[de]).left==ce.right;de--);return ce}function Dn(X,Q,ce,ae){var de=ln(Q.map,ce,ae),Ee=de.node,Ie=de.start,He=de.end,Xe=de.collapse,nt;if(Ee.nodeType==3){for(var Pt=0;Pt<4;Pt++){for(;Ie&&ht(Q.line.text.charAt(de.coverStart+Ie));)--Ie;for(;de.coverStart+He<de.coverEnd&&ht(Q.line.text.charAt(de.coverStart+He));)++He;if(Y&&K<9&&Ie==0&&He==de.coverEnd-de.coverStart?nt=Ee.parentNode.getBoundingClientRect():nt=un(Me(Ee,Ie,He).getClientRects(),ae),nt.left||nt.right||Ie==0)break;He=Ie,Ie=Ie-1,Xe="right"}Y&&K<11&&(nt=wn(X.display.measure,nt))}else{Ie>0&&(Xe=ae="right");var It;X.options.lineWrapping&&(It=Ee.getClientRects()).length>1?nt=It[ae=="right"?It.length-1:0]:nt=Ee.getBoundingClientRect()}if(Y&&K<9&&!Ie&&(!nt||!nt.left&&!nt.right)){var rn=Ee.parentNode.getClientRects()[0];rn?nt={left:rn.left,right:rn.left+ls(X.display),top:rn.top,bottom:rn.bottom}:nt=Gt}for(var Zt=nt.top-Q.rect.top,Tn=nt.bottom-Q.rect.top,Ln=(Zt+Tn)/2,Yn=Q.view.measure.heights,nr=0;nr<Yn.length-1&&!(Ln<Yn[nr]);nr++);var dr=nr?Yn[nr-1]:0,rr=Yn[nr],gr={left:(Xe=="right"?nt.right:nt.left)-Q.rect.left,right:(Xe=="left"?nt.left:nt.right)-Q.rect.left,top:dr,bottom:rr};return!nt.left&&!nt.right&&(gr.bogus=!0),X.options.singleCursorHeightPerLine||(gr.rtop=Zt,gr.rbottom=Tn),gr}function wn(X,Q){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ne(X))return Q;var ce=screen.logicalXDPI/screen.deviceXDPI,ae=screen.logicalYDPI/screen.deviceYDPI;return{left:Q.left*ce,right:Q.right*ce,top:Q.top*ae,bottom:Q.bottom*ae}}function qn(X){if(X.measure&&(X.measure.cache={},X.measure.heights=null,X.rest))for(var Q=0;Q<X.rest.length;Q++)X.measure.caches[Q]={}}function yr(X){X.display.externalMeasure=null,we(X.display.lineMeasure);for(var Q=0;Q<X.display.view.length;Q++)qn(X.display.view[Q])}function wr(X){yr(X),X.display.cachedCharWidth=X.display.cachedTextHeight=X.display.cachedPaddingH=null,X.options.lineWrapping||(X.display.maxLineChanged=!0),X.display.lineNumChars=null}function Hr(X){return Z&&ge?-(X.body.getBoundingClientRect().left-parseInt(getComputedStyle(X.body).marginLeft)):X.defaultView.pageXOffset||(X.documentElement||X.body).scrollLeft}function Jr(X){return Z&&ge?-(X.body.getBoundingClientRect().top-parseInt(getComputedStyle(X.body).marginTop)):X.defaultView.pageYOffset||(X.documentElement||X.body).scrollTop}function Br(X){var Q=je(X),ce=Q.widgets,ae=0;if(ce)for(var de=0;de<ce.length;++de)ce[de].above&&(ae+=ms(ce[de]));return ae}function ri(X,Q,ce,ae,de){if(!de){var Ee=Br(Q);ce.top+=Ee,ce.bottom+=Ee}if(ae=="line")return ce;ae||(ae="local");var Ie=Vt(Q);if(ae=="local"?Ie+=_s(X.display):Ie-=X.display.viewOffset,ae=="page"||ae=="window"){var He=X.display.lineSpace.getBoundingClientRect();Ie+=He.top+(ae=="window"?0:Jr(Ve(X)));var Xe=He.left+(ae=="window"?0:Hr(Ve(X)));ce.left+=Xe,ce.right+=Xe}return ce.top+=Ie,ce.bottom+=Ie,ce}function di(X,Q,ce){if(ce=="div")return Q;var ae=Q.left,de=Q.top;if(ce=="page")ae-=Hr(Ve(X)),de-=Jr(Ve(X));else if(ce=="local"||!ce){var Ee=X.display.sizer.getBoundingClientRect();ae+=Ee.left,de+=Ee.top}var Ie=X.display.lineSpace.getBoundingClientRect();return{left:ae-Ie.left,top:de-Ie.top}}function ii(X,Q,ce,ae,de){return ae||(ae=Rn(X.doc,Q.line)),ri(X,ae,Be(X,ae,Q.ch,de),ce)}function Qr(X,Q,ce,ae,de,Ee){ae=ae||Rn(X.doc,Q.line),de||(de=St(X,ae));function Ie(Tn,Ln){var Yn=Ft(X,de,Tn,Ln?"right":"left",Ee);return Ln?Yn.left=Yn.right:Yn.right=Yn.left,ri(X,ae,Yn,ce)}var He=xn(ae,X.doc.direction),Xe=Q.ch,nt=Q.sticky;if(Xe>=ae.text.length?(Xe=ae.text.length,nt="before"):Xe<=0&&(Xe=0,nt="after"),!He)return Ie(nt=="before"?Xe-1:Xe,nt=="before");function Pt(Tn,Ln,Yn){var nr=He[Ln],dr=nr.level==1;return Ie(Yn?Tn-1:Tn,dr!=Yn)}var It=Bn(He,Xe,nt),rn=fn,Zt=Pt(Xe,It,nt=="before");return rn!=null&&(Zt.other=Pt(Xe,rn,nt!="before")),Zt}function Gr(X,Q){var ce=0;Q=cn(X.doc,Q),X.options.lineWrapping||(ce=ls(X.display)*Q.ch);var ae=Rn(X.doc,Q.line),de=Vt(ae)+_s(X.display);return{left:ce,right:ce,top:de,bottom:de+ae.height}}function ki(X,Q,ce,ae,de){var Ee=wt(X,Q,ce);return Ee.xRel=de,ae&&(Ee.outside=ae),Ee}function _i(X,Q,ce){var ae=X.doc;if(ce+=X.display.viewOffset,ce<0)return ki(ae.first,0,null,-1,-1);var de=er(ae,ce),Ee=ae.first+ae.size-1;if(de>Ee)return ki(ae.first+ae.size-1,Rn(ae,Ee).text.length,null,1,1);Q<0&&(Q=0);for(var Ie=Rn(ae,de);;){var He=Vi(X,Ie,de,Q,ce),Xe=Te(Ie,He.ch+(He.xRel>0||He.outside>0?1:0));if(!Xe)return He;var nt=Xe.find(1);if(nt.line==de)return nt;Ie=Rn(ae,de=nt.line)}}function Ei(X,Q,ce,ae){ae-=Br(Q);var de=Q.text.length,Ee=ut(function(Ie){return Ft(X,ce,Ie-1).bottom<=ae},de,0);return de=ut(function(Ie){return Ft(X,ce,Ie).top>ae},Ee,de),{begin:Ee,end:de}}function Ni(X,Q,ce,ae){ce||(ce=St(X,Q));var de=ri(X,Q,Ft(X,ce,ae),"line").top;return Ei(X,Q,ce,de)}function Ri(X,Q,ce,ae){return X.bottom<=ce?!1:X.top>ce?!0:(ae?X.left:X.right)>Q}function Vi(X,Q,ce,ae,de){de-=Vt(Q);var Ee=St(X,Q),Ie=Br(Q),He=0,Xe=Q.text.length,nt=!0,Pt=xn(Q,X.doc.direction);if(Pt){var It=(X.options.lineWrapping?Zi:Yi)(X,Q,ce,Ee,Pt,ae,de);nt=It.level!=1,He=nt?It.from:It.to-1,Xe=nt?It.to:It.from-1}var rn=null,Zt=null,Tn=ut(function(Or){var kr=Ft(X,Ee,Or);return kr.top+=Ie,kr.bottom+=Ie,Ri(kr,ae,de,!1)?(kr.top<=de&&kr.left<=ae&&(rn=Or,Zt=kr),!0):!1},He,Xe),Ln,Yn,nr=!1;if(Zt){var dr=ae-Zt.left<Zt.right-ae,rr=dr==nt;Tn=rn+(rr?0:1),Yn=rr?"after":"before",Ln=dr?Zt.left:Zt.right}else{!nt&&(Tn==Xe||Tn==He)&&Tn++,Yn=Tn==0?"after":Tn==Q.text.length?"before":Ft(X,Ee,Tn-(nt?1:0)).bottom+Ie<=de==nt?"after":"before";var gr=Qr(X,wt(ce,Tn,Yn),"line",Q,Ee);Ln=gr.left,nr=de<gr.top?-1:de>=gr.bottom?1:0}return Tn=at(Q.text,Tn,1),ki(ce,Tn,Yn,nr,ae-Ln)}function Yi(X,Q,ce,ae,de,Ee,Ie){var He=ut(function(It){var rn=de[It],Zt=rn.level!=1;return Ri(Qr(X,wt(ce,Zt?rn.to:rn.from,Zt?"before":"after"),"line",Q,ae),Ee,Ie,!0)},0,de.length-1),Xe=de[He];if(He>0){var nt=Xe.level!=1,Pt=Qr(X,wt(ce,nt?Xe.from:Xe.to,nt?"after":"before"),"line",Q,ae);Ri(Pt,Ee,Ie,!0)&&Pt.top>Ie&&(Xe=de[He-1])}return Xe}function Zi(X,Q,ce,ae,de,Ee,Ie){var He=Ei(X,Q,ae,Ie),Xe=He.begin,nt=He.end;/\s/.test(Q.text.charAt(nt-1))&&nt--;for(var Pt=null,It=null,rn=0;rn<de.length;rn++){var Zt=de[rn];if(!(Zt.from>=nt||Zt.to<=Xe)){var Tn=Zt.level!=1,Ln=Ft(X,ae,Tn?Math.min(nt,Zt.to)-1:Math.max(Xe,Zt.from)).right,Yn=Ln<Ee?Ee-Ln+1e9:Ln-Ee;(!Pt||It>Yn)&&(Pt=Zt,It=Yn)}}return Pt||(Pt=de[de.length-1]),Pt.from<Xe&&(Pt={from:Xe,to:Pt.to,level:Pt.level}),Pt.to>nt&&(Pt={from:Pt.from,to:nt,level:Pt.level}),Pt}var vi;function zi(X){if(X.cachedTextHeight!=null)return X.cachedTextHeight;if(vi==null){vi=ke("pre",null,"CodeMirror-line-like");for(var Q=0;Q<49;++Q)vi.appendChild(document.createTextNode("x")),vi.appendChild(ke("br"));vi.appendChild(document.createTextNode("x"))}Ae(X.measure,vi);var ce=vi.offsetHeight/50;return ce>3&&(X.cachedTextHeight=ce),we(X.measure),ce||1}function ls(X){if(X.cachedCharWidth!=null)return X.cachedCharWidth;var Q=ke("span","xxxxxxxxxx"),ce=ke("pre",[Q],"CodeMirror-line-like");Ae(X.measure,ce);var ae=Q.getBoundingClientRect(),de=(ae.right-ae.left)/10;return de>2&&(X.cachedCharWidth=de),de||10}function Ss(X){for(var Q=X.display,ce={},ae={},de=Q.gutters.clientLeft,Ee=Q.gutters.firstChild,Ie=0;Ee;Ee=Ee.nextSibling,++Ie){var He=X.display.gutterSpecs[Ie].className;ce[He]=Ee.offsetLeft+Ee.clientLeft+de,ae[He]=Ee.clientWidth}return{fixedPos:vs(Q),gutterTotalWidth:Q.gutters.offsetWidth,gutterLeft:ce,gutterWidth:ae,wrapperWidth:Q.wrapper.clientWidth}}function vs(X){return X.scroller.getBoundingClientRect().left-X.sizer.getBoundingClientRect().left}function fo(X){var Q=zi(X.display),ce=X.options.lineWrapping,ae=ce&&Math.max(5,X.display.scroller.clientWidth/ls(X.display)-3);return function(de){if(Et(X.doc,de))return 0;var Ee=0;if(de.widgets)for(var Ie=0;Ie<de.widgets.length;Ie++)de.widgets[Ie].height&&(Ee+=de.widgets[Ie].height);return ce?Ee+(Math.ceil(de.text.length/ae)||1)*Q:Ee+Q}}function ks(X){var Q=X.doc,ce=fo(X);Q.iter(function(ae){var de=ce(ae);de!=ae.height&&hr(ae,de)})}function cs(X,Q,ce,ae){var de=X.display;if(!ce&&En(Q).getAttribute("cm-not-content")=="true")return null;var Ee,Ie,He=de.lineSpace.getBoundingClientRect();try{Ee=Q.clientX-He.left,Ie=Q.clientY-He.top}catch{return null}var Xe=_i(X,Ee,Ie),nt;if(ae&&Xe.xRel>0&&(nt=Rn(X.doc,Xe.line).text).length==Xe.ch){var Pt=Ht(nt,nt.length,X.options.tabSize)-nt.length;Xe=wt(Xe.line,Math.max(0,Math.round((Ee-uo(X.display).left)/ls(X.display))-Pt))}return Xe}function bs(X,Q){if(Q>=X.display.viewTo||(Q-=X.display.viewFrom,Q<0))return null;for(var ce=X.display.view,ae=0;ae<ce.length;ae++)if(Q-=ce[ae].size,Q<0)return ae}function bi(X,Q,ce,ae){Q==null&&(Q=X.doc.first),ce==null&&(ce=X.doc.first+X.doc.size),ae||(ae=0);var de=X.display;if(ae&&ce<de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>Q)&&(de.updateLineNumbers=Q),X.curOp.viewChanged=!0,Q>=de.viewTo)qr&&bt(X.doc,Q)<de.viewTo&&Li(X);else if(ce<=de.viewFrom)qr&&Dt(X.doc,ce+ae)>de.viewFrom?Li(X):(de.viewFrom+=ae,de.viewTo+=ae);else if(Q<=de.viewFrom&&ce>=de.viewTo)Li(X);else if(Q<=de.viewFrom){var Ee=Ti(X,ce,ce+ae,1);Ee?(de.view=de.view.slice(Ee.index),de.viewFrom=Ee.lineN,de.viewTo+=ae):Li(X)}else if(ce>=de.viewTo){var Ie=Ti(X,Q,Q,-1);Ie?(de.view=de.view.slice(0,Ie.index),de.viewTo=Ie.lineN):Li(X)}else{var He=Ti(X,Q,Q,-1),Xe=Ti(X,ce,ce+ae,1);He&&Xe?(de.view=de.view.slice(0,He.index).concat(pi(X,He.lineN,Xe.lineN)).concat(de.view.slice(Xe.index)),de.viewTo+=ae):Li(X)}var nt=de.externalMeasured;nt&&(ce<nt.lineN?nt.lineN+=ae:Q<nt.lineN+nt.size&&(de.externalMeasured=null))}function Qi(X,Q,ce){X.curOp.viewChanged=!0;var ae=X.display,de=X.display.externalMeasured;if(de&&Q>=de.lineN&&Q<de.lineN+de.size&&(ae.externalMeasured=null),!(Q<ae.viewFrom||Q>=ae.viewTo)){var Ee=ae.view[bs(X,Q)];if(Ee.node!=null){var Ie=Ee.changes||(Ee.changes=[]);Qt(Ie,ce)==-1&&Ie.push(ce)}}}function Li(X){X.display.viewFrom=X.display.viewTo=X.doc.first,X.display.view=[],X.display.viewOffset=0}function Ti(X,Q,ce,ae){var de=bs(X,Q),Ee,Ie=X.display.view;if(!qr||ce==X.doc.first+X.doc.size)return{index:de,lineN:ce};for(var He=X.display.viewFrom,Xe=0;Xe<de;Xe++)He+=Ie[Xe].size;if(He!=Q){if(ae>0){if(de==Ie.length-1)return null;Ee=He+Ie[de].size-Q,de++}else Ee=He-Q;Q+=Ee,ce+=Ee}for(;bt(X.doc,ce)!=ce;){if(de==(ae<0?0:Ie.length-1))return null;ce+=ae*Ie[de-(ae<0?1:0)].size,de+=ae}return{index:de,lineN:ce}}function Es(X,Q,ce){var ae=X.display,de=ae.view;de.length==0||Q>=ae.viewTo||ce<=ae.viewFrom?(ae.view=pi(X,Q,ce),ae.viewFrom=Q):(ae.viewFrom>Q?ae.view=pi(X,Q,ae.viewFrom).concat(ae.view):ae.viewFrom<Q&&(ae.view=ae.view.slice(bs(X,Q))),ae.viewFrom=Q,ae.viewTo<ce?ae.view=ae.view.concat(pi(X,ae.viewTo,ce)):ae.viewTo>ce&&(ae.view=ae.view.slice(0,bs(X,ce)))),ae.viewTo=ce}function Js(X){for(var Q=X.display.view,ce=0,ae=0;ae<Q.length;ae++){var de=Q[ae];!de.hidden&&(!de.node||de.changes)&&++ce}return ce}function ys(X){X.display.input.showSelection(X.display.input.prepareSelection())}function Xo(X,Q){Q===void 0&&(Q=!0);var ce=X.doc,ae={},de=ae.cursors=document.createDocumentFragment(),Ee=ae.selection=document.createDocumentFragment(),Ie=X.options.$customCursor;Ie&&(Q=!0);for(var He=0;He<ce.sel.ranges.length;He++)if(!(!Q&&He==ce.sel.primIndex)){var Xe=ce.sel.ranges[He];if(!(Xe.from().line>=X.display.viewTo||Xe.to().line<X.display.viewFrom)){var nt=Xe.empty();if(Ie){var Pt=Ie(X,Xe);Pt&&Bs(X,Pt,de)}else(nt||X.options.showCursorWhenSelecting)&&Bs(X,Xe.head,de);nt||Jo(X,Xe,Ee)}}return ae}function Bs(X,Q,ce){var ae=Qr(X,Q,"div",null,null,!X.options.singleCursorHeightPerLine),de=ce.appendChild(ke("div"," ","CodeMirror-cursor"));if(de.style.left=ae.left+"px",de.style.top=ae.top+"px",de.style.height=Math.max(0,ae.bottom-ae.top)*X.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(X.getWrapperElement().className)){var Ee=ii(X,Q,"div",null,null),Ie=Ee.right-Ee.left;de.style.width=(Ie>0?Ie:X.defaultCharWidth())+"px"}if(ae.other){var He=ce.appendChild(ke("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));He.style.display="",He.style.left=ae.other.left+"px",He.style.top=ae.other.top+"px",He.style.height=(ae.other.bottom-ae.other.top)*.85+"px"}}function po(X,Q){return X.top-Q.top||X.left-Q.left}function Jo(X,Q,ce){var ae=X.display,de=X.doc,Ee=document.createDocumentFragment(),Ie=uo(X.display),He=Ie.left,Xe=Math.max(ae.sizerWidth,Ps(X)-ae.sizer.offsetLeft)-Ie.right,nt=de.direction=="ltr";function Pt(rr,gr,Or,kr){gr<0&&(gr=0),gr=Math.round(gr),kr=Math.round(kr),Ee.appendChild(ke("div",null,"CodeMirror-selected","position: absolute; left: "+rr+`px;
- top: `+gr+"px; width: "+(Or??Xe-rr)+`px;
- height: `+(kr-gr)+"px"))}function It(rr,gr,Or){var kr=Rn(de,rr),jr=kr.text.length,ci,Fi;function yi(Oi,rs){return ii(X,wt(rr,Oi),"div",kr,rs)}function fs(Oi,rs,ji){var Mi=Ni(X,kr,null,Oi),Pi=rs=="ltr"==(ji=="after")?"left":"right",Si=ji=="after"?Mi.begin:Mi.end-(/\s/.test(kr.text.charAt(Mi.end-1))?2:1);return yi(Si,Pi)[Pi]}var ns=xn(kr,de.direction);return Rt(ns,gr||0,Or??jr,function(Oi,rs,ji,Mi){var Pi=ji=="ltr",Si=yi(Oi,Pi?"left":"right"),is=yi(rs-1,Pi?"right":"left"),da=gr==null&&Oi==0,Eo=Or==null&&rs==jr,qi=Mi==0,Ws=!ns||Mi==ns.length-1;if(is.top-Si.top<=3){var Bi=(nt?da:Eo)&&qi,Ul=(nt?Eo:da)&&Ws,oo=Bi?He:(Pi?Si:is).left,Uo=Ul?Xe:(Pi?is:Si).right;Pt(oo,Si.top,Uo-oo,Si.bottom)}else{var Ho,Ki,fa,Hl;Pi?(Ho=nt&&da&&qi?He:Si.left,Ki=nt?Xe:fs(Oi,ji,"before"),fa=nt?He:fs(rs,ji,"after"),Hl=nt&&Eo&&Ws?Xe:is.right):(Ho=nt?fs(Oi,ji,"before"):He,Ki=!nt&&da&&qi?Xe:Si.right,fa=!nt&&Eo&&Ws?He:is.left,Hl=nt?fs(rs,ji,"after"):Xe),Pt(Ho,Si.top,Ki-Ho,Si.bottom),Si.bottom<is.top&&Pt(He,Si.bottom,null,is.top),Pt(fa,is.top,Hl-fa,is.bottom)}(!ci||po(Si,ci)<0)&&(ci=Si),po(is,ci)<0&&(ci=is),(!Fi||po(Si,Fi)<0)&&(Fi=Si),po(is,Fi)<0&&(Fi=is)}),{start:ci,end:Fi}}var rn=Q.from(),Zt=Q.to();if(rn.line==Zt.line)It(rn.line,rn.ch,Zt.ch);else{var Tn=Rn(de,rn.line),Ln=Rn(de,Zt.line),Yn=je(Tn)==je(Ln),nr=It(rn.line,rn.ch,Yn?Tn.text.length+1:null).end,dr=It(Zt.line,Yn?0:null,Zt.ch).start;Yn&&(nr.top<dr.top-2?(Pt(nr.right,nr.top,null,nr.bottom),Pt(He,dr.top,dr.left,dr.bottom)):Pt(nr.right,nr.top,dr.left-nr.right,nr.bottom)),nr.bottom<dr.top&&Pt(He,nr.bottom,null,dr.top)}ce.appendChild(Ee)}function ho(X){if(X.state.focused){var Q=X.display;clearInterval(Q.blinker);var ce=!0;Q.cursorDiv.style.visibility="",X.options.cursorBlinkRate>0?Q.blinker=setInterval(function(){X.hasFocus()||zs(X),Q.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},X.options.cursorBlinkRate):X.options.cursorBlinkRate<0&&(Q.cursorDiv.style.visibility="hidden")}}function Do(X){X.hasFocus()||(X.display.input.focus(),X.state.focused||As(X))}function Mo(X){X.state.delayingBlurEvent=!0,setTimeout(function(){X.state.delayingBlurEvent&&(X.state.delayingBlurEvent=!1,X.state.focused&&zs(X))},100)}function As(X,Q){X.state.delayingBlurEvent&&!X.state.draggingText&&(X.state.delayingBlurEvent=!1),X.options.readOnly!="nocursor"&&(X.state.focused||(Wt(X,"focus",X,Q),X.state.focused=!0,Ze(X.display.wrapper,"CodeMirror-focused"),!X.curOp&&X.display.selForContextMenu!=X.doc.sel&&(X.display.input.reset(),G&&setTimeout(function(){return X.display.input.reset(!0)},20)),X.display.input.receivedFocus()),ho(X))}function zs(X,Q){X.state.delayingBlurEvent||(X.state.focused&&(Wt(X,"blur",X,Q),X.state.focused=!1,be(X.display.wrapper,"CodeMirror-focused")),clearInterval(X.display.blinker),setTimeout(function(){X.state.focused||(X.display.shift=!1)},150))}function mo(X){for(var Q=X.display,ce=Q.lineDiv.offsetTop,ae=Math.max(0,Q.scroller.getBoundingClientRect().top),de=Q.lineDiv.getBoundingClientRect().top,Ee=0,Ie=0;Ie<Q.view.length;Ie++){var He=Q.view[Ie],Xe=X.options.lineWrapping,nt=void 0,Pt=0;if(!He.hidden){if(de+=He.line.height,Y&&K<8){var It=He.node.offsetTop+He.node.offsetHeight;nt=It-ce,ce=It}else{var rn=He.node.getBoundingClientRect();nt=rn.bottom-rn.top,!Xe&&He.text.firstChild&&(Pt=He.text.firstChild.getBoundingClientRect().right-rn.left-1)}var Zt=He.line.height-nt;if((Zt>.005||Zt<-.005)&&(de<ae&&(Ee-=Zt),hr(He.line,nt),Io(He.line),He.rest))for(var Tn=0;Tn<He.rest.length;Tn++)Io(He.rest[Tn]);if(Pt>X.display.sizerWidth){var Ln=Math.ceil(Pt/ls(X.display));Ln>X.display.maxLineLength&&(X.display.maxLineLength=Ln,X.display.maxLine=He.line,X.display.maxLineChanged=!0)}}}Math.abs(Ee)>2&&(Q.scroller.scrollTop+=Ee)}function Io(X){if(X.widgets)for(var Q=0;Q<X.widgets.length;++Q){var ce=X.widgets[Q],ae=ce.node.parentNode;ae&&(ce.height=ae.offsetHeight)}}function Zo(X,Q,ce){var ae=ce&&ce.top!=null?Math.max(0,ce.top):X.scroller.scrollTop;ae=Math.floor(ae-_s(X));var de=ce&&ce.bottom!=null?ce.bottom:ae+X.wrapper.clientHeight,Ee=er(Q,ae),Ie=er(Q,de);if(ce&&ce.ensure){var He=ce.ensure.from.line,Xe=ce.ensure.to.line;He<Ee?(Ee=He,Ie=er(Q,Vt(Rn(Q,He))+X.wrapper.clientHeight)):Math.min(Xe,Q.lastLine())>=Ie&&(Ee=er(Q,Vt(Rn(Q,Xe))-X.wrapper.clientHeight),Ie=Xe)}return{from:Ee,to:Math.max(Ie,Ee+1)}}function No(X,Q){if(!gn(X,"scrollCursorIntoView")){var ce=X.display,ae=ce.sizer.getBoundingClientRect(),de=null,Ee=ce.wrapper.ownerDocument;if(Q.top+ae.top<0?de=!0:Q.bottom+ae.top>(Ee.defaultView.innerHeight||Ee.documentElement.clientHeight)&&(de=!1),de!=null&&!ne){var Ie=ke("div","",null,`position: absolute;
- top: `+(Q.top-ce.viewOffset-_s(X.display))+`px;
- height: `+(Q.bottom-Q.top+ss(X)+ce.barHeight)+`px;
- left: `+Q.left+"px; width: "+Math.max(2,Q.right-Q.left)+"px;");X.display.lineSpace.appendChild(Ie),Ie.scrollIntoView(de),X.display.lineSpace.removeChild(Ie)}}}function Qo(X,Q,ce,ae){ae==null&&(ae=0);var de;!X.options.lineWrapping&&Q==ce&&(ce=Q.sticky=="before"?wt(Q.line,Q.ch+1,"before"):Q,Q=Q.ch?wt(Q.line,Q.sticky=="before"?Q.ch-1:Q.ch,"after"):Q);for(var Ee=0;Ee<5;Ee++){var Ie=!1,He=Qr(X,Q),Xe=!ce||ce==Q?He:Qr(X,ce);de={left:Math.min(He.left,Xe.left),top:Math.min(He.top,Xe.top)-ae,right:Math.max(He.left,Xe.left),bottom:Math.max(He.bottom,Xe.bottom)+ae};var nt=va(X,de),Pt=X.doc.scrollTop,It=X.doc.scrollLeft;if(nt.scrollTop!=null&&(Vs(X,nt.scrollTop),Math.abs(X.doc.scrollTop-Pt)>1&&(Ie=!0)),nt.scrollLeft!=null&&(us(X,nt.scrollLeft),Math.abs(X.doc.scrollLeft-It)>1&&(Ie=!0)),!Ie)break}return de}function Zs(X,Q){var ce=va(X,Q);ce.scrollTop!=null&&Vs(X,ce.scrollTop),ce.scrollLeft!=null&&us(X,ce.scrollLeft)}function va(X,Q){var ce=X.display,ae=zi(X.display);Q.top<0&&(Q.top=0);var de=X.curOp&&X.curOp.scrollTop!=null?X.curOp.scrollTop:ce.scroller.scrollTop,Ee=Ro(X),Ie={};Q.bottom-Q.top>Ee&&(Q.bottom=Q.top+Ee);var He=X.doc.height+Ii(ce),Xe=Q.top<ae,nt=Q.bottom>He-ae;if(Q.top<de)Ie.scrollTop=Xe?0:Q.top;else if(Q.bottom>de+Ee){var Pt=Math.min(Q.top,(nt?He:Q.bottom)-Ee);Pt!=de&&(Ie.scrollTop=Pt)}var It=X.options.fixedGutter?0:ce.gutters.offsetWidth,rn=X.curOp&&X.curOp.scrollLeft!=null?X.curOp.scrollLeft:ce.scroller.scrollLeft-It,Zt=Ps(X)-ce.gutters.offsetWidth,Tn=Q.right-Q.left>Zt;return Tn&&(Q.right=Q.left+Zt),Q.left<10?Ie.scrollLeft=0:Q.left<rn?Ie.scrollLeft=Math.max(0,Q.left+It-(Tn?0:10)):Q.right>Zt+rn-3&&(Ie.scrollLeft=Q.right+(Tn?0:10)-Zt),Ie}function ba(X,Q){Q!=null&&(_o(X),X.curOp.scrollTop=(X.curOp.scrollTop==null?X.doc.scrollTop:X.curOp.scrollTop)+Q)}function Qs(X){_o(X);var Q=X.getCursor();X.curOp.scrollToPos={from:Q,to:Q,margin:X.options.cursorScrollMargin}}function Lo(X,Q,ce){(Q!=null||ce!=null)&&_o(X),Q!=null&&(X.curOp.scrollLeft=Q),ce!=null&&(X.curOp.scrollTop=ce)}function gl(X,Q){_o(X),X.curOp.scrollToPos=Q}function _o(X){var Q=X.curOp.scrollToPos;if(Q){X.curOp.scrollToPos=null;var ce=Gr(X,Q.from),ae=Gr(X,Q.to);ea(X,ce,ae,Q.margin)}}function ea(X,Q,ce,ae){var de=va(X,{left:Math.min(Q.left,ce.left),top:Math.min(Q.top,ce.top)-ae,right:Math.max(Q.right,ce.right),bottom:Math.max(Q.bottom,ce.bottom)+ae});Lo(X,de.scrollLeft,de.scrollTop)}function Vs(X,Q){Math.abs(X.doc.scrollTop-Q)<2||(B||wa(X,{top:Q}),Ka(X,Q,!0),B&&wa(X),ro(X,100))}function Ka(X,Q,ce){Q=Math.max(0,Math.min(X.display.scroller.scrollHeight-X.display.scroller.clientHeight,Q)),!(X.display.scroller.scrollTop==Q&&!ce)&&(X.doc.scrollTop=Q,X.display.scrollbars.setScrollTop(Q),X.display.scroller.scrollTop!=Q&&(X.display.scroller.scrollTop=Q))}function us(X,Q,ce,ae){Q=Math.max(0,Math.min(Q,X.display.scroller.scrollWidth-X.display.scroller.clientWidth)),!((ce?Q==X.doc.scrollLeft:Math.abs(X.doc.scrollLeft-Q)<2)&&!ae)&&(X.doc.scrollLeft=Q,Ea(X),X.display.scroller.scrollLeft!=Q&&(X.display.scroller.scrollLeft=Q),X.display.scrollbars.setScrollLeft(Q))}function Fo(X){var Q=X.display,ce=Q.gutters.offsetWidth,ae=Math.round(X.doc.height+Ii(X.display));return{clientHeight:Q.scroller.clientHeight,viewHeight:Q.wrapper.clientHeight,scrollWidth:Q.scroller.scrollWidth,clientWidth:Q.scroller.clientWidth,viewWidth:Q.wrapper.clientWidth,barLeft:X.options.fixedGutter?ce:0,docHeight:ae,scrollHeight:ae+ss(X)+Q.barHeight,nativeBarWidth:Q.nativeBarWidth,gutterWidth:ce}}var Us=function(X,Q,ce){this.cm=ce;var ae=this.vert=ke("div",[ke("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),de=this.horiz=ke("div",[ke("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ae.tabIndex=de.tabIndex=-1,X(ae),X(de),dt(ae,"scroll",function(){ae.clientHeight&&Q(ae.scrollTop,"vertical")}),dt(de,"scroll",function(){de.clientWidth&&Q(de.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Y&&K<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Us.prototype.update=function(X){var Q=X.scrollWidth>X.clientWidth+1,ce=X.scrollHeight>X.clientHeight+1,ae=X.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=Q?ae+"px":"0";var de=X.viewHeight-(Q?ae:0);this.vert.firstChild.style.height=Math.max(0,X.scrollHeight-X.clientHeight+de)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(Q){this.horiz.style.display="block",this.horiz.style.right=ce?ae+"px":"0",this.horiz.style.left=X.barLeft+"px";var Ee=X.viewWidth-X.barLeft-(ce?ae:0);this.horiz.firstChild.style.width=Math.max(0,X.scrollWidth-X.clientWidth+Ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&X.clientHeight>0&&(ae==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ce?ae:0,bottom:Q?ae:0}},Us.prototype.setScrollLeft=function(X){this.horiz.scrollLeft!=X&&(this.horiz.scrollLeft=X),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Us.prototype.setScrollTop=function(X){this.vert.scrollTop!=X&&(this.vert.scrollTop=X),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Us.prototype.zeroWidthHack=function(){var X=_e&&!se?"12px":"18px";this.horiz.style.height=this.vert.style.width=X,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new qt,this.disableVert=new qt},Us.prototype.enableZeroWidthBar=function(X,Q,ce){X.style.visibility="";function ae(){var de=X.getBoundingClientRect(),Ee=ce=="vert"?document.elementFromPoint(de.right-1,(de.top+de.bottom)/2):document.elementFromPoint((de.right+de.left)/2,de.bottom-1);Ee!=X?X.style.visibility="hidden":Q.set(1e3,ae)}Q.set(1e3,ae)},Us.prototype.clear=function(){var X=this.horiz.parentNode;X.removeChild(this.horiz),X.removeChild(this.vert)};var vo=function(){};vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};function eo(X,Q){Q||(Q=Fo(X));var ce=X.display.barWidth,ae=X.display.barHeight;Ga(X,Q);for(var de=0;de<4&&ce!=X.display.barWidth||ae!=X.display.barHeight;de++)ce!=X.display.barWidth&&X.options.lineWrapping&&mo(X),Ga(X,Fo(X)),ce=X.display.barWidth,ae=X.display.barHeight}function Ga(X,Q){var ce=X.display,ae=ce.scrollbars.update(Q);ce.sizer.style.paddingRight=(ce.barWidth=ae.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=ae.bottom)+"px",ce.heightForcer.style.borderBottom=ae.bottom+"px solid transparent",ae.right&&ae.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=ae.bottom+"px",ce.scrollbarFiller.style.width=ae.right+"px"):ce.scrollbarFiller.style.display="",ae.bottom&&X.options.coverGutterNextToScrollbar&&X.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=ae.bottom+"px",ce.gutterFiller.style.width=Q.gutterWidth+"px"):ce.gutterFiller.style.display=""}var ya={native:Us,null:vo};function Xa(X){X.display.scrollbars&&(X.display.scrollbars.clear(),X.display.scrollbars.addClass&&be(X.display.wrapper,X.display.scrollbars.addClass)),X.display.scrollbars=new ya[X.options.scrollbarStyle](function(Q){X.display.wrapper.insertBefore(Q,X.display.scrollbarFiller),dt(Q,"mousedown",function(){X.state.focused&&setTimeout(function(){return X.display.input.focus()},0)}),Q.setAttribute("cm-not-content","true")},function(Q,ce){ce=="horizontal"?us(X,Q):Vs(X,Q)},X),X.display.scrollbars.addClass&&Ze(X.display.wrapper,X.display.scrollbars.addClass)}var _l=0;function Rs(X){X.curOp={cm:X,viewChanged:!1,startHeight:X.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:++_l,markArrays:null},hs(X.curOp)}function Ds(X){var Q=X.curOp;Q&&Ji(Q,function(ce){for(var ae=0;ae<ce.ops.length;ae++)ce.ops[ae].cm.curOp=null;vl(ce)})}function vl(X){for(var Q=X.ops,ce=0;ce<Q.length;ce++)Ja(Q[ce]);for(var ae=0;ae<Q.length;ae++)ta(Q[ae]);for(var de=0;de<Q.length;de++)bl(Q[de]);for(var Ee=0;Ee<Q.length;Ee++)Za(Q[Ee]);for(var Ie=0;Ie<Q.length;Ie++)Qa(Q[Ie])}function Ja(X){var Q=X.cm,ce=Q.display;xl(Q),X.updateMaxLine&&Mn(Q),X.mustUpdate=X.viewChanged||X.forceUpdate||X.scrollTop!=null||X.scrollToPos&&(X.scrollToPos.from.line<ce.viewFrom||X.scrollToPos.to.line>=ce.viewTo)||ce.maxLineChanged&&Q.options.lineWrapping,X.update=X.mustUpdate&&new na(Q,X.mustUpdate&&{top:X.scrollTop,ensure:X.scrollToPos},X.forceUpdate)}function ta(X){X.updatedDisplay=X.mustUpdate&&xa(X.cm,X.update)}function bl(X){var Q=X.cm,ce=Q.display;X.updatedDisplay&&mo(Q),X.barMeasure=Fo(Q),ce.maxLineChanged&&!Q.options.lineWrapping&&(X.adjustWidthTo=Be(Q,ce.maxLine,ce.maxLine.text.length).left+3,Q.display.sizerWidth=X.adjustWidthTo,X.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+X.adjustWidthTo+ss(Q)+Q.display.barWidth),X.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+X.adjustWidthTo-Ps(Q))),(X.updatedDisplay||X.selectionChanged)&&(X.preparedSelection=ce.input.prepareSelection())}function Za(X){var Q=X.cm;X.adjustWidthTo!=null&&(Q.display.sizer.style.minWidth=X.adjustWidthTo+"px",X.maxScrollLeft<Q.doc.scrollLeft&&us(Q,Math.min(Q.display.scroller.scrollLeft,X.maxScrollLeft),!0),Q.display.maxLineChanged=!1);var ce=X.focus&&X.focus==Fe(Ve(Q));X.preparedSelection&&Q.display.input.showSelection(X.preparedSelection,ce),(X.updatedDisplay||X.startHeight!=Q.doc.height)&&eo(Q,X.barMeasure),X.updatedDisplay&&ka(Q,X.barMeasure),X.selectionChanged&&ho(Q),Q.state.focused&&X.updateInput&&Q.display.input.reset(X.typing),ce&&Do(X.cm)}function Qa(X){var Q=X.cm,ce=Q.display,ae=Q.doc;if(X.updatedDisplay&&el(Q,X.update),ce.wheelStartX!=null&&(X.scrollTop!=null||X.scrollLeft!=null||X.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),X.scrollTop!=null&&Ka(Q,X.scrollTop,X.forceScroll),X.scrollLeft!=null&&us(Q,X.scrollLeft,!0,!0),X.scrollToPos){var de=Qo(Q,cn(ae,X.scrollToPos.from),cn(ae,X.scrollToPos.to),X.scrollToPos.margin);No(Q,de)}var Ee=X.maybeHiddenMarkers,Ie=X.maybeUnhiddenMarkers;if(Ee)for(var He=0;He<Ee.length;++He)Ee[He].lines.length||Wt(Ee[He],"hide");if(Ie)for(var Xe=0;Xe<Ie.length;++Xe)Ie[Xe].lines.length&&Wt(Ie[Xe],"unhide");ce.wrapper.offsetHeight&&(ae.scrollTop=Q.display.scroller.scrollTop),X.changeObjs&&Wt(Q,"changes",Q,X.changeObjs),X.update&&X.update.finish()}function Ui(X,Q){if(X.curOp)return Q();Rs(X);try{return Q()}finally{Ds(X)}}function wi(X,Q){return function(){if(X.curOp)return Q.apply(X,arguments);Rs(X);try{return Q.apply(X,arguments)}finally{Ds(X)}}}function Di(X){return function(){if(this.curOp)return X.apply(this,arguments);Rs(this);try{return X.apply(this,arguments)}finally{Ds(this)}}}function Ci(X){return function(){var Q=this.cm;if(!Q||Q.curOp)return X.apply(this,arguments);Rs(Q);try{return X.apply(this,arguments)}finally{Ds(Q)}}}function ro(X,Q){X.doc.highlightFrontier<X.display.viewTo&&X.state.highlight.set(Q,Nt(yl,X))}function yl(X){var Q=X.doc;if(!(Q.highlightFrontier>=X.display.viewTo)){var ce=+new Date+X.options.workTime,ae=kn(X,Q.highlightFrontier),de=[];Q.iter(ae.line,Math.min(Q.first+Q.size,X.display.viewTo+500),function(Ee){if(ae.line>=X.display.viewFrom){var Ie=Ee.styles,He=Ee.text.length>X.options.maxHighlightLength?tr(Q.mode,ae.state):null,Xe=tt(X,Ee,ae,!0);He&&(ae.state=He),Ee.styles=Xe.styles;var nt=Ee.styleClasses,Pt=Xe.classes;Pt?Ee.styleClasses=Pt:nt&&(Ee.styleClasses=null);for(var It=!Ie||Ie.length!=Ee.styles.length||nt!=Pt&&(!nt||!Pt||nt.bgClass!=Pt.bgClass||nt.textClass!=Pt.textClass),rn=0;!It&&rn<Ie.length;++rn)It=Ie[rn]!=Ee.styles[rn];It&&de.push(ae.line),Ee.stateAfter=ae.save(),ae.nextLine()}else Ee.text.length<=X.options.maxHighlightLength&&Un(X,Ee.text,ae),Ee.stateAfter=ae.line%5==0?ae.save():null,ae.nextLine();if(+new Date>ce)return ro(X,X.options.workDelay),!0}),Q.highlightFrontier=ae.line,Q.modeFrontier=Math.max(Q.modeFrontier,ae.line),de.length&&Ui(X,function(){for(var Ee=0;Ee<de.length;Ee++)Qi(X,de[Ee],"text")})}}var na=function(X,Q,ce){var ae=X.display;this.viewport=Q,this.visible=Zo(ae,X.doc,Q),this.editorIsHidden=!ae.wrapper.offsetWidth,this.wrapperHeight=ae.wrapper.clientHeight,this.wrapperWidth=ae.wrapper.clientWidth,this.oldDisplayWidth=Ps(X),this.force=ce,this.dims=Ss(X),this.events=[]};na.prototype.signal=function(X,Q){Ct(X,Q)&&this.events.push(arguments)},na.prototype.finish=function(){for(var X=0;X<this.events.length;X++)Wt.apply(null,this.events[X])};function xl(X){var Q=X.display;!Q.scrollbarsClipped&&Q.scroller.offsetWidth&&(Q.nativeBarWidth=Q.scroller.offsetWidth-Q.scroller.clientWidth,Q.heightForcer.style.height=ss(X)+"px",Q.sizer.style.marginBottom=-Q.nativeBarWidth+"px",Q.sizer.style.borderRightWidth=ss(X)+"px",Q.scrollbarsClipped=!0)}function wl(X){if(X.hasFocus())return null;var Q=Fe(Ve(X));if(!Q||!ze(X.display.lineDiv,Q))return null;var ce={activeElt:Q};if(window.getSelection){var ae=At(X).getSelection();ae.anchorNode&&ae.extend&&ze(X.display.lineDiv,ae.anchorNode)&&(ce.anchorNode=ae.anchorNode,ce.anchorOffset=ae.anchorOffset,ce.focusNode=ae.focusNode,ce.focusOffset=ae.focusOffset)}return ce}function Sl(X){if(!(!X||!X.activeElt||X.activeElt==Fe(X.activeElt.ownerDocument))&&(X.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(X.activeElt.nodeName)&&X.anchorNode&&ze(document.body,X.anchorNode)&&ze(document.body,X.focusNode))){var Q=X.activeElt.ownerDocument,ce=Q.defaultView.getSelection(),ae=Q.createRange();ae.setEnd(X.anchorNode,X.anchorOffset),ae.collapse(!1),ce.removeAllRanges(),ce.addRange(ae),ce.extend(X.focusNode,X.focusOffset)}}function xa(X,Q){var ce=X.display,ae=X.doc;if(Q.editorIsHidden)return Li(X),!1;if(!Q.force&&Q.visible.from>=ce.viewFrom&&Q.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&Js(X)==0)return!1;tl(X)&&(Li(X),Q.dims=Ss(X));var de=ae.first+ae.size,Ee=Math.max(Q.visible.from-X.options.viewportMargin,ae.first),Ie=Math.min(de,Q.visible.to+X.options.viewportMargin);ce.viewFrom<Ee&&Ee-ce.viewFrom<20&&(Ee=Math.max(ae.first,ce.viewFrom)),ce.viewTo>Ie&&ce.viewTo-Ie<20&&(Ie=Math.min(de,ce.viewTo)),qr&&(Ee=bt(X.doc,Ee),Ie=Dt(X.doc,Ie));var He=Ee!=ce.viewFrom||Ie!=ce.viewTo||ce.lastWrapHeight!=Q.wrapperHeight||ce.lastWrapWidth!=Q.wrapperWidth;Es(X,Ee,Ie),ce.viewOffset=Vt(Rn(X.doc,ce.viewFrom)),X.display.mover.style.top=ce.viewOffset+"px";var Xe=Js(X);if(!He&&Xe==0&&!Q.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var nt=wl(X);return Xe>4&&(ce.lineDiv.style.display="none"),kl(X,ce.updateLineNumbers,Q.dims),Xe>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,Sl(nt),we(ce.cursorDiv),we(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,He&&(ce.lastWrapHeight=Q.wrapperHeight,ce.lastWrapWidth=Q.wrapperWidth,ro(X,400)),ce.updateLineNumbers=null,!0}function el(X,Q){for(var ce=Q.viewport,ae=!0;;ae=!1){if(!ae||!X.options.lineWrapping||Q.oldDisplayWidth==Ps(X)){if(ce&&ce.top!=null&&(ce={top:Math.min(X.doc.height+Ii(X.display)-Ro(X),ce.top)}),Q.visible=Zo(X.display,X.doc,ce),Q.visible.from>=X.display.viewFrom&&Q.visible.to<=X.display.viewTo)break}else ae&&(Q.visible=Zo(X.display,X.doc,ce));if(!xa(X,Q))break;mo(X);var de=Fo(X);ys(X),eo(X,de),ka(X,de),Q.force=!1}Q.signal(X,"update",X),(X.display.viewFrom!=X.display.reportedViewFrom||X.display.viewTo!=X.display.reportedViewTo)&&(Q.signal(X,"viewportChange",X,X.display.viewFrom,X.display.viewTo),X.display.reportedViewFrom=X.display.viewFrom,X.display.reportedViewTo=X.display.viewTo)}function wa(X,Q){var ce=new na(X,Q);if(xa(X,ce)){mo(X),el(X,ce);var ae=Fo(X);ys(X),eo(X,ae),ka(X,ae),ce.finish()}}function kl(X,Q,ce){var ae=X.display,de=X.options.lineNumbers,Ee=ae.lineDiv,Ie=Ee.firstChild;function He(Tn){var Ln=Tn.nextSibling;return G&&_e&&X.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Ln}for(var Xe=ae.view,nt=ae.viewFrom,Pt=0;Pt<Xe.length;Pt++){var It=Xe[Pt];if(!It.hidden)if(!It.node||It.node.parentNode!=Ee){var rn=ma(X,It,nt,ce);Ee.insertBefore(rn,Ie)}else{for(;Ie!=It.node;)Ie=He(Ie);var Zt=de&&Q!=null&&Q<=nt&&It.lineNumber;It.changes&&(Qt(It.changes,"gutter")>-1&&(Zt=!1),Wo(X,It,nt,ce)),Zt&&(we(It.lineNumber),It.lineNumber.appendChild(document.createTextNode(yt(X.options,nt)))),Ie=It.node.nextSibling}nt+=It.size}for(;Ie;)Ie=He(Ie)}function Sa(X){var Q=X.gutters.offsetWidth;X.sizer.style.marginLeft=Q+"px",hi(X,"gutterChanged",X)}function ka(X,Q){X.display.sizer.style.minHeight=Q.docHeight+"px",X.display.heightForcer.style.top=Q.docHeight+"px",X.display.gutters.style.height=Q.docHeight+X.display.barHeight+ss(X)+"px"}function Ea(X){var Q=X.display,ce=Q.view;if(!(!Q.alignWidgets&&(!Q.gutters.firstChild||!X.options.fixedGutter))){for(var ae=vs(Q)-Q.scroller.scrollLeft+X.doc.scrollLeft,de=Q.gutters.offsetWidth,Ee=ae+"px",Ie=0;Ie<ce.length;Ie++)if(!ce[Ie].hidden){X.options.fixedGutter&&(ce[Ie].gutter&&(ce[Ie].gutter.style.left=Ee),ce[Ie].gutterBackground&&(ce[Ie].gutterBackground.style.left=Ee));var He=ce[Ie].alignable;if(He)for(var Xe=0;Xe<He.length;Xe++)He[Xe].style.left=Ee}X.options.fixedGutter&&(Q.gutters.style.left=ae+de+"px")}}function tl(X){if(!X.options.lineNumbers)return!1;var Q=X.doc,ce=yt(X.options,Q.first+Q.size-1),ae=X.display;if(ce.length!=ae.lineNumChars){var de=ae.measure.appendChild(ke("div",[ke("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ee=de.firstChild.offsetWidth,Ie=de.offsetWidth-Ee;return ae.lineGutter.style.width="",ae.lineNumInnerWidth=Math.max(Ee,ae.lineGutter.offsetWidth-Ie)+1,ae.lineNumWidth=ae.lineNumInnerWidth+Ie,ae.lineNumChars=ae.lineNumInnerWidth?ce.length:-1,ae.lineGutter.style.width=ae.lineNumWidth+"px",Sa(X.display),!0}return!1}function Ca(X,Q){for(var ce=[],ae=!1,de=0;de<X.length;de++){var Ee=X[de],Ie=null;if(typeof Ee!="string"&&(Ie=Ee.style,Ee=Ee.className),Ee=="CodeMirror-linenumbers")if(Q)ae=!0;else continue;ce.push({className:Ee,style:Ie})}return Q&&!ae&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function nl(X){var Q=X.gutters,ce=X.gutterSpecs;we(Q),X.lineGutter=null;for(var ae=0;ae<ce.length;++ae){var de=ce[ae],Ee=de.className,Ie=de.style,He=Q.appendChild(ke("div",null,"CodeMirror-gutter "+Ee));Ie&&(He.style.cssText=Ie),Ee=="CodeMirror-linenumbers"&&(X.lineGutter=He,He.style.width=(X.lineNumWidth||1)+"px")}Q.style.display=ce.length?"":"none",Sa(X)}function Bo(X){nl(X.display),bi(X),Ea(X)}function El(X,Q,ce,ae){var de=this;this.input=ce,de.scrollbarFiller=ke("div",null,"CodeMirror-scrollbar-filler"),de.scrollbarFiller.setAttribute("cm-not-content","true"),de.gutterFiller=ke("div",null,"CodeMirror-gutter-filler"),de.gutterFiller.setAttribute("cm-not-content","true"),de.lineDiv=Oe("div",null,"CodeMirror-code"),de.selectionDiv=ke("div",null,null,"position: relative; z-index: 1"),de.cursorDiv=ke("div",null,"CodeMirror-cursors"),de.measure=ke("div",null,"CodeMirror-measure"),de.lineMeasure=ke("div",null,"CodeMirror-measure"),de.lineSpace=Oe("div",[de.measure,de.lineMeasure,de.selectionDiv,de.cursorDiv,de.lineDiv],null,"position: relative; outline: none");var Ee=Oe("div",[de.lineSpace],"CodeMirror-lines");de.mover=ke("div",[Ee],null,"position: relative"),de.sizer=ke("div",[de.mover],"CodeMirror-sizer"),de.sizerWidth=null,de.heightForcer=ke("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),de.gutters=ke("div",null,"CodeMirror-gutters"),de.lineGutter=null,de.scroller=ke("div",[de.sizer,de.heightForcer,de.gutters],"CodeMirror-scroll"),de.scroller.setAttribute("tabIndex","-1"),de.wrapper=ke("div",[de.scrollbarFiller,de.gutterFiller,de.scroller],"CodeMirror"),Z&&ee>=105&&(de.wrapper.style.clipPath="inset(0px)"),de.wrapper.setAttribute("translate","no"),Y&&K<8&&(de.gutters.style.zIndex=-1,de.scroller.style.paddingRight=0),!G&&!(B&&ue)&&(de.scroller.draggable=!0),X&&(X.appendChild?X.appendChild(de.wrapper):X(de.wrapper)),de.viewFrom=de.viewTo=Q.first,de.reportedViewFrom=de.reportedViewTo=Q.first,de.view=[],de.renderedView=null,de.externalMeasured=null,de.viewOffset=0,de.lastWrapHeight=de.lastWrapWidth=0,de.updateLineNumbers=null,de.nativeBarWidth=de.barHeight=de.barWidth=0,de.scrollbarsClipped=!1,de.lineNumWidth=de.lineNumInnerWidth=de.lineNumChars=null,de.alignWidgets=!1,de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.maxLine=null,de.maxLineLength=0,de.maxLineChanged=!1,de.wheelDX=de.wheelDY=de.wheelStartX=de.wheelStartY=null,de.shift=!1,de.selForContextMenu=null,de.activeTouch=null,de.gutterSpecs=Ca(ae.gutters,ae.lineNumbers),nl(de),ce.init(de)}var bo=0,Cs=null;Y?Cs=-.53:B?Cs=15:Z?Cs=-.7:re&&(Cs=-1/3);function rl(X){var Q=X.wheelDeltaX,ce=X.wheelDeltaY;return Q==null&&X.detail&&X.axis==X.HORIZONTAL_AXIS&&(Q=X.detail),ce==null&&X.detail&&X.axis==X.VERTICAL_AXIS?ce=X.detail:ce==null&&(ce=X.wheelDelta),{x:Q,y:ce}}function Cl(X){var Q=rl(X);return Q.x*=Cs,Q.y*=Cs,Q}function $a(X,Q){Z&&ee==102&&(X.display.chromeScrollHack==null?X.display.sizer.style.pointerEvents="none":clearTimeout(X.display.chromeScrollHack),X.display.chromeScrollHack=setTimeout(function(){X.display.chromeScrollHack=null,X.display.sizer.style.pointerEvents=""},100));var ce=rl(Q),ae=ce.x,de=ce.y,Ee=Cs;Q.deltaMode===0&&(ae=Q.deltaX,de=Q.deltaY,Ee=1);var Ie=X.display,He=Ie.scroller,Xe=He.scrollWidth>He.clientWidth,nt=He.scrollHeight>He.clientHeight;if(ae&&Xe||de&&nt){if(de&&_e&&G){e:for(var Pt=Q.target,It=Ie.view;Pt!=He;Pt=Pt.parentNode)for(var rn=0;rn<It.length;rn++)if(It[rn].node==Pt){X.display.currentWheelTarget=Pt;break e}}if(ae&&!B&&!te&&Ee!=null){de&&nt&&Vs(X,Math.max(0,He.scrollTop+de*Ee)),us(X,Math.max(0,He.scrollLeft+ae*Ee)),(!de||de&&nt)&&Tt(Q),Ie.wheelStartX=null;return}if(de&&Ee!=null){var Zt=de*Ee,Tn=X.doc.scrollTop,Ln=Tn+Ie.wrapper.clientHeight;Zt<0?Tn=Math.max(0,Tn+Zt-50):Ln=Math.min(X.doc.height,Ln+Zt+50),wa(X,{top:Tn,bottom:Ln})}bo<20&&Q.deltaMode!==0&&(Ie.wheelStartX==null?(Ie.wheelStartX=He.scrollLeft,Ie.wheelStartY=He.scrollTop,Ie.wheelDX=ae,Ie.wheelDY=de,setTimeout(function(){if(Ie.wheelStartX!=null){var Yn=He.scrollLeft-Ie.wheelStartX,nr=He.scrollTop-Ie.wheelStartY,dr=nr&&Ie.wheelDY&&nr/Ie.wheelDY||Yn&&Ie.wheelDX&&Yn/Ie.wheelDX;Ie.wheelStartX=Ie.wheelStartY=null,dr&&(Cs=(Cs*bo+dr)/(bo+1),++bo)}},200)):(Ie.wheelDX+=ae,Ie.wheelDY+=de))}}var $r=function(X,Q){this.ranges=X,this.primIndex=Q};$r.prototype.primary=function(){return this.ranges[this.primIndex]},$r.prototype.equals=function(X){if(X==this)return!0;if(X.primIndex!=this.primIndex||X.ranges.length!=this.ranges.length)return!1;for(var Q=0;Q<this.ranges.length;Q++){var ce=this.ranges[Q],ae=X.ranges[Q];if(!Kt(ce.anchor,ae.anchor)||!Kt(ce.head,ae.head))return!1}return!0},$r.prototype.deepCopy=function(){for(var X=[],Q=0;Q<this.ranges.length;Q++)X[Q]=new Wr(Mt(this.ranges[Q].anchor),Mt(this.ranges[Q].head));return new $r(X,this.primIndex)},$r.prototype.somethingSelected=function(){for(var X=0;X<this.ranges.length;X++)if(!this.ranges[X].empty())return!0;return!1},$r.prototype.contains=function(X,Q){Q||(Q=X);for(var ce=0;ce<this.ranges.length;ce++){var ae=this.ranges[ce];if(Bt(Q,ae.from())>=0&&Bt(X,ae.to())<=0)return ce}return-1};var Wr=function(X,Q){this.anchor=X,this.head=Q};Wr.prototype.from=function(){return hn(this.anchor,this.head)},Wr.prototype.to=function(){return tn(this.anchor,this.head)},Wr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function es(X,Q,ce){var ae=X&&X.options.selectionsMayTouch,de=Q[ce];Q.sort(function(rn,Zt){return Bt(rn.from(),Zt.from())}),ce=Qt(Q,de);for(var Ee=1;Ee<Q.length;Ee++){var Ie=Q[Ee],He=Q[Ee-1],Xe=Bt(He.to(),Ie.from());if(ae&&!Ie.empty()?Xe>0:Xe>=0){var nt=hn(He.from(),Ie.from()),Pt=tn(He.to(),Ie.to()),It=He.empty()?Ie.from()==Ie.head:He.from()==He.head;Ee<=ce&&--ce,Q.splice(--Ee,2,new Wr(It?Pt:nt,It?nt:Pt))}}return new $r(Q,ce)}function Hi(X,Q){return new $r([new Wr(X,Q||X)],0)}function xs(X){return X.text?wt(X.from.line+X.text.length-1,kt(X.text).length+(X.text.length==1?X.from.ch:0)):X.to}function il(X,Q){if(Bt(X,Q.from)<0)return X;if(Bt(X,Q.to)<=0)return xs(Q);var ce=X.line+Q.text.length-(Q.to.line-Q.from.line)-1,ae=X.ch;return X.line==Q.to.line&&(ae+=xs(Q).ch-Q.to.ch),wt(ce,ae)}function yo(X,Q){for(var ce=[],ae=0;ae<X.sel.ranges.length;ae++){var de=X.sel.ranges[ae];ce.push(new Wr(il(de.anchor,Q),il(de.head,Q)))}return es(X.cm,ce,X.sel.primIndex)}function Ta(X,Q,ce){return X.line==Q.line?wt(ce.line,X.ch-Q.ch+ce.ch):wt(ce.line+(X.line-Q.line),X.ch)}function $l(X,Q,ce){for(var ae=[],de=wt(X.first,0),Ee=de,Ie=0;Ie<Q.length;Ie++){var He=Q[Ie],Xe=Ta(He.from,de,Ee),nt=Ta(xs(He),de,Ee);if(de=He.to,Ee=nt,ce=="around"){var Pt=X.sel.ranges[Ie],It=Bt(Pt.head,Pt.anchor)<0;ae[Ie]=new Wr(It?nt:Xe,It?Xe:nt)}else ae[Ie]=new Wr(Xe,Xe)}return new $r(ae,X.sel.primIndex)}function zo(X){X.doc.mode=Qn(X.options,X.doc.modeOption),Ms(X)}function Ms(X){X.doc.iter(function(Q){Q.stateAfter&&(Q.stateAfter=null),Q.styles&&(Q.styles=null)}),X.doc.modeFrontier=X.doc.highlightFrontier=X.doc.first,ro(X,100),X.state.modeGen++,X.curOp&&bi(X)}function jo(X,Q){return Q.from.ch==0&&Q.to.ch==0&&kt(Q.text)==""&&(!X.cm||X.cm.options.wholeLineUpdateBefore)}function xo(X,Q,ce,ae){function de(dr){return ce?ce[dr]:null}function Ee(dr,rr,gr){vn(dr,rr,gr,ae),hi(dr,"change",dr,Q)}function Ie(dr,rr){for(var gr=[],Or=dr;Or<rr;++Or)gr.push(new bn(nt[Or],de(Or),ae));return gr}var He=Q.from,Xe=Q.to,nt=Q.text,Pt=Rn(X,He.line),It=Rn(X,Xe.line),rn=kt(nt),Zt=de(nt.length-1),Tn=Xe.line-He.line;if(Q.full)X.insert(0,Ie(0,nt.length)),X.remove(nt.length,X.size-nt.length);else if(jo(X,Q)){var Ln=Ie(0,nt.length-1);Ee(It,It.text,Zt),Tn&&X.remove(He.line,Tn),Ln.length&&X.insert(He.line,Ln)}else if(Pt==It)if(nt.length==1)Ee(Pt,Pt.text.slice(0,He.ch)+rn+Pt.text.slice(Xe.ch),Zt);else{var Yn=Ie(1,nt.length-1);Yn.push(new bn(rn+Pt.text.slice(Xe.ch),Zt,ae)),Ee(Pt,Pt.text.slice(0,He.ch)+nt[0],de(0)),X.insert(He.line+1,Yn)}else if(nt.length==1)Ee(Pt,Pt.text.slice(0,He.ch)+nt[0]+It.text.slice(Xe.ch),de(0)),X.remove(He.line+1,Tn);else{Ee(Pt,Pt.text.slice(0,He.ch)+nt[0],de(0)),Ee(It,rn+It.text.slice(Xe.ch),Zt);var nr=Ie(1,nt.length-1);Tn>1&&X.remove(He.line+1,Tn-1),X.insert(He.line+1,nr)}hi(X,"change",X,Q)}function ds(X,Q,ce){function ae(de,Ee,Ie){if(de.linked)for(var He=0;He<de.linked.length;++He){var Xe=de.linked[He];if(Xe.doc!=Ee){var nt=Ie&&Xe.sharedHist;ce&&!nt||(Q(Xe.doc,nt),ae(Xe.doc,de,nt))}}}ae(X,null,!0)}function Vo(X,Q){if(Q.cm)throw new Error("This document is already in use.");X.doc=Q,Q.cm=X,ks(X),zo(X),sl(X),X.options.direction=Q.direction,X.options.lineWrapping||Mn(X),X.options.mode=Q.modeOption,bi(X)}function sl(X){(X.doc.direction=="rtl"?Ze:be)(X.display.lineDiv,"CodeMirror-rtl")}function Tl(X){Ui(X,function(){sl(X),bi(X)})}function ra(X){this.done=[],this.undone=[],this.undoDepth=X?X.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=X?X.maxGeneration:1}function Oa(X,Q){var ce={from:Mt(Q.from),to:xs(Q),text:mr(X,Q.from,Q.to)};return al(X,ce,Q.from.line,Q.to.line+1),ds(X,function(ae){return al(ae,ce,Q.from.line,Q.to.line+1)},!0),ce}function ol(X){for(;X.length;){var Q=kt(X);if(Q.ranges)X.pop();else break}}function Ol(X,Q){if(Q)return ol(X.done),kt(X.done);if(X.done.length&&!kt(X.done).ranges)return kt(X.done);if(X.done.length>1&&!X.done[X.done.length-2].ranges)return X.done.pop(),kt(X.done)}function Pa(X,Q,ce,ae){var de=X.history;de.undone.length=0;var Ee=+new Date,Ie,He;if((de.lastOp==ae||de.lastOrigin==Q.origin&&Q.origin&&(Q.origin.charAt(0)=="+"&&de.lastModTime>Ee-(X.cm?X.cm.options.historyEventDelay:500)||Q.origin.charAt(0)=="*"))&&(Ie=Ol(de,de.lastOp==ae)))He=kt(Ie.changes),Bt(Q.from,Q.to)==0&&Bt(Q.from,He.to)==0?He.to=xs(Q):Ie.changes.push(Oa(X,Q));else{var Xe=kt(de.done);for((!Xe||!Xe.ranges)&&ia(X.sel,de.done),Ie={changes:[Oa(X,Q)],generation:de.generation},de.done.push(Ie);de.done.length>de.undoDepth;)de.done.shift(),de.done[0].ranges||de.done.shift()}de.done.push(ce),de.generation=++de.maxGeneration,de.lastModTime=de.lastSelTime=Ee,de.lastOp=de.lastSelOp=ae,de.lastOrigin=de.lastSelOrigin=Q.origin,He||Wt(X,"historyAdded")}function Aa(X,Q,ce,ae){var de=Q.charAt(0);return de=="*"||de=="+"&&ce.ranges.length==ae.ranges.length&&ce.somethingSelected()==ae.somethingSelected()&&new Date-X.history.lastSelTime<=(X.cm?X.cm.options.historyEventDelay:500)}function Pl(X,Q,ce,ae){var de=X.history,Ee=ae&&ae.origin;ce==de.lastSelOp||Ee&&de.lastSelOrigin==Ee&&(de.lastModTime==de.lastSelTime&&de.lastOrigin==Ee||Aa(X,Ee,kt(de.done),Q))?de.done[de.done.length-1]=Q:ia(Q,de.done),de.lastSelTime=+new Date,de.lastSelOrigin=Ee,de.lastSelOp=ce,ae&&ae.clearRedo!==!1&&ol(de.undone)}function ia(X,Q){var ce=kt(Q);ce&&ce.ranges&&ce.equals(X)||Q.push(X)}function al(X,Q,ce,ae){var de=Q["spans_"+X.id],Ee=0;X.iter(Math.max(X.first,ce),Math.min(X.first+X.size,ae),function(Ie){Ie.markedSpans&&((de||(de=Q["spans_"+X.id]={}))[Ee]=Ie.markedSpans),++Ee})}function Al(X){if(!X)return null;for(var Q,ce=0;ce<X.length;++ce)X[ce].marker.explicitlyCleared?Q||(Q=X.slice(0,ce)):Q&&Q.push(X[ce]);return Q?Q.length?Q:null:X}function Rl(X,Q){var ce=Q["spans_"+X.id];if(!ce)return null;for(var ae=[],de=0;de<Q.text.length;++de)ae.push(Al(ce[de]));return ae}function ll(X,Q){var ce=Rl(X,Q),ae=Xi(X,Q);if(!ce)return ae;if(!ae)return ce;for(var de=0;de<ce.length;++de){var Ee=ce[de],Ie=ae[de];if(Ee&&Ie)e:for(var He=0;He<Ie.length;++He){for(var Xe=Ie[He],nt=0;nt<Ee.length;++nt)if(Ee[nt].marker==Xe.marker)continue e;Ee.push(Xe)}else Ie&&(ce[de]=Ie)}return ce}function wo(X,Q,ce){for(var ae=[],de=0;de<X.length;++de){var Ee=X[de];if(Ee.ranges){ae.push(ce?$r.prototype.deepCopy.call(Ee):Ee);continue}var Ie=Ee.changes,He=[];ae.push({changes:He});for(var Xe=0;Xe<Ie.length;++Xe){var nt=Ie[Xe],Pt=void 0;if(He.push({from:nt.from,to:nt.to,text:nt.text}),Q)for(var It in nt)(Pt=It.match(/^spans_(\d+)$/))&&Qt(Q,Number(Pt[1]))>-1&&(kt(He)[It]=nt[It],delete nt[It])}}return ae}function Ra(X,Q,ce,ae){if(ae){var de=X.anchor;if(ce){var Ee=Bt(Q,de)<0;Ee!=Bt(ce,de)<0?(de=Q,Q=ce):Ee!=Bt(Q,ce)<0&&(Q=ce)}return new Wr(de,Q)}else return new Wr(ce||Q,Q)}function De(X,Q,ce,ae,de){de==null&&(de=X.cm&&(X.cm.display.shift||X.extend)),an(X,new $r([Ra(X.sel.primary(),Q,ce,de)],0),ae)}function Le(X,Q,ce){for(var ae=[],de=X.cm&&(X.cm.display.shift||X.extend),Ee=0;Ee<X.sel.ranges.length;Ee++)ae[Ee]=Ra(X.sel.ranges[Ee],Q[Ee],null,de);var Ie=es(X.cm,ae,X.sel.primIndex);an(X,Ie,ce)}function st(X,Q,ce,ae){var de=X.sel.ranges.slice(0);de[Q]=ce,an(X,es(X.cm,de,X.sel.primIndex),ae)}function xt(X,Q,ce,ae){an(X,Hi(Q,ce),ae)}function Ut(X,Q,ce){var ae={ranges:Q.ranges,update:function(de){this.ranges=[];for(var Ee=0;Ee<de.length;Ee++)this.ranges[Ee]=new Wr(cn(X,de[Ee].anchor),cn(X,de[Ee].head))},origin:ce&&ce.origin};return Wt(X,"beforeSelectionChange",X,ae),X.cm&&Wt(X.cm,"beforeSelectionChange",X.cm,ae),ae.ranges!=Q.ranges?es(X.cm,ae.ranges,ae.ranges.length-1):Q}function $t(X,Q,ce){var ae=X.history.done,de=kt(ae);de&&de.ranges?(ae[ae.length-1]=Q,$n(X,Q,ce)):an(X,Q,ce)}function an(X,Q,ce){$n(X,Q,ce),Pl(X,X.sel,X.cm?X.cm.curOp.id:NaN,ce)}function $n(X,Q,ce){(Ct(X,"beforeSelectionChange")||X.cm&&Ct(X.cm,"beforeSelectionChange"))&&(Q=Ut(X,Q,ce));var ae=ce&&ce.bias||(Bt(Q.primary().head,X.sel.primary().head)<0?-1:1);An(X,pr(X,Q,ae,!0)),!(ce&&ce.scroll===!1)&&X.cm&&X.cm.getOption("readOnly")!="nocursor"&&Qs(X.cm)}function An(X,Q){Q.equals(X.sel)||(X.sel=Q,X.cm&&(X.cm.curOp.updateInput=1,X.cm.curOp.selectionChanged=!0,Kn(X.cm)),hi(X,"cursorActivity",X))}function Zn(X){An(X,pr(X,X.sel,null,!1))}function pr(X,Q,ce,ae){for(var de,Ee=0;Ee<Q.ranges.length;Ee++){var Ie=Q.ranges[Ee],He=Q.ranges.length==X.sel.ranges.length&&X.sel.ranges[Ee],Xe=Gn(X,Ie.anchor,He&&He.anchor,ce,ae),nt=Ie.head==Ie.anchor?Xe:Gn(X,Ie.head,He&&He.head,ce,ae);(de||Xe!=Ie.anchor||nt!=Ie.head)&&(de||(de=Q.ranges.slice(0,Ee)),de[Ee]=new Wr(Xe,nt))}return de?es(X.cm,de,Q.primIndex):Q}function Vn(X,Q,ce,ae,de){var Ee=Rn(X,Q.line);if(Ee.markedSpans)for(var Ie=0;Ie<Ee.markedSpans.length;++Ie){var He=Ee.markedSpans[Ie],Xe=He.marker,nt="selectLeft"in Xe?!Xe.selectLeft:Xe.inclusiveLeft,Pt="selectRight"in Xe?!Xe.selectRight:Xe.inclusiveRight;if((He.from==null||(nt?He.from<=Q.ch:He.from<Q.ch))&&(He.to==null||(Pt?He.to>=Q.ch:He.to>Q.ch))){if(de&&(Wt(Xe,"beforeCursorEnter"),Xe.explicitlyCleared))if(Ee.markedSpans){--Ie;continue}else break;if(!Xe.atomic)continue;if(ce){var It=Xe.find(ae<0?1:-1),rn=void 0;if((ae<0?Pt:nt)&&(It=lr(X,It,-ae,It&&It.line==Q.line?Ee:null)),It&&It.line==Q.line&&(rn=Bt(It,ce))&&(ae<0?rn<0:rn>0))return Vn(X,It,Q,ae,de)}var Zt=Xe.find(ae<0?-1:1);return(ae<0?nt:Pt)&&(Zt=lr(X,Zt,ae,Zt.line==Q.line?Ee:null)),Zt?Vn(X,Zt,Q,ae,de):null}}return Q}function Gn(X,Q,ce,ae,de){var Ee=ae||1,Ie=Vn(X,Q,ce,Ee,de)||!de&&Vn(X,Q,ce,Ee,!0)||Vn(X,Q,ce,-Ee,de)||!de&&Vn(X,Q,ce,-Ee,!0);return Ie||(X.cantEdit=!0,wt(X.first,0))}function lr(X,Q,ce,ae){return ce<0&&Q.ch==0?Q.line>X.first?cn(X,wt(Q.line-1)):null:ce>0&&Q.ch==(ae||Rn(X,Q.line)).text.length?Q.line<X.first+X.size-1?wt(Q.line+1,0):null:new wt(Q.line,Q.ch+ce)}function Tr(X){X.setSelection(wt(X.firstLine(),0),wt(X.lastLine()),_n)}function Lr(X,Q,ce){var ae={canceled:!1,from:Q.from,to:Q.to,text:Q.text,origin:Q.origin,cancel:function(){return ae.canceled=!0}};return ce&&(ae.update=function(de,Ee,Ie,He){de&&(ae.from=cn(X,de)),Ee&&(ae.to=cn(X,Ee)),Ie&&(ae.text=Ie),He!==void 0&&(ae.origin=He)}),Wt(X,"beforeChange",X,ae),X.cm&&Wt(X.cm,"beforeChange",X.cm,ae),ae.canceled?(X.cm&&(X.cm.curOp.updateInput=2),null):{from:ae.from,to:ae.to,text:ae.text,origin:ae.origin}}function Ar(X,Q,ce){if(X.cm){if(!X.cm.curOp)return wi(X.cm,Ar)(X,Q,ce);if(X.cm.state.suppressEdits)return}if(!((Ct(X,"beforeChange")||X.cm&&Ct(X.cm,"beforeChange"))&&(Q=Lr(X,Q,!0),!Q))){var ae=ni&&!ce&&ao(X,Q.from,Q.to);if(ae)for(var de=ae.length-1;de>=0;--de)zr(X,{from:ae[de].from,to:ae[de].to,text:de?[""]:Q.text,origin:Q.origin});else zr(X,Q)}}function zr(X,Q){if(!(Q.text.length==1&&Q.text[0]==""&&Bt(Q.from,Q.to)==0)){var ce=yo(X,Q);Pa(X,Q,ce,X.cm?X.cm.curOp.id:NaN),Wi(X,Q,ce,Xi(X,Q));var ae=[];ds(X,function(de,Ee){!Ee&&Qt(ae,de.history)==-1&&(Ia(de.history,Q),ae.push(de.history)),Wi(de,Q,null,Xi(de,Q))})}}function Yr(X,Q,ce){var ae=X.cm&&X.cm.state.suppressEdits;if(!(ae&&!ce)){for(var de=X.history,Ee,Ie=X.sel,He=Q=="undo"?de.done:de.undone,Xe=Q=="undo"?de.undone:de.done,nt=0;nt<He.length&&(Ee=He[nt],!(ce?Ee.ranges&&!Ee.equals(X.sel):!Ee.ranges));nt++);if(nt!=He.length){for(de.lastOrigin=de.lastSelOrigin=null;;)if(Ee=He.pop(),Ee.ranges){if(ia(Ee,Xe),ce&&!Ee.equals(X.sel)){an(X,Ee,{clearRedo:!1});return}Ie=Ee}else if(ae){He.push(Ee);return}else break;var Pt=[];ia(Ie,Xe),Xe.push({changes:Pt,generation:de.generation}),de.generation=Ee.generation||++de.maxGeneration;for(var It=Ct(X,"beforeChange")||X.cm&&Ct(X.cm,"beforeChange"),rn=function(Ln){var Yn=Ee.changes[Ln];if(Yn.origin=Q,It&&!Lr(X,Yn,!1))return He.length=0,{};Pt.push(Oa(X,Yn));var nr=Ln?yo(X,Yn):kt(He);Wi(X,Yn,nr,ll(X,Yn)),!Ln&&X.cm&&X.cm.scrollIntoView({from:Yn.from,to:xs(Yn)});var dr=[];ds(X,function(rr,gr){!gr&&Qt(dr,rr.history)==-1&&(Ia(rr.history,Yn),dr.push(rr.history)),Wi(rr,Yn,null,ll(rr,Yn))})},Zt=Ee.changes.length-1;Zt>=0;--Zt){var Tn=rn(Zt);if(Tn)return Tn.v}}}}function li(X,Q){if(Q!=0&&(X.first+=Q,X.sel=new $r(Ye(X.sel.ranges,function(de){return new Wr(wt(de.anchor.line+Q,de.anchor.ch),wt(de.head.line+Q,de.head.ch))}),X.sel.primIndex),X.cm)){bi(X.cm,X.first,X.first-Q,Q);for(var ce=X.cm.display,ae=ce.viewFrom;ae<ce.viewTo;ae++)Qi(X.cm,ae,"gutter")}}function Wi(X,Q,ce,ae){if(X.cm&&!X.cm.curOp)return wi(X.cm,Wi)(X,Q,ce,ae);if(Q.to.line<X.first){li(X,Q.text.length-1-(Q.to.line-Q.from.line));return}if(!(Q.from.line>X.lastLine())){if(Q.from.line<X.first){var de=Q.text.length-1-(X.first-Q.from.line);li(X,de),Q={from:wt(X.first,0),to:wt(Q.to.line+de,Q.to.ch),text:[kt(Q.text)],origin:Q.origin}}var Ee=X.lastLine();Q.to.line>Ee&&(Q={from:Q.from,to:wt(Ee,Rn(X,Ee).text.length),text:[Q.text[0]],origin:Q.origin}),Q.removed=mr(X,Q.from,Q.to),ce||(ce=yo(X,Q)),X.cm?Da(X.cm,Q,ae):xo(X,Q,ae),$n(X,ce,_n),X.cantEdit&&Gn(X,wt(X.firstLine(),0))&&(X.cantEdit=!1)}}function Da(X,Q,ce){var ae=X.doc,de=X.display,Ee=Q.from,Ie=Q.to,He=!1,Xe=Ee.line;X.options.lineWrapping||(Xe=zn(je(Rn(ae,Ee.line))),ae.iter(Xe,Ie.line+1,function(Zt){if(Zt==de.maxLine)return He=!0,!0})),ae.sel.contains(Q.from,Q.to)>-1&&Kn(X),xo(ae,Q,ce,fo(X)),X.options.lineWrapping||(ae.iter(Xe,Ee.line+Q.text.length,function(Zt){var Tn=Sn(Zt);Tn>de.maxLineLength&&(de.maxLine=Zt,de.maxLineLength=Tn,de.maxLineChanged=!0,He=!1)}),He&&(X.curOp.updateMaxLine=!0)),Xr(ae,Ee.line),ro(X,400);var nt=Q.text.length-(Ie.line-Ee.line)-1;Q.full?bi(X):Ee.line==Ie.line&&Q.text.length==1&&!jo(X.doc,Q)?Qi(X,Ee.line,"text"):bi(X,Ee.line,Ie.line+1,nt);var Pt=Ct(X,"changes"),It=Ct(X,"change");if(It||Pt){var rn={from:Ee,to:Ie,text:Q.text,removed:Q.removed,origin:Q.origin};It&&hi(X,"change",X,rn),Pt&&(X.curOp.changeObjs||(X.curOp.changeObjs=[])).push(rn)}X.display.selForContextMenu=null}function Hs(X,Q,ce,ae,de){var Ee;ae||(ae=ce),Bt(ae,ce)<0&&(Ee=[ae,ce],ce=Ee[0],ae=Ee[1]),typeof Q=="string"&&(Q=X.splitLines(Q)),Ar(X,{from:ce,to:ae,text:Q,origin:de})}function sa(X,Q,ce,ae){ce<X.line?X.line+=ae:Q<X.line&&(X.line=Q,X.ch=0)}function Ma(X,Q,ce,ae){for(var de=0;de<X.length;++de){var Ee=X[de],Ie=!0;if(Ee.ranges){Ee.copied||(Ee=X[de]=Ee.deepCopy(),Ee.copied=!0);for(var He=0;He<Ee.ranges.length;He++)sa(Ee.ranges[He].anchor,Q,ce,ae),sa(Ee.ranges[He].head,Q,ce,ae);continue}for(var Xe=0;Xe<Ee.changes.length;++Xe){var nt=Ee.changes[Xe];if(ce<nt.from.line)nt.from=wt(nt.from.line+ae,nt.from.ch),nt.to=wt(nt.to.line+ae,nt.to.ch);else if(Q<=nt.to.line){Ie=!1;break}}Ie||(X.splice(0,de+1),de=0)}}function Ia(X,Q){var ce=Q.from.line,ae=Q.to.line,de=Q.text.length-(ae-ce)-1;Ma(X.done,ce,ae,de),Ma(X.undone,ce,ae,de)}function Na(X,Q,ce,ae){var de=Q,Ee=Q;return typeof Q=="number"?Ee=Rn(X,Cn(X,Q)):de=zn(Q),de==null?null:(ae(Ee,de)&&X.cm&&Qi(X.cm,de,ce),Ee)}function La(X){this.lines=X,this.parent=null;for(var Q=0,ce=0;ce<X.length;++ce)X[ce].parent=this,Q+=X[ce].height;this.height=Q}La.prototype={chunkSize:function(){return this.lines.length},removeInner:function(X,Q){for(var ce=X,ae=X+Q;ce<ae;++ce){var de=this.lines[ce];this.height-=de.height,ar(de),hi(de,"delete")}this.lines.splice(X,Q)},collapse:function(X){X.push.apply(X,this.lines)},insertInner:function(X,Q,ce){this.height+=ce,this.lines=this.lines.slice(0,X).concat(Q).concat(this.lines.slice(X));for(var ae=0;ae<Q.length;++ae)Q[ae].parent=this},iterN:function(X,Q,ce){for(var ae=X+Q;X<ae;++X)if(ce(this.lines[X]))return!0}};function Fa(X){this.children=X;for(var Q=0,ce=0,ae=0;ae<X.length;++ae){var de=X[ae];Q+=de.chunkSize(),ce+=de.height,de.parent=this}this.size=Q,this.height=ce,this.parent=null}Fa.prototype={chunkSize:function(){return this.size},removeInner:function(X,Q){this.size-=Q;for(var ce=0;ce<this.children.length;++ce){var ae=this.children[ce],de=ae.chunkSize();if(X<de){var Ee=Math.min(Q,de-X),Ie=ae.height;if(ae.removeInner(X,Ee),this.height-=Ie-ae.height,de==Ee&&(this.children.splice(ce--,1),ae.parent=null),(Q-=Ee)==0)break;X=0}else X-=de}if(this.size-Q<25&&(this.children.length>1||!(this.children[0]instanceof La))){var He=[];this.collapse(He),this.children=[new La(He)],this.children[0].parent=this}},collapse:function(X){for(var Q=0;Q<this.children.length;++Q)this.children[Q].collapse(X)},insertInner:function(X,Q,ce){this.size+=Q.length,this.height+=ce;for(var ae=0;ae<this.children.length;++ae){var de=this.children[ae],Ee=de.chunkSize();if(X<=Ee){if(de.insertInner(X,Q,ce),de.lines&&de.lines.length>50){for(var Ie=de.lines.length%25+25,He=Ie;He<de.lines.length;){var Xe=new La(de.lines.slice(He,He+=25));de.height-=Xe.height,this.children.splice(++ae,0,Xe),Xe.parent=this}de.lines=de.lines.slice(0,Ie),this.maybeSpill()}break}X-=Ee}},maybeSpill:function(){if(!(this.children.length<=10)){var X=this;do{var Q=X.children.splice(X.children.length-5,5),ce=new Fa(Q);if(X.parent){X.size-=ce.size,X.height-=ce.height;var de=Qt(X.parent.children,X);X.parent.children.splice(de+1,0,ce)}else{var ae=new Fa(X.children);ae.parent=X,X.children=[ae,ce],X=ae}ce.parent=X.parent}while(X.children.length>10);X.parent.maybeSpill()}},iterN:function(X,Q,ce){for(var ae=0;ae<this.children.length;++ae){var de=this.children[ae],Ee=de.chunkSize();if(X<Ee){var Ie=Math.min(Q,Ee-X);if(de.iterN(X,Ie,ce))return!0;if((Q-=Ie)==0)break;X=0}else X-=Ee}}};var Ba=function(X,Q,ce){if(ce)for(var ae in ce)ce.hasOwnProperty(ae)&&(this[ae]=ce[ae]);this.doc=X,this.node=Q};Ba.prototype.clear=function(){var X=this.doc.cm,Q=this.line.widgets,ce=this.line,ae=zn(ce);if(!(ae==null||!Q)){for(var de=0;de<Q.length;++de)Q[de]==this&&Q.splice(de--,1);Q.length||(ce.widgets=null);var Ee=ms(this);hr(ce,Math.max(0,ce.height-Ee)),X&&(Ui(X,function(){Gl(X,ce,-Ee),Qi(X,ae,"widget")}),hi(X,"lineWidgetCleared",X,this,ae))}},Ba.prototype.changed=function(){var X=this,Q=this.height,ce=this.doc.cm,ae=this.line;this.height=null;var de=ms(this)-Q;de&&(Et(this.doc,ae)||hr(ae,ae.height+de),ce&&Ui(ce,function(){ce.curOp.forceUpdate=!0,Gl(ce,ae,de),hi(ce,"lineWidgetChanged",ce,X,zn(ae))}))},ft(Ba);function Gl(X,Q,ce){Vt(Q)<(X.curOp&&X.curOp.scrollTop||X.doc.scrollTop)&&ba(X,ce)}function Cc(X,Q,ce,ae){var de=new Ba(X,ce,ae),Ee=X.cm;return Ee&&de.noHScroll&&(Ee.display.alignWidgets=!0),Na(X,Q,"widget",function(Ie){var He=Ie.widgets||(Ie.widgets=[]);if(de.insertAt==null?He.push(de):He.splice(Math.min(He.length,Math.max(0,de.insertAt)),0,de),de.line=Ie,Ee&&!Et(X,Ie)){var Xe=Vt(Ie)<X.scrollTop;hr(Ie,Ie.height+ms(de)),Xe&&ba(Ee,de.height),Ee.curOp.forceUpdate=!0}return!0}),Ee&&hi(Ee,"lineWidgetAdded",Ee,de,typeof Q=="number"?Q:zn(Q)),de}var Xl=0,So=function(X,Q){this.lines=[],this.type=Q,this.doc=X,this.id=++Xl};So.prototype.clear=function(){if(!this.explicitlyCleared){var X=this.doc.cm,Q=X&&!X.curOp;if(Q&&Rs(X),Ct(this,"clear")){var ce=this.find();ce&&hi(this,"clear",ce.from,ce.to)}for(var ae=null,de=null,Ee=0;Ee<this.lines.length;++Ee){var Ie=this.lines[Ee],He=Gi(Ie.markedSpans,this);X&&!this.collapsed?Qi(X,zn(Ie),"text"):X&&(He.to!=null&&(de=zn(Ie)),He.from!=null&&(ae=zn(Ie))),Ie.markedSpans=Co(Ie.markedSpans,He),He.from==null&&this.collapsed&&!Et(this.doc,Ie)&&X&&hr(Ie,zi(X.display))}if(X&&this.collapsed&&!X.options.lineWrapping)for(var Xe=0;Xe<this.lines.length;++Xe){var nt=je(this.lines[Xe]),Pt=Sn(nt);Pt>X.display.maxLineLength&&(X.display.maxLine=nt,X.display.maxLineLength=Pt,X.display.maxLineChanged=!0)}ae!=null&&X&&this.collapsed&&bi(X,ae,de+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,X&&Zn(X.doc)),X&&hi(X,"markerCleared",X,this,ae,de),Q&&Ds(X),this.parent&&this.parent.clear()}},So.prototype.find=function(X,Q){X==null&&this.type=="bookmark"&&(X=1);for(var ce,ae,de=0;de<this.lines.length;++de){var Ee=this.lines[de],Ie=Gi(Ee.markedSpans,this);if(Ie.from!=null&&(ce=wt(Q?Ee:zn(Ee),Ie.from),X==-1))return ce;if(Ie.to!=null&&(ae=wt(Q?Ee:zn(Ee),Ie.to),X==1))return ae}return ce&&{from:ce,to:ae}},So.prototype.changed=function(){var X=this,Q=this.find(-1,!0),ce=this,ae=this.doc.cm;!Q||!ae||Ui(ae,function(){var de=Q.line,Ee=zn(Q.line),Ie=it(ae,Ee);if(Ie&&(qn(Ie),ae.curOp.selectionChanged=ae.curOp.forceUpdate=!0),ae.curOp.updateMaxLine=!0,!Et(ce.doc,de)&&ce.height!=null){var He=ce.height;ce.height=null;var Xe=ms(ce)-He;Xe&&hr(de,de.height+Xe)}hi(ae,"markerChanged",ae,X)})},So.prototype.attachLine=function(X){if(!this.lines.length&&this.doc.cm){var Q=this.doc.cm.curOp;(!Q.maybeHiddenMarkers||Qt(Q.maybeHiddenMarkers,this)==-1)&&(Q.maybeUnhiddenMarkers||(Q.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(X)},So.prototype.detachLine=function(X){if(this.lines.splice(Qt(this.lines,X),1),!this.lines.length&&this.doc.cm){var Q=this.doc.cm.curOp;(Q.maybeHiddenMarkers||(Q.maybeHiddenMarkers=[])).push(this)}},ft(So);function oa(X,Q,ce,ae,de){if(ae&&ae.shared)return $c(X,Q,ce,ae,de);if(X.cm&&!X.cm.curOp)return wi(X.cm,oa)(X,Q,ce,ae,de);var Ee=new So(X,de),Ie=Bt(Q,ce);if(ae&&zt(ae,Ee,!1),Ie>0||Ie==0&&Ee.clearWhenEmpty!==!1)return Ee;if(Ee.replacedWith&&(Ee.collapsed=!0,Ee.widgetNode=Oe("span",[Ee.replacedWith],"CodeMirror-widget"),ae.handleMouseEvents||Ee.widgetNode.setAttribute("cm-ignore-events","true"),ae.insertLeft&&(Ee.widgetNode.insertLeft=!0)),Ee.collapsed){if(Re(X,Q.line,Q,ce,Ee)||Q.line!=ce.line&&Re(X,ce.line,Q,ce,Ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");mi()}Ee.addToHistory&&Pa(X,{from:Q,to:ce,origin:"markText"},X.sel,NaN);var He=Q.line,Xe=X.cm,nt;if(X.iter(He,ce.line+1,function(It){Xe&&Ee.collapsed&&!Xe.options.lineWrapping&&je(It)==Xe.display.maxLine&&(nt=!0),Ee.collapsed&&He!=Q.line&&hr(It,0),$o(It,new Ai(Ee,He==Q.line?Q.ch:null,He==ce.line?ce.ch:null),X.cm&&X.cm.curOp),++He}),Ee.collapsed&&X.iter(Q.line,ce.line+1,function(It){Et(X,It)&&hr(It,0)}),Ee.clearOnEnter&&dt(Ee,"beforeCursorEnter",function(){return Ee.clear()}),Ee.readOnly&&(ei(),(X.history.done.length||X.history.undone.length)&&X.clearHistory()),Ee.collapsed&&(Ee.id=++Xl,Ee.atomic=!0),Xe){if(nt&&(Xe.curOp.updateMaxLine=!0),Ee.collapsed)bi(Xe,Q.line,ce.line+1);else if(Ee.className||Ee.startStyle||Ee.endStyle||Ee.css||Ee.attributes||Ee.title)for(var Pt=Q.line;Pt<=ce.line;Pt++)Qi(Xe,Pt,"text");Ee.atomic&&Zn(Xe.doc),hi(Xe,"markerAdded",Xe,Ee)}return Ee}var za=function(X,Q){this.markers=X,this.primary=Q;for(var ce=0;ce<X.length;++ce)X[ce].parent=this};za.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var X=0;X<this.markers.length;++X)this.markers[X].clear();hi(this,"clear")}},za.prototype.find=function(X,Q){return this.primary.find(X,Q)},ft(za);function $c(X,Q,ce,ae,de){ae=zt(ae),ae.shared=!1;var Ee=[oa(X,Q,ce,ae,de)],Ie=Ee[0],He=ae.widgetNode;return ds(X,function(Xe){He&&(ae.widgetNode=He.cloneNode(!0)),Ee.push(oa(Xe,cn(Xe,Q),cn(Xe,ce),ae,de));for(var nt=0;nt<Xe.linked.length;++nt)if(Xe.linked[nt].isParent)return;Ie=kt(Ee)}),new za(Ee,Ie)}function Jl(X){return X.findMarks(wt(X.first,0),X.clipPos(wt(X.lastLine())),function(Q){return Q.parent})}function Tc(X,Q){for(var ce=0;ce<Q.length;ce++){var ae=Q[ce],de=ae.find(),Ee=X.clipPos(de.from),Ie=X.clipPos(de.to);if(Bt(Ee,Ie)){var He=oa(X,Ee,Ie,ae.primary,ae.primary.type);ae.markers.push(He),He.parent=ae}}}function Oc(X){for(var Q=function(ae){var de=X[ae],Ee=[de.primary.doc];ds(de.primary.doc,function(Xe){return Ee.push(Xe)});for(var Ie=0;Ie<de.markers.length;Ie++){var He=de.markers[Ie];Qt(Ee,He.doc)==-1&&(He.parent=null,de.markers.splice(Ie--,1))}},ce=0;ce<X.length;ce++)Q(ce)}var Pc=0,ts=function(X,Q,ce,ae,de){if(!(this instanceof ts))return new ts(X,Q,ce,ae,de);ce==null&&(ce=0),Fa.call(this,[new La([new bn("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var Ee=wt(ce,0);this.sel=Hi(Ee),this.history=new ra(null),this.id=++Pc,this.modeOption=Q,this.lineSep=ae,this.direction=de=="rtl"?"rtl":"ltr",this.extend=!1,typeof X=="string"&&(X=this.splitLines(X)),xo(this,{from:Ee,to:Ee,text:X}),an(this,Hi(Ee),_n)};ts.prototype=Pe(Fa.prototype,{constructor:ts,iter:function(X,Q,ce){ce?this.iterN(X-this.first,Q-X,ce):this.iterN(this.first,this.first+this.size,X)},insert:function(X,Q){for(var ce=0,ae=0;ae<Q.length;++ae)ce+=Q[ae].height;this.insertInner(X-this.first,Q,ce)},remove:function(X,Q){this.removeInner(X-this.first,Q)},getValue:function(X){var Q=br(this,this.first,this.first+this.size);return X===!1?Q:Q.join(X||this.lineSeparator())},setValue:Ci(function(X){var Q=wt(this.first,0),ce=this.first+this.size-1;Ar(this,{from:Q,to:wt(ce,Rn(this,ce).text.length),text:this.splitLines(X),origin:"setValue",full:!0},!0),this.cm&&Lo(this.cm,0,0),an(this,Hi(Q),_n)}),replaceRange:function(X,Q,ce,ae){Q=cn(this,Q),ce=ce?cn(this,ce):Q,Hs(this,X,Q,ce,ae)},getRange:function(X,Q,ce){var ae=mr(this,cn(this,X),cn(this,Q));return ce===!1?ae:ce===""?ae.join(""):ae.join(ce||this.lineSeparator())},getLine:function(X){var Q=this.getLineHandle(X);return Q&&Q.text},getLineHandle:function(X){if(et(this,X))return Rn(this,X)},getLineNumber:function(X){return zn(X)},getLineHandleVisualStart:function(X){return typeof X=="number"&&(X=Rn(this,X)),je(X)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(X){return cn(this,X)},getCursor:function(X){var Q=this.sel.primary(),ce;return X==null||X=="head"?ce=Q.head:X=="anchor"?ce=Q.anchor:X=="end"||X=="to"||X===!1?ce=Q.to():ce=Q.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ci(function(X,Q,ce){xt(this,cn(this,typeof X=="number"?wt(X,Q||0):X),null,ce)}),setSelection:Ci(function(X,Q,ce){xt(this,cn(this,X),cn(this,Q||X),ce)}),extendSelection:Ci(function(X,Q,ce){De(this,cn(this,X),Q&&cn(this,Q),ce)}),extendSelections:Ci(function(X,Q){Le(this,or(this,X),Q)}),extendSelectionsBy:Ci(function(X,Q){var ce=Ye(this.sel.ranges,X);Le(this,or(this,ce),Q)}),setSelections:Ci(function(X,Q,ce){if(X.length){for(var ae=[],de=0;de<X.length;de++)ae[de]=new Wr(cn(this,X[de].anchor),cn(this,X[de].head||X[de].anchor));Q==null&&(Q=Math.min(X.length-1,this.sel.primIndex)),an(this,es(this.cm,ae,Q),ce)}}),addSelection:Ci(function(X,Q,ce){var ae=this.sel.ranges.slice(0);ae.push(new Wr(cn(this,X),cn(this,Q||X))),an(this,es(this.cm,ae,ae.length-1),ce)}),getSelection:function(X){for(var Q=this.sel.ranges,ce,ae=0;ae<Q.length;ae++){var de=mr(this,Q[ae].from(),Q[ae].to());ce=ce?ce.concat(de):de}return X===!1?ce:ce.join(X||this.lineSeparator())},getSelections:function(X){for(var Q=[],ce=this.sel.ranges,ae=0;ae<ce.length;ae++){var de=mr(this,ce[ae].from(),ce[ae].to());X!==!1&&(de=de.join(X||this.lineSeparator())),Q[ae]=de}return Q},replaceSelection:function(X,Q,ce){for(var ae=[],de=0;de<this.sel.ranges.length;de++)ae[de]=X;this.replaceSelections(ae,Q,ce||"+input")},replaceSelections:Ci(function(X,Q,ce){for(var ae=[],de=this.sel,Ee=0;Ee<de.ranges.length;Ee++){var Ie=de.ranges[Ee];ae[Ee]={from:Ie.from(),to:Ie.to(),text:this.splitLines(X[Ee]),origin:ce}}for(var He=Q&&Q!="end"&&$l(this,ae,Q),Xe=ae.length-1;Xe>=0;Xe--)Ar(this,ae[Xe]);He?$t(this,He):this.cm&&Qs(this.cm)}),undo:Ci(function(){Yr(this,"undo")}),redo:Ci(function(){Yr(this,"redo")}),undoSelection:Ci(function(){Yr(this,"undo",!0)}),redoSelection:Ci(function(){Yr(this,"redo",!0)}),setExtending:function(X){this.extend=X},getExtending:function(){return this.extend},historySize:function(){for(var X=this.history,Q=0,ce=0,ae=0;ae<X.done.length;ae++)X.done[ae].ranges||++Q;for(var de=0;de<X.undone.length;de++)X.undone[de].ranges||++ce;return{undo:Q,redo:ce}},clearHistory:function(){var X=this;this.history=new ra(this.history),ds(this,function(Q){return Q.history=X.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(X){return X&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(X){return this.history.generation==(X||this.cleanGeneration)},getHistory:function(){return{done:wo(this.history.done),undone:wo(this.history.undone)}},setHistory:function(X){var Q=this.history=new ra(this.history);Q.done=wo(X.done.slice(0),null,!0),Q.undone=wo(X.undone.slice(0),null,!0)},setGutterMarker:Ci(function(X,Q,ce){return Na(this,X,"gutter",function(ae){var de=ae.gutterMarkers||(ae.gutterMarkers={});return de[Q]=ce,!ce&&Qe(de)&&(ae.gutterMarkers=null),!0})}),clearGutter:Ci(function(X){var Q=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[X]&&Na(Q,ce,"gutter",function(){return ce.gutterMarkers[X]=null,Qe(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(X){var Q;if(typeof X=="number"){if(!et(this,X)||(Q=X,X=Rn(this,X),!X))return null}else if(Q=zn(X),Q==null)return null;return{line:Q,handle:X,text:X.text,gutterMarkers:X.gutterMarkers,textClass:X.textClass,bgClass:X.bgClass,wrapClass:X.wrapClass,widgets:X.widgets}},addLineClass:Ci(function(X,Q,ce){return Na(this,X,Q=="gutter"?"gutter":"class",function(ae){var de=Q=="text"?"textClass":Q=="background"?"bgClass":Q=="gutter"?"gutterClass":"wrapClass";if(!ae[de])ae[de]=ce;else{if(ye(ce).test(ae[de]))return!1;ae[de]+=" "+ce}return!0})}),removeLineClass:Ci(function(X,Q,ce){return Na(this,X,Q=="gutter"?"gutter":"class",function(ae){var de=Q=="text"?"textClass":Q=="background"?"bgClass":Q=="gutter"?"gutterClass":"wrapClass",Ee=ae[de];if(Ee)if(ce==null)ae[de]=null;else{var Ie=Ee.match(ye(ce));if(!Ie)return!1;var He=Ie.index+Ie[0].length;ae[de]=Ee.slice(0,Ie.index)+(!Ie.index||He==Ee.length?"":" ")+Ee.slice(He)||null}else return!1;return!0})}),addLineWidget:Ci(function(X,Q,ce){return Cc(this,X,Q,ce)}),removeLineWidget:function(X){X.clear()},markText:function(X,Q,ce){return oa(this,cn(this,X),cn(this,Q),ce,ce&&ce.type||"range")},setBookmark:function(X,Q){var ce={replacedWith:Q&&(Q.nodeType==null?Q.widget:Q),insertLeft:Q&&Q.insertLeft,clearWhenEmpty:!1,shared:Q&&Q.shared,handleMouseEvents:Q&&Q.handleMouseEvents};return X=cn(this,X),oa(this,X,X,ce,"bookmark")},findMarksAt:function(X){X=cn(this,X);var Q=[],ce=Rn(this,X.line).markedSpans;if(ce)for(var ae=0;ae<ce.length;++ae){var de=ce[ae];(de.from==null||de.from<=X.ch)&&(de.to==null||de.to>=X.ch)&&Q.push(de.marker.parent||de.marker)}return Q},findMarks:function(X,Q,ce){X=cn(this,X),Q=cn(this,Q);var ae=[],de=X.line;return this.iter(X.line,Q.line+1,function(Ee){var Ie=Ee.markedSpans;if(Ie)for(var He=0;He<Ie.length;He++){var Xe=Ie[He];!(Xe.to!=null&&de==X.line&&X.ch>=Xe.to||Xe.from==null&&de!=X.line||Xe.from!=null&&de==Q.line&&Xe.from>=Q.ch)&&(!ce||ce(Xe.marker))&&ae.push(Xe.marker.parent||Xe.marker)}++de}),ae},getAllMarks:function(){var X=[];return this.iter(function(Q){var ce=Q.markedSpans;if(ce)for(var ae=0;ae<ce.length;++ae)ce[ae].from!=null&&X.push(ce[ae].marker)}),X},posFromIndex:function(X){var Q,ce=this.first,ae=this.lineSeparator().length;return this.iter(function(de){var Ee=de.text.length+ae;if(Ee>X)return Q=X,!0;X-=Ee,++ce}),cn(this,wt(ce,Q))},indexFromPos:function(X){X=cn(this,X);var Q=X.ch;if(X.line<this.first||X.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,X.line,function(ae){Q+=ae.text.length+ce}),Q},copy:function(X){var Q=new ts(br(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return Q.scrollTop=this.scrollTop,Q.scrollLeft=this.scrollLeft,Q.sel=this.sel,Q.extend=!1,X&&(Q.history.undoDepth=this.history.undoDepth,Q.setHistory(this.getHistory())),Q},linkedDoc:function(X){X||(X={});var Q=this.first,ce=this.first+this.size;X.from!=null&&X.from>Q&&(Q=X.from),X.to!=null&&X.to<ce&&(ce=X.to);var ae=new ts(br(this,Q,ce),X.mode||this.modeOption,Q,this.lineSep,this.direction);return X.sharedHist&&(ae.history=this.history),(this.linked||(this.linked=[])).push({doc:ae,sharedHist:X.sharedHist}),ae.linked=[{doc:this,isParent:!0,sharedHist:X.sharedHist}],Tc(ae,Jl(this)),ae},unlinkDoc:function(X){if(X instanceof gi&&(X=X.doc),this.linked)for(var Q=0;Q<this.linked.length;++Q){var ce=this.linked[Q];if(ce.doc==X){this.linked.splice(Q,1),X.unlinkDoc(this),Oc(Jl(this));break}}if(X.history==this.history){var ae=[X.id];ds(X,function(de){return ae.push(de.id)},!0),X.history=new ra(null),X.history.done=wo(this.history.done,ae),X.history.undone=wo(this.history.undone,ae)}},iterLinkedDocs:function(X){ds(this,X)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(X){return this.lineSep?X.split(this.lineSep):Vr(X)},lineSeparator:function(){return this.lineSep||`
- `},setDirection:Ci(function(X){X!="rtl"&&(X="ltr"),X!=this.direction&&(this.direction=X,this.iter(function(Q){return Q.order=null}),this.cm&&Tl(this.cm))})}),ts.prototype.eachLine=ts.prototype.iter;var Zl=0;function Ac(X){var Q=this;if(Ql(Q),!(gn(Q,X)||gs(Q.display,X))){Tt(X),Y&&(Zl=+new Date);var ce=cs(Q,X,!0),ae=X.dataTransfer.files;if(!(!ce||Q.isReadOnly()))if(ae&&ae.length&&window.FileReader&&window.File)for(var de=ae.length,Ee=Array(de),Ie=0,He=function(){++Ie==de&&wi(Q,function(){ce=cn(Q.doc,ce);var Zt={from:ce,to:ce,text:Q.doc.splitLines(Ee.filter(function(Tn){return Tn!=null}).join(Q.doc.lineSeparator())),origin:"paste"};Ar(Q.doc,Zt),$t(Q.doc,Hi(cn(Q.doc,ce),cn(Q.doc,xs(Zt))))})()},Xe=function(Zt,Tn){if(Q.options.allowDropFileTypes&&Qt(Q.options.allowDropFileTypes,Zt.type)==-1){He();return}var Ln=new FileReader;Ln.onerror=function(){return He()},Ln.onload=function(){var Yn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Yn)){He();return}Ee[Tn]=Yn,He()},Ln.readAsText(Zt)},nt=0;nt<ae.length;nt++)Xe(ae[nt],nt);else{if(Q.state.draggingText&&Q.doc.sel.contains(ce)>-1){Q.state.draggingText(X),setTimeout(function(){return Q.display.input.focus()},20);return}try{var Pt=X.dataTransfer.getData("Text");if(Pt){var It;if(Q.state.draggingText&&!Q.state.draggingText.copy&&(It=Q.listSelections()),$n(Q.doc,Hi(ce,ce)),It)for(var rn=0;rn<It.length;++rn)Hs(Q.doc,"",It[rn].anchor,It[rn].head,"drag");Q.replaceSelection(Pt,"around","paste"),Q.display.input.focus()}}catch{}}}}function Rc(X,Q){if(Y&&(!X.state.draggingText||+new Date-Zl<100)){mn(Q);return}if(!(gn(X,Q)||gs(X.display,Q))&&(Q.dataTransfer.setData("Text",X.getSelection()),Q.dataTransfer.effectAllowed="copyMove",Q.dataTransfer.setDragImage&&!re)){var ce=ke("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",te&&(ce.width=ce.height=1,X.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),Q.dataTransfer.setDragImage(ce,0,0),te&&ce.parentNode.removeChild(ce)}}function Dc(X,Q){var ce=cs(X,Q);if(ce){var ae=document.createDocumentFragment();Bs(X,ce,ae),X.display.dragCursor||(X.display.dragCursor=ke("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),X.display.lineSpace.insertBefore(X.display.dragCursor,X.display.cursorDiv)),Ae(X.display.dragCursor,ae)}}function Ql(X){X.display.dragCursor&&(X.display.lineSpace.removeChild(X.display.dragCursor),X.display.dragCursor=null)}function ec(X){if(document.getElementsByClassName){for(var Q=document.getElementsByClassName("CodeMirror"),ce=[],ae=0;ae<Q.length;ae++){var de=Q[ae].CodeMirror;de&&ce.push(de)}ce.length&&ce[0].operation(function(){for(var Ee=0;Ee<ce.length;Ee++)X(ce[Ee])})}}var tc=!1;function Mc(){tc||(Ic(),tc=!0)}function Ic(){var X;dt(window,"resize",function(){X==null&&(X=setTimeout(function(){X=null,ec(Nc)},100))}),dt(window,"blur",function(){return ec(zs)})}function Nc(X){var Q=X.display;Q.cachedCharWidth=Q.cachedTextHeight=Q.cachedPaddingH=null,Q.scrollbarsClipped=!1,X.setSize()}for(var ko={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"},ja=0;ja<10;ja++)ko[ja+48]=ko[ja+96]=String(ja);for(var cl=65;cl<=90;cl++)ko[cl]=String.fromCharCode(cl);for(var Va=1;Va<=12;Va++)ko[Va+111]=ko[Va+63235]="F"+Va;var so={};so.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"},so.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"},so.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"},so.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"]},so.default=_e?so.macDefault:so.pcDefault;function Lc(X){var Q=X.split(/-(?!$)/);X=Q[Q.length-1];for(var ce,ae,de,Ee,Ie=0;Ie<Q.length-1;Ie++){var He=Q[Ie];if(/^(cmd|meta|m)$/i.test(He))Ee=!0;else if(/^a(lt)?$/i.test(He))ce=!0;else if(/^(c|ctrl|control)$/i.test(He))ae=!0;else if(/^s(hift)?$/i.test(He))de=!0;else throw new Error("Unrecognized modifier name: "+He)}return ce&&(X="Alt-"+X),ae&&(X="Ctrl-"+X),Ee&&(X="Cmd-"+X),de&&(X="Shift-"+X),X}function Fc(X){var Q={};for(var ce in X)if(X.hasOwnProperty(ce)){var ae=X[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(ae=="..."){delete X[ce];continue}for(var de=Ye(ce.split(" "),Lc),Ee=0;Ee<de.length;Ee++){var Ie=void 0,He=void 0;Ee==de.length-1?(He=de.join(" "),Ie=ae):(He=de.slice(0,Ee+1).join(" "),Ie="...");var Xe=Q[He];if(!Xe)Q[He]=Ie;else if(Xe!=Ie)throw new Error("Inconsistent bindings for "+He)}delete X[ce]}for(var nt in Q)X[nt]=Q[nt];return X}function aa(X,Q,ce,ae){Q=ul(Q);var de=Q.call?Q.call(X,ae):Q[X];if(de===!1)return"nothing";if(de==="...")return"multi";if(de!=null&&ce(de))return"handled";if(Q.fallthrough){if(Object.prototype.toString.call(Q.fallthrough)!="[object Array]")return aa(X,Q.fallthrough,ce,ae);for(var Ee=0;Ee<Q.fallthrough.length;Ee++){var Ie=aa(X,Q.fallthrough[Ee],ce,ae);if(Ie)return Ie}}}function nc(X){var Q=typeof X=="string"?X:ko[X.keyCode];return Q=="Ctrl"||Q=="Alt"||Q=="Shift"||Q=="Mod"}function rc(X,Q,ce){var ae=X;return Q.altKey&&ae!="Alt"&&(X="Alt-"+X),(xe?Q.metaKey:Q.ctrlKey)&&ae!="Ctrl"&&(X="Ctrl-"+X),(xe?Q.ctrlKey:Q.metaKey)&&ae!="Mod"&&(X="Cmd-"+X),!ce&&Q.shiftKey&&ae!="Shift"&&(X="Shift-"+X),X}function ic(X,Q){if(te&&X.keyCode==34&&X.char)return!1;var ce=ko[X.keyCode];return ce==null||X.altGraphKey?!1:(X.keyCode==3&&X.code&&(ce=X.code),rc(ce,X,Q))}function ul(X){return typeof X=="string"?so[X]:X}function la(X,Q){for(var ce=X.doc.sel.ranges,ae=[],de=0;de<ce.length;de++){for(var Ee=Q(ce[de]);ae.length&&Bt(Ee.from,kt(ae).to)<=0;){var Ie=ae.pop();if(Bt(Ie.from,Ee.from)<0){Ee.from=Ie.from;break}}ae.push(Ee)}Ui(X,function(){for(var He=ae.length-1;He>=0;He--)Hs(X.doc,"",ae[He].from,ae[He].to,"+delete");Qs(X)})}function Dl(X,Q,ce){var ae=at(X.text,Q+ce,ce);return ae<0||ae>X.text.length?null:ae}function Ml(X,Q,ce){var ae=Dl(X,Q.ch,ce);return ae==null?null:new wt(Q.line,ae,ce<0?"after":"before")}function Il(X,Q,ce,ae,de){if(X){Q.doc.direction=="rtl"&&(de=-de);var Ee=xn(ce,Q.doc.direction);if(Ee){var Ie=de<0?kt(Ee):Ee[0],He=de<0==(Ie.level==1),Xe=He?"after":"before",nt;if(Ie.level>0||Q.doc.direction=="rtl"){var Pt=St(Q,ce);nt=de<0?ce.text.length-1:0;var It=Ft(Q,Pt,nt).top;nt=ut(function(rn){return Ft(Q,Pt,rn).top==It},de<0==(Ie.level==1)?Ie.from:Ie.to-1,nt),Xe=="before"&&(nt=Dl(ce,nt,1))}else nt=de<0?Ie.to:Ie.from;return new wt(ae,nt,Xe)}}return new wt(ae,de<0?ce.text.length:0,de<0?"before":"after")}function Bc(X,Q,ce,ae){var de=xn(Q,X.doc.direction);if(!de)return Ml(Q,ce,ae);ce.ch>=Q.text.length?(ce.ch=Q.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Ee=Bn(de,ce.ch,ce.sticky),Ie=de[Ee];if(X.doc.direction=="ltr"&&Ie.level%2==0&&(ae>0?Ie.to>ce.ch:Ie.from<ce.ch))return Ml(Q,ce,ae);var He=function(nr,dr){return Dl(Q,nr instanceof wt?nr.ch:nr,dr)},Xe,nt=function(nr){return X.options.lineWrapping?(Xe=Xe||St(X,Q),Ni(X,Q,Xe,nr)):{begin:0,end:Q.text.length}},Pt=nt(ce.sticky=="before"?He(ce,-1):ce.ch);if(X.doc.direction=="rtl"||Ie.level==1){var It=Ie.level==1==ae<0,rn=He(ce,It?1:-1);if(rn!=null&&(It?rn<=Ie.to&&rn<=Pt.end:rn>=Ie.from&&rn>=Pt.begin)){var Zt=It?"before":"after";return new wt(ce.line,rn,Zt)}}var Tn=function(nr,dr,rr){for(var gr=function(ci,Fi){return Fi?new wt(ce.line,He(ci,1),"before"):new wt(ce.line,ci,"after")};nr>=0&&nr<de.length;nr+=dr){var Or=de[nr],kr=dr>0==(Or.level!=1),jr=kr?rr.begin:He(rr.end,-1);if(Or.from<=jr&&jr<Or.to||(jr=kr?Or.from:He(Or.to,-1),rr.begin<=jr&&jr<rr.end))return gr(jr,kr)}},Ln=Tn(Ee+ae,ae,Pt);if(Ln)return Ln;var Yn=ae>0?Pt.end:He(Pt.begin,-1);return Yn!=null&&!(ae>0&&Yn==Q.text.length)&&(Ln=Tn(ae>0?0:de.length-1,ae,nt(Yn)),Ln)?Ln:null}var Ua={selectAll:Tr,singleSelection:function(X){return X.setSelection(X.getCursor("anchor"),X.getCursor("head"),_n)},killLine:function(X){return la(X,function(Q){if(Q.empty()){var ce=Rn(X.doc,Q.head.line).text.length;return Q.head.ch==ce&&Q.head.line<X.lastLine()?{from:Q.head,to:wt(Q.head.line+1,0)}:{from:Q.head,to:wt(Q.head.line,ce)}}else return{from:Q.from(),to:Q.to()}})},deleteLine:function(X){return la(X,function(Q){return{from:wt(Q.from().line,0),to:cn(X.doc,wt(Q.to().line+1,0))}})},delLineLeft:function(X){return la(X,function(Q){return{from:wt(Q.from().line,0),to:Q.from()}})},delWrappedLineLeft:function(X){return la(X,function(Q){var ce=X.charCoords(Q.head,"div").top+5,ae=X.coordsChar({left:0,top:ce},"div");return{from:ae,to:Q.from()}})},delWrappedLineRight:function(X){return la(X,function(Q){var ce=X.charCoords(Q.head,"div").top+5,ae=X.coordsChar({left:X.display.lineDiv.offsetWidth+100,top:ce},"div");return{from:Q.from(),to:ae}})},undo:function(X){return X.undo()},redo:function(X){return X.redo()},undoSelection:function(X){return X.undoSelection()},redoSelection:function(X){return X.redoSelection()},goDocStart:function(X){return X.extendSelection(wt(X.firstLine(),0))},goDocEnd:function(X){return X.extendSelection(wt(X.lastLine()))},goLineStart:function(X){return X.extendSelectionsBy(function(Q){return sc(X,Q.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(X){return X.extendSelectionsBy(function(Q){return oc(X,Q.head)},{origin:"+move",bias:1})},goLineEnd:function(X){return X.extendSelectionsBy(function(Q){return zc(X,Q.head.line)},{origin:"+move",bias:-1})},goLineRight:function(X){return X.extendSelectionsBy(function(Q){var ce=X.cursorCoords(Q.head,"div").top+5;return X.coordsChar({left:X.display.lineDiv.offsetWidth+100,top:ce},"div")},On)},goLineLeft:function(X){return X.extendSelectionsBy(function(Q){var ce=X.cursorCoords(Q.head,"div").top+5;return X.coordsChar({left:0,top:ce},"div")},On)},goLineLeftSmart:function(X){return X.extendSelectionsBy(function(Q){var ce=X.cursorCoords(Q.head,"div").top+5,ae=X.coordsChar({left:0,top:ce},"div");return ae.ch<X.getLine(ae.line).search(/\S/)?oc(X,Q.head):ae},On)},goLineUp:function(X){return X.moveV(-1,"line")},goLineDown:function(X){return X.moveV(1,"line")},goPageUp:function(X){return X.moveV(-1,"page")},goPageDown:function(X){return X.moveV(1,"page")},goCharLeft:function(X){return X.moveH(-1,"char")},goCharRight:function(X){return X.moveH(1,"char")},goColumnLeft:function(X){return X.moveH(-1,"column")},goColumnRight:function(X){return X.moveH(1,"column")},goWordLeft:function(X){return X.moveH(-1,"word")},goGroupRight:function(X){return X.moveH(1,"group")},goGroupLeft:function(X){return X.moveH(-1,"group")},goWordRight:function(X){return X.moveH(1,"word")},delCharBefore:function(X){return X.deleteH(-1,"codepoint")},delCharAfter:function(X){return X.deleteH(1,"char")},delWordBefore:function(X){return X.deleteH(-1,"word")},delWordAfter:function(X){return X.deleteH(1,"word")},delGroupBefore:function(X){return X.deleteH(-1,"group")},delGroupAfter:function(X){return X.deleteH(1,"group")},indentAuto:function(X){return X.indentSelection("smart")},indentMore:function(X){return X.indentSelection("add")},indentLess:function(X){return X.indentSelection("subtract")},insertTab:function(X){return X.replaceSelection(" ")},insertSoftTab:function(X){for(var Q=[],ce=X.listSelections(),ae=X.options.tabSize,de=0;de<ce.length;de++){var Ee=ce[de].from(),Ie=Ht(X.getLine(Ee.line),Ee.ch,ae);Q.push(dn(ae-Ie%ae))}X.replaceSelections(Q)},defaultTab:function(X){X.somethingSelected()?X.indentSelection("add"):X.execCommand("insertTab")},transposeChars:function(X){return Ui(X,function(){for(var Q=X.listSelections(),ce=[],ae=0;ae<Q.length;ae++)if(Q[ae].empty()){var de=Q[ae].head,Ee=Rn(X.doc,de.line).text;if(Ee){if(de.ch==Ee.length&&(de=new wt(de.line,de.ch-1)),de.ch>0)de=new wt(de.line,de.ch+1),X.replaceRange(Ee.charAt(de.ch-1)+Ee.charAt(de.ch-2),wt(de.line,de.ch-2),de,"+transpose");else if(de.line>X.doc.first){var Ie=Rn(X.doc,de.line-1).text;Ie&&(de=new wt(de.line,1),X.replaceRange(Ee.charAt(0)+X.doc.lineSeparator()+Ie.charAt(Ie.length-1),wt(de.line-1,Ie.length-1),de,"+transpose"))}}ce.push(new Wr(de,de))}X.setSelections(ce)})},newlineAndIndent:function(X){return Ui(X,function(){for(var Q=X.listSelections(),ce=Q.length-1;ce>=0;ce--)X.replaceRange(X.doc.lineSeparator(),Q[ce].anchor,Q[ce].head,"+input");Q=X.listSelections();for(var ae=0;ae<Q.length;ae++)X.indentLine(Q[ae].from().line,null,!0);Qs(X)})},openLine:function(X){return X.replaceSelection(`
- `,"start")},toggleOverwrite:function(X){return X.toggleOverwrite()}};function sc(X,Q){var ce=Rn(X.doc,Q),ae=je(ce);return ae!=ce&&(Q=zn(ae)),Il(!0,X,ae,Q,1)}function zc(X,Q){var ce=Rn(X.doc,Q),ae=Ke(ce);return ae!=ce&&(Q=zn(ae)),Il(!0,X,ce,Q,-1)}function oc(X,Q){var ce=sc(X,Q.line),ae=Rn(X.doc,ce.line),de=xn(ae,X.doc.direction);if(!de||de[0].level==0){var Ee=Math.max(ce.ch,ae.text.search(/\S/)),Ie=Q.line==ce.line&&Q.ch<=Ee&&Q.ch;return wt(ce.line,Ie?0:Ee,ce.sticky)}return ce}function dl(X,Q,ce){if(typeof Q=="string"&&(Q=Ua[Q],!Q))return!1;X.display.input.ensurePolled();var ae=X.display.shift,de=!1;try{X.isReadOnly()&&(X.state.suppressEdits=!0),ce&&(X.display.shift=!1),de=Q(X)!=yn}finally{X.display.shift=ae,X.state.suppressEdits=!1}return de}function jc(X,Q,ce){for(var ae=0;ae<X.state.keyMaps.length;ae++){var de=aa(Q,X.state.keyMaps[ae],ce,X);if(de)return de}return X.options.extraKeys&&aa(Q,X.options.extraKeys,ce,X)||aa(Q,X.options.keyMap,ce,X)}var Vc=new qt;function Ha(X,Q,ce,ae){var de=X.state.keySeq;if(de){if(nc(Q))return"handled";if(/\'$/.test(Q)?X.state.keySeq=null:Vc.set(50,function(){X.state.keySeq==de&&(X.state.keySeq=null,X.display.input.reset())}),ac(X,de+" "+Q,ce,ae))return!0}return ac(X,Q,ce,ae)}function ac(X,Q,ce,ae){var de=jc(X,Q,ae);return de=="multi"&&(X.state.keySeq=Q),de=="handled"&&hi(X,"keyHandled",X,Q,ce),(de=="handled"||de=="multi")&&(Tt(ce),ho(X)),!!de}function lc(X,Q){var ce=ic(Q,!0);return ce?Q.shiftKey&&!X.state.keySeq?Ha(X,"Shift-"+ce,Q,function(ae){return dl(X,ae,!0)})||Ha(X,ce,Q,function(ae){if(typeof ae=="string"?/^go[A-Z]/.test(ae):ae.motion)return dl(X,ae)}):Ha(X,ce,Q,function(ae){return dl(X,ae)}):!1}function Uc(X,Q,ce){return Ha(X,"'"+ce+"'",Q,function(ae){return dl(X,ae,!0)})}var Nl=null;function cc(X){var Q=this;if(!(X.target&&X.target!=Q.display.input.getField())&&(Q.curOp.focus=Fe(Ve(Q)),!gn(Q,X))){Y&&K<11&&X.keyCode==27&&(X.returnValue=!1);var ce=X.keyCode;Q.display.shift=ce==16||X.shiftKey;var ae=lc(Q,X);te&&(Nl=ae?ce:null,!ae&&ce==88&&!pt&&(_e?X.metaKey:X.ctrlKey)&&Q.replaceSelection("",null,"cut")),B&&!_e&&!ae&&ce==46&&X.shiftKey&&!X.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(Q.display.lineDiv.className)&&Hc(Q)}}function Hc(X){var Q=X.display.lineDiv;Ze(Q,"CodeMirror-crosshair");function ce(ae){(ae.keyCode==18||!ae.altKey)&&(be(Q,"CodeMirror-crosshair"),Yt(document,"keyup",ce),Yt(document,"mouseover",ce))}dt(document,"keyup",ce),dt(document,"mouseover",ce)}function uc(X){X.keyCode==16&&(this.doc.sel.shift=!1),gn(this,X)}function dc(X){var Q=this;if(!(X.target&&X.target!=Q.display.input.getField())&&!(gs(Q.display,X)||gn(Q,X)||X.ctrlKey&&!X.altKey||_e&&X.metaKey)){var ce=X.keyCode,ae=X.charCode;if(te&&ce==Nl){Nl=null,Tt(X);return}if(!(te&&(!X.which||X.which<10)&&lc(Q,X))){var de=String.fromCharCode(ae??ce);de!="\b"&&(Uc(Q,X,de)||Q.display.input.onKeyPress(X))}}}var Wc=400,Ll=function(X,Q,ce){this.time=X,this.pos=Q,this.button=ce};Ll.prototype.compare=function(X,Q,ce){return this.time+Wc>X&&Bt(Q,this.pos)==0&&ce==this.button};var Wa,qa;function qc(X,Q){var ce=+new Date;return qa&&qa.compare(ce,X,Q)?(Wa=qa=null,"triple"):Wa&&Wa.compare(ce,X,Q)?(qa=new Ll(ce,X,Q),Wa=null,"double"):(Wa=new Ll(ce,X,Q),qa=null,"single")}function fc(X){var Q=this,ce=Q.display;if(!(gn(Q,X)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=X.shiftKey,gs(ce,X)){G||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!Fl(Q,X)){var ae=cs(Q,X),de=cr(X),Ee=ae?qc(ae,de):"single";At(Q).focus(),de==1&&Q.state.selectingText&&Q.state.selectingText(X),!(ae&&Yc(Q,de,ae,Ee,X))&&(de==1?ae?Gc(Q,ae,Ee,X):En(X)==ce.scroller&&Tt(X):de==2?(ae&&De(Q.doc,ae),setTimeout(function(){return ce.input.focus()},20)):de==3&&(oe?Q.display.input.onContextMenu(X):Mo(Q)))}}}function Yc(X,Q,ce,ae,de){var Ee="Click";return ae=="double"?Ee="Double"+Ee:ae=="triple"&&(Ee="Triple"+Ee),Ee=(Q==1?"Left":Q==2?"Middle":"Right")+Ee,Ha(X,rc(Ee,de),de,function(Ie){if(typeof Ie=="string"&&(Ie=Ua[Ie]),!Ie)return!1;var He=!1;try{X.isReadOnly()&&(X.state.suppressEdits=!0),He=Ie(X,ce)!=yn}finally{X.state.suppressEdits=!1}return He})}function Kc(X,Q,ce){var ae=X.getOption("configureMouse"),de=ae?ae(X,Q,ce):{};if(de.unit==null){var Ee=fe?ce.shiftKey&&ce.metaKey:ce.altKey;de.unit=Ee?"rectangle":Q=="single"?"char":Q=="double"?"word":"line"}return(de.extend==null||X.doc.extend)&&(de.extend=X.doc.extend||ce.shiftKey),de.addNew==null&&(de.addNew=_e?ce.metaKey:ce.ctrlKey),de.moveOnDrag==null&&(de.moveOnDrag=!(_e?ce.altKey:ce.ctrlKey)),de}function Gc(X,Q,ce,ae){Y?setTimeout(Nt(Do,X),0):X.curOp.focus=Fe(Ve(X));var de=Kc(X,ce,ae),Ee=X.doc.sel,Ie;X.options.dragDrop&&jn&&!X.isReadOnly()&&ce=="single"&&(Ie=Ee.contains(Q))>-1&&(Bt((Ie=Ee.ranges[Ie]).from(),Q)<0||Q.xRel>0)&&(Bt(Ie.to(),Q)>0||Q.xRel<0)?Xc(X,ae,Q,de):Jc(X,ae,Q,de)}function Xc(X,Q,ce,ae){var de=X.display,Ee=!1,Ie=wi(X,function(nt){G&&(de.scroller.draggable=!1),X.state.draggingText=!1,X.state.delayingBlurEvent&&(X.hasFocus()?X.state.delayingBlurEvent=!1:Mo(X)),Yt(de.wrapper.ownerDocument,"mouseup",Ie),Yt(de.wrapper.ownerDocument,"mousemove",He),Yt(de.scroller,"dragstart",Xe),Yt(de.scroller,"drop",Ie),Ee||(Tt(nt),ae.addNew||De(X.doc,ce,null,null,ae.extend),G&&!re||Y&&K==9?setTimeout(function(){de.wrapper.ownerDocument.body.focus({preventScroll:!0}),de.input.focus()},20):de.input.focus())}),He=function(nt){Ee=Ee||Math.abs(Q.clientX-nt.clientX)+Math.abs(Q.clientY-nt.clientY)>=10},Xe=function(){return Ee=!0};G&&(de.scroller.draggable=!0),X.state.draggingText=Ie,Ie.copy=!ae.moveOnDrag,dt(de.wrapper.ownerDocument,"mouseup",Ie),dt(de.wrapper.ownerDocument,"mousemove",He),dt(de.scroller,"dragstart",Xe),dt(de.scroller,"drop",Ie),X.state.delayingBlurEvent=!0,setTimeout(function(){return de.input.focus()},20),de.scroller.dragDrop&&de.scroller.dragDrop()}function pc(X,Q,ce){if(ce=="char")return new Wr(Q,Q);if(ce=="word")return X.findWordAt(Q);if(ce=="line")return new Wr(wt(Q.line,0),cn(X.doc,wt(Q.line+1,0)));var ae=ce(X,Q);return new Wr(ae.from,ae.to)}function Jc(X,Q,ce,ae){Y&&Mo(X);var de=X.display,Ee=X.doc;Tt(Q);var Ie,He,Xe=Ee.sel,nt=Xe.ranges;if(ae.addNew&&!ae.extend?(He=Ee.sel.contains(ce),He>-1?Ie=nt[He]:Ie=new Wr(ce,ce)):(Ie=Ee.sel.primary(),He=Ee.sel.primIndex),ae.unit=="rectangle")ae.addNew||(Ie=new Wr(ce,ce)),ce=cs(X,Q,!0,!0),He=-1;else{var Pt=pc(X,ce,ae.unit);ae.extend?Ie=Ra(Ie,Pt.anchor,Pt.head,ae.extend):Ie=Pt}ae.addNew?He==-1?(He=nt.length,an(Ee,es(X,nt.concat([Ie]),He),{scroll:!1,origin:"*mouse"})):nt.length>1&&nt[He].empty()&&ae.unit=="char"&&!ae.extend?(an(Ee,es(X,nt.slice(0,He).concat(nt.slice(He+1)),0),{scroll:!1,origin:"*mouse"}),Xe=Ee.sel):st(Ee,He,Ie,Hn):(He=0,an(Ee,new $r([Ie],0),Hn),Xe=Ee.sel);var It=ce;function rn(rr){if(Bt(It,rr)!=0)if(It=rr,ae.unit=="rectangle"){for(var gr=[],Or=X.options.tabSize,kr=Ht(Rn(Ee,ce.line).text,ce.ch,Or),jr=Ht(Rn(Ee,rr.line).text,rr.ch,Or),ci=Math.min(kr,jr),Fi=Math.max(kr,jr),yi=Math.min(ce.line,rr.line),fs=Math.min(X.lastLine(),Math.max(ce.line,rr.line));yi<=fs;yi++){var ns=Rn(Ee,yi).text,Oi=Fn(ns,ci,Or);ci==Fi?gr.push(new Wr(wt(yi,Oi),wt(yi,Oi))):ns.length>Oi&&gr.push(new Wr(wt(yi,Oi),wt(yi,Fn(ns,Fi,Or))))}gr.length||gr.push(new Wr(ce,ce)),an(Ee,es(X,Xe.ranges.slice(0,He).concat(gr),He),{origin:"*mouse",scroll:!1}),X.scrollIntoView(rr)}else{var rs=Ie,ji=pc(X,rr,ae.unit),Mi=rs.anchor,Pi;Bt(ji.anchor,Mi)>0?(Pi=ji.head,Mi=hn(rs.from(),ji.anchor)):(Pi=ji.anchor,Mi=tn(rs.to(),ji.head));var Si=Xe.ranges.slice(0);Si[He]=Zc(X,new Wr(cn(Ee,Mi),Pi)),an(Ee,es(X,Si,He),Hn)}}var Zt=de.wrapper.getBoundingClientRect(),Tn=0;function Ln(rr){var gr=++Tn,Or=cs(X,rr,!0,ae.unit=="rectangle");if(Or)if(Bt(Or,It)!=0){X.curOp.focus=Fe(Ve(X)),rn(Or);var kr=Zo(de,Ee);(Or.line>=kr.to||Or.line<kr.from)&&setTimeout(wi(X,function(){Tn==gr&&Ln(rr)}),150)}else{var jr=rr.clientY<Zt.top?-20:rr.clientY>Zt.bottom?20:0;jr&&setTimeout(wi(X,function(){Tn==gr&&(de.scroller.scrollTop+=jr,Ln(rr))}),50)}}function Yn(rr){X.state.selectingText=!1,Tn=1/0,rr&&(Tt(rr),de.input.focus()),Yt(de.wrapper.ownerDocument,"mousemove",nr),Yt(de.wrapper.ownerDocument,"mouseup",dr),Ee.history.lastSelOrigin=null}var nr=wi(X,function(rr){rr.buttons===0||!cr(rr)?Yn(rr):Ln(rr)}),dr=wi(X,Yn);X.state.selectingText=dr,dt(de.wrapper.ownerDocument,"mousemove",nr),dt(de.wrapper.ownerDocument,"mouseup",dr)}function Zc(X,Q){var ce=Q.anchor,ae=Q.head,de=Rn(X.doc,ce.line);if(Bt(ce,ae)==0&&ce.sticky==ae.sticky)return Q;var Ee=xn(de);if(!Ee)return Q;var Ie=Bn(Ee,ce.ch,ce.sticky),He=Ee[Ie];if(He.from!=ce.ch&&He.to!=ce.ch)return Q;var Xe=Ie+(He.from==ce.ch==(He.level!=1)?0:1);if(Xe==0||Xe==Ee.length)return Q;var nt;if(ae.line!=ce.line)nt=(ae.line-ce.line)*(X.doc.direction=="ltr"?1:-1)>0;else{var Pt=Bn(Ee,ae.ch,ae.sticky),It=Pt-Ie||(ae.ch-ce.ch)*(He.level==1?-1:1);Pt==Xe-1||Pt==Xe?nt=It<0:nt=It>0}var rn=Ee[Xe+(nt?-1:0)],Zt=nt==(rn.level==1),Tn=Zt?rn.from:rn.to,Ln=Zt?"after":"before";return ce.ch==Tn&&ce.sticky==Ln?Q:new Wr(new wt(ce.line,Tn,Ln),ae)}function hc(X,Q,ce,ae){var de,Ee;if(Q.touches)de=Q.touches[0].clientX,Ee=Q.touches[0].clientY;else try{de=Q.clientX,Ee=Q.clientY}catch{return!1}if(de>=Math.floor(X.display.gutters.getBoundingClientRect().right))return!1;ae&&Tt(Q);var Ie=X.display,He=Ie.lineDiv.getBoundingClientRect();if(Ee>He.bottom||!Ct(X,ce))return pn(Q);Ee-=He.top-Ie.viewOffset;for(var Xe=0;Xe<X.display.gutterSpecs.length;++Xe){var nt=Ie.gutters.childNodes[Xe];if(nt&&nt.getBoundingClientRect().right>=de){var Pt=er(X.doc,Ee),It=X.display.gutterSpecs[Xe];return Wt(X,ce,X,Pt,It.className,Q),pn(Q)}}}function Fl(X,Q){return hc(X,Q,"gutterClick",!0)}function mc(X,Q){gs(X.display,Q)||Qc(X,Q)||gn(X,Q,"contextmenu")||oe||X.display.input.onContextMenu(Q)}function Qc(X,Q){return Ct(X,"gutterContextMenu")?hc(X,Q,"gutterContextMenu",!1):!1}function gc(X){X.display.wrapper.className=X.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+X.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wr(X)}var ca={toString:function(){return"CodeMirror.Init"}},_c={},fl={};function eu(X){var Q=X.optionHandlers;function ce(ae,de,Ee,Ie){X.defaults[ae]=de,Ee&&(Q[ae]=Ie?function(He,Xe,nt){nt!=ca&&Ee(He,Xe,nt)}:Ee)}X.defineOption=ce,X.Init=ca,ce("value","",function(ae,de){return ae.setValue(de)},!0),ce("mode",null,function(ae,de){ae.doc.modeOption=de,zo(ae)},!0),ce("indentUnit",2,zo,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(ae){Ms(ae),wr(ae),bi(ae)},!0),ce("lineSeparator",null,function(ae,de){if(ae.doc.lineSep=de,!!de){var Ee=[],Ie=ae.doc.first;ae.doc.iter(function(Xe){for(var nt=0;;){var Pt=Xe.text.indexOf(de,nt);if(Pt==-1)break;nt=Pt+de.length,Ee.push(wt(Ie,Pt))}Ie++});for(var He=Ee.length-1;He>=0;He--)Hs(ae.doc,de,Ee[He],wt(Ee[He].line,Ee[He].ch+de.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(ae,de,Ee){ae.state.specialChars=new RegExp(de.source+(de.test(" ")?"":"| "),"g"),Ee!=ca&&ae.refresh()}),ce("specialCharPlaceholder",Ur,function(ae){return ae.refresh()},!0),ce("electricChars",!0),ce("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(ae,de){return ae.getInputField().spellcheck=de},!0),ce("autocorrect",!1,function(ae,de){return ae.getInputField().autocorrect=de},!0),ce("autocapitalize",!1,function(ae,de){return ae.getInputField().autocapitalize=de},!0),ce("rtlMoveVisually",!me),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(ae){gc(ae),Bo(ae)},!0),ce("keyMap","default",function(ae,de,Ee){var Ie=ul(de),He=Ee!=ca&&ul(Ee);He&&He.detach&&He.detach(ae,Ie),Ie.attach&&Ie.attach(ae,He||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,nu,!0),ce("gutters",[],function(ae,de){ae.display.gutterSpecs=Ca(de,ae.options.lineNumbers),Bo(ae)},!0),ce("fixedGutter",!0,function(ae,de){ae.display.gutters.style.left=de?vs(ae.display)+"px":"0",ae.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(ae){return eo(ae)},!0),ce("scrollbarStyle","native",function(ae){Xa(ae),eo(ae),ae.display.scrollbars.setScrollTop(ae.doc.scrollTop),ae.display.scrollbars.setScrollLeft(ae.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(ae,de){ae.display.gutterSpecs=Ca(ae.options.gutters,de),Bo(ae)},!0),ce("firstLineNumber",1,Bo,!0),ce("lineNumberFormatter",function(ae){return ae},Bo,!0),ce("showCursorWhenSelecting",!1,ys,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(ae,de){de=="nocursor"&&(zs(ae),ae.display.input.blur()),ae.display.input.readOnlyChanged(de)}),ce("screenReaderLabel",null,function(ae,de){de=de===""?null:de,ae.display.input.screenReaderLabelChanged(de)}),ce("disableInput",!1,function(ae,de){de||ae.display.input.reset()},!0),ce("dragDrop",!0,tu),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,ys,!0),ce("singleCursorHeightPerLine",!0,ys,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,Ms,!0),ce("addModeClass",!1,Ms,!0),ce("pollInterval",100),ce("undoDepth",200,function(ae,de){return ae.doc.history.undoDepth=de}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(ae){return ae.refresh()},!0),ce("maxHighlightLength",1e4,Ms,!0),ce("moveInputWithCursor",!0,function(ae,de){de||ae.display.input.resetPosition()}),ce("tabindex",null,function(ae,de){return ae.display.input.getField().tabIndex=de||""}),ce("autofocus",null),ce("direction","ltr",function(ae,de){return ae.doc.setDirection(de)},!0),ce("phrases",null)}function tu(X,Q,ce){var ae=ce&&ce!=ca;if(!Q!=!ae){var de=X.display.dragFunctions,Ee=Q?dt:Yt;Ee(X.display.scroller,"dragstart",de.start),Ee(X.display.scroller,"dragenter",de.enter),Ee(X.display.scroller,"dragover",de.over),Ee(X.display.scroller,"dragleave",de.leave),Ee(X.display.scroller,"drop",de.drop)}}function nu(X){X.options.lineWrapping?(Ze(X.display.wrapper,"CodeMirror-wrap"),X.display.sizer.style.minWidth="",X.display.sizerWidth=null):(be(X.display.wrapper,"CodeMirror-wrap"),Mn(X)),ks(X),bi(X),wr(X),setTimeout(function(){return eo(X)},100)}function gi(X,Q){var ce=this;if(!(this instanceof gi))return new gi(X,Q);this.options=Q=Q?zt(Q):{},zt(_c,Q,!1);var ae=Q.value;typeof ae=="string"?ae=new ts(ae,Q.mode,null,Q.lineSeparator,Q.direction):Q.mode&&(ae.modeOption=Q.mode),this.doc=ae;var de=new gi.inputStyles[Q.inputStyle](this),Ee=this.display=new El(X,ae,de,Q);Ee.wrapper.CodeMirror=this,gc(this),Q.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xa(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 qt,keySeq:null,specialChars:null},Q.autofocus&&!ue&&Ee.input.focus(),Y&&K<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),ru(this),Mc(),Rs(this),this.curOp.forceUpdate=!0,Vo(this,ae),Q.autofocus&&!ue||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&As(ce)},20):zs(this);for(var Ie in fl)fl.hasOwnProperty(Ie)&&fl[Ie](this,Q[Ie],ca);tl(this),Q.finishInit&&Q.finishInit(this);for(var He=0;He<Bl.length;++He)Bl[He](this);Ds(this),G&&Q.lineWrapping&&getComputedStyle(Ee.lineDiv).textRendering=="optimizelegibility"&&(Ee.lineDiv.style.textRendering="auto")}gi.defaults=_c,gi.optionHandlers=fl;function ru(X){var Q=X.display;dt(Q.scroller,"mousedown",wi(X,fc)),Y&&K<11?dt(Q.scroller,"dblclick",wi(X,function(Xe){if(!gn(X,Xe)){var nt=cs(X,Xe);if(!(!nt||Fl(X,Xe)||gs(X.display,Xe))){Tt(Xe);var Pt=X.findWordAt(nt);De(X.doc,Pt.anchor,Pt.head)}}})):dt(Q.scroller,"dblclick",function(Xe){return gn(X,Xe)||Tt(Xe)}),dt(Q.scroller,"contextmenu",function(Xe){return mc(X,Xe)}),dt(Q.input.getField(),"contextmenu",function(Xe){Q.scroller.contains(Xe.target)||mc(X,Xe)});var ce,ae={end:0};function de(){Q.activeTouch&&(ce=setTimeout(function(){return Q.activeTouch=null},1e3),ae=Q.activeTouch,ae.end=+new Date)}function Ee(Xe){if(Xe.touches.length!=1)return!1;var nt=Xe.touches[0];return nt.radiusX<=1&&nt.radiusY<=1}function Ie(Xe,nt){if(nt.left==null)return!0;var Pt=nt.left-Xe.left,It=nt.top-Xe.top;return Pt*Pt+It*It>20*20}dt(Q.scroller,"touchstart",function(Xe){if(!gn(X,Xe)&&!Ee(Xe)&&!Fl(X,Xe)){Q.input.ensurePolled(),clearTimeout(ce);var nt=+new Date;Q.activeTouch={start:nt,moved:!1,prev:nt-ae.end<=300?ae:null},Xe.touches.length==1&&(Q.activeTouch.left=Xe.touches[0].pageX,Q.activeTouch.top=Xe.touches[0].pageY)}}),dt(Q.scroller,"touchmove",function(){Q.activeTouch&&(Q.activeTouch.moved=!0)}),dt(Q.scroller,"touchend",function(Xe){var nt=Q.activeTouch;if(nt&&!gs(Q,Xe)&&nt.left!=null&&!nt.moved&&new Date-nt.start<300){var Pt=X.coordsChar(Q.activeTouch,"page"),It;!nt.prev||Ie(nt,nt.prev)?It=new Wr(Pt,Pt):!nt.prev.prev||Ie(nt,nt.prev.prev)?It=X.findWordAt(Pt):It=new Wr(wt(Pt.line,0),cn(X.doc,wt(Pt.line+1,0))),X.setSelection(It.anchor,It.head),X.focus(),Tt(Xe)}de()}),dt(Q.scroller,"touchcancel",de),dt(Q.scroller,"scroll",function(){Q.scroller.clientHeight&&(Vs(X,Q.scroller.scrollTop),us(X,Q.scroller.scrollLeft,!0),Wt(X,"scroll",X))}),dt(Q.scroller,"mousewheel",function(Xe){return $a(X,Xe)}),dt(Q.scroller,"DOMMouseScroll",function(Xe){return $a(X,Xe)}),dt(Q.wrapper,"scroll",function(){return Q.wrapper.scrollTop=Q.wrapper.scrollLeft=0}),Q.dragFunctions={enter:function(Xe){gn(X,Xe)||mn(Xe)},over:function(Xe){gn(X,Xe)||(Dc(X,Xe),mn(Xe))},start:function(Xe){return Rc(X,Xe)},drop:wi(X,Ac),leave:function(Xe){gn(X,Xe)||Ql(X)}};var He=Q.input.getField();dt(He,"keyup",function(Xe){return uc.call(X,Xe)}),dt(He,"keydown",wi(X,cc)),dt(He,"keypress",wi(X,dc)),dt(He,"focus",function(Xe){return As(X,Xe)}),dt(He,"blur",function(Xe){return zs(X,Xe)})}var Bl=[];gi.defineInitHook=function(X){return Bl.push(X)};function Ya(X,Q,ce,ae){var de=X.doc,Ee;ce==null&&(ce="add"),ce=="smart"&&(de.mode.indent?Ee=kn(X,Q).state:ce="prev");var Ie=X.options.tabSize,He=Rn(de,Q),Xe=Ht(He.text,null,Ie);He.stateAfter&&(He.stateAfter=null);var nt=He.text.match(/^\s*/)[0],Pt;if(!ae&&!/\S/.test(He.text))Pt=0,ce="not";else if(ce=="smart"&&(Pt=de.mode.indent(Ee,He.text.slice(nt.length),He.text),Pt==yn||Pt>150)){if(!ae)return;ce="prev"}ce=="prev"?Q>de.first?Pt=Ht(Rn(de,Q-1).text,null,Ie):Pt=0:ce=="add"?Pt=Xe+X.options.indentUnit:ce=="subtract"?Pt=Xe-X.options.indentUnit:typeof ce=="number"&&(Pt=Xe+ce),Pt=Math.max(0,Pt);var It="",rn=0;if(X.options.indentWithTabs)for(var Zt=Math.floor(Pt/Ie);Zt;--Zt)rn+=Ie,It+=" ";if(rn<Pt&&(It+=dn(Pt-rn)),It!=nt)return Hs(de,It,wt(Q,0),wt(Q,nt.length),"+input"),He.stateAfter=null,!0;for(var Tn=0;Tn<de.sel.ranges.length;Tn++){var Ln=de.sel.ranges[Tn];if(Ln.head.line==Q&&Ln.head.ch<nt.length){var Yn=wt(Q,nt.length);st(de,Tn,new Wr(Yn,Yn));break}}}var Is=null;function pl(X){Is=X}function zl(X,Q,ce,ae,de){var Ee=X.doc;X.display.shift=!1,ae||(ae=Ee.sel);var Ie=+new Date-200,He=de=="paste"||X.state.pasteIncoming>Ie,Xe=Vr(Q),nt=null;if(He&&ae.ranges.length>1)if(Is&&Is.text.join(`
- `)==Q){if(ae.ranges.length%Is.text.length==0){nt=[];for(var Pt=0;Pt<Is.text.length;Pt++)nt.push(Ee.splitLines(Is.text[Pt]))}}else Xe.length==ae.ranges.length&&X.options.pasteLinesPerSelection&&(nt=Ye(Xe,function(nr){return[nr]}));for(var It=X.curOp.updateInput,rn=ae.ranges.length-1;rn>=0;rn--){var Zt=ae.ranges[rn],Tn=Zt.from(),Ln=Zt.to();Zt.empty()&&(ce&&ce>0?Tn=wt(Tn.line,Tn.ch-ce):X.state.overwrite&&!He?Ln=wt(Ln.line,Math.min(Rn(Ee,Ln.line).text.length,Ln.ch+kt(Xe).length)):He&&Is&&Is.lineWise&&Is.text.join(`
- `)==Xe.join(`
- `)&&(Tn=Ln=wt(Tn.line,0)));var Yn={from:Tn,to:Ln,text:nt?nt[rn%nt.length]:Xe,origin:de||(He?"paste":X.state.cutIncoming>Ie?"cut":"+input")};Ar(X.doc,Yn),hi(X,"inputRead",X,Yn)}Q&&!He&&bc(X,Q),Qs(X),X.curOp.updateInput<2&&(X.curOp.updateInput=It),X.curOp.typing=!0,X.state.pasteIncoming=X.state.cutIncoming=-1}function vc(X,Q){var ce=X.clipboardData&&X.clipboardData.getData("Text");if(ce)return X.preventDefault(),!Q.isReadOnly()&&!Q.options.disableInput&&Q.hasFocus()&&Ui(Q,function(){return zl(Q,ce,0,null,"paste")}),!0}function bc(X,Q){if(!(!X.options.electricChars||!X.options.smartIndent))for(var ce=X.doc.sel,ae=ce.ranges.length-1;ae>=0;ae--){var de=ce.ranges[ae];if(!(de.head.ch>100||ae&&ce.ranges[ae-1].head.line==de.head.line)){var Ee=X.getModeAt(de.head),Ie=!1;if(Ee.electricChars){for(var He=0;He<Ee.electricChars.length;He++)if(Q.indexOf(Ee.electricChars.charAt(He))>-1){Ie=Ya(X,de.head.line,"smart");break}}else Ee.electricInput&&Ee.electricInput.test(Rn(X.doc,de.head.line).text.slice(0,de.head.ch))&&(Ie=Ya(X,de.head.line,"smart"));Ie&&hi(X,"electricInput",X,de.head.line)}}}function yc(X){for(var Q=[],ce=[],ae=0;ae<X.doc.sel.ranges.length;ae++){var de=X.doc.sel.ranges[ae].head.line,Ee={anchor:wt(de,0),head:wt(de+1,0)};ce.push(Ee),Q.push(X.getRange(Ee.anchor,Ee.head))}return{text:Q,ranges:ce}}function jl(X,Q,ce,ae){X.setAttribute("autocorrect",ce?"on":"off"),X.setAttribute("autocapitalize",ae?"on":"off"),X.setAttribute("spellcheck",!!Q)}function xc(){var X=ke("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Q=ke("div",[X],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return G?X.style.width="1000px":X.setAttribute("wrap","off"),le&&(X.style.border="1px solid black"),Q}function iu(X){var Q=X.optionHandlers,ce=X.helpers={};X.prototype={constructor:X,focus:function(){At(this).focus(),this.display.input.focus()},setOption:function(ae,de){var Ee=this.options,Ie=Ee[ae];Ee[ae]==de&&ae!="mode"||(Ee[ae]=de,Q.hasOwnProperty(ae)&&wi(this,Q[ae])(this,de,Ie),Wt(this,"optionChange",this,ae))},getOption:function(ae){return this.options[ae]},getDoc:function(){return this.doc},addKeyMap:function(ae,de){this.state.keyMaps[de?"push":"unshift"](ul(ae))},removeKeyMap:function(ae){for(var de=this.state.keyMaps,Ee=0;Ee<de.length;++Ee)if(de[Ee]==ae||de[Ee].name==ae)return de.splice(Ee,1),!0},addOverlay:Di(function(ae,de){var Ee=ae.token?ae:X.getMode(this.options,ae);if(Ee.startState)throw new Error("Overlays may not be stateful.");_t(this.state.overlays,{mode:Ee,modeSpec:ae,opaque:de&&de.opaque,priority:de&&de.priority||0},function(Ie){return Ie.priority}),this.state.modeGen++,bi(this)}),removeOverlay:Di(function(ae){for(var de=this.state.overlays,Ee=0;Ee<de.length;++Ee){var Ie=de[Ee].modeSpec;if(Ie==ae||typeof ae=="string"&&Ie.name==ae){de.splice(Ee,1),this.state.modeGen++,bi(this);return}}}),indentLine:Di(function(ae,de,Ee){typeof de!="string"&&typeof de!="number"&&(de==null?de=this.options.smartIndent?"smart":"prev":de=de?"add":"subtract"),et(this.doc,ae)&&Ya(this,ae,de,Ee)}),indentSelection:Di(function(ae){for(var de=this.doc.sel.ranges,Ee=-1,Ie=0;Ie<de.length;Ie++){var He=de[Ie];if(He.empty())He.head.line>Ee&&(Ya(this,He.head.line,ae,!0),Ee=He.head.line,Ie==this.doc.sel.primIndex&&Qs(this));else{var Xe=He.from(),nt=He.to(),Pt=Math.max(Ee,Xe.line);Ee=Math.min(this.lastLine(),nt.line-(nt.ch?0:1))+1;for(var It=Pt;It<Ee;++It)Ya(this,It,ae);var rn=this.doc.sel.ranges;Xe.ch==0&&de.length==rn.length&&rn[Ie].from().ch>0&&st(this.doc,Ie,new Wr(Xe,rn[Ie].to()),_n)}}}),getTokenAt:function(ae,de){return Nr(this,ae,de)},getLineTokens:function(ae,de){return Nr(this,wt(ae),de,!0)},getTokenTypeAt:function(ae){ae=cn(this.doc,ae);var de=nn(this,Rn(this.doc,ae.line)),Ee=0,Ie=(de.length-1)/2,He=ae.ch,Xe;if(He==0)Xe=de[2];else for(;;){var nt=Ee+Ie>>1;if((nt?de[nt*2-1]:0)>=He)Ie=nt;else if(de[nt*2+1]<He)Ee=nt+1;else{Xe=de[nt*2+2];break}}var Pt=Xe?Xe.indexOf("overlay "):-1;return Pt<0?Xe:Pt==0?null:Xe.slice(0,Pt-1)},getModeAt:function(ae){var de=this.doc.mode;return de.innerMode?X.innerMode(de,this.getTokenAt(ae).state).mode:de},getHelper:function(ae,de){return this.getHelpers(ae,de)[0]},getHelpers:function(ae,de){var Ee=[];if(!ce.hasOwnProperty(de))return Ee;var Ie=ce[de],He=this.getModeAt(ae);if(typeof He[de]=="string")Ie[He[de]]&&Ee.push(Ie[He[de]]);else if(He[de])for(var Xe=0;Xe<He[de].length;Xe++){var nt=Ie[He[de][Xe]];nt&&Ee.push(nt)}else He.helperType&&Ie[He.helperType]?Ee.push(Ie[He.helperType]):Ie[He.name]&&Ee.push(Ie[He.name]);for(var Pt=0;Pt<Ie._global.length;Pt++){var It=Ie._global[Pt];It.pred(He,this)&&Qt(Ee,It.val)==-1&&Ee.push(It.val)}return Ee},getStateAfter:function(ae,de){var Ee=this.doc;return ae=Cn(Ee,ae??Ee.first+Ee.size-1),kn(this,ae+1,de).state},cursorCoords:function(ae,de){var Ee,Ie=this.doc.sel.primary();return ae==null?Ee=Ie.head:typeof ae=="object"?Ee=cn(this.doc,ae):Ee=ae?Ie.from():Ie.to(),Qr(this,Ee,de||"page")},charCoords:function(ae,de){return ii(this,cn(this.doc,ae),de||"page")},coordsChar:function(ae,de){return ae=di(this,ae,de||"page"),_i(this,ae.left,ae.top)},lineAtHeight:function(ae,de){return ae=di(this,{top:ae,left:0},de||"page").top,er(this.doc,ae+this.display.viewOffset)},heightAtLine:function(ae,de,Ee){var Ie=!1,He;if(typeof ae=="number"){var Xe=this.doc.first+this.doc.size-1;ae<this.doc.first?ae=this.doc.first:ae>Xe&&(ae=Xe,Ie=!0),He=Rn(this.doc,ae)}else He=ae;return ri(this,He,{top:0,left:0},de||"page",Ee||Ie).top+(Ie?this.doc.height-Vt(He):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return ls(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ae,de,Ee,Ie,He){var Xe=this.display;ae=Qr(this,cn(this.doc,ae));var nt=ae.bottom,Pt=ae.left;if(de.style.position="absolute",de.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(de),Xe.sizer.appendChild(de),Ie=="over")nt=ae.top;else if(Ie=="above"||Ie=="near"){var It=Math.max(Xe.wrapper.clientHeight,this.doc.height),rn=Math.max(Xe.sizer.clientWidth,Xe.lineSpace.clientWidth);(Ie=="above"||ae.bottom+de.offsetHeight>It)&&ae.top>de.offsetHeight?nt=ae.top-de.offsetHeight:ae.bottom+de.offsetHeight<=It&&(nt=ae.bottom),Pt+de.offsetWidth>rn&&(Pt=rn-de.offsetWidth)}de.style.top=nt+"px",de.style.left=de.style.right="",He=="right"?(Pt=Xe.sizer.clientWidth-de.offsetWidth,de.style.right="0px"):(He=="left"?Pt=0:He=="middle"&&(Pt=(Xe.sizer.clientWidth-de.offsetWidth)/2),de.style.left=Pt+"px"),Ee&&Zs(this,{left:Pt,top:nt,right:Pt+de.offsetWidth,bottom:nt+de.offsetHeight})},triggerOnKeyDown:Di(cc),triggerOnKeyPress:Di(dc),triggerOnKeyUp:uc,triggerOnMouseDown:Di(fc),execCommand:function(ae){if(Ua.hasOwnProperty(ae))return Ua[ae].call(null,this)},triggerElectric:Di(function(ae){bc(this,ae)}),findPosH:function(ae,de,Ee,Ie){var He=1;de<0&&(He=-1,de=-de);for(var Xe=cn(this.doc,ae),nt=0;nt<de&&(Xe=Vl(this.doc,Xe,He,Ee,Ie),!Xe.hitSide);++nt);return Xe},moveH:Di(function(ae,de){var Ee=this;this.extendSelectionsBy(function(Ie){return Ee.display.shift||Ee.doc.extend||Ie.empty()?Vl(Ee.doc,Ie.head,ae,de,Ee.options.rtlMoveVisually):ae<0?Ie.from():Ie.to()},On)}),deleteH:Di(function(ae,de){var Ee=this.doc.sel,Ie=this.doc;Ee.somethingSelected()?Ie.replaceSelection("",null,"+delete"):la(this,function(He){var Xe=Vl(Ie,He.head,ae,de,!1);return ae<0?{from:Xe,to:He.head}:{from:He.head,to:Xe}})}),findPosV:function(ae,de,Ee,Ie){var He=1,Xe=Ie;de<0&&(He=-1,de=-de);for(var nt=cn(this.doc,ae),Pt=0;Pt<de;++Pt){var It=Qr(this,nt,"div");if(Xe==null?Xe=It.left:It.left=Xe,nt=wc(this,It,He,Ee),nt.hitSide)break}return nt},moveV:Di(function(ae,de){var Ee=this,Ie=this.doc,He=[],Xe=!this.display.shift&&!Ie.extend&&Ie.sel.somethingSelected();if(Ie.extendSelectionsBy(function(Pt){if(Xe)return ae<0?Pt.from():Pt.to();var It=Qr(Ee,Pt.head,"div");Pt.goalColumn!=null&&(It.left=Pt.goalColumn),He.push(It.left);var rn=wc(Ee,It,ae,de);return de=="page"&&Pt==Ie.sel.primary()&&ba(Ee,ii(Ee,rn,"div").top-It.top),rn},On),He.length)for(var nt=0;nt<Ie.sel.ranges.length;nt++)Ie.sel.ranges[nt].goalColumn=He[nt]}),findWordAt:function(ae){var de=this.doc,Ee=Rn(de,ae.line).text,Ie=ae.ch,He=ae.ch;if(Ee){var Xe=this.getHelper(ae,"wordChars");(ae.sticky=="before"||He==Ee.length)&&Ie?--Ie:++He;for(var nt=Ee.charAt(Ie),Pt=Ue(nt,Xe)?function(It){return Ue(It,Xe)}:/\s/.test(nt)?function(It){return/\s/.test(It)}:function(It){return!/\s/.test(It)&&!Ue(It)};Ie>0&&Pt(Ee.charAt(Ie-1));)--Ie;for(;He<Ee.length&&Pt(Ee.charAt(He));)++He}return new Wr(wt(ae.line,Ie),wt(ae.line,He))},toggleOverwrite:function(ae){ae!=null&&ae==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ze(this.display.cursorDiv,"CodeMirror-overwrite"):be(this.display.cursorDiv,"CodeMirror-overwrite"),Wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe(Ve(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Di(function(ae,de){Lo(this,ae,de)}),getScrollInfo:function(){var ae=this.display.scroller;return{left:ae.scrollLeft,top:ae.scrollTop,height:ae.scrollHeight-ss(this)-this.display.barHeight,width:ae.scrollWidth-ss(this)-this.display.barWidth,clientHeight:Ro(this),clientWidth:Ps(this)}},scrollIntoView:Di(function(ae,de){ae==null?(ae={from:this.doc.sel.primary().head,to:null},de==null&&(de=this.options.cursorScrollMargin)):typeof ae=="number"?ae={from:wt(ae,0),to:null}:ae.from==null&&(ae={from:ae,to:null}),ae.to||(ae.to=ae.from),ae.margin=de||0,ae.from.line!=null?gl(this,ae):ea(this,ae.from,ae.to,ae.margin)}),setSize:Di(function(ae,de){var Ee=this,Ie=function(Xe){return typeof Xe=="number"||/^\d+$/.test(String(Xe))?Xe+"px":Xe};ae!=null&&(this.display.wrapper.style.width=Ie(ae)),de!=null&&(this.display.wrapper.style.height=Ie(de)),this.options.lineWrapping&&yr(this);var He=this.display.viewFrom;this.doc.iter(He,this.display.viewTo,function(Xe){if(Xe.widgets){for(var nt=0;nt<Xe.widgets.length;nt++)if(Xe.widgets[nt].noHScroll){Qi(Ee,He,"widget");break}}++He}),this.curOp.forceUpdate=!0,Wt(this,"refresh",this)}),operation:function(ae){return Ui(this,ae)},startOperation:function(){return Rs(this)},endOperation:function(){return Ds(this)},refresh:Di(function(){var ae=this.display.cachedTextHeight;bi(this),this.curOp.forceUpdate=!0,wr(this),Lo(this,this.doc.scrollLeft,this.doc.scrollTop),Sa(this.display),(ae==null||Math.abs(ae-zi(this.display))>.5||this.options.lineWrapping)&&ks(this),Wt(this,"refresh",this)}),swapDoc:Di(function(ae){var de=this.doc;return de.cm=null,this.state.selectingText&&this.state.selectingText(),Vo(this,ae),wr(this),this.display.input.reset(),Lo(this,ae.scrollLeft,ae.scrollTop),this.curOp.forceScroll=!0,hi(this,"swapDoc",this,de),de}),phrase:function(ae){var de=this.options.phrases;return de&&Object.prototype.hasOwnProperty.call(de,ae)?de[ae]:ae},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}},ft(X),X.registerHelper=function(ae,de,Ee){ce.hasOwnProperty(ae)||(ce[ae]=X[ae]={_global:[]}),ce[ae][de]=Ee},X.registerGlobalHelper=function(ae,de,Ee,Ie){X.registerHelper(ae,de,Ie),ce[ae]._global.push({pred:Ee,val:Ie})}}function Vl(X,Q,ce,ae,de){var Ee=Q,Ie=ce,He=Rn(X,Q.line),Xe=de&&X.direction=="rtl"?-ce:ce;function nt(){var dr=Q.line+Xe;return dr<X.first||dr>=X.first+X.size?!1:(Q=new wt(dr,Q.ch,Q.sticky),He=Rn(X,dr))}function Pt(dr){var rr;if(ae=="codepoint"){var gr=He.text.charCodeAt(Q.ch+(ce>0?0:-1));if(isNaN(gr))rr=null;else{var Or=ce>0?gr>=55296&&gr<56320:gr>=56320&&gr<57343;rr=new wt(Q.line,Math.max(0,Math.min(He.text.length,Q.ch+ce*(Or?2:1))),-ce)}}else de?rr=Bc(X.cm,He,Q,ce):rr=Ml(He,Q,ce);if(rr==null)if(!dr&&nt())Q=Il(de,X.cm,He,Q.line,Xe);else return!1;else Q=rr;return!0}if(ae=="char"||ae=="codepoint")Pt();else if(ae=="column")Pt(!0);else if(ae=="word"||ae=="group")for(var It=null,rn=ae=="group",Zt=X.cm&&X.cm.getHelper(Q,"wordChars"),Tn=!0;!(ce<0&&!Pt(!Tn));Tn=!1){var Ln=He.text.charAt(Q.ch)||`
- `,Yn=Ue(Ln,Zt)?"w":rn&&Ln==`
- `?"n":!rn||/\s/.test(Ln)?null:"p";if(rn&&!Tn&&!Yn&&(Yn="s"),It&&It!=Yn){ce<0&&(ce=1,Pt(),Q.sticky="after");break}if(Yn&&(It=Yn),ce>0&&!Pt(!Tn))break}var nr=Gn(X,Q,Ee,Ie,!0);return Kt(Ee,nr)&&(nr.hitSide=!0),nr}function wc(X,Q,ce,ae){var de=X.doc,Ee=Q.left,Ie;if(ae=="page"){var He=Math.min(X.display.wrapper.clientHeight,At(X).innerHeight||de(X).documentElement.clientHeight),Xe=Math.max(He-.5*zi(X.display),3);Ie=(ce>0?Q.bottom:Q.top)+ce*Xe}else ae=="line"&&(Ie=ce>0?Q.bottom+3:Q.top-3);for(var nt;nt=_i(X,Ee,Ie),!!nt.outside;){if(ce<0?Ie<=0:Ie>=de.height){nt.hitSide=!0;break}Ie+=ce*5}return nt}var si=function(X){this.cm=X,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new qt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};si.prototype.init=function(X){var Q=this,ce=this,ae=ce.cm,de=ce.div=X.lineDiv;de.contentEditable=!0,jl(de,ae.options.spellcheck,ae.options.autocorrect,ae.options.autocapitalize);function Ee(He){for(var Xe=He.target;Xe;Xe=Xe.parentNode){if(Xe==de)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Xe.className))break}return!1}dt(de,"paste",function(He){!Ee(He)||gn(ae,He)||vc(He,ae)||K<=11&&setTimeout(wi(ae,function(){return Q.updateFromDOM()}),20)}),dt(de,"compositionstart",function(He){Q.composing={data:He.data,done:!1}}),dt(de,"compositionupdate",function(He){Q.composing||(Q.composing={data:He.data,done:!1})}),dt(de,"compositionend",function(He){Q.composing&&(He.data!=Q.composing.data&&Q.readFromDOMSoon(),Q.composing.done=!0)}),dt(de,"touchstart",function(){return ce.forceCompositionEnd()}),dt(de,"input",function(){Q.composing||Q.readFromDOMSoon()});function Ie(He){if(!(!Ee(He)||gn(ae,He))){if(ae.somethingSelected())pl({lineWise:!1,text:ae.getSelections()}),He.type=="cut"&&ae.replaceSelection("",null,"cut");else if(ae.options.lineWiseCopyCut){var Xe=yc(ae);pl({lineWise:!0,text:Xe.text}),He.type=="cut"&&ae.operation(function(){ae.setSelections(Xe.ranges,0,_n),ae.replaceSelection("",null,"cut")})}else return;if(He.clipboardData){He.clipboardData.clearData();var nt=Is.text.join(`
- `);if(He.clipboardData.setData("Text",nt),He.clipboardData.getData("Text")==nt){He.preventDefault();return}}var Pt=xc(),It=Pt.firstChild;jl(It),ae.display.lineSpace.insertBefore(Pt,ae.display.lineSpace.firstChild),It.value=Is.text.join(`
- `);var rn=Fe(de.ownerDocument);qe(It),setTimeout(function(){ae.display.lineSpace.removeChild(Pt),rn.focus(),rn==de&&ce.showPrimarySelection()},50)}}dt(de,"copy",Ie),dt(de,"cut",Ie)},si.prototype.screenReaderLabelChanged=function(X){X?this.div.setAttribute("aria-label",X):this.div.removeAttribute("aria-label")},si.prototype.prepareSelection=function(){var X=Xo(this.cm,!1);return X.focus=Fe(this.div.ownerDocument)==this.div,X},si.prototype.showSelection=function(X,Q){!X||!this.cm.display.view.length||((X.focus||Q)&&this.showPrimarySelection(),this.showMultipleSelections(X))},si.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},si.prototype.showPrimarySelection=function(){var X=this.getSelection(),Q=this.cm,ce=Q.doc.sel.primary(),ae=ce.from(),de=ce.to();if(Q.display.viewTo==Q.display.viewFrom||ae.line>=Q.display.viewTo||de.line<Q.display.viewFrom){X.removeAllRanges();return}var Ee=hl(Q,X.anchorNode,X.anchorOffset),Ie=hl(Q,X.focusNode,X.focusOffset);if(!(Ee&&!Ee.bad&&Ie&&!Ie.bad&&Bt(hn(Ee,Ie),ae)==0&&Bt(tn(Ee,Ie),de)==0)){var He=Q.display.view,Xe=ae.line>=Q.display.viewFrom&&Sc(Q,ae)||{node:He[0].measure.map[2],offset:0},nt=de.line<Q.display.viewTo&&Sc(Q,de);if(!nt){var Pt=He[He.length-1].measure,It=Pt.maps?Pt.maps[Pt.maps.length-1]:Pt.map;nt={node:It[It.length-1],offset:It[It.length-2]-It[It.length-3]}}if(!Xe||!nt){X.removeAllRanges();return}var rn=X.rangeCount&&X.getRangeAt(0),Zt;try{Zt=Me(Xe.node,Xe.offset,nt.offset,nt.node)}catch{}Zt&&(!B&&Q.state.focused?(X.collapse(Xe.node,Xe.offset),Zt.collapsed||(X.removeAllRanges(),X.addRange(Zt))):(X.removeAllRanges(),X.addRange(Zt)),rn&&X.anchorNode==null?X.addRange(rn):B&&this.startGracePeriod()),this.rememberSelection()}},si.prototype.startGracePeriod=function(){var X=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){X.gracePeriod=!1,X.selectionChanged()&&X.cm.operation(function(){return X.cm.curOp.selectionChanged=!0})},20)},si.prototype.showMultipleSelections=function(X){Ae(this.cm.display.cursorDiv,X.cursors),Ae(this.cm.display.selectionDiv,X.selection)},si.prototype.rememberSelection=function(){var X=this.getSelection();this.lastAnchorNode=X.anchorNode,this.lastAnchorOffset=X.anchorOffset,this.lastFocusNode=X.focusNode,this.lastFocusOffset=X.focusOffset},si.prototype.selectionInEditor=function(){var X=this.getSelection();if(!X.rangeCount)return!1;var Q=X.getRangeAt(0).commonAncestorContainer;return ze(this.div,Q)},si.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},si.prototype.blur=function(){this.div.blur()},si.prototype.getField=function(){return this.div},si.prototype.supportsTouch=function(){return!0},si.prototype.receivedFocus=function(){var X=this,Q=this;this.selectionInEditor()?setTimeout(function(){return X.pollSelection()},20):Ui(this.cm,function(){return Q.cm.curOp.selectionChanged=!0});function ce(){Q.cm.state.focused&&(Q.pollSelection(),Q.polling.set(Q.cm.options.pollInterval,ce))}this.polling.set(this.cm.options.pollInterval,ce)},si.prototype.selectionChanged=function(){var X=this.getSelection();return X.anchorNode!=this.lastAnchorNode||X.anchorOffset!=this.lastAnchorOffset||X.focusNode!=this.lastFocusNode||X.focusOffset!=this.lastFocusOffset},si.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var X=this.getSelection(),Q=this.cm;if(ge&&Z&&this.cm.display.gutterSpecs.length&&su(X.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ce=hl(Q,X.anchorNode,X.anchorOffset),ae=hl(Q,X.focusNode,X.focusOffset);ce&&ae&&Ui(Q,function(){an(Q.doc,Hi(ce,ae),_n),(ce.bad||ae.bad)&&(Q.curOp.selectionChanged=!0)})}}},si.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var X=this.cm,Q=X.display,ce=X.doc.sel.primary(),ae=ce.from(),de=ce.to();if(ae.ch==0&&ae.line>X.firstLine()&&(ae=wt(ae.line-1,Rn(X.doc,ae.line-1).length)),de.ch==Rn(X.doc,de.line).text.length&&de.line<X.lastLine()&&(de=wt(de.line+1,0)),ae.line<Q.viewFrom||de.line>Q.viewTo-1)return!1;var Ee,Ie,He;ae.line==Q.viewFrom||(Ee=bs(X,ae.line))==0?(Ie=zn(Q.view[0].line),He=Q.view[0].node):(Ie=zn(Q.view[Ee].line),He=Q.view[Ee-1].node.nextSibling);var Xe=bs(X,de.line),nt,Pt;if(Xe==Q.view.length-1?(nt=Q.viewTo-1,Pt=Q.lineDiv.lastChild):(nt=zn(Q.view[Xe+1].line)-1,Pt=Q.view[Xe+1].node.previousSibling),!He)return!1;for(var It=X.doc.splitLines(ou(X,He,Pt,Ie,nt)),rn=mr(X.doc,wt(Ie,0),wt(nt,Rn(X.doc,nt).text.length));It.length>1&&rn.length>1;)if(kt(It)==kt(rn))It.pop(),rn.pop(),nt--;else if(It[0]==rn[0])It.shift(),rn.shift(),Ie++;else break;for(var Zt=0,Tn=0,Ln=It[0],Yn=rn[0],nr=Math.min(Ln.length,Yn.length);Zt<nr&&Ln.charCodeAt(Zt)==Yn.charCodeAt(Zt);)++Zt;for(var dr=kt(It),rr=kt(rn),gr=Math.min(dr.length-(It.length==1?Zt:0),rr.length-(rn.length==1?Zt:0));Tn<gr&&dr.charCodeAt(dr.length-Tn-1)==rr.charCodeAt(rr.length-Tn-1);)++Tn;if(It.length==1&&rn.length==1&&Ie==ae.line)for(;Zt&&Zt>ae.ch&&dr.charCodeAt(dr.length-Tn-1)==rr.charCodeAt(rr.length-Tn-1);)Zt--,Tn++;It[It.length-1]=dr.slice(0,dr.length-Tn).replace(/^\u200b+/,""),It[0]=It[0].slice(Zt).replace(/\u200b+$/,"");var Or=wt(Ie,Zt),kr=wt(nt,rn.length?kt(rn).length-Tn:0);if(It.length>1||It[0]||Bt(Or,kr))return Hs(X.doc,It,Or,kr,"+input"),!0},si.prototype.ensurePolled=function(){this.forceCompositionEnd()},si.prototype.reset=function(){this.forceCompositionEnd()},si.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},si.prototype.readFromDOMSoon=function(){var X=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(X.readDOMTimeout=null,X.composing)if(X.composing.done)X.composing=null;else return;X.updateFromDOM()},80))},si.prototype.updateFromDOM=function(){var X=this;(this.cm.isReadOnly()||!this.pollContent())&&Ui(this.cm,function(){return bi(X.cm)})},si.prototype.setUneditable=function(X){X.contentEditable="false"},si.prototype.onKeyPress=function(X){X.charCode==0||this.composing||(X.preventDefault(),this.cm.isReadOnly()||wi(this.cm,zl)(this.cm,String.fromCharCode(X.charCode==null?X.keyCode:X.charCode),0))},si.prototype.readOnlyChanged=function(X){this.div.contentEditable=String(X!="nocursor")},si.prototype.onContextMenu=function(){},si.prototype.resetPosition=function(){},si.prototype.needsContentAttribute=!0;function Sc(X,Q){var ce=it(X,Q.line);if(!ce||ce.hidden)return null;var ae=Rn(X.doc,Q.line),de=Go(ce,ae,Q.line),Ee=xn(ae,X.doc.direction),Ie="left";if(Ee){var He=Bn(Ee,Q.ch);Ie=He%2?"right":"left"}var Xe=ln(de.map,Q.ch,Ie);return Xe.offset=Xe.collapse=="right"?Xe.end:Xe.start,Xe}function su(X){for(var Q=X;Q;Q=Q.parentNode)if(/CodeMirror-gutter-wrapper/.test(Q.className))return!0;return!1}function ua(X,Q){return Q&&(X.bad=!0),X}function ou(X,Q,ce,ae,de){var Ee="",Ie=!1,He=X.doc.lineSeparator(),Xe=!1;function nt(Zt){return function(Tn){return Tn.id==Zt}}function Pt(){Ie&&(Ee+=He,Xe&&(Ee+=He),Ie=Xe=!1)}function It(Zt){Zt&&(Pt(),Ee+=Zt)}function rn(Zt){if(Zt.nodeType==1){var Tn=Zt.getAttribute("cm-text");if(Tn){It(Tn);return}var Ln=Zt.getAttribute("cm-marker"),Yn;if(Ln){var nr=X.findMarks(wt(ae,0),wt(de+1,0),nt(+Ln));nr.length&&(Yn=nr[0].find(0))&&It(mr(X.doc,Yn.from,Yn.to).join(He));return}if(Zt.getAttribute("contenteditable")=="false")return;var dr=/^(pre|div|p|li|table|br)$/i.test(Zt.nodeName);if(!/^br$/i.test(Zt.nodeName)&&Zt.textContent.length==0)return;dr&&Pt();for(var rr=0;rr<Zt.childNodes.length;rr++)rn(Zt.childNodes[rr]);/^(pre|p)$/i.test(Zt.nodeName)&&(Xe=!0),dr&&(Ie=!0)}else Zt.nodeType==3&&It(Zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;rn(Q),Q!=ce;)Q=Q.nextSibling,Xe=!1;return Ee}function hl(X,Q,ce){var ae;if(Q==X.display.lineDiv){if(ae=X.display.lineDiv.childNodes[ce],!ae)return ua(X.clipPos(wt(X.display.viewTo-1)),!0);Q=null,ce=0}else for(ae=Q;;ae=ae.parentNode){if(!ae||ae==X.display.lineDiv)return null;if(ae.parentNode&&ae.parentNode==X.display.lineDiv)break}for(var de=0;de<X.display.view.length;de++){var Ee=X.display.view[de];if(Ee.node==ae)return au(Ee,Q,ce)}}function au(X,Q,ce){var ae=X.text.firstChild,de=!1;if(!Q||!ze(ae,Q))return ua(wt(zn(X.line),0),!0);if(Q==ae&&(de=!0,Q=ae.childNodes[ce],ce=0,!Q)){var Ee=X.rest?kt(X.rest):X.line;return ua(wt(zn(Ee),Ee.text.length),de)}var Ie=Q.nodeType==3?Q:null,He=Q;for(!Ie&&Q.childNodes.length==1&&Q.firstChild.nodeType==3&&(Ie=Q.firstChild,ce&&(ce=Ie.nodeValue.length));He.parentNode!=ae;)He=He.parentNode;var Xe=X.measure,nt=Xe.maps;function Pt(Yn,nr,dr){for(var rr=-1;rr<(nt?nt.length:0);rr++)for(var gr=rr<0?Xe.map:nt[rr],Or=0;Or<gr.length;Or+=3){var kr=gr[Or+2];if(kr==Yn||kr==nr){var jr=zn(rr<0?X.line:X.rest[rr]),ci=gr[Or]+dr;return(dr<0||kr!=Yn)&&(ci=gr[Or+(dr?1:0)]),wt(jr,ci)}}}var It=Pt(Ie,He,ce);if(It)return ua(It,de);for(var rn=He.nextSibling,Zt=Ie?Ie.nodeValue.length-ce:0;rn;rn=rn.nextSibling){if(It=Pt(rn,rn.firstChild,0),It)return ua(wt(It.line,It.ch-Zt),de);Zt+=rn.textContent.length}for(var Tn=He.previousSibling,Ln=ce;Tn;Tn=Tn.previousSibling){if(It=Pt(Tn,Tn.firstChild,-1),It)return ua(wt(It.line,It.ch+Ln),de);Ln+=Tn.textContent.length}}var $i=function(X){this.cm=X,this.prevInput="",this.pollingFast=!1,this.polling=new qt,this.hasSelection=!1,this.composing=null,this.resetting=!1};$i.prototype.init=function(X){var Q=this,ce=this,ae=this.cm;this.createField(X);var de=this.textarea;X.wrapper.insertBefore(this.wrapper,X.wrapper.firstChild),le&&(de.style.width="0px"),dt(de,"input",function(){Y&&K>=9&&Q.hasSelection&&(Q.hasSelection=null),ce.poll()}),dt(de,"paste",function(Ie){gn(ae,Ie)||vc(Ie,ae)||(ae.state.pasteIncoming=+new Date,ce.fastPoll())});function Ee(Ie){if(!gn(ae,Ie)){if(ae.somethingSelected())pl({lineWise:!1,text:ae.getSelections()});else if(ae.options.lineWiseCopyCut){var He=yc(ae);pl({lineWise:!0,text:He.text}),Ie.type=="cut"?ae.setSelections(He.ranges,null,_n):(ce.prevInput="",de.value=He.text.join(`
- `),qe(de))}else return;Ie.type=="cut"&&(ae.state.cutIncoming=+new Date)}}dt(de,"cut",Ee),dt(de,"copy",Ee),dt(X.scroller,"paste",function(Ie){if(!(gs(X,Ie)||gn(ae,Ie))){if(!de.dispatchEvent){ae.state.pasteIncoming=+new Date,ce.focus();return}var He=new Event("paste");He.clipboardData=Ie.clipboardData,de.dispatchEvent(He)}}),dt(X.lineSpace,"selectstart",function(Ie){gs(X,Ie)||Tt(Ie)}),dt(de,"compositionstart",function(){var Ie=ae.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:Ie,range:ae.markText(Ie,ae.getCursor("to"),{className:"CodeMirror-composing"})}}),dt(de,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},$i.prototype.createField=function(X){this.wrapper=xc(),this.textarea=this.wrapper.firstChild;var Q=this.cm.options;jl(this.textarea,Q.spellcheck,Q.autocorrect,Q.autocapitalize)},$i.prototype.screenReaderLabelChanged=function(X){X?this.textarea.setAttribute("aria-label",X):this.textarea.removeAttribute("aria-label")},$i.prototype.prepareSelection=function(){var X=this.cm,Q=X.display,ce=X.doc,ae=Xo(X);if(X.options.moveInputWithCursor){var de=Qr(X,ce.sel.primary().head,"div"),Ee=Q.wrapper.getBoundingClientRect(),Ie=Q.lineDiv.getBoundingClientRect();ae.teTop=Math.max(0,Math.min(Q.wrapper.clientHeight-10,de.top+Ie.top-Ee.top)),ae.teLeft=Math.max(0,Math.min(Q.wrapper.clientWidth-10,de.left+Ie.left-Ee.left))}return ae},$i.prototype.showSelection=function(X){var Q=this.cm,ce=Q.display;Ae(ce.cursorDiv,X.cursors),Ae(ce.selectionDiv,X.selection),X.teTop!=null&&(this.wrapper.style.top=X.teTop+"px",this.wrapper.style.left=X.teLeft+"px")},$i.prototype.reset=function(X){if(!(this.contextMenuPending||this.composing&&X)){var Q=this.cm;if(this.resetting=!0,Q.somethingSelected()){this.prevInput="";var ce=Q.getSelection();this.textarea.value=ce,Q.state.focused&&qe(this.textarea),Y&&K>=9&&(this.hasSelection=ce)}else X||(this.prevInput=this.textarea.value="",Y&&K>=9&&(this.hasSelection=null));this.resetting=!1}},$i.prototype.getField=function(){return this.textarea},$i.prototype.supportsTouch=function(){return!1},$i.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||Fe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},$i.prototype.blur=function(){this.textarea.blur()},$i.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$i.prototype.receivedFocus=function(){this.slowPoll()},$i.prototype.slowPoll=function(){var X=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){X.poll(),X.cm.state.focused&&X.slowPoll()})},$i.prototype.fastPoll=function(){var X=!1,Q=this;Q.pollingFast=!0;function ce(){var ae=Q.poll();!ae&&!X?(X=!0,Q.polling.set(60,ce)):(Q.pollingFast=!1,Q.slowPoll())}Q.polling.set(20,ce)},$i.prototype.poll=function(){var X=this,Q=this.cm,ce=this.textarea,ae=this.prevInput;if(this.contextMenuPending||this.resetting||!Q.state.focused||Ge(ce)&&!ae&&!this.composing||Q.isReadOnly()||Q.options.disableInput||Q.state.keySeq)return!1;var de=ce.value;if(de==ae&&!Q.somethingSelected())return!1;if(Y&&K>=9&&this.hasSelection===de||_e&&/[\uf700-\uf7ff]/.test(de))return Q.display.input.reset(),!1;if(Q.doc.sel==Q.display.selForContextMenu){var Ee=de.charCodeAt(0);if(Ee==8203&&!ae&&(ae=""),Ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ie=0,He=Math.min(ae.length,de.length);Ie<He&&ae.charCodeAt(Ie)==de.charCodeAt(Ie);)++Ie;return Ui(Q,function(){zl(Q,de.slice(Ie),ae.length-Ie,null,X.composing?"*compose":null),de.length>1e3||de.indexOf(`
- `)>-1?ce.value=X.prevInput="":X.prevInput=de,X.composing&&(X.composing.range.clear(),X.composing.range=Q.markText(X.composing.start,Q.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$i.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$i.prototype.onKeyPress=function(){Y&&K>=9&&(this.hasSelection=null),this.fastPoll()},$i.prototype.onContextMenu=function(X){var Q=this,ce=Q.cm,ae=ce.display,de=Q.textarea;Q.contextMenuPending&&Q.contextMenuPending();var Ee=cs(ce,X),Ie=ae.scroller.scrollTop;if(!Ee||te)return;var He=ce.options.resetSelectionOnContextMenu;He&&ce.doc.sel.contains(Ee)==-1&&wi(ce,an)(ce.doc,Hi(Ee),_n);var Xe=de.style.cssText,nt=Q.wrapper.style.cssText,Pt=Q.wrapper.offsetParent.getBoundingClientRect();Q.wrapper.style.cssText="position: static",de.style.cssText=`position: absolute; width: 30px; height: 30px;
- top: `+(X.clientY-Pt.top-5)+"px; left: "+(X.clientX-Pt.left-5)+`px;
- z-index: 1000; background: `+(Y?"rgba(255, 255, 255, .05)":"transparent")+`;
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var It;G&&(It=de.ownerDocument.defaultView.scrollY),ae.input.focus(),G&&de.ownerDocument.defaultView.scrollTo(null,It),ae.input.reset(),ce.somethingSelected()||(de.value=Q.prevInput=" "),Q.contextMenuPending=Zt,ae.selForContextMenu=ce.doc.sel,clearTimeout(ae.detectingSelectAll);function rn(){if(de.selectionStart!=null){var Ln=ce.somethingSelected(),Yn=""+(Ln?de.value:"");de.value="⇚",de.value=Yn,Q.prevInput=Ln?"":"",de.selectionStart=1,de.selectionEnd=Yn.length,ae.selForContextMenu=ce.doc.sel}}function Zt(){if(Q.contextMenuPending==Zt&&(Q.contextMenuPending=!1,Q.wrapper.style.cssText=nt,de.style.cssText=Xe,Y&&K<9&&ae.scrollbars.setScrollTop(ae.scroller.scrollTop=Ie),de.selectionStart!=null)){(!Y||Y&&K<9)&&rn();var Ln=0,Yn=function(){ae.selForContextMenu==ce.doc.sel&&de.selectionStart==0&&de.selectionEnd>0&&Q.prevInput==""?wi(ce,Tr)(ce):Ln++<10?ae.detectingSelectAll=setTimeout(Yn,500):(ae.selForContextMenu=null,ae.input.reset())};ae.detectingSelectAll=setTimeout(Yn,200)}}if(Y&&K>=9&&rn(),oe){mn(X);var Tn=function(){Yt(window,"mouseup",Tn),setTimeout(Zt,20)};dt(window,"mouseup",Tn)}else setTimeout(Zt,50)},$i.prototype.readOnlyChanged=function(X){X||this.reset(),this.textarea.disabled=X=="nocursor",this.textarea.readOnly=!!X},$i.prototype.setUneditable=function(){},$i.prototype.needsContentAttribute=!1;function lu(X,Q){if(Q=Q?zt(Q):{},Q.value=X.value,!Q.tabindex&&X.tabIndex&&(Q.tabindex=X.tabIndex),!Q.placeholder&&X.placeholder&&(Q.placeholder=X.placeholder),Q.autofocus==null){var ce=Fe(X.ownerDocument);Q.autofocus=ce==X||X.getAttribute("autofocus")!=null&&ce==document.body}function ae(){X.value=He.getValue()}var de;if(X.form&&(dt(X.form,"submit",ae),!Q.leaveSubmitMethodAlone)){var Ee=X.form;de=Ee.submit;try{var Ie=Ee.submit=function(){ae(),Ee.submit=de,Ee.submit(),Ee.submit=Ie}}catch{}}Q.finishInit=function(Xe){Xe.save=ae,Xe.getTextArea=function(){return X},Xe.toTextArea=function(){Xe.toTextArea=isNaN,ae(),X.parentNode.removeChild(Xe.getWrapperElement()),X.style.display="",X.form&&(Yt(X.form,"submit",ae),!Q.leaveSubmitMethodAlone&&typeof X.form.submit=="function"&&(X.form.submit=de))}},X.style.display="none";var He=gi(function(Xe){return X.parentNode.insertBefore(Xe,X.nextSibling)},Q);return He}function cu(X){X.off=Yt,X.on=dt,X.wheelEventPixels=Cl,X.Doc=ts,X.splitLines=Vr,X.countColumn=Ht,X.findColumn=Fn,X.isWordChar=$e,X.Pass=yn,X.signal=Wt,X.Line=bn,X.changeEnd=xs,X.scrollbarModel=ya,X.Pos=wt,X.cmpPos=Bt,X.modes=vt,X.mimeModes=Xt,X.resolveMode=Nn,X.getMode=Qn,X.modeExtensions=Xn,X.extendMode=Rr,X.copyState=tr,X.startState=Sr,X.innerMode=fr,X.commands=Ua,X.keyMap=so,X.keyName=ic,X.isModifierKey=nc,X.lookupKey=aa,X.normalizeKeyMap=Fc,X.StringStream=sr,X.SharedTextMarker=za,X.TextMarker=So,X.LineWidget=Ba,X.e_preventDefault=Tt,X.e_stopPropagation=Lt,X.e_stop=mn,X.addClass=Ze,X.contains=ze,X.rmClass=be,X.keyNames=ko}eu(gi),iu(gi);var uu="iter insert remove copy getEditor constructor".split(" ");for(var ml in ts.prototype)ts.prototype.hasOwnProperty(ml)&&Qt(uu,ml)<0&&(gi.prototype[ml]=function(X){return function(){return X.apply(this.doc,arguments)}}(ts.prototype[ml]));return ft(ts),gi.inputStyles={textarea:$i,contenteditable:si},gi.defineMode=function(X){!gi.defaults.mode&&X!="null"&&(gi.defaults.mode=X),sn.apply(this,arguments)},gi.defineMIME=Pn,gi.defineMode("null",function(){return{token:function(X){return X.skipToEnd()}}}),gi.defineMIME("text/plain","null"),gi.defineExtension=function(X,Q){gi.prototype[X]=Q},gi.defineDocExtension=function(X,Q){ts.prototype[X]=Q},gi.fromTextArea=lu,cu(gi),gi.version="5.65.12",gi})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);var matchbrackets={exports:{}};(function(M,$){(function(I){I(requireCodemirror())})(function(I){var N=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),B=I.Pos,j={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function U(Z){return Z&&Z.bracketRegex||/[(){}[\]]/}function q(Z,ee,te){var re=Z.getLineHandle(ee.line),se=ee.ch-1,ne=te&&te.afterCursor;ne==null&&(ne=/(^| )cm-fat-cursor($| )/.test(Z.getWrapperElement().className));var le=U(te),ge=!ne&&se>=0&&le.test(re.text.charAt(se))&&j[re.text.charAt(se)]||le.test(re.text.charAt(se+1))&&j[re.text.charAt(++se)];if(!ge)return null;var ue=ge.charAt(1)==">"?1:-1;if(te&&te.strict&&ue>0!=(se==ee.ch))return null;var _e=Z.getTokenTypeAt(B(ee.line,se+1)),fe=Y(Z,B(ee.line,se+(ue>0?1:0)),ue,_e,te);return fe==null?null:{from:B(ee.line,se),to:fe&&fe.pos,match:fe&&fe.ch==ge.charAt(0),forward:ue>0}}function Y(Z,ee,te,re,se){for(var ne=se&&se.maxScanLineLength||1e4,le=se&&se.maxScanLines||1e3,ge=[],ue=U(se),_e=te>0?Math.min(ee.line+le,Z.lastLine()+1):Math.max(Z.firstLine()-1,ee.line-le),fe=ee.line;fe!=_e;fe+=te){var me=Z.getLine(fe);if(me){var ve=te>0?0:me.length-1,xe=te>0?me.length:-1;if(!(me.length>ne))for(fe==ee.line&&(ve=ee.ch-(te<0?1:0));ve!=xe;ve+=te){var oe=me.charAt(ve);if(ue.test(oe)&&(re===void 0||(Z.getTokenTypeAt(B(fe,ve+1))||"")==(re||""))){var ye=j[oe];if(ye&&ye.charAt(1)==">"==te>0)ge.push(oe);else if(ge.length)ge.pop();else return{pos:B(fe,ve),ch:oe}}}}}return fe-te==(te>0?Z.lastLine():Z.firstLine())?!1:null}function K(Z,ee,te){for(var re=Z.state.matchBrackets.maxHighlightLineLength||1e3,se=te&&te.highlightNonMatching,ne=[],le=Z.listSelections(),ge=0;ge<le.length;ge++){var ue=le[ge].empty()&&q(Z,le[ge].head,te);if(ue&&(ue.match||se!==!1)&&Z.getLine(ue.from.line).length<=re){var _e=ue.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";ne.push(Z.markText(ue.from,B(ue.from.line,ue.from.ch+1),{className:_e})),ue.to&&Z.getLine(ue.to.line).length<=re&&ne.push(Z.markText(ue.to,B(ue.to.line,ue.to.ch+1),{className:_e}))}}if(ne.length){N&&Z.state.focused&&Z.focus();var fe=function(){Z.operation(function(){for(var me=0;me<ne.length;me++)ne[me].clear()})};if(ee)setTimeout(fe,800);else return fe}}function G(Z){Z.operation(function(){Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null),Z.state.matchBrackets.currentlyHighlighted=K(Z,!1,Z.state.matchBrackets)})}function J(Z){Z.state.matchBrackets&&Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null)}I.defineOption("matchBrackets",!1,function(Z,ee,te){te&&te!=I.Init&&(Z.off("cursorActivity",G),Z.off("focus",G),Z.off("blur",J),J(Z)),ee&&(Z.state.matchBrackets=typeof ee=="object"?ee:{},Z.on("cursorActivity",G),Z.on("focus",G),Z.on("blur",J))}),I.defineExtension("matchBrackets",function(){K(this,!0)}),I.defineExtension("findMatchingBracket",function(Z,ee,te){return(te||typeof ee=="boolean")&&(te?(te.strict=ee,ee=te):ee=ee?{strict:!0}:null),q(this,Z,ee)}),I.defineExtension("scanForBracket",function(Z,ee,te,re){return Y(this,Z,ee,te,re)})})})();var matchbracketsExports=matchbrackets.exports;(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineOption("fullScreen",!1,function(j,U,q){q==I.Init&&(q=!1),!q!=!U&&(U?N(j):B(j))});function N(j){var U=j.getWrapperElement();j.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:U.style.width,height:U.style.height},U.style.width="",U.style.height="auto",U.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",j.refresh()}function B(j){var U=j.getWrapperElement();U.className=U.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var q=j.state.fullScreenRestore;U.style.width=q.width,U.style.height=q.height,window.scrollTo(q.scrollLeft,q.scrollTop),j.refresh()}})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineOption("rulers",!1,function(B,j){B.state.rulerDiv&&(B.state.rulerDiv.parentElement.removeChild(B.state.rulerDiv),B.state.rulerDiv=null,B.off("refresh",N)),j&&j.length&&(B.state.rulerDiv=B.display.lineSpace.parentElement.insertBefore(document.createElement("div"),B.display.lineSpace),B.state.rulerDiv.className="CodeMirror-rulers",N(B),B.on("refresh",N))});function N(B){B.state.rulerDiv.textContent="";var j=B.getOption("rulers"),U=B.defaultCharWidth(),q=B.charCoords(I.Pos(B.firstLine(),0),"div").left;B.state.rulerDiv.style.minHeight=B.display.scroller.offsetHeight+30+"px";for(var Y=0;Y<j.length;Y++){var K=document.createElement("div");K.className="CodeMirror-ruler";var G,J=j[Y];typeof J=="number"?G=J:(G=J.column,J.className&&(K.className+=" "+J.className),J.color&&(K.style.borderColor=J.color),J.lineStyle&&(K.style.borderLeftStyle=J.lineStyle),J.width&&(K.style.borderLeftWidth=J.width)),K.style.left=q+G*U+"px",B.state.rulerDiv.appendChild(K)}}})})();var searchcursor={exports:{}},hasRequiredSearchcursor;function requireSearchcursor(){return hasRequiredSearchcursor||(hasRequiredSearchcursor=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){var N=I.Pos;function B(le){var ge=le.flags;return ge??(le.ignoreCase?"i":"")+(le.global?"g":"")+(le.multiline?"m":"")}function j(le,ge){for(var ue=B(le),_e=ue,fe=0;fe<ge.length;fe++)_e.indexOf(ge.charAt(fe))==-1&&(_e+=ge.charAt(fe));return ue==_e?le:new RegExp(le.source,_e)}function U(le){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(le.source)}function q(le,ge,ue){ge=j(ge,"g");for(var _e=ue.line,fe=ue.ch,me=le.lastLine();_e<=me;_e++,fe=0){ge.lastIndex=fe;var ve=le.getLine(_e),xe=ge.exec(ve);if(xe)return{from:N(_e,xe.index),to:N(_e,xe.index+xe[0].length),match:xe}}}function Y(le,ge,ue){if(!U(ge))return q(le,ge,ue);ge=j(ge,"gm");for(var _e,fe=1,me=ue.line,ve=le.lastLine();me<=ve;){for(var xe=0;xe<fe&&!(me>ve);xe++){var oe=le.getLine(me++);_e=_e==null?oe:_e+`
- `+oe}fe=fe*2,ge.lastIndex=ue.ch;var ye=ge.exec(_e);if(ye){var be=_e.slice(0,ye.index).split(`
- `),we=ye[0].split(`
- `),Ae=ue.line+be.length-1,ke=be[be.length-1].length;return{from:N(Ae,ke),to:N(Ae+we.length-1,we.length==1?ke+we[0].length:we[we.length-1].length),match:ye}}}}function K(le,ge,ue){for(var _e,fe=0;fe<=le.length;){ge.lastIndex=fe;var me=ge.exec(le);if(!me)break;var ve=me.index+me[0].length;if(ve>le.length-ue)break;(!_e||ve>_e.index+_e[0].length)&&(_e=me),fe=me.index+1}return _e}function G(le,ge,ue){ge=j(ge,"g");for(var _e=ue.line,fe=ue.ch,me=le.firstLine();_e>=me;_e--,fe=-1){var ve=le.getLine(_e),xe=K(ve,ge,fe<0?0:ve.length-fe);if(xe)return{from:N(_e,xe.index),to:N(_e,xe.index+xe[0].length),match:xe}}}function J(le,ge,ue){if(!U(ge))return G(le,ge,ue);ge=j(ge,"gm");for(var _e,fe=1,me=le.getLine(ue.line).length-ue.ch,ve=ue.line,xe=le.firstLine();ve>=xe;){for(var oe=0;oe<fe&&ve>=xe;oe++){var ye=le.getLine(ve--);_e=_e==null?ye:ye+`
- `+_e}fe*=2;var be=K(_e,ge,me);if(be){var we=_e.slice(0,be.index).split(`
- `),Ae=be[0].split(`
- `),ke=ve+we.length,Oe=we[we.length-1].length;return{from:N(ke,Oe),to:N(ke+Ae.length-1,Ae.length==1?Oe+Ae[0].length:Ae[Ae.length-1].length),match:be}}}}var Z,ee;String.prototype.normalize?(Z=function(le){return le.normalize("NFD").toLowerCase()},ee=function(le){return le.normalize("NFD")}):(Z=function(le){return le.toLowerCase()},ee=function(le){return le});function te(le,ge,ue,_e){if(le.length==ge.length)return ue;for(var fe=0,me=ue+Math.max(0,le.length-ge.length);;){if(fe==me)return fe;var ve=fe+me>>1,xe=_e(le.slice(0,ve)).length;if(xe==ue)return ve;xe>ue?me=ve:fe=ve+1}}function re(le,ge,ue,_e){if(!ge.length)return null;var fe=_e?Z:ee,me=fe(ge).split(/\r|\n\r?/);e:for(var ve=ue.line,xe=ue.ch,oe=le.lastLine()+1-me.length;ve<=oe;ve++,xe=0){var ye=le.getLine(ve).slice(xe),be=fe(ye);if(me.length==1){var we=be.indexOf(me[0]);if(we==-1)continue e;var ue=te(ye,be,we,fe)+xe;return{from:N(ve,te(ye,be,we,fe)+xe),to:N(ve,te(ye,be,we+me[0].length,fe)+xe)}}else{var Ae=be.length-me[0].length;if(be.slice(Ae)!=me[0])continue e;for(var ke=1;ke<me.length-1;ke++)if(fe(le.getLine(ve+ke))!=me[ke])continue e;var Oe=le.getLine(ve+me.length-1),Me=fe(Oe),ze=me[me.length-1];if(Me.slice(0,ze.length)!=ze)continue e;return{from:N(ve,te(ye,be,Ae,fe)+xe),to:N(ve+me.length-1,te(Oe,Me,ze.length,fe))}}}}function se(le,ge,ue,_e){if(!ge.length)return null;var fe=_e?Z:ee,me=fe(ge).split(/\r|\n\r?/);e:for(var ve=ue.line,xe=ue.ch,oe=le.firstLine()-1+me.length;ve>=oe;ve--,xe=-1){var ye=le.getLine(ve);xe>-1&&(ye=ye.slice(0,xe));var be=fe(ye);if(me.length==1){var we=be.lastIndexOf(me[0]);if(we==-1)continue e;return{from:N(ve,te(ye,be,we,fe)),to:N(ve,te(ye,be,we+me[0].length,fe))}}else{var Ae=me[me.length-1];if(be.slice(0,Ae.length)!=Ae)continue e;for(var ke=1,ue=ve-me.length+1;ke<me.length-1;ke++)if(fe(le.getLine(ue+ke))!=me[ke])continue e;var Oe=le.getLine(ve+1-me.length),Me=fe(Oe);if(Me.slice(Me.length-me[0].length)!=me[0])continue e;return{from:N(ve+1-me.length,te(Oe,Me,Oe.length-me[0].length,fe)),to:N(ve,te(ye,be,Ae.length,fe))}}}}function ne(le,ge,ue,_e){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=le,ue=ue?le.clipPos(ue):N(0,0),this.pos={from:ue,to:ue};var fe;typeof _e=="object"?fe=_e.caseFold:(fe=_e,_e=null),typeof ge=="string"?(fe==null&&(fe=!1),this.matches=function(me,ve){return(me?se:re)(le,ge,ve,fe)}):(ge=j(ge,"gm"),!_e||_e.multiline!==!1?this.matches=function(me,ve){return(me?J:Y)(le,ge,ve)}:this.matches=function(me,ve){return(me?G:q)(le,ge,ve)})}ne.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(le){var ge=this.doc.clipPos(le?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(ge=N(ge.line,ge.ch),le?(ge.ch--,ge.ch<0&&(ge.line--,ge.ch=(this.doc.getLine(ge.line)||"").length)):(ge.ch++,ge.ch>(this.doc.getLine(ge.line)||"").length&&(ge.ch=0,ge.line++)),I.cmpPos(ge,this.doc.clipPos(ge))!=0))return this.atOccurrence=!1;var ue=this.matches(le,ge);if(this.afterEmptyMatch=ue&&I.cmpPos(ue.from,ue.to)==0,ue)return this.pos=ue,this.atOccurrence=!0,this.pos.match||!0;var _e=N(le?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_e,to:_e},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(le,ge){if(this.atOccurrence){var ue=I.splitLines(le);this.doc.replaceRange(ue,this.pos.from,this.pos.to,ge),this.pos.to=N(this.pos.from.line+ue.length-1,ue[ue.length-1].length+(ue.length==1?this.pos.from.ch:0))}}},I.defineExtension("getSearchCursor",function(le,ge,ue){return new ne(this.doc,le,ge,ue)}),I.defineDocExtension("getSearchCursor",function(le,ge,ue){return new ne(this,le,ge,ue)}),I.defineExtension("selectMatches",function(le,ge){for(var ue=[],_e=this.getSearchCursor(le,this.getCursor("from"),ge);_e.findNext()&&!(I.cmpPos(_e.to(),this.getCursor("to"))>0);)ue.push({anchor:_e.from(),head:_e.to()});ue.length&&this.setSelections(ue,0)})})}()),searchcursor.exports}(function(M,$){(function(I){I(requireCodemirror(),requireSearchcursor(),matchbracketsExports)})(function(I){var N=I.commands,B=I.Pos;function j(ue,_e,fe){if(fe<0&&_e.ch==0)return ue.clipPos(B(_e.line-1));var me=ue.getLine(_e.line);if(fe>0&&_e.ch>=me.length)return ue.clipPos(B(_e.line+1,0));for(var ve="start",xe,oe=_e.ch,ye=oe,be=fe<0?0:me.length,we=0;ye!=be;ye+=fe,we++){var Ae=me.charAt(fe<0?ye-1:ye),ke=Ae!="_"&&I.isWordChar(Ae)?"w":"o";if(ke=="w"&&Ae.toUpperCase()==Ae&&(ke="W"),ve=="start")ke!="o"?(ve="in",xe=ke):oe=ye+fe;else if(ve=="in"&&xe!=ke){if(xe=="w"&&ke=="W"&&fe<0&&ye--,xe=="W"&&ke=="w"&&fe>0)if(ye==oe+1){xe="w";continue}else ye--;break}}return B(_e.line,ye)}function U(ue,_e){ue.extendSelectionsBy(function(fe){return ue.display.shift||ue.doc.extend||fe.empty()?j(ue.doc,fe.head,_e):_e<0?fe.from():fe.to()})}N.goSubwordLeft=function(ue){U(ue,-1)},N.goSubwordRight=function(ue){U(ue,1)},N.scrollLineUp=function(ue){var _e=ue.getScrollInfo();if(!ue.somethingSelected()){var fe=ue.lineAtHeight(_e.top+_e.clientHeight,"local");ue.getCursor().line>=fe&&ue.execCommand("goLineUp")}ue.scrollTo(null,_e.top-ue.defaultTextHeight())},N.scrollLineDown=function(ue){var _e=ue.getScrollInfo();if(!ue.somethingSelected()){var fe=ue.lineAtHeight(_e.top,"local")+1;ue.getCursor().line<=fe&&ue.execCommand("goLineDown")}ue.scrollTo(null,_e.top+ue.defaultTextHeight())},N.splitSelectionByLine=function(ue){for(var _e=ue.listSelections(),fe=[],me=0;me<_e.length;me++)for(var ve=_e[me].from(),xe=_e[me].to(),oe=ve.line;oe<=xe.line;++oe)xe.line>ve.line&&oe==xe.line&&xe.ch==0||fe.push({anchor:oe==ve.line?ve:B(oe,0),head:oe==xe.line?xe:B(oe)});ue.setSelections(fe,0)},N.singleSelectionTop=function(ue){var _e=ue.listSelections()[0];ue.setSelection(_e.anchor,_e.head,{scroll:!1})},N.selectLine=function(ue){for(var _e=ue.listSelections(),fe=[],me=0;me<_e.length;me++){var ve=_e[me];fe.push({anchor:B(ve.from().line,0),head:B(ve.to().line+1,0)})}ue.setSelections(fe)};function q(ue,_e){if(ue.isReadOnly())return I.Pass;ue.operation(function(){for(var fe=ue.listSelections().length,me=[],ve=-1,xe=0;xe<fe;xe++){var oe=ue.listSelections()[xe].head;if(!(oe.line<=ve)){var ye=B(oe.line+(_e?0:1),0);ue.replaceRange(`
- `,ye,null,"+insertLine"),ue.indentLine(ye.line,null,!0),me.push({head:ye,anchor:ye}),ve=oe.line+1}}ue.setSelections(me)}),ue.execCommand("indentAuto")}N.insertLineAfter=function(ue){return q(ue,!1)},N.insertLineBefore=function(ue){return q(ue,!0)};function Y(ue,_e){for(var fe=_e.ch,me=fe,ve=ue.getLine(_e.line);fe&&I.isWordChar(ve.charAt(fe-1));)--fe;for(;me<ve.length&&I.isWordChar(ve.charAt(me));)++me;return{from:B(_e.line,fe),to:B(_e.line,me),word:ve.slice(fe,me)}}N.selectNextOccurrence=function(ue){var _e=ue.getCursor("from"),fe=ue.getCursor("to"),me=ue.state.sublimeFindFullWord==ue.doc.sel;if(I.cmpPos(_e,fe)==0){var ve=Y(ue,_e);if(!ve.word)return;ue.setSelection(ve.from,ve.to),me=!0}else{var xe=ue.getRange(_e,fe),oe=me?new RegExp("\\b"+xe+"\\b"):xe,ye=ue.getSearchCursor(oe,fe),be=ye.findNext();if(be||(ye=ue.getSearchCursor(oe,B(ue.firstLine(),0)),be=ye.findNext()),!be||G(ue.listSelections(),ye.from(),ye.to()))return;ue.addSelection(ye.from(),ye.to())}me&&(ue.state.sublimeFindFullWord=ue.doc.sel)},N.skipAndSelectNextOccurrence=function(ue){var _e=ue.getCursor("anchor"),fe=ue.getCursor("head");N.selectNextOccurrence(ue),I.cmpPos(_e,fe)!=0&&ue.doc.setSelections(ue.doc.listSelections().filter(function(me){return me.anchor!=_e||me.head!=fe}))};function K(ue,_e){for(var fe=ue.listSelections(),me=[],ve=0;ve<fe.length;ve++){var xe=fe[ve],oe=ue.findPosV(xe.anchor,_e,"line",xe.anchor.goalColumn),ye=ue.findPosV(xe.head,_e,"line",xe.head.goalColumn);oe.goalColumn=xe.anchor.goalColumn!=null?xe.anchor.goalColumn:ue.cursorCoords(xe.anchor,"div").left,ye.goalColumn=xe.head.goalColumn!=null?xe.head.goalColumn:ue.cursorCoords(xe.head,"div").left;var be={anchor:oe,head:ye};me.push(xe),me.push(be)}ue.setSelections(me)}N.addCursorToPrevLine=function(ue){K(ue,-1)},N.addCursorToNextLine=function(ue){K(ue,1)};function G(ue,_e,fe){for(var me=0;me<ue.length;me++)if(I.cmpPos(ue[me].from(),_e)==0&&I.cmpPos(ue[me].to(),fe)==0)return!0;return!1}var J="(){}[]";function Z(ue){for(var _e=ue.listSelections(),fe=[],me=0;me<_e.length;me++){var ve=_e[me],xe=ve.head,oe=ue.scanForBracket(xe,-1);if(!oe)return!1;for(;;){var ye=ue.scanForBracket(xe,1);if(!ye)return!1;if(ye.ch==J.charAt(J.indexOf(oe.ch)+1)){var be=B(oe.pos.line,oe.pos.ch+1);if(I.cmpPos(be,ve.from())==0&&I.cmpPos(ye.pos,ve.to())==0){if(oe=ue.scanForBracket(oe.pos,-1),!oe)return!1}else{fe.push({anchor:be,head:ye.pos});break}}xe=B(ye.pos.line,ye.pos.ch+1)}}return ue.setSelections(fe),!0}N.selectScope=function(ue){Z(ue)||ue.execCommand("selectAll")},N.selectBetweenBrackets=function(ue){if(!Z(ue))return I.Pass};function ee(ue){return ue?/\bpunctuation\b/.test(ue)?ue:void 0:null}N.goToBracket=function(ue){ue.extendSelectionsBy(function(_e){var fe=ue.scanForBracket(_e.head,1,ee(ue.getTokenTypeAt(_e.head)));if(fe&&I.cmpPos(fe.pos,_e.head)!=0)return fe.pos;var me=ue.scanForBracket(_e.head,-1,ee(ue.getTokenTypeAt(B(_e.head.line,_e.head.ch+1))));return me&&B(me.pos.line,me.pos.ch+1)||_e.head})},N.swapLineUp=function(ue){if(ue.isReadOnly())return I.Pass;for(var _e=ue.listSelections(),fe=[],me=ue.firstLine()-1,ve=[],xe=0;xe<_e.length;xe++){var oe=_e[xe],ye=oe.from().line-1,be=oe.to().line;ve.push({anchor:B(oe.anchor.line-1,oe.anchor.ch),head:B(oe.head.line-1,oe.head.ch)}),oe.to().ch==0&&!oe.empty()&&--be,ye>me?fe.push(ye,be):fe.length&&(fe[fe.length-1]=be),me=be}ue.operation(function(){for(var we=0;we<fe.length;we+=2){var Ae=fe[we],ke=fe[we+1],Oe=ue.getLine(Ae);ue.replaceRange("",B(Ae,0),B(Ae+1,0),"+swapLine"),ke>ue.lastLine()?ue.replaceRange(`
- `+Oe,B(ue.lastLine()),null,"+swapLine"):ue.replaceRange(Oe+`
- `,B(ke,0),null,"+swapLine")}ue.setSelections(ve),ue.scrollIntoView()})},N.swapLineDown=function(ue){if(ue.isReadOnly())return I.Pass;for(var _e=ue.listSelections(),fe=[],me=ue.lastLine()+1,ve=_e.length-1;ve>=0;ve--){var xe=_e[ve],oe=xe.to().line+1,ye=xe.from().line;xe.to().ch==0&&!xe.empty()&&oe--,oe<me?fe.push(oe,ye):fe.length&&(fe[fe.length-1]=ye),me=ye}ue.operation(function(){for(var be=fe.length-2;be>=0;be-=2){var we=fe[be],Ae=fe[be+1],ke=ue.getLine(we);we==ue.lastLine()?ue.replaceRange("",B(we-1),B(we),"+swapLine"):ue.replaceRange("",B(we,0),B(we+1,0),"+swapLine"),ue.replaceRange(ke+`
- `,B(Ae,0),null,"+swapLine")}ue.scrollIntoView()})},N.toggleCommentIndented=function(ue){ue.toggleComment({indent:!0})},N.joinLines=function(ue){for(var _e=ue.listSelections(),fe=[],me=0;me<_e.length;me++){for(var ve=_e[me],xe=ve.from(),oe=xe.line,ye=ve.to().line;me<_e.length-1&&_e[me+1].from().line==ye;)ye=_e[++me].to().line;fe.push({start:oe,end:ye,anchor:!ve.empty()&&xe})}ue.operation(function(){for(var be=0,we=[],Ae=0;Ae<fe.length;Ae++){for(var ke=fe[Ae],Oe=ke.anchor&&B(ke.anchor.line-be,ke.anchor.ch),Me,ze=ke.start;ze<=ke.end;ze++){var Fe=ze-be;ze==ke.end&&(Me=B(Fe,ue.getLine(Fe).length+1)),Fe<ue.lastLine()&&(ue.replaceRange(" ",B(Fe),B(Fe+1,/^\s*/.exec(ue.getLine(Fe+1))[0].length)),++be)}we.push({anchor:Oe||Me,head:Me})}ue.setSelections(we,0)})},N.duplicateLine=function(ue){ue.operation(function(){for(var _e=ue.listSelections().length,fe=0;fe<_e;fe++){var me=ue.listSelections()[fe];me.empty()?ue.replaceRange(ue.getLine(me.head.line)+`
- `,B(me.head.line,0)):ue.replaceRange(ue.getRange(me.from(),me.to()),me.from())}ue.scrollIntoView()})};function te(ue,_e,fe){if(ue.isReadOnly())return I.Pass;for(var me=ue.listSelections(),ve=[],xe,oe=0;oe<me.length;oe++){var ye=me[oe];if(!ye.empty()){for(var be=ye.from().line,we=ye.to().line;oe<me.length-1&&me[oe+1].from().line==we;)we=me[++oe].to().line;me[oe].to().ch||we--,ve.push(be,we)}}ve.length?xe=!0:ve.push(ue.firstLine(),ue.lastLine()),ue.operation(function(){for(var Ae=[],ke=0;ke<ve.length;ke+=2){var Oe=ve[ke],Me=ve[ke+1],ze=B(Oe,0),Fe=B(Me),Ze=ue.getRange(ze,Fe,!1);_e?Ze.sort(function(lt,qe){return lt<qe?-fe:lt==qe?0:fe}):Ze.sort(function(lt,qe){var Ve=lt.toUpperCase(),At=qe.toUpperCase();return Ve!=At&&(lt=Ve,qe=At),lt<qe?-fe:lt==qe?0:fe}),ue.replaceRange(Ze,ze,Fe),xe&&Ae.push({anchor:ze,head:B(Me+1,0)})}xe&&ue.setSelections(Ae,0)})}N.sortLines=function(ue){te(ue,!0,1)},N.reverseSortLines=function(ue){te(ue,!0,-1)},N.sortLinesInsensitive=function(ue){te(ue,!1,1)},N.reverseSortLinesInsensitive=function(ue){te(ue,!1,-1)},N.nextBookmark=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(;_e.length;){var fe=_e.shift(),me=fe.find();if(me)return _e.push(fe),ue.setSelection(me.from,me.to)}},N.prevBookmark=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(;_e.length;){_e.unshift(_e.pop());var fe=_e[_e.length-1].find();if(!fe)_e.pop();else return ue.setSelection(fe.from,fe.to)}},N.toggleBookmark=function(ue){for(var _e=ue.listSelections(),fe=ue.state.sublimeBookmarks||(ue.state.sublimeBookmarks=[]),me=0;me<_e.length;me++){for(var ve=_e[me].from(),xe=_e[me].to(),oe=_e[me].empty()?ue.findMarksAt(ve):ue.findMarks(ve,xe),ye=0;ye<oe.length;ye++)if(oe[ye].sublimeBookmark){oe[ye].clear();for(var be=0;be<fe.length;be++)fe[be]==oe[ye]&&fe.splice(be--,1);break}ye==oe.length&&fe.push(ue.markText(ve,xe,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},N.clearBookmarks=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(var fe=0;fe<_e.length;fe++)_e[fe].clear();_e.length=0},N.selectBookmarks=function(ue){var _e=ue.state.sublimeBookmarks,fe=[];if(_e)for(var me=0;me<_e.length;me++){var ve=_e[me].find();ve?fe.push({anchor:ve.from,head:ve.to}):_e.splice(me--,0)}fe.length&&ue.setSelections(fe,0)};function re(ue,_e){ue.operation(function(){for(var fe=ue.listSelections(),me=[],ve=[],xe=0;xe<fe.length;xe++){var oe=fe[xe];oe.empty()?(me.push(xe),ve.push("")):ve.push(_e(ue.getRange(oe.from(),oe.to())))}ue.replaceSelections(ve,"around","case");for(var xe=me.length-1,ye;xe>=0;xe--){var oe=fe[me[xe]];if(!(ye&&I.cmpPos(oe.head,ye)>0)){var be=Y(ue,oe.head);ye=be.from,ue.replaceRange(_e(be.word),be.from,be.to)}}})}N.smartBackspace=function(ue){if(ue.somethingSelected())return I.Pass;ue.operation(function(){for(var _e=ue.listSelections(),fe=ue.getOption("indentUnit"),me=_e.length-1;me>=0;me--){var ve=_e[me].head,xe=ue.getRange({line:ve.line,ch:0},ve),oe=I.countColumn(xe,null,ue.getOption("tabSize")),ye=ue.findPosH(ve,-1,"char",!1);if(xe&&!/\S/.test(xe)&&oe%fe==0){var be=new B(ve.line,I.findColumn(xe,oe-fe,fe));be.ch!=ve.ch&&(ye=be)}ue.replaceRange("",ye,ve,"+delete")}})},N.delLineRight=function(ue){ue.operation(function(){for(var _e=ue.listSelections(),fe=_e.length-1;fe>=0;fe--)ue.replaceRange("",_e[fe].anchor,B(_e[fe].to().line),"+delete");ue.scrollIntoView()})},N.upcaseAtCursor=function(ue){re(ue,function(_e){return _e.toUpperCase()})},N.downcaseAtCursor=function(ue){re(ue,function(_e){return _e.toLowerCase()})},N.setSublimeMark=function(ue){ue.state.sublimeMark&&ue.state.sublimeMark.clear(),ue.state.sublimeMark=ue.setBookmark(ue.getCursor())},N.selectToSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();_e&&ue.setSelection(ue.getCursor(),_e)},N.deleteToSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();if(_e){var fe=ue.getCursor(),me=_e;if(I.cmpPos(fe,me)>0){var ve=me;me=fe,fe=ve}ue.state.sublimeKilled=ue.getRange(fe,me),ue.replaceRange("",fe,me)}},N.swapWithSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();_e&&(ue.state.sublimeMark.clear(),ue.state.sublimeMark=ue.setBookmark(ue.getCursor()),ue.setCursor(_e))},N.sublimeYank=function(ue){ue.state.sublimeKilled!=null&&ue.replaceSelection(ue.state.sublimeKilled,null,"paste")},N.showInCenter=function(ue){var _e=ue.cursorCoords(null,"local");ue.scrollTo(null,(_e.top+_e.bottom)/2-ue.getScrollInfo().clientHeight/2)};function se(ue){var _e=ue.getCursor("from"),fe=ue.getCursor("to");if(I.cmpPos(_e,fe)==0){var me=Y(ue,_e);if(!me.word)return;_e=me.from,fe=me.to}return{from:_e,to:fe,query:ue.getRange(_e,fe),word:me}}function ne(ue,_e){var fe=se(ue);if(fe){var me=fe.query,ve=ue.getSearchCursor(me,_e?fe.to:fe.from);(_e?ve.findNext():ve.findPrevious())?ue.setSelection(ve.from(),ve.to()):(ve=ue.getSearchCursor(me,_e?B(ue.firstLine(),0):ue.clipPos(B(ue.lastLine()))),(_e?ve.findNext():ve.findPrevious())?ue.setSelection(ve.from(),ve.to()):fe.word&&ue.setSelection(fe.from,fe.to))}}N.findUnder=function(ue){ne(ue,!0)},N.findUnderPrevious=function(ue){ne(ue,!1)},N.findAllUnder=function(ue){var _e=se(ue);if(_e){for(var fe=ue.getSearchCursor(_e.query),me=[],ve=-1;fe.findNext();)me.push({anchor:fe.from(),head:fe.to()}),fe.from().line<=_e.from.line&&fe.from().ch<=_e.from.ch&&ve++;ue.setSelections(me,ve)}};var le=I.keyMap;le.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},I.normalizeKeyMap(le.macSublime),le.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},I.normalizeKeyMap(le.pcSublime);var ge=le.default==le.macDefault;le.sublime=ge?le.macSublime:le.pcSublime})})();var dialog={exports:{}},hasRequiredDialog;function requireDialog(){return hasRequiredDialog||(hasRequiredDialog=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){function N(j,U,q){var Y=j.getWrapperElement(),K;return K=Y.appendChild(document.createElement("div")),q?K.className="CodeMirror-dialog CodeMirror-dialog-bottom":K.className="CodeMirror-dialog CodeMirror-dialog-top",typeof U=="string"?K.innerHTML=U:K.appendChild(U),I.addClass(Y,"dialog-opened"),K}function B(j,U){j.state.currentNotificationClose&&j.state.currentNotificationClose(),j.state.currentNotificationClose=U}I.defineExtension("openDialog",function(j,U,q){q||(q={}),B(this,null);var Y=N(this,j,q.bottom),K=!1,G=this;function J(te){if(typeof te=="string")Z.value=te;else{if(K)return;K=!0,I.rmClass(Y.parentNode,"dialog-opened"),Y.parentNode.removeChild(Y),G.focus(),q.onClose&&q.onClose(Y)}}var Z=Y.getElementsByTagName("input")[0],ee;return Z?(Z.focus(),q.value&&(Z.value=q.value,q.selectValueOnOpen!==!1&&Z.select()),q.onInput&&I.on(Z,"input",function(te){q.onInput(te,Z.value,J)}),q.onKeyUp&&I.on(Z,"keyup",function(te){q.onKeyUp(te,Z.value,J)}),I.on(Z,"keydown",function(te){q&&q.onKeyDown&&q.onKeyDown(te,Z.value,J)||((te.keyCode==27||q.closeOnEnter!==!1&&te.keyCode==13)&&(Z.blur(),I.e_stop(te),J()),te.keyCode==13&&U(Z.value,te))}),q.closeOnBlur!==!1&&I.on(Y,"focusout",function(te){te.relatedTarget!==null&&J()})):(ee=Y.getElementsByTagName("button")[0])&&(I.on(ee,"click",function(){J(),G.focus()}),q.closeOnBlur!==!1&&I.on(ee,"blur",J),ee.focus()),J}),I.defineExtension("openConfirm",function(j,U,q){B(this,null);var Y=N(this,j,q&&q.bottom),K=Y.getElementsByTagName("button"),G=!1,J=this,Z=1;function ee(){G||(G=!0,I.rmClass(Y.parentNode,"dialog-opened"),Y.parentNode.removeChild(Y),J.focus())}K[0].focus();for(var te=0;te<K.length;++te){var re=K[te];(function(se){I.on(re,"click",function(ne){I.e_preventDefault(ne),ee(),se&&se(J)})})(U[te]),I.on(re,"blur",function(){--Z,setTimeout(function(){Z<=0&&ee()},200)}),I.on(re,"focus",function(){++Z})}}),I.defineExtension("openNotification",function(j,U){B(this,J);var q=N(this,j,U&&U.bottom),Y=!1,K,G=U&&typeof U.duration<"u"?U.duration:5e3;function J(){Y||(Y=!0,clearTimeout(K),I.rmClass(q.parentNode,"dialog-opened"),q.parentNode.removeChild(q))}return I.on(q,"click",function(Z){I.e_preventDefault(Z),J()}),G&&(K=setTimeout(J,G)),J})})}()),dialog.exports}(function(M,$){(function(I){I(requireCodemirror(),requireSearchcursor(),requireDialog(),matchbracketsExports)})(function(I){function N(j){var U=j.Pos;function q(pe,Te){var Re=pe.state.vim;if(!Re||Re.insertMode)return Te.head;var je=Re.sel.head;if(!je)return Te.head;if(!(Re.visualBlock&&Te.head.line!=je.line))return Te.from()==Te.anchor&&!Te.empty()&&Te.head.line==je.line&&Te.head.ch!=je.ch?new U(Te.head.line,Te.head.ch-1):Te.head}var Y=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],K=Y.length,G=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function J(pe){pe.setOption("disableInput",!0),pe.setOption("showCursorWhenSelecting",!1),j.signal(pe,"vim-mode-change",{mode:"normal"}),pe.on("cursorActivity",ao),Qt(pe),j.on(pe.getInputField(),"paste",ge(pe))}function Z(pe){pe.setOption("disableInput",!1),pe.off("cursorActivity",ao),j.off(pe.getInputField(),"paste",ge(pe)),pe.state.vim=null,Un&&clearTimeout(Un)}function ee(pe,Te){this==j.keyMap.vim&&(pe.options.$customCursor=null,j.rmClass(pe.getWrapperElement(),"cm-fat-cursor")),(!Te||Te.attach!=te)&&Z(pe)}function te(pe,Te){this==j.keyMap.vim&&(pe.curOp&&(pe.curOp.selectionChanged=!0),pe.options.$customCursor=q,j.addClass(pe.getWrapperElement(),"cm-fat-cursor")),(!Te||Te.attach!=te)&&J(pe)}j.defineOption("vimMode",!1,function(pe,Te,Re){Te&&pe.getOption("keyMap")!="vim"?pe.setOption("keyMap","vim"):!Te&&Re!=j.Init&&/^vim/.test(pe.getOption("keyMap"))&&pe.setOption("keyMap","default")});function re(pe,Te){if(Te){if(this[pe])return this[pe];var Re=le(pe);if(!Re)return!1;var je=Hn.findKey(Te,Re);return typeof je=="function"&&j.signal(Te,"vim-keypress",Re),je}}var se={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},ne={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function le(pe){if(pe.charAt(0)=="'")return pe.charAt(1);var Te=pe.split(/-(?!$)/),Re=Te[Te.length-1];if(Te.length==1&&Te[0].length==1)return!1;if(Te.length==2&&Te[0]=="Shift"&&Re.length==1)return!1;for(var je=!1,Ke=0;Ke<Te.length;Ke++){var Je=Te[Ke];Je in se?Te[Ke]=se[Je]:je=!0,Je in ne&&(Te[Ke]=ne[Je])}return je?(ze(Re)&&(Te[Te.length-1]=Re.toLowerCase()),"<"+Te.join("-")+">"):!1}function ge(pe){var Te=pe.state.vim;return Te.onPasteFn||(Te.onPasteFn=function(){Te.insertMode||(pe.setCursor(ut(pe.getCursor(),0,1)),Qe.enterInsertMode(pe,{},Te))}),Te.onPasteFn}var ue=/[\d]/,_e=[j.isWordChar,function(pe){return pe&&!j.isWordChar(pe)&&!/\s/.test(pe)}],fe=[function(pe){return/\S/.test(pe)}];function me(pe,Te){for(var Re=[],je=pe;je<pe+Te;je++)Re.push(String.fromCharCode(je));return Re}var ve=me(65,26),xe=me(97,26),oe=me(48,10),ye=[].concat(ve,xe,oe,["<",">"]),be=[].concat(ve,xe,oe,["-",'"',".",":","_","/"]),we;try{we=new RegExp("^[\\p{Lu}]$","u")}catch{we=/^[A-Z]$/}function Ae(pe,Te){return Te>=pe.firstLine()&&Te<=pe.lastLine()}function ke(pe){return/^[a-z]$/.test(pe)}function Oe(pe){return"()[]{}".indexOf(pe)!=-1}function Me(pe){return ue.test(pe)}function ze(pe){return we.test(pe)}function Fe(pe){return/^\s*$/.test(pe)}function Ze(pe){return".?!".indexOf(pe)!=-1}function lt(pe,Te){for(var Re=0;Re<Te.length;Re++)if(Te[Re]==pe)return!0;return!1}var qe={};function Ve(pe,Te,Re,je,Ke){if(Te===void 0&&!Ke)throw Error("defaultValue is required unless callback is provided");if(Re||(Re="string"),qe[pe]={type:Re,defaultValue:Te,callback:Ke},je)for(var Je=0;Je<je.length;Je++)qe[je[Je]]=qe[pe];Te&&At(pe,Te)}function At(pe,Te,Re,je){var Ke=qe[pe];je=je||{};var Je=je.scope;if(!Ke)return new Error("Unknown option: "+pe);if(Ke.type=="boolean"){if(Te&&Te!==!0)return new Error("Invalid argument: "+pe+"="+Te);Te!==!1&&(Te=!0)}Ke.callback?(Je!=="local"&&Ke.callback(Te,void 0),Je!=="global"&&Re&&Ke.callback(Te,Re)):(Je!=="local"&&(Ke.value=Ke.type=="boolean"?!!Te:Te),Je!=="global"&&Re&&(Re.state.vim.options[pe]={value:Te}))}function Nt(pe,Te,Re){var je=qe[pe];Re=Re||{};var Ke=Re.scope;if(!je)return new Error("Unknown option: "+pe);if(je.callback){var Je=Te&&je.callback(void 0,Te);return Ke!=="global"&&Je!==void 0?Je:Ke!=="local"?je.callback():void 0}else{var Je=Ke!=="global"&&Te&&Te.state.vim.options[pe];return(Je||Ke!=="local"&&je||{}).value}}Ve("filetype",void 0,"string",["ft"],function(pe,Te){if(Te!==void 0)if(pe===void 0){var Re=Te.getOption("mode");return Re=="null"?"":Re}else{var Re=pe==""?"null":pe;Te.setOption("mode",Re)}});var zt=function(){var pe=100,Te=-1,Re=0,je=0,Ke=new Array(pe);function Je(Et,jt,Vt){var Sn=Te%pe,Mn=Ke[Sn];function bn(ar){var Wn=++Te%pe,Cr=Ke[Wn];Cr&&Cr.clear(),Ke[Wn]=Et.setBookmark(ar)}if(Mn){var vn=Mn.find();vn&&!ot(vn,jt)&&bn(jt)}else bn(jt);bn(Vt),Re=Te,je=Te-pe+1,je<0&&(je=0)}function bt(Et,jt){Te+=jt,Te>Re?Te=Re:Te<je&&(Te=je);var Vt=Ke[(pe+Te)%pe];if(Vt&&!Vt.find()){var Sn=jt>0?1:-1,Mn,bn=Et.getCursor();do if(Te+=Sn,Vt=Ke[(pe+Te)%pe],Vt&&(Mn=Vt.find())&&!ot(bn,Mn))break;while(Te<Re&&Te>je)}return Vt}function Dt(Et,jt){var Vt=Te,Sn=bt(Et,jt);return Te=Vt,Sn&&Sn.find()}return{cachedCursor:void 0,add:Je,find:Dt,move:bt}},Ht=function(pe){return pe?{changes:pe.changes,expectCursorActivityForChange:pe.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function qt(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Ht()}qt.prototype={exitMacroRecordMode:function(){var pe=Jt.macroModeState;pe.onRecordingDone&&pe.onRecordingDone(),pe.onRecordingDone=void 0,pe.isRecording=!1},enterMacroRecordMode:function(pe,Te){var Re=Jt.registerController.getRegister(Te);if(Re){if(Re.clear(),this.latestRegister=Te,pe.openDialog){var je=ur("span",{class:"cm-vim-message"},"recording @"+Te);this.onRecordingDone=pe.openDialog(je,null,{bottom:!0})}this.isRecording=!0}}};function Qt(pe){return pe.state.vim||(pe.state.vim={inputState:new On,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),pe.state.vim}var Jt;function yn(){Jt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:zt(),macroModeState:new qt,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new kt({}),searchHistoryController:new Ye,exCommandHistoryController:new Ye};for(var pe in qe){var Te=qe[pe];Te.value=Te.defaultValue}}var _n,Hn={enterVimMode:J,buildKeyMap:function(){},getRegisterController:function(){return Jt.registerController},resetVimGlobalState_:yn,getVimGlobalState_:function(){return Jt},maybeInitVimState_:Qt,suppressErrorLogging:!1,InsertModeKey:Ns,map:function(pe,Te,Re){ei.map(pe,Te,Re)},unmap:function(pe,Te){return ei.unmap(pe,Te)},noremap:function(pe,Te,Re){function je(Mn){return Mn?[Mn]:["normal","insert","visual"]}for(var Ke=je(Re),Je=Y.length,bt=K,Dt=Je-bt;Dt<Je&&Ke.length;Dt++){var Et=Y[Dt];if(Et.keys==Te&&(!Re||!Et.context||Et.context===Re)&&Et.type.substr(0,2)!=="ex"&&Et.type.substr(0,3)!=="key"){var jt={};for(var Vt in Et)jt[Vt]=Et[Vt];jt.keys=pe,Re&&!jt.context&&(jt.context=Re),this._mapCommand(jt);var Sn=je(Et.context);Ke=Ke.filter(function(Mn){return Sn.indexOf(Mn)===-1})}}},mapclear:function(pe){var Te=Y.length,Re=K,je=Y.slice(0,Te-Re);if(Y=Y.slice(Te-Re),pe)for(var Ke=je.length-1;Ke>=0;Ke--){var Je=je[Ke];if(pe!==Je.context)if(Je.context)this._mapCommand(Je);else{var bt=["normal","insert","visual"];for(var Dt in bt)if(bt[Dt]!==pe){var Et={};for(var jt in Je)Et[jt]=Je[jt];Et.context=bt[Dt],this._mapCommand(Et)}}}},setOption:At,getOption:Nt,defineOption:Ve,defineEx:function(pe,Te,Re){if(!Te)Te=pe;else if(pe.indexOf(Te)!==0)throw new Error('(Vim.defineEx) "'+Te+'" is not a prefix of "'+pe+'", command not registered');qr[pe]=Re,ei.commandMap_[Te]={name:pe,shortName:Te,type:"api"}},handleKey:function(pe,Te,Re){var je=this.findKey(pe,Te,Re);if(typeof je=="function")return je()},multiSelectHandleKey:Gs,findKey:function(pe,Te,Re){var je=Qt(pe);function Ke(){var Vt=Jt.macroModeState;if(Vt.isRecording){if(Te=="q")return Vt.exitMacroRecordMode(),Fn(pe),!0;Re!="mapping"&&To(Vt,Te)}}function Je(){if(Te=="<Esc>"){if(je.visualMode)Er(pe);else if(je.insertMode)Ai(pe);else return;return Fn(pe),!0}}function bt(Vt){for(var Sn;Vt;)Sn=/<\w+-.+?>|<\w+>|./.exec(Vt),Te=Sn[0],Vt=Vt.substring(Sn.index+Te.length),Hn.handleKey(pe,Te,"mapping")}function Dt(){if(Je())return!0;for(var Vt=je.inputState.keyBuffer=je.inputState.keyBuffer+Te,Sn=Te.length==1,Mn=_t.matchCommand(Vt,Y,je.inputState,"insert");Vt.length>1&&Mn.type!="full";){var Vt=je.inputState.keyBuffer=Vt.slice(1),bn=_t.matchCommand(Vt,Y,je.inputState,"insert");bn.type!="none"&&(Mn=bn)}if(Mn.type=="none")return Fn(pe),!1;if(Mn.type=="partial")return _n&&window.clearTimeout(_n),_n=window.setTimeout(function(){je.insertMode&&je.inputState.keyBuffer&&Fn(pe)},Nt("insertModeEscKeysTimeout")),!Sn;if(_n&&window.clearTimeout(_n),Sn){for(var vn=pe.listSelections(),ar=0;ar<vn.length;ar++){var Wn=vn[ar].head;pe.replaceRange("",ut(Wn,0,-(Vt.length-1)),Wn,"+input")}Jt.macroModeState.lastInsertModeChanges.changes.pop()}return Fn(pe),Mn.command}function Et(){if(Ke()||Je())return!0;var Vt=je.inputState.keyBuffer=je.inputState.keyBuffer+Te;if(/^[1-9]\d*$/.test(Vt))return!0;var Sn=/^(\d*)(.*)$/.exec(Vt);if(!Sn)return Fn(pe),!1;var Mn=je.visualMode?"visual":"normal",bn=Sn[2]||Sn[1];je.inputState.operatorShortcut&&je.inputState.operatorShortcut.slice(-1)==bn&&(bn=je.inputState.operatorShortcut);var vn=_t.matchCommand(bn,Y,je.inputState,Mn);return vn.type=="none"?(Fn(pe),!1):vn.type=="partial"?!0:vn.type=="clear"?(Fn(pe),!0):(je.inputState.keyBuffer="",Sn=/^(\d*)(.*)$/.exec(Vt),Sn[1]&&Sn[1]!="0"&&je.inputState.pushRepeatDigit(Sn[1]),vn.command)}var jt;return je.insertMode?jt=Dt():jt=Et(),jt===!1?!je.insertMode&&Te.length===1?function(){return!0}:void 0:jt===!0?function(){return!0}:function(){return pe.operation(function(){pe.curOp.isVimOp=!0;try{jt.type=="keyToKey"?bt(jt.toKeys):_t.processCommand(pe,je,jt)}catch(Vt){throw pe.state.vim=void 0,Qt(pe),Hn.suppressErrorLogging||console.log(Vt),Vt}return!0})}},handleEx:function(pe,Te){ei.processCommand(pe,Te)},defineMotion:Pe,defineAction:mt,defineOperator:Ue,mapCommand:Co,_mapCommand:Gi,defineRegister:dn,exitVisualMode:Er,exitInsertMode:Ai};function On(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}On.prototype.pushRepeatDigit=function(pe){this.operator?this.motionRepeat=this.motionRepeat.concat(pe):this.prefixRepeat=this.prefixRepeat.concat(pe)},On.prototype.getRepeat=function(){var pe=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(pe=1,this.prefixRepeat.length>0&&(pe*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(pe*=parseInt(this.motionRepeat.join(""),10))),pe};function Fn(pe,Te){pe.state.vim.inputState=new On,j.signal(pe,"vim-command-done",Te)}function In(pe,Te,Re){this.clear(),this.keyBuffer=[pe||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!Te,this.blockwise=!!Re}In.prototype={setText:function(pe,Te,Re){this.keyBuffer=[pe||""],this.linewise=!!Te,this.blockwise=!!Re},pushText:function(pe,Te){Te&&(this.linewise||this.keyBuffer.push(`
- `),this.linewise=!0),this.keyBuffer.push(pe)},pushInsertModeChanges:function(pe){this.insertModeChanges.push(Ht(pe))},pushSearchQuery:function(pe){this.searchQueries.push(pe)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function dn(pe,Te){var Re=Jt.registerController.registers;if(!pe||pe.length!=1)throw Error("Register name must be 1 character");if(Re[pe])throw Error("Register already defined "+pe);Re[pe]=Te,be.push(pe)}function kt(pe){this.registers=pe,this.unnamedRegister=pe['"']=new In,pe["."]=new In,pe[":"]=new In,pe["/"]=new In}kt.prototype={pushText:function(pe,Te,Re,je,Ke){if(pe!=="_"){je&&Re.charAt(Re.length-1)!==`
- `&&(Re+=`
- `);var Je=this.isValidRegister(pe)?this.getRegister(pe):null;if(!Je){switch(Te){case"yank":this.registers[0]=new In(Re,je,Ke);break;case"delete":case"change":Re.indexOf(`
- `)==-1?this.registers["-"]=new In(Re,je):(this.shiftNumericRegisters_(),this.registers[1]=new In(Re,je));break}this.unnamedRegister.setText(Re,je,Ke);return}var bt=ze(pe);bt?Je.pushText(Re,je):Je.setText(Re,je,Ke),this.unnamedRegister.setText(Je.toString(),je)}},getRegister:function(pe){return this.isValidRegister(pe)?(pe=pe.toLowerCase(),this.registers[pe]||(this.registers[pe]=new In),this.registers[pe]):this.unnamedRegister},isValidRegister:function(pe){return pe&<(pe,be)},shiftNumericRegisters_:function(){for(var pe=9;pe>=2;pe--)this.registers[pe]=this.getRegister(""+(pe-1))}};function Ye(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}Ye.prototype={nextMatch:function(pe,Te){var Re=this.historyBuffer,je=Te?-1:1;this.initialPrefix===null&&(this.initialPrefix=pe);for(var Ke=this.iterator+je;Te?Ke>=0:Ke<Re.length;Ke+=je)for(var Je=Re[Ke],bt=0;bt<=Je.length;bt++)if(this.initialPrefix==Je.substring(0,bt))return this.iterator=Ke,Je;if(Ke>=Re.length)return this.iterator=Re.length,this.initialPrefix;if(Ke<0)return pe},pushInput:function(pe){var Te=this.historyBuffer.indexOf(pe);Te>-1&&this.historyBuffer.splice(Te,1),pe.length&&this.historyBuffer.push(pe)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var _t={matchCommand:function(pe,Te,Re,je){var Ke=Rt(pe,Te,je,Re);if(!Ke.full&&!Ke.partial)return{type:"none"};if(!Ke.full&&Ke.partial)return{type:"partial"};for(var Je,bt=0;bt<Ke.full.length;bt++){var Dt=Ke.full[bt];Je||(Je=Dt)}if(Je.keys.slice(-11)=="<character>"){var Et=Bn(pe);if(!Et||Et.length>1)return{type:"clear"};Re.selectedCharacter=Et}return{type:"full",command:Je}},processCommand:function(pe,Te,Re){switch(Te.inputState.repeatOverride=Re.repeatOverride,Re.type){case"motion":this.processMotion(pe,Te,Re);break;case"operator":this.processOperator(pe,Te,Re);break;case"operatorMotion":this.processOperatorMotion(pe,Te,Re);break;case"action":this.processAction(pe,Te,Re);break;case"search":this.processSearch(pe,Te,Re);break;case"ex":case"keyToEx":this.processEx(pe,Te,Re);break}},processMotion:function(pe,Te,Re){Te.inputState.motion=Re.motion,Te.inputState.motionArgs=at(Re.motionArgs),this.evalInput(pe,Te)},processOperator:function(pe,Te,Re){var je=Te.inputState;if(je.operator)if(je.operator==Re.operator){je.motion="expandToLine",je.motionArgs={linewise:!0},this.evalInput(pe,Te);return}else Fn(pe);je.operator=Re.operator,je.operatorArgs=at(Re.operatorArgs),Re.keys.length>1&&(je.operatorShortcut=Re.keys),Re.exitVisualBlock&&(Te.visualBlock=!1,jn(pe)),Te.visualMode&&this.evalInput(pe,Te)},processOperatorMotion:function(pe,Te,Re){var je=Te.visualMode,Ke=at(Re.operatorMotionArgs);Ke&&je&&Ke.visualLine&&(Te.visualLine=!0),this.processOperator(pe,Te,Re),je||this.processMotion(pe,Te,Re)},processAction:function(pe,Te,Re){var je=Te.inputState,Ke=je.getRepeat(),Je=!!Ke,bt=at(Re.actionArgs)||{};je.selectedCharacter&&(bt.selectedCharacter=je.selectedCharacter),Re.operator&&this.processOperator(pe,Te,Re),Re.motion&&this.processMotion(pe,Te,Re),(Re.motion||Re.operator)&&this.evalInput(pe,Te),bt.repeat=Ke||1,bt.repeatIsExplicit=Je,bt.registerName=je.registerName,Fn(pe),Te.lastMotion=null,Re.isEdit&&this.recordLastEdit(Te,je,Re),Qe[Re.action](pe,bt,Te)},processSearch:function(pe,Te,Re){if(!pe.getSearchCursor)return;var je=Re.searchArgs.forward,Ke=Re.searchArgs.wholeWordOnly;er(pe).setReversed(!je);var Je=je?"/":"?",bt=er(pe).getQuery(),Dt=pe.getScrollInfo();function Et(Wn,Cr,Pr){Jt.searchHistoryController.pushInput(Wn),Jt.searchHistoryController.reset();try{nn(pe,Wn,Cr,Pr)}catch{or(pe,"Invalid regex: "+Wn),Fn(pe);return}_t.processMotion(pe,Te,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:Re.searchArgs.toJumplist}})}function jt(Wn){pe.scrollTo(Dt.left,Dt.top),Et(Wn,!0,!0);var Cr=Jt.macroModeState;Cr.isRecording&&Xi(Cr,Wn)}function Vt(Wn,Cr,Pr){var vr=j.keyName(Wn),Ur,ui;vr=="Up"||vr=="Down"?(Ur=vr=="Up",ui=Wn.target?Wn.target.selectionEnd:0,Cr=Jt.searchHistoryController.nextMatch(Cr,Ur)||"",Pr(Cr),ui&&Wn.target&&(Wn.target.selectionEnd=Wn.target.selectionStart=Math.min(ui,Wn.target.value.length))):vr!="Left"&&vr!="Right"&&vr!="Ctrl"&&vr!="Alt"&&vr!="Shift"&&Jt.searchHistoryController.reset();var oi;try{oi=nn(pe,Cr,!0,!0)}catch{}oi?pe.scrollIntoView(_r(pe,!je,oi),30):(Nr(pe),pe.scrollTo(Dt.left,Dt.top))}function Sn(Wn,Cr,Pr){var vr=j.keyName(Wn);vr=="Esc"||vr=="Ctrl-C"||vr=="Ctrl-["||vr=="Backspace"&&Cr==""?(Jt.searchHistoryController.pushInput(Cr),Jt.searchHistoryController.reset(),nn(pe,bt),Nr(pe),pe.scrollTo(Dt.left,Dt.top),j.e_stop(Wn),Fn(pe),Pr(),pe.focus()):vr=="Up"||vr=="Down"?j.e_stop(Wn):vr=="Ctrl-U"&&(j.e_stop(Wn),Pr(""))}switch(Re.searchArgs.querySrc){case"prompt":var Mn=Jt.macroModeState;if(Mn.isPlaying){var ar=Mn.replaySearchQueries.shift();Et(ar,!0,!1)}else gt(pe,{onClose:jt,prefix:Je,desc:"(JavaScript regexp)",onKeyUp:Vt,onKeyDown:Sn});break;case"wordUnderCursor":var bn=pt(pe,!1,!0,!1,!0),vn=!0;if(bn||(bn=pt(pe,!1,!0,!1,!1),vn=!1),!bn)return;var ar=pe.getLine(bn.start.line).substring(bn.start.ch,bn.end.ch);vn&&Ke?ar="\\b"+ar+"\\b":ar=Ct(ar),Jt.jumpList.cachedCursor=pe.getCursor(),pe.setCursor(bn.start),Et(ar,!0,!1);break}},processEx:function(pe,Te,Re){function je(Je){Jt.exCommandHistoryController.pushInput(Je),Jt.exCommandHistoryController.reset(),ei.processCommand(pe,Je),Fn(pe)}function Ke(Je,bt,Dt){var Et=j.keyName(Je),jt,Vt;(Et=="Esc"||Et=="Ctrl-C"||Et=="Ctrl-["||Et=="Backspace"&&bt=="")&&(Jt.exCommandHistoryController.pushInput(bt),Jt.exCommandHistoryController.reset(),j.e_stop(Je),Fn(pe),Dt(),pe.focus()),Et=="Up"||Et=="Down"?(j.e_stop(Je),jt=Et=="Up",Vt=Je.target?Je.target.selectionEnd:0,bt=Jt.exCommandHistoryController.nextMatch(bt,jt)||"",Dt(bt),Vt&&Je.target&&(Je.target.selectionEnd=Je.target.selectionStart=Math.min(Vt,Je.target.value.length))):Et=="Ctrl-U"?(j.e_stop(Je),Dt("")):Et!="Left"&&Et!="Right"&&Et!="Ctrl"&&Et!="Alt"&&Et!="Shift"&&Jt.exCommandHistoryController.reset()}Re.type=="keyToEx"?ei.processCommand(pe,Re.exArgs.input):Te.visualMode?gt(pe,{onClose:je,prefix:":",value:"'<,'>",onKeyDown:Ke,selectValueOnOpen:!1}):gt(pe,{onClose:je,prefix:":",onKeyDown:Ke})},evalInput:function(pe,Te){var Re=Te.inputState,je=Re.motion,Ke=Re.motionArgs||{},Je=Re.operator,bt=Re.operatorArgs||{},Dt=Re.registerName,Et=Te.sel,jt=xn(Te.visualMode?ht(pe,Et.head):pe.getCursor("head")),Vt=xn(Te.visualMode?ht(pe,Et.anchor):pe.getCursor("anchor")),Sn=xn(jt),Mn=xn(Vt),bn,vn,ar;if(Je&&this.recordLastEdit(Te,Re),Re.repeatOverride!==void 0?ar=Re.repeatOverride:ar=Re.getRepeat(),ar>0&&Ke.explicitRepeat?Ke.repeatIsExplicit=!0:(Ke.noRepeat||!Ke.explicitRepeat&&ar===0)&&(ar=1,Ke.repeatIsExplicit=!1),Re.selectedCharacter&&(Ke.selectedCharacter=bt.selectedCharacter=Re.selectedCharacter),Ke.repeat=ar,Fn(pe),je){var Wn=We[je](pe,jt,Ke,Te,Re);if(Te.lastMotion=We[je],!Wn)return;if(Ke.toJumplist){var Cr=Jt.jumpList,Pr=Cr.cachedCursor;Pr?(Ne(pe,Pr,Wn),delete Cr.cachedCursor):Ne(pe,jt,Wn)}Wn instanceof Array?(vn=Wn[0],bn=Wn[1]):bn=Wn,bn||(bn=xn(jt)),Te.visualMode?(Te.visualBlock&&bn.ch===1/0||(bn=ht(pe,bn)),vn&&(vn=ht(pe,vn)),vn=vn||Mn,Et.anchor=vn,Et.head=bn,jn(pe),fr(pe,Te,"<",dt(vn,bn)?vn:bn),fr(pe,Te,">",dt(vn,bn)?bn:vn)):Je||(bn=ht(pe,bn),pe.setCursor(bn.line,bn.ch))}if(Je){if(bt.lastSel){vn=Mn;var vr=bt.lastSel,Ur=Math.abs(vr.head.line-vr.anchor.line),ui=Math.abs(vr.head.ch-vr.anchor.ch);vr.visualLine?bn=new U(Mn.line+Ur,Mn.ch):vr.visualBlock?bn=new U(Mn.line+Ur,Mn.ch+ui):vr.head.line==vr.anchor.line?bn=new U(Mn.line,Mn.ch+ui):bn=new U(Mn.line+Ur,Mn.ch),Te.visualMode=!0,Te.visualLine=vr.visualLine,Te.visualBlock=vr.visualBlock,Et=Te.sel={anchor:vn,head:bn},jn(pe)}else Te.visualMode&&(bt.lastSel={anchor:xn(Et.anchor),head:xn(Et.head),visualBlock:Te.visualBlock,visualLine:Te.visualLine});var oi,xi,Kr,Fr,fi;if(Te.visualMode){if(oi=Ot(Et.head,Et.anchor),xi=Yt(Et.head,Et.anchor),Kr=Te.visualLine||bt.linewise,Fr=Te.visualBlock?"block":Kr?"line":"char",fi=ir(pe,{anchor:oi,head:xi},Fr),Kr){var pi=fi.ranges;if(Fr=="block")for(var ai=0;ai<pi.length;ai++)pi[ai].head.ch=gn(pe,pi[ai].head.line);else Fr=="line"&&(pi[0].head=new U(pi[0].head.line+1,0))}}else{if(oi=xn(vn||Mn),xi=xn(bn||Sn),dt(xi,oi)){var hs=oi;oi=xi,xi=hs}Kr=Ke.linewise||bt.linewise,Kr?Vr(pe,oi,xi):Ke.forward&&Dr(pe,oi,xi),Fr="char";var Os=!Ke.inclusive||Kr;fi=ir(pe,{anchor:oi,head:xi},Fr,Os)}pe.setSelections(fi.ranges,fi.primary),Te.lastMotion=null,bt.repeat=ar,bt.registerName=Dt,bt.linewise=Kr;var Ji=$e[Je](pe,bt,fi.ranges,Mn,bn);Te.visualMode&&Er(pe,Ji!=null),Ji&&pe.setCursor(Ji)}},recordLastEdit:function(pe,Te,Re){var je=Jt.macroModeState;je.isPlaying||(pe.lastEditInputState=Te,pe.lastEditActionCommand=Re,je.lastInsertModeChanges.changes=[],je.lastInsertModeChanges.expectCursorActivityForChange=!1,je.lastInsertModeChanges.visualBlock=pe.visualBlock?pe.sel.head.line-pe.sel.anchor.line:0)}},We={moveToTopLine:function(pe,Te,Re){var je=Zr(pe).top+Re.repeat-1;return new U(je,Ge(pe.getLine(je)))},moveToMiddleLine:function(pe){var Te=Zr(pe),Re=Math.floor((Te.top+Te.bottom)*.5);return new U(Re,Ge(pe.getLine(Re)))},moveToBottomLine:function(pe,Te,Re){var je=Zr(pe).bottom-Re.repeat+1;return new U(je,Ge(pe.getLine(je)))},expandToLine:function(pe,Te,Re){var je=Te;return new U(je.line+Re.repeat-1,1/0)},findNext:function(pe,Te,Re){var je=er(pe),Ke=je.getQuery();if(Ke){var Je=!Re.forward;return Je=je.isReversed()?!Je:Je,Jn(pe,Ke),_r(pe,Je,Ke,Re.repeat)}},findAndSelectNextInclusive:function(pe,Te,Re,je,Ke){var Je=er(pe),bt=Je.getQuery();if(bt){var Dt=!Re.forward;Dt=Je.isReversed()?!Dt:Dt;var Et=xr(pe,Dt,bt,Re.repeat,je);if(Et){if(Ke.operator)return Et;var jt=Et[0],Vt=new U(Et[1].line,Et[1].ch-1);if(je.visualMode){(je.visualLine||je.visualBlock)&&(je.visualLine=!1,je.visualBlock=!1,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:""}));var Sn=je.sel.anchor;if(Sn)return Je.isReversed()?Re.forward?[Sn,jt]:[Sn,Vt]:Re.forward?[Sn,Vt]:[Sn,jt]}else je.visualMode=!0,je.visualLine=!1,je.visualBlock=!1,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:""});return Dt?[Vt,jt]:[jt,Vt]}}},goToMark:function(pe,Te,Re,je){var Ke=ti(pe,je,Re.selectedCharacter);return Ke?Re.linewise?{line:Ke.line,ch:Ge(pe.getLine(Ke.line))}:Ke:null},moveToOtherHighlightedEnd:function(pe,Te,Re,je){if(je.visualBlock&&Re.sameLine){var Ke=je.sel;return[ht(pe,new U(Ke.anchor.line,Ke.head.ch)),ht(pe,new U(Ke.head.line,Ke.anchor.ch))]}else return[je.sel.head,je.sel.anchor]},jumpToMark:function(pe,Te,Re,je){for(var Ke=Te,Je=0;Je<Re.repeat;Je++){var bt=Ke;for(var Dt in je.marks)if(ke(Dt)){var Et=je.marks[Dt].find(),jt=Re.forward?dt(Et,bt):dt(bt,Et);if(!jt&&!(Re.linewise&&Et.line==bt.line)){var Vt=ot(bt,Ke),Sn=Re.forward?Wt(bt,Et,Ke):Wt(Ke,Et,bt);(Vt||Sn)&&(Ke=Et)}}}return Re.linewise&&(Ke=new U(Ke.line,Ge(pe.getLine(Ke.line)))),Ke},moveByCharacters:function(pe,Te,Re){var je=Te,Ke=Re.repeat,Je=Re.forward?je.ch+Ke:je.ch-Ke;return new U(je.line,Je)},moveByLines:function(pe,Te,Re,je){var Ke=Te,Je=Ke.ch;switch(je.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:Je=je.lastHPos;break;default:je.lastHPos=Je}var bt=Re.repeat+(Re.repeatOffset||0),Dt=Re.forward?Ke.line+bt:Ke.line-bt,Et=pe.firstLine(),jt=pe.lastLine(),Vt=pe.findPosV(Ke,Re.forward?bt:-bt,"line",je.lastHSPos),Sn=Re.forward?Vt.line>Dt:Vt.line<Dt;return Sn&&(Dt=Vt.line,Je=Vt.ch),Dt<Et&&Ke.line==Et?this.moveToStartOfLine(pe,Te,Re,je):Dt>jt&&Ke.line==jt?Xn(pe,Te,Re,je,!0):(Re.toFirstChar&&(Je=Ge(pe.getLine(Dt)),je.lastHPos=Je),je.lastHSPos=pe.charCoords(new U(Dt,Je),"div").left,new U(Dt,Je))},moveByDisplayLines:function(pe,Te,Re,je){var Ke=Te;switch(je.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:je.lastHSPos=pe.charCoords(Ke,"div").left}var Je=Re.repeat,bt=pe.findPosV(Ke,Re.forward?Je:-Je,"line",je.lastHSPos);if(bt.hitSide)if(Re.forward)var Dt=pe.charCoords(bt,"div"),Et={top:Dt.top+8,left:je.lastHSPos},bt=pe.coordsChar(Et,"div");else{var jt=pe.charCoords(new U(pe.firstLine(),0),"div");jt.left=je.lastHSPos,bt=pe.coordsChar(jt,"div")}return je.lastHPos=bt.ch,bt},moveByPage:function(pe,Te,Re){var je=Te,Ke=Re.repeat;return pe.findPosV(je,Re.forward?Ke:-Ke,"page")},moveByParagraph:function(pe,Te,Re){var je=Re.forward?1:-1;return sr(pe,Te,Re.repeat,je)},moveBySentence:function(pe,Te,Re){var je=Re.forward?1:-1;return mr(pe,Te,Re.repeat,je)},moveByScroll:function(pe,Te,Re,je){var Ke=pe.getScrollInfo(),Je=null,bt=Re.repeat;bt||(bt=Ke.clientHeight/(2*pe.defaultTextHeight()));var Dt=pe.charCoords(Te,"local");if(Re.repeat=bt,Je=We.moveByDisplayLines(pe,Te,Re,je),!Je)return null;var Et=pe.charCoords(Je,"local");return pe.scrollTo(null,Ke.top+Et.top-Dt.top),Je},moveByWords:function(pe,Te,Re){return Qn(pe,Te,Re.repeat,!!Re.forward,!!Re.wordEnd,!!Re.bigWord)},moveTillCharacter:function(pe,Te,Re){var je=Re.repeat,Ke=Rr(pe,je,Re.forward,Re.selectedCharacter),Je=Re.forward?-1:1;return vt(Je,Re),Ke?(Ke.ch+=Je,Ke):null},moveToCharacter:function(pe,Te,Re){var je=Re.repeat;return vt(0,Re),Rr(pe,je,Re.forward,Re.selectedCharacter)||Te},moveToSymbol:function(pe,Te,Re){var je=Re.repeat;return Pn(pe,je,Re.forward,Re.selectedCharacter)||Te},moveToColumn:function(pe,Te,Re,je){var Ke=Re.repeat;return je.lastHPos=Ke-1,je.lastHSPos=pe.charCoords(Te,"div").left,tr(pe,Ke)},moveToEol:function(pe,Te,Re,je){return Xn(pe,Te,Re,je,!1)},moveToFirstNonWhiteSpaceCharacter:function(pe,Te){var Re=Te;return new U(Re.line,Ge(pe.getLine(Re.line)))},moveToMatchedSymbol:function(pe,Te){for(var Re=Te,je=Re.line,Ke=Re.ch,Je=pe.getLine(je),bt;Ke<Je.length;Ke++)if(bt=Je.charAt(Ke),bt&&Oe(bt)){var Dt=pe.getTokenTypeAt(new U(je,Ke+1));if(Dt!=="string"&&Dt!=="comment")break}if(Ke<Je.length){var Et=Ke==="<"||Ke===">"?/[(){}[\]<>]/:/[(){}[\]]/,jt=pe.findMatchingBracket(new U(je,Ke),{bracketRegex:Et});return jt.to}else return Re},moveToStartOfLine:function(pe,Te){return new U(Te.line,0)},moveToLineOrEdgeOfDocument:function(pe,Te,Re){var je=Re.forward?pe.lastLine():pe.firstLine();return Re.repeatIsExplicit&&(je=Re.repeat-pe.getOption("firstLineNumber")),new U(je,Ge(pe.getLine(je)))},moveToStartOfDisplayLine:function(pe){return pe.execCommand("goLineLeft"),pe.getCursor()},moveToEndOfDisplayLine:function(pe){pe.execCommand("goLineRight");var Te=pe.getCursor();return Te.sticky=="before"&&Te.ch--,Te},textObjectManipulation:function(pe,Te,Re,je){var Ke={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},Je={"'":!0,'"':!0,"`":!0},bt=Re.selectedCharacter;bt=="b"?bt="(":bt=="B"&&(bt="{");var Dt=!Re.textObjectInner,Et;if(Ke[bt])Et=br(pe,Te,bt,Dt);else if(Je[bt])Et=hr(pe,Te,bt,Dt);else if(bt==="W")Et=pt(pe,Dt,!0,!0);else if(bt==="w")Et=pt(pe,Dt,!0,!1);else if(bt==="p")if(Et=sr(pe,Te,Re.repeat,0,Dt),Re.linewise=!0,je.visualMode)je.visualLine||(je.visualLine=!0);else{var jt=je.inputState.operatorArgs;jt&&(jt.linewise=!0),Et.end.line--}else if(bt==="t")Et=ct(pe,Te,Dt);else if(bt==="s"){var Vt=pe.getLine(Te.line);Te.ch>0&&Ze(Vt[Te.ch])&&(Te.ch-=1);var Sn=Rn(pe,Te,Re.repeat,1,Dt),Mn=Rn(pe,Te,Re.repeat,-1,Dt);Fe(pe.getLine(Mn.line)[Mn.ch])&&Fe(pe.getLine(Sn.line)[Sn.ch-1])&&(Mn={line:Mn.line,ch:Mn.ch+1}),Et={start:Mn,end:Sn}}else return null;return pe.state.vim.visualMode?cr(pe,Et.start,Et.end):[Et.start,Et.end]},repeatLastCharacterSearch:function(pe,Te,Re){var je=Jt.lastCharacterSearch,Ke=Re.repeat,Je=Re.forward===je.forward,bt=(je.increment?1:0)*(Je?-1:1);pe.moveH(-bt,"char"),Re.inclusive=!!Je;var Dt=Rr(pe,Ke,Je,je.selectedCharacter);return Dt?(Dt.ch+=bt,Dt):(pe.moveH(bt,"char"),Te)}};function Pe(pe,Te){We[pe]=Te}function Se(pe,Te){for(var Re=[],je=0;je<Te;je++)Re.push(pe);return Re}var $e={change:function(pe,Te,Re){var je,Ke,Je=pe.state.vim,bt=Re[0].anchor,Dt=Re[0].head;if(Je.visualMode)if(Te.fullLine)Dt.ch=Number.MAX_VALUE,Dt.line--,pe.setSelection(bt,Dt),Ke=pe.getSelection(),pe.replaceSelection(""),je=bt;else{Ke=pe.getSelection();var Mn=Se("",Re.length);pe.replaceSelections(Mn),je=Ot(Re[0].head,Re[0].anchor)}else{Ke=pe.getRange(bt,Dt);var Et=Je.lastEditInputState||{};if(Et.motion=="moveByWords"&&!Fe(Ke)){var jt=/\s+$/.exec(Ke);jt&&Et.motionArgs&&Et.motionArgs.forward&&(Dt=ut(Dt,0,-jt[0].length),Ke=Ke.slice(0,-jt[0].length))}var Vt=new U(bt.line-1,Number.MAX_VALUE),Sn=pe.firstLine()==pe.lastLine();Dt.line>pe.lastLine()&&Te.linewise&&!Sn?pe.replaceRange("",Vt,Dt):pe.replaceRange("",bt,Dt),Te.linewise&&(Sn||(pe.setCursor(Vt),j.commands.newlineAndIndent(pe)),bt.ch=Number.MAX_VALUE),je=bt}Jt.registerController.pushText(Te.registerName,"change",Ke,Te.linewise,Re.length>1),Qe.enterInsertMode(pe,{head:je},pe.state.vim)},delete:function(pe,Te,Re){var je,Ke,Je=pe.state.vim;if(Je.visualBlock){Ke=pe.getSelection();var Et=Se("",Re.length);pe.replaceSelections(Et),je=Ot(Re[0].head,Re[0].anchor)}else{var bt=Re[0].anchor,Dt=Re[0].head;Te.linewise&&Dt.line!=pe.firstLine()&&bt.line==pe.lastLine()&&bt.line==Dt.line-1&&(bt.line==pe.firstLine()?bt.ch=0:bt=new U(bt.line-1,gn(pe,bt.line-1))),Ke=pe.getRange(bt,Dt),pe.replaceRange("",bt,Dt),je=bt,Te.linewise&&(je=We.moveToFirstNonWhiteSpaceCharacter(pe,bt))}return Jt.registerController.pushText(Te.registerName,"delete",Ke,Te.linewise,Je.visualBlock),ht(pe,je)},indent:function(pe,Te,Re){var je=pe.state.vim;if(pe.indentMore)for(var Ke=je.visualMode?Te.repeat:1,Je=0;Je<Ke;Je++)Te.indentRight?pe.indentMore():pe.indentLess();else{var bt=Re[0].anchor.line,Dt=je.visualBlock?Re[Re.length-1].anchor.line:Re[0].head.line,Ke=je.visualMode?Te.repeat:1;Te.linewise&&Dt--;for(var Et=bt;Et<=Dt;Et++)for(var Je=0;Je<Ke;Je++)pe.indentLine(Et,Te.indentRight)}return We.moveToFirstNonWhiteSpaceCharacter(pe,Re[0].anchor)},indentAuto:function(pe,Te,Re){return pe.execCommand("indentAuto"),We.moveToFirstNonWhiteSpaceCharacter(pe,Re[0].anchor)},changeCase:function(pe,Te,Re,je,Ke){for(var Je=pe.getSelections(),bt=[],Dt=Te.toLower,Et=0;Et<Je.length;Et++){var jt=Je[Et],Vt="";if(Dt===!0)Vt=jt.toLowerCase();else if(Dt===!1)Vt=jt.toUpperCase();else for(var Sn=0;Sn<jt.length;Sn++){var Mn=jt.charAt(Sn);Vt+=ze(Mn)?Mn.toLowerCase():Mn.toUpperCase()}bt.push(Vt)}return pe.replaceSelections(bt),Te.shouldMoveCursor?Ke:!pe.state.vim.visualMode&&Te.linewise&&Re[0].anchor.line+1==Re[0].head.line?We.moveToFirstNonWhiteSpaceCharacter(pe,je):Te.linewise?je:Ot(Re[0].anchor,Re[0].head)},yank:function(pe,Te,Re,je){var Ke=pe.state.vim,Je=pe.getSelection(),bt=Ke.visualMode?Ot(Ke.sel.anchor,Ke.sel.head,Re[0].head,Re[0].anchor):je;return Jt.registerController.pushText(Te.registerName,"yank",Je,Te.linewise,Ke.visualBlock),bt}};function Ue(pe,Te){$e[pe]=Te}var Qe={jumpListWalk:function(pe,Te,Re){if(!Re.visualMode){var je=Te.repeat,Ke=Te.forward,Je=Jt.jumpList,bt=Je.move(pe,Ke?je:-je),Dt=bt?bt.find():void 0;Dt=Dt||pe.getCursor(),pe.setCursor(Dt)}},scroll:function(pe,Te,Re){if(!Re.visualMode){var je=Te.repeat||1,Ke=pe.defaultTextHeight(),Je=pe.getScrollInfo().top,bt=Ke*je,Dt=Te.forward?Je+bt:Je-bt,Et=xn(pe.getCursor()),jt=pe.charCoords(Et,"local");if(Te.forward)Dt>jt.top?(Et.line+=(Dt-jt.top)/Ke,Et.line=Math.ceil(Et.line),pe.setCursor(Et),jt=pe.charCoords(Et,"local"),pe.scrollTo(null,jt.top)):pe.scrollTo(null,Dt);else{var Vt=Dt+pe.getScrollInfo().clientHeight;Vt<jt.bottom?(Et.line-=(jt.bottom-Vt)/Ke,Et.line=Math.floor(Et.line),pe.setCursor(Et),jt=pe.charCoords(Et,"local"),pe.scrollTo(null,jt.bottom-pe.getScrollInfo().clientHeight)):pe.scrollTo(null,Dt)}}},scrollToCursor:function(pe,Te){var Re=pe.getCursor().line,je=pe.charCoords(new U(Re,0),"local"),Ke=pe.getScrollInfo().clientHeight,Je=je.top;switch(Te.position){case"center":Je=je.bottom-Ke/2;break;case"bottom":var bt=new U(Re,pe.getLine(Re).length-1),Dt=pe.charCoords(bt,"local"),Et=Dt.bottom-Je;Je=Je-Ke+Et;break}pe.scrollTo(null,Je)},replayMacro:function(pe,Te,Re){var je=Te.selectedCharacter,Ke=Te.repeat,Je=Jt.macroModeState;for(je=="@"?je=Je.latestRegister:Je.latestRegister=je;Ke--;)$o(pe,Re,Je,je)},enterMacroRecordMode:function(pe,Te){var Re=Jt.macroModeState,je=Te.selectedCharacter;Jt.registerController.isValidRegister(je)&&Re.enterMacroRecordMode(pe,je)},toggleOverwrite:function(pe){pe.state.overwrite?(pe.toggleOverwrite(!1),pe.setOption("keyMap","vim-insert"),j.signal(pe,"vim-mode-change",{mode:"insert"})):(pe.toggleOverwrite(!0),pe.setOption("keyMap","vim-replace"),j.signal(pe,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(pe,Te,Re){if(!pe.getOption("readOnly")){Re.insertMode=!0,Re.insertModeRepeat=Te&&Te.repeat||1;var je=Te?Te.insertAt:null,Ke=Re.sel,Je=Te.head||pe.getCursor("head"),bt=pe.listSelections().length;if(je=="eol")Je=new U(Je.line,gn(pe,Je.line));else if(je=="bol")Je=new U(Je.line,0);else if(je=="charAfter")Je=ut(Je,0,1);else if(je=="firstNonBlank")Je=We.moveToFirstNonWhiteSpaceCharacter(pe,Je);else if(je=="startOfSelectedArea"){if(!Re.visualMode)return;Re.visualBlock?(Je=new U(Math.min(Ke.head.line,Ke.anchor.line),Math.min(Ke.head.ch,Ke.anchor.ch)),bt=Math.abs(Ke.head.line-Ke.anchor.line)+1):Ke.head.line<Ke.anchor.line?Je=Ke.head:Je=new U(Ke.anchor.line,0)}else if(je=="endOfSelectedArea"){if(!Re.visualMode)return;Re.visualBlock?(Je=new U(Math.min(Ke.head.line,Ke.anchor.line),Math.max(Ke.head.ch,Ke.anchor.ch)+1),bt=Math.abs(Ke.head.line-Ke.anchor.line)+1):Ke.head.line>=Ke.anchor.line?Je=ut(Ke.head,0,1):Je=new U(Ke.anchor.line,0)}else if(je=="inplace"){if(Re.visualMode)return}else je=="lastEdit"&&(Je=Xr(pe)||Je);pe.setOption("disableInput",!1),Te&&Te.replace?(pe.toggleOverwrite(!0),pe.setOption("keyMap","vim-replace"),j.signal(pe,"vim-mode-change",{mode:"replace"})):(pe.toggleOverwrite(!1),pe.setOption("keyMap","vim-insert"),j.signal(pe,"vim-mode-change",{mode:"insert"})),Jt.macroModeState.isPlaying||(pe.on("change",Ys),j.on(pe.getInputField(),"keydown",$s)),Re.visualMode&&Er(pe),Lt(pe,Je,bt)}},toggleVisualMode:function(pe,Te,Re){var je=Te.repeat,Ke=pe.getCursor(),Je;Re.visualMode?Re.visualLine^Te.linewise||Re.visualBlock^Te.blockwise?(Re.visualLine=!!Te.linewise,Re.visualBlock=!!Te.blockwise,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""}),jn(pe)):Er(pe):(Re.visualMode=!0,Re.visualLine=!!Te.linewise,Re.visualBlock=!!Te.blockwise,Je=ht(pe,new U(Ke.line,Ke.ch+je-1)),Re.sel={anchor:Ke,head:Je},j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""}),jn(pe),fr(pe,Re,"<",Ot(Ke,Je)),fr(pe,Re,">",Yt(Ke,Je)))},reselectLastSelection:function(pe,Te,Re){var je=Re.lastSelection;if(Re.visualMode&&En(pe,Re),je){var Ke=je.anchorMark.find(),Je=je.headMark.find();if(!Ke||!Je)return;Re.sel={anchor:Ke,head:Je},Re.visualMode=!0,Re.visualLine=je.visualLine,Re.visualBlock=je.visualBlock,jn(pe),fr(pe,Re,"<",Ot(Ke,Je)),fr(pe,Re,">",Yt(Ke,Je)),j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""})}},joinLines:function(pe,Te,Re){var je,Ke;if(Re.visualMode){if(je=pe.getCursor("anchor"),Ke=pe.getCursor("head"),dt(Ke,je)){var Je=Ke;Ke=je,je=Je}Ke.ch=gn(pe,Ke.line)-1}else{var bt=Math.max(Te.repeat,2);je=pe.getCursor(),Ke=ht(pe,new U(je.line+bt-1,1/0))}for(var Dt=0,Et=je.line;Et<Ke.line;Et++){Dt=gn(pe,je.line);var Je=new U(je.line+1,gn(pe,je.line+1)),jt=pe.getRange(je,Je);jt=Te.keepSpaces?jt.replace(/\n\r?/g,""):jt.replace(/\n\s*/g," "),pe.replaceRange(jt,je,Je)}var Vt=new U(je.line,Dt);Re.visualMode&&Er(pe,!1),pe.setCursor(Vt)},newLineAndEnterInsertMode:function(pe,Te,Re){Re.insertMode=!0;var je=xn(pe.getCursor());if(je.line===pe.firstLine()&&!Te.after)pe.replaceRange(`
- `,new U(pe.firstLine(),0)),pe.setCursor(pe.firstLine(),0);else{je.line=Te.after?je.line:je.line-1,je.ch=gn(pe,je.line),pe.setCursor(je);var Ke=j.commands.newlineAndIndentContinueComment||j.commands.newlineAndIndent;Ke(pe)}this.enterInsertMode(pe,{repeat:Te.repeat},Re)},paste:function(pe,Te,Re){var je=xn(pe.getCursor()),Ke=Jt.registerController.getRegister(Te.registerName),Je=Ke.toString();if(Je){if(Te.matchIndent){var bt=pe.getOption("tabSize"),Dt=function(ai){var hs=ai.split(" ").length-1,Os=ai.split(" ").length-1;return hs*bt+Os*1},Et=pe.getLine(pe.getCursor().line),jt=Dt(Et.match(/^\s*/)[0]),Vt=Je.replace(/\n$/,""),Sn=Je!==Vt,Mn=Dt(Je.match(/^\s*/)[0]),Je=Vt.replace(/^\s*/gm,function(ai){var hs=jt+(Dt(ai)-Mn);if(hs<0)return"";if(pe.getOption("indentWithTabs")){var Os=Math.floor(hs/bt);return Array(Os+1).join(" ")}else return Array(hs+1).join(" ")});Je+=Sn?`
- `:""}if(Te.repeat>1)var Je=Array(Te.repeat+1).join(Je);var bn=Ke.linewise,vn=Ke.blockwise;if(vn){Je=Je.split(`
- `),bn&&Je.pop();for(var ar=0;ar<Je.length;ar++)Je[ar]=Je[ar]==""?" ":Je[ar];je.ch+=Te.after?1:0,je.ch=Math.min(gn(pe,je.line),je.ch)}else bn?Re.visualMode?Je=Re.visualLine?Je.slice(0,-1):`
- `+Je.slice(0,Je.length-1)+`
- `:Te.after?(Je=`
- `+Je.slice(0,Je.length-1),je.ch=gn(pe,je.line)):je.ch=0:je.ch+=Te.after?1:0;var Wn,Cr;if(Re.visualMode){Re.lastPastedText=Je;var Pr,vr=mn(pe,Re),Ur=vr[0],ui=vr[1],oi=pe.getSelection(),xi=pe.listSelections(),Kr=new Array(xi.length).join("1").split("1");Re.lastSelection&&(Pr=Re.lastSelection.headMark.find()),Jt.registerController.unnamedRegister.setText(oi),vn?(pe.replaceSelections(Kr),ui=new U(Ur.line+Je.length-1,Ur.ch),pe.setCursor(Ur),Tt(pe,ui),pe.replaceSelections(Je),Wn=Ur):Re.visualBlock?(pe.replaceSelections(Kr),pe.setCursor(Ur),pe.replaceRange(Je,Ur,Ur),Wn=Ur):(pe.replaceRange(Je,Ur,ui),Wn=pe.posFromIndex(pe.indexFromPos(Ur)+Je.length-1)),Pr&&(Re.lastSelection.headMark=pe.setBookmark(Pr)),bn&&(Wn.ch=0)}else if(vn){pe.setCursor(je);for(var ar=0;ar<Je.length;ar++){var Fr=je.line+ar;Fr>pe.lastLine()&&pe.replaceRange(`
- `,new U(Fr,0));var fi=gn(pe,Fr);fi<je.ch&&ft(pe,Fr,je.ch)}pe.setCursor(je),Tt(pe,new U(je.line+Je.length-1,je.ch)),pe.replaceSelections(Je),Wn=je}else pe.replaceRange(Je,je),bn&&Te.after?Wn=new U(je.line+1,Ge(pe.getLine(je.line+1))):bn&&!Te.after?Wn=new U(je.line,Ge(pe.getLine(je.line))):!bn&&Te.after?(Cr=pe.indexFromPos(je),Wn=pe.posFromIndex(Cr+Je.length-1)):(Cr=pe.indexFromPos(je),Wn=pe.posFromIndex(Cr+Je.length));Re.visualMode&&Er(pe,!1),pe.setCursor(Wn)}},undo:function(pe,Te){pe.operation(function(){en(pe,j.commands.undo,Te.repeat)(),pe.setCursor(pe.getCursor("anchor"))})},redo:function(pe,Te){en(pe,j.commands.redo,Te.repeat)()},setRegister:function(pe,Te,Re){Re.inputState.registerName=Te.selectedCharacter},setMark:function(pe,Te,Re){var je=Te.selectedCharacter;fr(pe,Re,je,pe.getCursor())},replace:function(pe,Te,Re){var je=Te.selectedCharacter,Ke=pe.getCursor(),Je,bt,Dt=pe.listSelections();if(Re.visualMode)Ke=pe.getCursor("start"),bt=pe.getCursor("end");else{var Et=pe.getLine(Ke.line);Je=Ke.ch+Te.repeat,Je>Et.length&&(Je=Et.length),bt=new U(Ke.line,Je)}if(je==`
- `)Re.visualMode||pe.replaceRange("",Ke,bt),(j.commands.newlineAndIndentContinueComment||j.commands.newlineAndIndent)(pe);else{var jt=pe.getRange(Ke,bt);if(jt=jt.replace(/[^\n]/g,je),Re.visualBlock){var Vt=new Array(pe.getOption("tabSize")+1).join(" ");jt=pe.getSelection(),jt=jt.replace(/\t/g,Vt).replace(/[^\n]/g,je).split(`
- `),pe.replaceSelections(jt)}else pe.replaceRange(jt,Ke,bt);Re.visualMode?(Ke=dt(Dt[0].anchor,Dt[0].head)?Dt[0].anchor:Dt[0].head,pe.setCursor(Ke),Er(pe,!1)):pe.setCursor(ut(bt,0,-1))}},incrementNumberToken:function(pe,Te){for(var Re=pe.getCursor(),je=pe.getLine(Re.line),Ke=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,Je,bt,Dt,Et;(Je=Ke.exec(je))!==null&&(bt=Je.index,Dt=bt+Je[0].length,!(Re.ch<Dt)););if(!(!Te.backtrack&&Dt<=Re.ch)){if(Je){var jt=Je[2]||Je[4],Vt=Je[3]||Je[5],Sn=Te.increase?1:-1,Mn={"0b":2,0:8,"":10,"0x":16}[jt.toLowerCase()],bn=parseInt(Je[1]+Vt,Mn)+Sn*Te.repeat;Et=bn.toString(Mn);var vn=jt?new Array(Vt.length-Et.length+1+Je[1].length).join("0"):"";Et.charAt(0)==="-"?Et="-"+jt+vn+Et.substr(1):Et=jt+vn+Et;var ar=new U(Re.line,bt),Wn=new U(Re.line,Dt);pe.replaceRange(Et,ar,Wn)}else return;pe.setCursor(new U(Re.line,bt+Et.length-1))}},repeatLastEdit:function(pe,Te,Re){var je=Re.lastEditInputState;if(je){var Ke=Te.repeat;Ke&&Te.repeatIsExplicit?Re.lastEditInputState.repeatOverride=Ke:Ke=Re.lastEditInputState.repeatOverride||Ke,ps(pe,Re,Ke,!1)}},indent:function(pe,Te){pe.indentLine(pe.getCursor().line,Te.indentRight)},exitInsertMode:Ai};function mt(pe,Te){Qe[pe]=Te}function ht(pe,Te){var Re=pe.state.vim,je=Re.insertMode||Re.visualMode,Ke=Math.min(Math.max(pe.firstLine(),Te.line),pe.lastLine()),Je=gn(pe,Ke)-1+!!je,bt=Math.min(Math.max(0,Te.ch),Je);return new U(Ke,bt)}function at(pe){var Te={};for(var Re in pe)pe.hasOwnProperty(Re)&&(Te[Re]=pe[Re]);return Te}function ut(pe,Te,Re){return typeof Te=="object"&&(Re=Te.ch,Te=Te.line),new U(pe.line+Te,pe.ch+Re)}function Rt(pe,Te,Re,je){for(var Ke,Je=[],bt=[],Dt=0;Dt<Te.length;Dt++){var Et=Te[Dt];Re=="insert"&&Et.context!="insert"||Et.context&&Et.context!=Re||je.operator&&Et.type=="action"||!(Ke=fn(pe,Et.keys))||(Ke=="partial"&&Je.push(Et),Ke=="full"&&bt.push(Et))}return{partial:Je.length&&Je,full:bt.length&&bt}}function fn(pe,Te){if(Te.slice(-11)=="<character>"){var Re=Te.length-11,je=pe.slice(0,Re),Ke=Te.slice(0,Re);return je==Ke&&pe.length>Re?"full":Ke.indexOf(je)==0?"partial":!1}else return pe==Te?"full":Te.indexOf(pe)==0?"partial":!1}function Bn(pe){var Te=/^.*(<[^>]+>)$/.exec(pe),Re=Te?Te[1]:pe.slice(-1);if(Re.length>1)switch(Re){case"<CR>":Re=`
- `;break;case"<Space>":Re=" ";break;default:Re="";break}return Re}function en(pe,Te,Re){return function(){for(var je=0;je<Re;je++)Te(pe)}}function xn(pe){return new U(pe.line,pe.ch)}function ot(pe,Te){return pe.ch==Te.ch&&pe.line==Te.line}function dt(pe,Te){return pe.line<Te.line||pe.line==Te.line&&pe.ch<Te.ch}function Ot(pe,Te){return arguments.length>2&&(Te=Ot.apply(void 0,Array.prototype.slice.call(arguments,1))),dt(pe,Te)?pe:Te}function Yt(pe,Te){return arguments.length>2&&(Te=Yt.apply(void 0,Array.prototype.slice.call(arguments,1))),dt(pe,Te)?Te:pe}function Wt(pe,Te,Re){var je=dt(pe,Te),Ke=dt(Te,Re);return je&&Ke}function gn(pe,Te){return pe.getLine(Te).length}function Kn(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Ct(pe){return pe.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function ft(pe,Te,Re){var je=gn(pe,Te),Ke=new Array(Re-je+1).join(" ");pe.setCursor(new U(Te,je)),pe.replaceRange(Ke,pe.getCursor())}function Tt(pe,Te){var Re=[],je=pe.listSelections(),Ke=xn(pe.clipPos(Te)),Je=!ot(Te,Ke),bt=pe.getCursor("head"),Dt=pn(je,bt),Et=ot(je[Dt].head,je[Dt].anchor),jt=je.length-1,Vt=jt-Dt>Dt?jt:0,Sn=je[Vt].anchor,Mn=Math.min(Sn.line,Ke.line),bn=Math.max(Sn.line,Ke.line),vn=Sn.ch,ar=Ke.ch,Wn=je[Vt].head.ch-vn,Cr=ar-vn;Wn>0&&Cr<=0?(vn++,Je||ar--):Wn<0&&Cr>=0?(vn--,Et||ar++):Wn<0&&Cr==-1&&(vn--,ar++);for(var Pr=Mn;Pr<=bn;Pr++){var vr={anchor:new U(Pr,vn),head:new U(Pr,ar)};Re.push(vr)}return pe.setSelections(Re),Te.ch=ar,Sn.ch=vn,Sn}function Lt(pe,Te,Re){for(var je=[],Ke=0;Ke<Re;Ke++){var Je=ut(Te,Ke,0);je.push({anchor:Je,head:Je})}pe.setSelections(je,0)}function pn(pe,Te,Re){for(var je=0;je<pe.length;je++){var Ke=Re!="head"&&ot(pe[je].anchor,Te),Je=Re!="anchor"&&ot(pe[je].head,Te);if(Ke||Je)return je}return-1}function mn(pe,Te){var Re=Te.lastSelection,je=function(){var Je=pe.listSelections(),bt=Je[0],Dt=Je[Je.length-1],Et=dt(bt.anchor,bt.head)?bt.anchor:bt.head,jt=dt(Dt.anchor,Dt.head)?Dt.head:Dt.anchor;return[Et,jt]},Ke=function(){var Je=pe.getCursor(),bt=pe.getCursor(),Dt=Re.visualBlock;if(Dt){var Et=Dt.width,jt=Dt.height;bt=new U(Je.line+jt,Je.ch+Et);for(var Vt=[],Sn=Je.line;Sn<bt.line;Sn++){var Mn=new U(Sn,Je.ch),bn=new U(Sn,bt.ch),vn={anchor:Mn,head:bn};Vt.push(vn)}pe.setSelections(Vt)}else{var ar=Re.anchorMark.find(),Wn=Re.headMark.find(),Cr=Wn.line-ar.line,Pr=Wn.ch-ar.ch;bt={line:bt.line+Cr,ch:Cr?bt.ch:Pr+bt.ch},Re.visualLine&&(Je=new U(Je.line,0),bt=new U(bt.line,gn(pe,bt.line))),pe.setSelection(Je,bt)}return[Je,bt]};return Te.visualMode?je():Ke()}function En(pe,Te){var Re=Te.sel.anchor,je=Te.sel.head;Te.lastPastedText&&(je=pe.posFromIndex(pe.indexFromPos(Re)+Te.lastPastedText.length),Te.lastPastedText=null),Te.lastSelection={anchorMark:pe.setBookmark(Re),headMark:pe.setBookmark(je),anchor:xn(Re),head:xn(je),visualMode:Te.visualMode,visualLine:Te.visualLine,visualBlock:Te.visualBlock}}function cr(pe,Te,Re){var je=pe.state.vim.sel,Ke=je.head,Je=je.anchor,bt;return dt(Re,Te)&&(bt=Re,Re=Te,Te=bt),dt(Ke,Je)?(Ke=Ot(Te,Ke),Je=Yt(Je,Re)):(Je=Ot(Te,Je),Ke=Yt(Ke,Re),Ke=ut(Ke,0,-1),Ke.ch==-1&&Ke.line!=pe.firstLine()&&(Ke=new U(Ke.line-1,gn(pe,Ke.line-1)))),[Je,Ke]}function jn(pe,Te,Ke){var je=pe.state.vim;Te=Te||je.sel;var Ke=Ke||je.visualLine?"line":je.visualBlock?"block":"char",Je=ir(pe,Te,Ke);pe.setSelections(Je.ranges,Je.primary)}function ir(pe,Te,Re,je){var Ke=xn(Te.head),Je=xn(Te.anchor);if(Re=="char"){var bt=!je&&!dt(Te.head,Te.anchor)?1:0,Dt=dt(Te.head,Te.anchor)?1:0;return Ke=ut(Te.head,0,bt),Je=ut(Te.anchor,0,Dt),{ranges:[{anchor:Je,head:Ke}],primary:0}}else if(Re=="line"){if(dt(Te.head,Te.anchor))Ke.ch=0,Je.ch=gn(pe,Je.line);else{Je.ch=0;var Et=pe.lastLine();Ke.line>Et&&(Ke.line=Et),Ke.ch=gn(pe,Ke.line)}return{ranges:[{anchor:Je,head:Ke}],primary:0}}else if(Re=="block"){var jt=Math.min(Je.line,Ke.line),Vt=Je.ch,Sn=Math.max(Je.line,Ke.line),Mn=Ke.ch;Vt<Mn?Mn+=1:Vt+=1;for(var bn=Sn-jt+1,vn=Ke.line==jt?0:bn-1,ar=[],Wn=0;Wn<bn;Wn++)ar.push({anchor:new U(jt+Wn,Vt),head:new U(jt+Wn,Mn)});return{ranges:ar,primary:vn}}}function Ir(pe){var Te=pe.getCursor("head");return pe.getSelection().length==1&&(Te=Ot(Te,pe.getCursor("anchor"))),Te}function Er(pe,Te){var Re=pe.state.vim;Te!==!1&&pe.setCursor(ht(pe,Re.sel.head)),En(pe,Re),Re.visualMode=!1,Re.visualLine=!1,Re.visualBlock=!1,Re.insertMode||j.signal(pe,"vim-mode-change",{mode:"normal"})}function Dr(pe,Te,Re){var je=pe.getRange(Te,Re);if(/\n\s*$/.test(je)){var Ke=je.split(`
- `);Ke.pop();for(var Je,Je=Ke.pop();Ke.length>0&&Je&&Fe(Je);Je=Ke.pop())Re.line--,Re.ch=0;Je?(Re.line--,Re.ch=gn(pe,Re.line)):Re.ch=0}}function Vr(pe,Te,Re){Te.ch=0,Re.ch=0,Re.line++}function Ge(pe){if(!pe)return 0;var Te=pe.search(/\S/);return Te==-1?pe.length:Te}function pt(pe,Te,Re,je,Ke){for(var Je=Ir(pe),bt=pe.getLine(Je.line),Dt=Je.ch,Et=Ke?_e[0]:fe[0];!Et(bt.charAt(Dt));)if(Dt++,Dt>=bt.length)return null;je?Et=fe[0]:(Et=_e[0],Et(bt.charAt(Dt))||(Et=_e[1]));for(var jt=Dt,Vt=Dt;Et(bt.charAt(jt))&&jt<bt.length;)jt++;for(;Et(bt.charAt(Vt))&&Vt>=0;)Vt--;if(Vt++,Te){for(var Sn=jt;/\s/.test(bt.charAt(jt))&&jt<bt.length;)jt++;if(Sn==jt){for(var Mn=Vt;/\s/.test(bt.charAt(Vt-1))&&Vt>0;)Vt--;Vt||(Vt=Mn)}}return{start:new U(Je.line,Vt),end:new U(Je.line,jt)}}function ct(pe,Te,Re){var je=Te;if(!j.findMatchingTag||!j.findEnclosingTag)return{start:je,end:je};var Ke=j.findMatchingTag(pe,Te)||j.findEnclosingTag(pe,Te);return!Ke||!Ke.open||!Ke.close?{start:je,end:je}:Re?{start:Ke.open.from,end:Ke.close.to}:{start:Ke.open.to,end:Ke.close.from}}function Ne(pe,Te,Re){ot(Te,Re)||Jt.jumpList.add(pe,Te,Re)}function vt(pe,Te){Jt.lastCharacterSearch.increment=pe,Jt.lastCharacterSearch.forward=Te.forward,Jt.lastCharacterSearch.selectedCharacter=Te.selectedCharacter}var Xt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},sn={bracket:{isComplete:function(pe){if(pe.nextCh===pe.symb){if(pe.depth++,pe.depth>=1)return!0}else pe.nextCh===pe.reverseSymb&&pe.depth--;return!1}},section:{init:function(pe){pe.curMoveThrough=!0,pe.symb=(pe.forward?"]":"[")===pe.symb?"{":"}"},isComplete:function(pe){return pe.index===0&&pe.nextCh===pe.symb}},comment:{isComplete:function(pe){var Te=pe.lastCh==="*"&&pe.nextCh==="/";return pe.lastCh=pe.nextCh,Te}},method:{init:function(pe){pe.symb=pe.symb==="m"?"{":"}",pe.reverseSymb=pe.symb==="{"?"}":"{"},isComplete:function(pe){return pe.nextCh===pe.symb}},preprocess:{init:function(pe){pe.index=0},isComplete:function(pe){if(pe.nextCh==="#"){var Te=pe.lineText.match(/^#(\w+)/)[1];if(Te==="endif"){if(pe.forward&&pe.depth===0)return!0;pe.depth++}else if(Te==="if"){if(!pe.forward&&pe.depth===0)return!0;pe.depth--}if(Te==="else"&&pe.depth===0)return!0}return!1}}};function Pn(pe,Te,Re,je){var Ke=xn(pe.getCursor()),Je=Re?1:-1,bt=Re?pe.lineCount():-1,Dt=Ke.ch,Et=Ke.line,jt=pe.getLine(Et),Vt={lineText:jt,nextCh:jt.charAt(Dt),lastCh:null,index:Dt,symb:je,reverseSymb:(Re?{")":"(","}":"{"}:{"(":")","{":"}"})[je],forward:Re,depth:0,curMoveThrough:!1},Sn=Xt[je];if(!Sn)return Ke;var Mn=sn[Sn].init,bn=sn[Sn].isComplete;for(Mn&&Mn(Vt);Et!==bt&&Te;){if(Vt.index+=Je,Vt.nextCh=Vt.lineText.charAt(Vt.index),!Vt.nextCh){if(Et+=Je,Vt.lineText=pe.getLine(Et)||"",Je>0)Vt.index=0;else{var vn=Vt.lineText.length;Vt.index=vn>0?vn-1:0}Vt.nextCh=Vt.lineText.charAt(Vt.index)}bn(Vt)&&(Ke.line=Et,Ke.ch=Vt.index,Te--)}return Vt.nextCh||Vt.curMoveThrough?new U(Et,Vt.index):Ke}function Nn(pe,Te,Re,je,Ke){var Je=Te.line,bt=Te.ch,Dt=pe.getLine(Je),Et=Re?1:-1,jt=je?fe:_e;if(Ke&&Dt==""){if(Je+=Et,Dt=pe.getLine(Je),!Ae(pe,Je))return null;bt=Re?0:Dt.length}for(;;){if(Ke&&Dt=="")return{from:0,to:0,line:Je};for(var Vt=Et>0?Dt.length:-1,Sn=Vt,Mn=Vt;bt!=Vt;){for(var bn=!1,vn=0;vn<jt.length&&!bn;++vn)if(jt[vn](Dt.charAt(bt))){for(Sn=bt;bt!=Vt&&jt[vn](Dt.charAt(bt));)bt+=Et;if(Mn=bt,bn=Sn!=Mn,Sn==Te.ch&&Je==Te.line&&Mn==Sn+Et)continue;return{from:Math.min(Sn,Mn+1),to:Math.max(Sn,Mn),line:Je}}bn||(bt+=Et)}if(Je+=Et,!Ae(pe,Je))return null;Dt=pe.getLine(Je),bt=Et>0?0:Dt.length}}function Qn(pe,Te,Re,je,Ke,Je){var bt=xn(Te),Dt=[];(je&&!Ke||!je&&Ke)&&Re++;for(var Et=!(je&&Ke),jt=0;jt<Re;jt++){var Vt=Nn(pe,Te,je,Je,Et);if(!Vt){var Sn=gn(pe,pe.lastLine());Dt.push(je?{line:pe.lastLine(),from:Sn,to:Sn}:{line:0,from:0,to:0});break}Dt.push(Vt),Te=new U(Vt.line,je?Vt.to-1:Vt.from)}var Mn=Dt.length!=Re,bn=Dt[0],vn=Dt.pop();return je&&!Ke?(!Mn&&(bn.from!=bt.ch||bn.line!=bt.line)&&(vn=Dt.pop()),new U(vn.line,vn.from)):je&&Ke?new U(vn.line,vn.to-1):!je&&Ke?(!Mn&&(bn.to!=bt.ch||bn.line!=bt.line)&&(vn=Dt.pop()),new U(vn.line,vn.to)):new U(vn.line,vn.from)}function Xn(pe,Te,Re,je,Ke){var Je=Te,bt=new U(Je.line+Re.repeat-1,1/0),Dt=pe.clipPos(bt);return Dt.ch--,Ke||(je.lastHPos=1/0,je.lastHSPos=pe.charCoords(Dt,"div").left),bt}function Rr(pe,Te,Re,je){for(var Ke=pe.getCursor(),Je=Ke.ch,bt,Dt=0;Dt<Te;Dt++){var Et=pe.getLine(Ke.line);if(bt=Sr(Je,Et,je,Re,!0),bt==-1)return null;Je=bt}return new U(pe.getCursor().line,bt)}function tr(pe,Te){var Re=pe.getCursor().line;return ht(pe,new U(Re,Te-1))}function fr(pe,Te,Re,je){lt(Re,ye)&&(Te.marks[Re]&&Te.marks[Re].clear(),Te.marks[Re]=pe.setBookmark(je))}function Sr(pe,Te,Re,je,Ke){var Je;return je?(Je=Te.indexOf(Re,pe+1),Je!=-1&&!Ke&&(Je-=1)):(Je=Te.lastIndexOf(Re,pe-1),Je!=-1&&!Ke&&(Je+=1)),Je}function sr(pe,Te,Re,je,Ke){var Je=Te.line,bt=pe.firstLine(),Dt=pe.lastLine(),Et,jt,Vt=Je;function Sn(Wn){return!pe.getLine(Wn)}function Mn(Wn,Cr,Pr){return Pr?Sn(Wn)!=Sn(Wn+Cr):!Sn(Wn)&&Sn(Wn+Cr)}if(je){for(;bt<=Vt&&Vt<=Dt&&Re>0;)Mn(Vt,je)&&Re--,Vt+=je;return new U(Vt,0)}var bn=pe.state.vim;if(bn.visualLine&&Mn(Je,1,!0)){var vn=bn.sel.anchor;Mn(vn.line,-1,!0)&&(!Ke||vn.line!=Je)&&(Je+=1)}var ar=Sn(Je);for(Vt=Je;Vt<=Dt&ℜVt++)Mn(Vt,1,!0)&&(!Ke||Sn(Vt)!=ar)&&Re--;for(jt=new U(Vt,0),Vt>Dt&&!ar?ar=!0:Ke=!1,Vt=Je;Vt>bt&&!((!Ke||Sn(Vt)==ar||Vt==Je)&&Mn(Vt,-1,!0));Vt--);return Et=new U(Vt,0),{start:Et,end:jt}}function Rn(pe,Te,Re,je,Ke){function Je(jt){jt.pos+jt.dir<0||jt.pos+jt.dir>=jt.line.length?jt.line=null:jt.pos+=jt.dir}function bt(jt,Vt,Sn,Mn){var bn=jt.getLine(Vt),vn={line:bn,ln:Vt,pos:Sn,dir:Mn};if(vn.line==="")return{ln:vn.ln,pos:vn.pos};var ar=vn.pos;for(Je(vn);vn.line!==null;){if(ar=vn.pos,Ze(vn.line[vn.pos]))if(Ke){for(Je(vn);vn.line!==null&&Fe(vn.line[vn.pos]);)ar=vn.pos,Je(vn);return{ln:vn.ln,pos:ar+1}}else return{ln:vn.ln,pos:vn.pos+1};Je(vn)}return{ln:vn.ln,pos:ar+1}}function Dt(jt,Vt,Sn,Mn){var bn=jt.getLine(Vt),vn={line:bn,ln:Vt,pos:Sn,dir:Mn};if(vn.line==="")return{ln:vn.ln,pos:vn.pos};var ar=vn.pos;for(Je(vn);vn.line!==null;){if(!Fe(vn.line[vn.pos])&&!Ze(vn.line[vn.pos]))ar=vn.pos;else if(Ze(vn.line[vn.pos]))return Ke?Fe(vn.line[vn.pos+1])?{ln:vn.ln,pos:vn.pos+1}:{ln:vn.ln,pos:ar}:{ln:vn.ln,pos:ar};Je(vn)}return vn.line=bn,Ke&&Fe(vn.line[vn.pos])?{ln:vn.ln,pos:vn.pos}:{ln:vn.ln,pos:ar}}for(var Et={ln:Te.line,pos:Te.ch};Re>0;)je<0?Et=Dt(pe,Et.ln,Et.pos,je):Et=bt(pe,Et.ln,Et.pos,je),Re--;return new U(Et.ln,Et.pos)}function mr(pe,Te,Re,je){function Ke(Et,jt){if(jt.pos+jt.dir<0||jt.pos+jt.dir>=jt.line.length){if(jt.ln+=jt.dir,!Ae(Et,jt.ln)){jt.line=null,jt.ln=null,jt.pos=null;return}jt.line=Et.getLine(jt.ln),jt.pos=jt.dir>0?0:jt.line.length-1}else jt.pos+=jt.dir}function Je(Et,jt,Vt,Sn){var Wn=Et.getLine(jt),Mn=Wn==="",bn={line:Wn,ln:jt,pos:Vt,dir:Sn},vn={ln:bn.ln,pos:bn.pos},ar=bn.line==="";for(Ke(Et,bn);bn.line!==null;){if(vn.ln=bn.ln,vn.pos=bn.pos,bn.line===""&&!ar)return{ln:bn.ln,pos:bn.pos};if(Mn&&bn.line!==""&&!Fe(bn.line[bn.pos]))return{ln:bn.ln,pos:bn.pos};Ze(bn.line[bn.pos])&&!Mn&&(bn.pos===bn.line.length-1||Fe(bn.line[bn.pos+1]))&&(Mn=!0),Ke(Et,bn)}var Wn=Et.getLine(vn.ln);vn.pos=0;for(var Cr=Wn.length-1;Cr>=0;--Cr)if(!Fe(Wn[Cr])){vn.pos=Cr;break}return vn}function bt(Et,jt,Vt,Sn){var ar=Et.getLine(jt),Mn={line:ar,ln:jt,pos:Vt,dir:Sn},bn={ln:Mn.ln,pos:null},vn=Mn.line==="";for(Ke(Et,Mn);Mn.line!==null;){if(Mn.line===""&&!vn)return bn.pos!==null?bn:{ln:Mn.ln,pos:Mn.pos};if(Ze(Mn.line[Mn.pos])&&bn.pos!==null&&!(Mn.ln===bn.ln&&Mn.pos+1===bn.pos))return bn;Mn.line!==""&&!Fe(Mn.line[Mn.pos])&&(vn=!1,bn={ln:Mn.ln,pos:Mn.pos}),Ke(Et,Mn)}var ar=Et.getLine(bn.ln);bn.pos=0;for(var Wn=0;Wn<ar.length;++Wn)if(!Fe(ar[Wn])){bn.pos=Wn;break}return bn}for(var Dt={ln:Te.line,pos:Te.ch};Re>0;)je<0?Dt=bt(pe,Dt.ln,Dt.pos,je):Dt=Je(pe,Dt.ln,Dt.pos,je),Re--;return new U(Dt.ln,Dt.pos)}function br(pe,Te,Re,je){var Ke=Te,Je,bt,Dt={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[Re],Et={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[Re],jt=pe.getLine(Ke.line).charAt(Ke.ch),Vt=jt===Et?1:0;if(Je=pe.scanForBracket(new U(Ke.line,Ke.ch+Vt),-1,void 0,{bracketRegex:Dt}),bt=pe.scanForBracket(new U(Ke.line,Ke.ch+Vt),1,void 0,{bracketRegex:Dt}),!Je||!bt)return{start:Ke,end:Ke};if(Je=Je.pos,bt=bt.pos,Je.line==bt.line&&Je.ch>bt.ch||Je.line>bt.line){var Sn=Je;Je=bt,bt=Sn}return je?bt.ch+=1:Je.ch+=1,{start:Je,end:bt}}function hr(pe,Te,Re,je){var Ke=xn(Te),Je=pe.getLine(Ke.line),bt=Je.split(""),Dt,Et,jt,Vt,Sn=bt.indexOf(Re);if(Ke.ch<Sn?Ke.ch=Sn:Sn<Ke.ch&&bt[Ke.ch]==Re&&(Et=Ke.ch,--Ke.ch),bt[Ke.ch]==Re&&!Et)Dt=Ke.ch+1;else for(jt=Ke.ch;jt>-1&&!Dt;jt--)bt[jt]==Re&&(Dt=jt+1);if(Dt&&!Et)for(jt=Dt,Vt=bt.length;jt<Vt&&!Et;jt++)bt[jt]==Re&&(Et=jt);return!Dt||!Et?{start:Ke,end:Ke}:(je&&(--Dt,++Et),{start:new U(Ke.line,Dt),end:new U(Ke.line,Et)})}Ve("pcre",!0,"boolean");function zn(){}zn.prototype={getQuery:function(){return Jt.query},setQuery:function(pe){Jt.query=pe},getOverlay:function(){return this.searchOverlay},setOverlay:function(pe){this.searchOverlay=pe},isReversed:function(){return Jt.isReversed},setReversed:function(pe){Jt.isReversed=pe},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(pe){this.annotate=pe}};function er(pe){var Te=pe.state.vim;return Te.searchState_||(Te.searchState_=new zn)}function et(pe){return wt(pe,"/")}function yt(pe){return Bt(pe,"/")}function wt(pe,Te){var Re=Bt(pe,Te)||[];if(!Re.length)return[];var je=[];if(Re[0]===0){for(var Ke=0;Ke<Re.length;Ke++)typeof Re[Ke]=="number"&&je.push(pe.substring(Re[Ke]+1,Re[Ke+1]));return je}}function Bt(pe,Te){Te||(Te="/");for(var Re=!1,je=[],Ke=0;Ke<pe.length;Ke++){var Je=pe.charAt(Ke);!Re&&Je==Te&&je.push(Ke),Re=!Re&&Je=="\\"}return je}function Kt(pe){for(var Te="|(){",Re="}",je=!1,Ke=[],Je=-1;Je<pe.length;Je++){var bt=pe.charAt(Je)||"",Dt=pe.charAt(Je+1)||"",Et=Dt&&Te.indexOf(Dt)!=-1;je?((bt!=="\\"||!Et)&&Ke.push(bt),je=!1):bt==="\\"?(je=!0,Dt&&Re.indexOf(Dt)!=-1&&(Et=!0),(!Et||Dt==="\\")&&Ke.push(bt)):(Ke.push(bt),Et&&Dt!=="\\"&&Ke.push("\\"))}return Ke.join("")}var Mt={"\\n":`
- `,"\\r":"\r","\\t":" "};function tn(pe){for(var Te=!1,Re=[],je=-1;je<pe.length;je++){var Ke=pe.charAt(je)||"",Je=pe.charAt(je+1)||"";Mt[Ke+Je]?(Re.push(Mt[Ke+Je]),je++):Te?(Re.push(Ke),Te=!1):Ke==="\\"?(Te=!0,Me(Je)||Je==="$"?Re.push("$"):Je!=="/"&&Je!=="\\"&&Re.push("\\")):(Ke==="$"&&Re.push("$"),Re.push(Ke),Je==="/"&&Re.push("\\"))}return Re.join("")}var hn={"\\/":"/","\\\\":"\\","\\n":`
- `,"\\r":"\r","\\t":" ","\\&":"&"};function Cn(pe){for(var Te=new j.StringStream(pe),Re=[];!Te.eol();){for(;Te.peek()&&Te.peek()!="\\";)Re.push(Te.next());var je=!1;for(var Ke in hn)if(Te.match(Ke,!0)){je=!0,Re.push(hn[Ke]);break}je||Re.push(Te.next())}return Re.join("")}function cn(pe,Te,Re){var je=Jt.registerController.getRegister("/");if(je.setText(pe),pe instanceof RegExp)return pe;var Ke=yt(pe),Je,bt;if(!Ke.length)Je=pe;else{Je=pe.substring(0,Ke[0]);var Dt=pe.substring(Ke[0]);bt=Dt.indexOf("i")!=-1}if(!Je)return null;Nt("pcre")||(Je=Kt(Je)),Re&&(Te=/^[^A-Z]*$/.test(Je));var Et=new RegExp(Je,Te||bt?"im":"m");return Et}function ur(pe){typeof pe=="string"&&(pe=document.createElement(pe));for(var Te,Re=1;Re<arguments.length;Re++)if(Te=arguments[Re])if(typeof Te!="object"&&(Te=document.createTextNode(Te)),Te.nodeType)pe.appendChild(Te);else for(var je in Te)Object.prototype.hasOwnProperty.call(Te,je)&&(je[0]==="$"?pe.style[je.slice(1)]=Te[je]:pe.setAttribute(je,Te[je]));return pe}function or(pe,Te){var Re=ur("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},Te);pe.openNotification?pe.openNotification(Re,{bottom:!0,duration:5e3}):alert(Re.innerText)}function rt(pe,Te){return ur(document.createDocumentFragment(),ur("span",{$fontFamily:"monospace",$whiteSpace:"pre"},pe,ur("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),Te&&ur("span",{$color:"#888"},Te))}function gt(pe,Te){var Re=rt(Te.prefix,Te.desc);if(pe.openDialog)pe.openDialog(Re,Te.onClose,{onKeyDown:Te.onKeyDown,onKeyUp:Te.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:Te.value});else{var je="";typeof Te.prefix!="string"&&Te.prefix&&(je+=Te.prefix.textContent),Te.desc&&(je+=" "+Te.desc),Te.onClose(prompt(je,""))}}function tt(pe,Te){if(pe instanceof RegExp&&Te instanceof RegExp){for(var Re=["global","multiline","ignoreCase","source"],je=0;je<Re.length;je++){var Ke=Re[je];if(pe[Ke]!==Te[Ke])return!1}return!0}return!1}function nn(pe,Te,Re,je){if(Te){var Ke=er(pe),Je=cn(Te,!!Re,!!je);if(Je)return Jn(pe,Je),tt(Je,Ke.getQuery())||Ke.setQuery(Je),Je}}function kn(pe){if(pe.source.charAt(0)=="^")var Te=!0;return{token:function(Re){if(Te&&!Re.sol()){Re.skipToEnd();return}var je=Re.match(pe,!1);if(je)return je[0].length==0?(Re.next(),"searching"):!Re.sol()&&(Re.backUp(1),!pe.exec(Re.next()+je[0]))?(Re.next(),null):(Re.match(pe),"searching");for(;!Re.eol()&&(Re.next(),!Re.match(pe,!1)););},query:pe}}var Un=0;function Jn(pe,Te){clearTimeout(Un),Un=setTimeout(function(){if(pe.state.vim){var Re=er(pe),je=Re.getOverlay();(!je||Te!=je.query)&&(je&&pe.removeOverlay(je),je=kn(Te),pe.addOverlay(je),pe.showMatchesOnScrollbar&&(Re.getScrollbarAnnotate()&&Re.getScrollbarAnnotate().clear(),Re.setScrollbarAnnotate(pe.showMatchesOnScrollbar(Te))),Re.setOverlay(je))}},50)}function _r(pe,Te,Re,je){return je===void 0&&(je=1),pe.operation(function(){for(var Ke=pe.getCursor(),Je=pe.getSearchCursor(Re,Ke),bt=0;bt<je;bt++){var Dt=Je.find(Te);if(bt==0&&Dt&&ot(Je.from(),Ke)){var Et=Te?Je.from():Je.to();Dt=Je.find(Te),Dt&&!Dt[0]&&ot(Je.from(),Et)&&pe.getLine(Et.line).length==Et.ch&&(Dt=Je.find(Te))}if(!Dt&&(Je=pe.getSearchCursor(Re,Te?new U(pe.lastLine()):new U(pe.firstLine(),0)),!Je.find(Te)))return}return Je.from()})}function xr(pe,Te,Re,je,Ke){return je===void 0&&(je=1),pe.operation(function(){var Je=pe.getCursor(),bt=pe.getSearchCursor(Re,Je),Dt=bt.find(!Te);!Ke.visualMode&&Dt&&ot(bt.from(),Je)&&bt.find(!Te);for(var Et=0;Et<je;Et++)if(Dt=bt.find(Te),!Dt&&(bt=pe.getSearchCursor(Re,Te?new U(pe.lastLine()):new U(pe.firstLine(),0)),!bt.find(Te)))return;return[bt.from(),bt.to()]})}function Nr(pe){var Te=er(pe);pe.removeOverlay(er(pe).getOverlay()),Te.setOverlay(null),Te.getScrollbarAnnotate()&&(Te.getScrollbarAnnotate().clear(),Te.setScrollbarAnnotate(null))}function Mr(pe,Te,Re){return typeof pe!="number"&&(pe=pe.line),Te instanceof Array?lt(pe,Te):typeof Re=="number"?pe>=Te&&pe<=Re:pe==Te}function Zr(pe){var Te=pe.getScrollInfo(),Re=6,je=10,Ke=pe.coordsChar({left:0,top:Re+Te.top},"local"),Je=Te.clientHeight-je+Te.top,bt=pe.coordsChar({left:0,top:Je},"local");return{top:Ke.line,bottom:bt.line}}function ti(pe,Te,Re){if(Re=="'"||Re=="`")return Jt.jumpList.find(pe,-1)||new U(0,0);if(Re==".")return Xr(pe);var je=Te.marks[Re];return je&&je.find()}function Xr(pe){for(var Te=pe.doc.history.done,Re=Te.length;Re--;)if(Te[Re].changes)return xn(Te[Re].changes[0].to)}var ni=function(){this.buildCommandMap_()};ni.prototype={processCommand:function(pe,Te,Re){var je=this;pe.operation(function(){pe.curOp.isVimOp=!0,je._processCommand(pe,Te,Re)})},_processCommand:function(pe,Te,Re){var je=pe.state.vim,Ke=Jt.registerController.getRegister(":"),Je=Ke.toString();je.visualMode&&Er(pe);var bt=new j.StringStream(Te);Ke.setText(Te);var Dt=Re||{};Dt.input=Te;try{this.parseInput_(pe,bt,Dt)}catch(Sn){throw or(pe,Sn.toString()),Sn}var Et,jt;if(!Dt.commandName)Dt.line!==void 0&&(jt="move");else if(Et=this.matchCommand_(Dt.commandName),Et){if(jt=Et.name,Et.excludeFromCommandHistory&&Ke.setText(Je),this.parseCommandArgs_(bt,Dt,Et),Et.type=="exToKey"){for(var Vt=0;Vt<Et.toKeys.length;Vt++)Hn.handleKey(pe,Et.toKeys[Vt],"mapping");return}else if(Et.type=="exToEx"){this.processCommand(pe,Et.toInput);return}}if(!jt){or(pe,'Not an editor command ":'+Te+'"');return}try{qr[jt](pe,Dt),(!Et||!Et.possiblyAsync)&&Dt.callback&&Dt.callback()}catch(Sn){throw or(pe,Sn.toString()),Sn}},parseInput_:function(pe,Te,Re){Te.eatWhile(":"),Te.eat("%")?(Re.line=pe.firstLine(),Re.lineEnd=pe.lastLine()):(Re.line=this.parseLineSpec_(pe,Te),Re.line!==void 0&&Te.eat(",")&&(Re.lineEnd=this.parseLineSpec_(pe,Te)));var je=Te.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return je?Re.commandName=je[1]:Re.commandName=Te.match(/.*/)[0],Re},parseLineSpec_:function(pe,Te){var Re=Te.match(/^(\d+)/);if(Re)return parseInt(Re[1],10)-1;switch(Te.next()){case".":return this.parseLineSpecOffset_(Te,pe.getCursor().line);case"$":return this.parseLineSpecOffset_(Te,pe.lastLine());case"'":var je=Te.next(),Ke=ti(pe,pe.state.vim,je);if(!Ke)throw new Error("Mark not set");return this.parseLineSpecOffset_(Te,Ke.line);case"-":case"+":return Te.backUp(1),this.parseLineSpecOffset_(Te,pe.getCursor().line);default:Te.backUp(1);return}},parseLineSpecOffset_:function(pe,Te){var Re=pe.match(/^([+-])?(\d+)/);if(Re){var je=parseInt(Re[2],10);Re[1]=="-"?Te-=je:Te+=je}return Te},parseCommandArgs_:function(pe,Te,Re){if(!pe.eol()){Te.argString=pe.match(/.*/)[0];var je=Re.argDelimiter||/\s+/,Ke=Kn(Te.argString).split(je);Ke.length&&Ke[0]&&(Te.args=Ke)}},matchCommand_:function(pe){for(var Te=pe.length;Te>0;Te--){var Re=pe.substring(0,Te);if(this.commandMap_[Re]){var je=this.commandMap_[Re];if(je.name.indexOf(pe)===0)return je}}return null},buildCommandMap_:function(){this.commandMap_={};for(var pe=0;pe<G.length;pe++){var Te=G[pe],Re=Te.shortName||Te.name;this.commandMap_[Re]=Te}},map:function(pe,Te,Re){if(pe!=":"&&pe.charAt(0)==":"){if(Re)throw Error("Mode not supported for ex mappings");var je=pe.substring(1);Te!=":"&&Te.charAt(0)==":"?this.commandMap_[je]={name:je,type:"exToEx",toInput:Te.substring(1),user:!0}:this.commandMap_[je]={name:je,type:"exToKey",toKeys:Te,user:!0}}else if(Te!=":"&&Te.charAt(0)==":"){var Ke={keys:pe,type:"keyToEx",exArgs:{input:Te.substring(1)}};Re&&(Ke.context=Re),Y.unshift(Ke)}else{var Ke={keys:pe,type:"keyToKey",toKeys:Te};Re&&(Ke.context=Re),Y.unshift(Ke)}},unmap:function(pe,Te){if(pe!=":"&&pe.charAt(0)==":"){if(Te)throw Error("Mode not supported for ex mappings");var Re=pe.substring(1);if(this.commandMap_[Re]&&this.commandMap_[Re].user)return delete this.commandMap_[Re],!0}else for(var je=pe,Ke=0;Ke<Y.length;Ke++)if(je==Y[Ke].keys&&Y[Ke].context===Te)return Y.splice(Ke,1),!0}};var qr={colorscheme:function(pe,Te){if(!Te.args||Te.args.length<1){or(pe,pe.getOption("theme"));return}pe.setOption("theme",Te.args[0])},map:function(pe,Te,Re){var je=Te.args;if(!je||je.length<2){pe&&or(pe,"Invalid mapping: "+Te.input);return}ei.map(je[0],je[1],Re)},imap:function(pe,Te){this.map(pe,Te,"insert")},nmap:function(pe,Te){this.map(pe,Te,"normal")},vmap:function(pe,Te){this.map(pe,Te,"visual")},unmap:function(pe,Te,Re){var je=Te.args;(!je||je.length<1||!ei.unmap(je[0],Re))&&pe&&or(pe,"No such mapping: "+Te.input)},move:function(pe,Te){_t.processCommand(pe,pe.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:Te.line+1})},set:function(pe,Te){var Re=Te.args,je=Te.setCfg||{};if(!Re||Re.length<1){pe&&or(pe,"Invalid mapping: "+Te.input);return}var Ke=Re[0].split("="),Je=Ke[0],bt=Ke[1],Dt=!1;if(Je.charAt(Je.length-1)=="?"){if(bt)throw Error("Trailing characters: "+Te.argString);Je=Je.substring(0,Je.length-1),Dt=!0}bt===void 0&&Je.substring(0,2)=="no"&&(Je=Je.substring(2),bt=!1);var Et=qe[Je]&&qe[Je].type=="boolean";if(Et&&bt==null&&(bt=!0),!Et&&bt===void 0||Dt){var jt=Nt(Je,pe,je);jt instanceof Error?or(pe,jt.message):jt===!0||jt===!1?or(pe," "+(jt?"":"no")+Je):or(pe," "+Je+"="+jt)}else{var Vt=At(Je,bt,pe,je);Vt instanceof Error&&or(pe,Vt.message)}},setlocal:function(pe,Te){Te.setCfg={scope:"local"},this.set(pe,Te)},setglobal:function(pe,Te){Te.setCfg={scope:"global"},this.set(pe,Te)},registers:function(pe,Te){var Re=Te.args,je=Jt.registerController.registers,Ke=`----------Registers----------
-
- `;if(Re){var Je;Re=Re.join("");for(var Dt=0;Dt<Re.length;Dt++)if(Je=Re.charAt(Dt),!!Jt.registerController.isValidRegister(Je)){var Et=je[Je]||new In;Ke+='"'+Je+" "+Et.toString()+`
- `}}else for(var Je in je){var bt=je[Je].toString();bt.length&&(Ke+='"'+Je+" "+bt+`
- `)}or(pe,Ke)},sort:function(pe,Te){var Re,je,Ke,Je,bt;function Dt(){if(Te.argString){var Kr=new j.StringStream(Te.argString);if(Kr.eat("!")&&(Re=!0),Kr.eol())return;if(!Kr.eatSpace())return"Invalid arguments";var Fr=Kr.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Fr&&!Kr.eol())return"Invalid arguments";if(Fr[1]){je=Fr[1].indexOf("i")!=-1,Ke=Fr[1].indexOf("u")!=-1;var fi=Fr[1].indexOf("d")!=-1||Fr[1].indexOf("n")!=-1&&1,pi=Fr[1].indexOf("x")!=-1&&1,ai=Fr[1].indexOf("o")!=-1&&1;if(fi+pi+ai>1)return"Invalid arguments";Je=fi&&"decimal"||pi&&"hex"||ai&&"octal"}Fr[2]&&(bt=new RegExp(Fr[2].substr(1,Fr[2].length-2),je?"i":""))}}var Et=Dt();if(Et){or(pe,Et+": "+Te.argString);return}var jt=Te.line||pe.firstLine(),Vt=Te.lineEnd||Te.line||pe.lastLine();if(jt==Vt)return;var Sn=new U(jt,0),Mn=new U(Vt,gn(pe,Vt)),bn=pe.getRange(Sn,Mn).split(`
- `),vn=bt||(Je=="decimal"?/(-?)([\d]+)/:Je=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Je=="octal"?/([0-7]+)/:null),ar=Je=="decimal"?10:Je=="hex"?16:Je=="octal"?8:null,Wn=[],Cr=[];if(Je||bt)for(var Pr=0;Pr<bn.length;Pr++){var vr=bt?bn[Pr].match(bt):null;vr&&vr[0]!=""?Wn.push(vr):!bt&&vn.exec(bn[Pr])?Wn.push(bn[Pr]):Cr.push(bn[Pr])}else Cr=bn;function Ur(Kr,Fr){if(Re){var fi;fi=Kr,Kr=Fr,Fr=fi}je&&(Kr=Kr.toLowerCase(),Fr=Fr.toLowerCase());var pi=Je&&vn.exec(Kr),ai=Je&&vn.exec(Fr);return pi?(pi=parseInt((pi[1]+pi[2]).toLowerCase(),ar),ai=parseInt((ai[1]+ai[2]).toLowerCase(),ar),pi-ai):Kr<Fr?-1:1}function ui(Kr,Fr){if(Re){var fi;fi=Kr,Kr=Fr,Fr=fi}return je&&(Kr[0]=Kr[0].toLowerCase(),Fr[0]=Fr[0].toLowerCase()),Kr[0]<Fr[0]?-1:1}if(Wn.sort(bt?ui:Ur),bt)for(var Pr=0;Pr<Wn.length;Pr++)Wn[Pr]=Wn[Pr].input;else Je||Cr.sort(Ur);if(bn=Re?Wn.concat(Cr):Cr.concat(Wn),Ke){var oi=bn,xi;bn=[];for(var Pr=0;Pr<oi.length;Pr++)oi[Pr]!=xi&&bn.push(oi[Pr]),xi=oi[Pr]}pe.replaceRange(bn.join(`
- `),Sn,Mn)},vglobal:function(pe,Te){this.global(pe,Te)},global:function(pe,Te){var Re=Te.argString;if(!Re){or(pe,"Regular Expression missing from global");return}var je=Te.commandName[0]==="v",Ke=Te.line!==void 0?Te.line:pe.firstLine(),Je=Te.lineEnd||Te.line||pe.lastLine(),bt=et(Re),Dt=Re,Et;if(bt.length&&(Dt=bt[0],Et=bt.slice(1,bt.length).join("/")),Dt)try{nn(pe,Dt,!0,!0)}catch{or(pe,"Invalid regex: "+Dt);return}for(var jt=er(pe).getQuery(),Vt=[],Sn=Ke;Sn<=Je;Sn++){var Mn=pe.getLineHandle(Sn),bn=jt.test(Mn.text);bn!==je&&Vt.push(Et?Mn:Mn.text)}if(!Et){or(pe,Vt.join(`
- `));return}var vn=0,ar=function(){if(vn<Vt.length){var Wn=Vt[vn++],Cr=pe.getLineNumber(Wn);if(Cr==null){ar();return}var Pr=Cr+1+Et;ei.processCommand(pe,Pr,{callback:ar})}};ar()},substitute:function(pe,Te){if(!pe.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var Re=Te.argString,je=Re?wt(Re,Re[0]):[],Ke,Je="",bt,Dt,Et,jt=!1,Vt=!1;if(je.length)Ke=je[0],Nt("pcre")&&Ke!==""&&(Ke=new RegExp(Ke).source),Je=je[1],Je!==void 0&&(Nt("pcre")?Je=Cn(Je.replace(/([^\\])&/g,"$1$$&")):Je=tn(Je),Jt.lastSubstituteReplacePart=Je),bt=je[2]?je[2].split(" "):[];else if(Re&&Re.length){or(pe,"Substitutions should be of the form :s/pattern/replace/");return}if(bt&&(Dt=bt[0],Et=parseInt(bt[1]),Dt&&(Dt.indexOf("c")!=-1&&(jt=!0),Dt.indexOf("g")!=-1&&(Vt=!0),Nt("pcre")?Ke=Ke+"/"+Dt:Ke=Ke.replace(/\//g,"\\/")+"/"+Dt)),Ke)try{nn(pe,Ke,!0,!0)}catch{or(pe,"Invalid regex: "+Ke);return}if(Je=Je||Jt.lastSubstituteReplacePart,Je===void 0){or(pe,"No previous substitute regular expression");return}var Sn=er(pe),Mn=Sn.getQuery(),bn=Te.line!==void 0?Te.line:pe.getCursor().line,vn=Te.lineEnd||bn;bn==pe.firstLine()&&vn==pe.lastLine()&&(vn=1/0),Et&&(bn=vn,vn=bn+Et-1);var ar=ht(pe,new U(bn,0)),Wn=pe.getSearchCursor(Mn,ar);mi(pe,jt,Vt,bn,vn,Wn,Mn,Je,Te.callback)},redo:j.commands.redo,undo:j.commands.undo,write:function(pe){j.commands.save?j.commands.save(pe):pe.save&&pe.save()},nohlsearch:function(pe){Nr(pe)},yank:function(pe){var Te=xn(pe.getCursor()),Re=Te.line,je=pe.getLine(Re);Jt.registerController.pushText("0","yank",je,!0,!0)},delmarks:function(pe,Te){if(!Te.argString||!Kn(Te.argString)){or(pe,"Argument required");return}for(var Re=pe.state.vim,je=new j.StringStream(Kn(Te.argString));!je.eol();){je.eatSpace();var Ke=je.pos;if(!je.match(/[a-zA-Z]/,!1)){or(pe,"Invalid argument: "+Te.argString.substring(Ke));return}var Je=je.next();if(je.match("-",!0)){if(!je.match(/[a-zA-Z]/,!1)){or(pe,"Invalid argument: "+Te.argString.substring(Ke));return}var bt=Je,Dt=je.next();if(ke(bt)&&ke(Dt)||ze(bt)&&ze(Dt)){var Et=bt.charCodeAt(0),jt=Dt.charCodeAt(0);if(Et>=jt){or(pe,"Invalid argument: "+Te.argString.substring(Ke));return}for(var Vt=0;Vt<=jt-Et;Vt++){var Sn=String.fromCharCode(Et+Vt);delete Re.marks[Sn]}}else{or(pe,"Invalid argument: "+bt+"-");return}}else delete Re.marks[Je]}}},ei=new ni;function mi(pe,Te,Re,je,Ke,Je,bt,Dt,Et){pe.state.vim.exMode=!0;var jt=!1,Vt,Sn,Mn;function bn(){pe.operation(function(){for(;!jt;)vn(),Wn();Cr()})}function vn(){var vr=pe.getRange(Je.from(),Je.to()),Ur=vr.replace(bt,Dt),ui=Je.to().line;Je.replace(Ur),Sn=Je.to().line,Ke+=Sn-ui,Mn=Sn<ui}function ar(){var vr=Vt&&xn(Je.to()),Ur=Je.findNext();return Ur&&!Ur[0]&&vr&&ot(Je.from(),vr)&&(Ur=Je.findNext()),Ur}function Wn(){for(;ar()&&Mr(Je.from(),je,Ke);)if(!(!Re&&Je.from().line==Sn&&!Mn)){pe.scrollIntoView(Je.from(),30),pe.setSelection(Je.from(),Je.to()),Vt=Je.from(),jt=!1;return}jt=!0}function Cr(vr){if(vr&&vr(),pe.focus(),Vt){pe.setCursor(Vt);var Ur=pe.state.vim;Ur.exMode=!1,Ur.lastHPos=Ur.lastHSPos=Vt.ch}Et&&Et()}function Pr(vr,Ur,ui){j.e_stop(vr);var oi=j.keyName(vr);switch(oi){case"Y":vn(),Wn();break;case"N":Wn();break;case"A":var xi=Et;Et=void 0,pe.operation(bn),Et=xi;break;case"L":vn();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":Cr(ui);break}return jt&&Cr(ui),!0}if(Wn(),jt){or(pe,"No matches for "+bt.source);return}if(!Te){bn(),Et&&Et();return}gt(pe,{prefix:ur("span","replace with ",ur("strong",Dt)," (y/n/a/q/l)"),onKeyDown:Pr})}j.keyMap.vim={attach:te,detach:ee,call:re};function Ai(pe){var Te=pe.state.vim,Re=Jt.macroModeState,je=Jt.registerController.getRegister("."),Ke=Re.isPlaying,Je=Re.lastInsertModeChanges;Ke||(pe.off("change",Ys),j.off(pe.getInputField(),"keydown",$s)),!Ke&&Te.insertModeRepeat>1&&(ps(pe,Te,Te.insertModeRepeat-1,!0),Te.lastEditInputState.repeatOverride=Te.insertModeRepeat),delete Te.insertModeRepeat,Te.insertMode=!1,pe.setCursor(pe.getCursor().line,pe.getCursor().ch-1),pe.setOption("keyMap","vim"),pe.setOption("disableInput",!0),pe.toggleOverwrite(!1),je.setText(Je.changes.join("")),j.signal(pe,"vim-mode-change",{mode:"normal"}),Re.isRecording&&Oo(Re)}function Gi(pe){Y.unshift(pe)}function Co(pe,Te,Re,je,Ke){var Je={keys:pe,type:Te};Je[Te]=Re,Je[Te+"Args"]=je;for(var bt in Ke)Je[bt]=Ke[bt];Gi(Je)}Ve("insertModeEscKeysTimeout",200,"number"),j.keyMap["vim-insert"]={fallthrough:["default"],attach:te,detach:ee,call:re},j.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:te,detach:ee,call:re};function $o(pe,Te,Re,je){var Ke=Jt.registerController.getRegister(je);if(je==":"){Ke.keyBuffer[0]&&ei.processCommand(pe,Ke.keyBuffer[0]),Re.isPlaying=!1;return}var Je=Ke.keyBuffer,bt=0;Re.isPlaying=!0,Re.replaySearchQueries=Ke.searchQueries.slice(0);for(var Dt=0;Dt<Je.length;Dt++)for(var Et=Je[Dt],jt,Vt;Et;)if(jt=/<\w+-.+?>|<\w+>|./.exec(Et),Vt=jt[0],Et=Et.substring(jt.index+Vt.length),Hn.handleKey(pe,Vt,"macro"),Te.insertMode){var Sn=Ke.insertModeChanges[bt++].changes;Jt.macroModeState.lastInsertModeChanges.changes=Sn,ws(pe,Sn,1),Ai(pe)}Re.isPlaying=!1}function To(pe,Te){if(!pe.isPlaying){var Re=pe.latestRegister,je=Jt.registerController.getRegister(Re);je&&je.pushText(Te)}}function Oo(pe){if(!pe.isPlaying){var Te=pe.latestRegister,Re=Jt.registerController.getRegister(Te);Re&&Re.pushInsertModeChanges&&Re.pushInsertModeChanges(pe.lastInsertModeChanges)}}function Xi(pe,Te){if(!pe.isPlaying){var Re=pe.latestRegister,je=Jt.registerController.getRegister(Re);je&&je.pushSearchQuery&&je.pushSearchQuery(Te)}}function Ys(pe,Te){var Re=Jt.macroModeState,je=Re.lastInsertModeChanges;if(!Re.isPlaying)for(;Te;){if(je.expectCursorActivityForChange=!0,je.ignoreCount>1)je.ignoreCount--;else if(Te.origin=="+input"||Te.origin=="paste"||Te.origin===void 0){var Ke=pe.listSelections().length;Ke>1&&(je.ignoreCount=Ke);var Je=Te.text.join(`
- `);je.maybeReset&&(je.changes=[],je.maybeReset=!1),Je&&(pe.state.overwrite&&!/\n/.test(Je)?je.changes.push([Je]):je.changes.push(Je))}Te=Te.next}}function ao(pe){var Te=pe.state.vim;if(Te.insertMode){var Re=Jt.macroModeState;if(Re.isPlaying)return;var je=Re.lastInsertModeChanges;je.expectCursorActivityForChange?je.expectCursorActivityForChange=!1:je.maybeReset=!0}else pe.curOp.isVimOp||Ks(pe,Te)}function Ks(pe,Te){var Re=pe.getCursor("anchor"),je=pe.getCursor("head");if(Te.visualMode&&!pe.somethingSelected()?Er(pe,!1):!Te.visualMode&&!Te.insertMode&&pe.somethingSelected()&&(Te.visualMode=!0,Te.visualLine=!1,j.signal(pe,"vim-mode-change",{mode:"visual"})),Te.visualMode){var Ke=dt(je,Re)?0:-1,Je=dt(je,Re)?-1:0;je=ut(je,0,Ke),Re=ut(Re,0,Je),Te.sel={anchor:Re,head:je},fr(pe,Te,"<",Ot(je,Re)),fr(pe,Te,">",Yt(je,Re))}else Te.insertMode||(Te.lastHPos=pe.getCursor().ch)}function Ns(pe){this.keyName=pe}function $s(pe){var Te=Jt.macroModeState,Re=Te.lastInsertModeChanges,je=j.keyName(pe);if(!je)return;function Ke(){return Re.maybeReset&&(Re.changes=[],Re.maybeReset=!1),Re.changes.push(new Ns(je)),!0}(je.indexOf("Delete")!=-1||je.indexOf("Backspace")!=-1)&&j.lookupKey(je,"vim-insert",Ke)}function ps(pe,Te,Re,je){var Ke=Jt.macroModeState;Ke.isPlaying=!0;var Je=!!Te.lastEditActionCommand,bt=Te.inputState;function Dt(){Je?_t.processAction(pe,Te,Te.lastEditActionCommand):_t.evalInput(pe,Te)}function Et(Vt){if(Ke.lastInsertModeChanges.changes.length>0){Vt=Te.lastEditActionCommand?Vt:1;var Sn=Ke.lastInsertModeChanges;ws(pe,Sn.changes,Vt)}}if(Te.inputState=Te.lastEditInputState,Je&&Te.lastEditActionCommand.interlaceInsertRepeat)for(var jt=0;jt<Re;jt++)Dt(),Et(1);else je||Dt(),Et(Re);Te.inputState=bt,Te.insertMode&&!je&&Ai(pe),Ke.isPlaying=!1}function ws(pe,Te,Re){function je(Sn){return typeof Sn=="string"?j.commands[Sn](pe):Sn(pe),!0}var Ke=pe.getCursor("head"),Je=Jt.macroModeState.lastInsertModeChanges.visualBlock;Je&&(Lt(pe,Ke,Je+1),Re=pe.listSelections().length,pe.setCursor(Ke));for(var bt=0;bt<Re;bt++){Je&&pe.setCursor(ut(Ke,bt,0));for(var Dt=0;Dt<Te.length;Dt++){var Et=Te[Dt];if(Et instanceof Ns)j.lookupKey(Et.keyName,"vim-insert",je);else if(typeof Et=="string")pe.replaceSelection(Et);else{var jt=pe.getCursor(),Vt=ut(jt,0,Et[0].length);pe.replaceRange(Et[0],jt,Vt),pe.setCursor(Vt)}}}Je&&pe.setCursor(ut(Ke,0,1))}function Ts(pe){var Te=new pe.constructor;return Object.keys(pe).forEach(function(Re){var je=pe[Re];Array.isArray(je)?je=je.slice():je&&typeof je=="object"&&je.constructor!=Object&&(je=Ts(je)),Te[Re]=je}),pe.sel&&(Te.sel={head:pe.sel.head&&xn(pe.sel.head),anchor:pe.sel.anchor&&xn(pe.sel.anchor)}),Te}function Gs(pe,Te,Re){var je=!1,Ke=Hn.maybeInitVimState_(pe),Je=Ke.visualBlock||Ke.wasInVisualBlock,bt=pe.isInMultiSelectMode();if(Ke.wasInVisualBlock&&!bt?Ke.wasInVisualBlock=!1:bt&&Ke.visualBlock&&(Ke.wasInVisualBlock=!0),Te=="<Esc>"&&!Ke.insertMode&&!Ke.visualMode&&bt&&Ke.status=="<Esc>")Fn(pe);else if(Je||!bt||pe.inVirtualSelectionMode)je=Hn.handleKey(pe,Te,Re);else{var Dt=Ts(Ke);pe.operation(function(){pe.curOp.isVimOp=!0,pe.forEachSelection(function(){var Et=pe.getCursor("head"),jt=pe.getCursor("anchor"),Vt=dt(Et,jt)?0:-1,Sn=dt(Et,jt)?-1:0;Et=ut(Et,0,Vt),jt=ut(jt,0,Sn),pe.state.vim.sel.head=Et,pe.state.vim.sel.anchor=jt,je=Hn.handleKey(pe,Te,Re),pe.virtualSelection&&(pe.state.vim=Ts(Dt))}),pe.curOp.cursorActivity&&!je&&(pe.curOp.cursorActivity=!1),pe.state.vim=Ke},!0)}return je&&!Ke.visualMode&&!Ke.insert&&Ke.visualMode!=pe.somethingSelected()&&Ks(pe,Ke),je}return yn(),Hn}function B(j){return j.Vim=N(j),j.Vim}I.Vim=B(I)})})();var css={exports:{}};(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("css",function(oe,ye){var be=ye.inline;ye.propertyKeywords||(ye=I.resolveMode("text/css"));var we=oe.indentUnit,Ae=ye.tokenHooks,ke=ye.documentTypes||{},Oe=ye.mediaTypes||{},Me=ye.mediaFeatures||{},ze=ye.mediaValueKeywords||{},Fe=ye.propertyKeywords||{},Ze=ye.nonStandardPropertyKeywords||{},lt=ye.fontProperties||{},qe=ye.counterDescriptors||{},Ve=ye.colorKeywords||{},At=ye.valueKeywords||{},Nt=ye.allowNested,zt=ye.lineComment,Ht=ye.supportsAtComponent===!0,qt=oe.highlightNonStandardPropertyKeywords!==!1,Qt,Jt;function yn(Pe,Se){return Qt=Se,Pe}function _n(Pe,Se){var $e=Pe.next();if(Ae[$e]){var Ue=Ae[$e](Pe,Se);if(Ue!==!1)return Ue}if($e=="@")return Pe.eatWhile(/[\w\\\-]/),yn("def",Pe.current());if($e=="="||($e=="~"||$e=="|")&&Pe.eat("="))return yn(null,"compare");if($e=='"'||$e=="'")return Se.tokenize=Hn($e),Se.tokenize(Pe,Se);if($e=="#")return Pe.eatWhile(/[\w\\\-]/),yn("atom","hash");if($e=="!")return Pe.match(/^\s*\w*/),yn("keyword","important");if(/\d/.test($e)||$e=="."&&Pe.eat(/\d/))return Pe.eatWhile(/[\w.%]/),yn("number","unit");if($e==="-"){if(/[\d.]/.test(Pe.peek()))return Pe.eatWhile(/[\w.%]/),yn("number","unit");if(Pe.match(/^-[\w\\\-]*/))return Pe.eatWhile(/[\w\\\-]/),Pe.match(/^\s*:/,!1)?yn("variable-2","variable-definition"):yn("variable-2","variable");if(Pe.match(/^\w+-/))return yn("meta","meta")}else return/[,+>*\/]/.test($e)?yn(null,"select-op"):$e=="."&&Pe.match(/^-?[_a-z][_a-z0-9-]*/i)?yn("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test($e)?yn(null,$e):Pe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Pe.current())&&(Se.tokenize=On),yn("variable callee","variable")):/[\w\\\-]/.test($e)?(Pe.eatWhile(/[\w\\\-]/),yn("property","word")):yn(null,null)}function Hn(Pe){return function(Se,$e){for(var Ue=!1,Qe;(Qe=Se.next())!=null;){if(Qe==Pe&&!Ue){Pe==")"&&Se.backUp(1);break}Ue=!Ue&&Qe=="\\"}return(Qe==Pe||!Ue&&Pe!=")")&&($e.tokenize=null),yn("string","string")}}function On(Pe,Se){return Pe.next(),Pe.match(/^\s*[\"\')]/,!1)?Se.tokenize=null:Se.tokenize=Hn(")"),yn(null,"(")}function Fn(Pe,Se,$e){this.type=Pe,this.indent=Se,this.prev=$e}function In(Pe,Se,$e,Ue){return Pe.context=new Fn($e,Se.indentation()+(Ue===!1?0:we),Pe.context),$e}function dn(Pe){return Pe.context.prev&&(Pe.context=Pe.context.prev),Pe.context.type}function kt(Pe,Se,$e){return We[$e.context.type](Pe,Se,$e)}function Ye(Pe,Se,$e,Ue){for(var Qe=Ue||1;Qe>0;Qe--)$e.context=$e.context.prev;return kt(Pe,Se,$e)}function _t(Pe){var Se=Pe.current().toLowerCase();At.hasOwnProperty(Se)?Jt="atom":Ve.hasOwnProperty(Se)?Jt="keyword":Jt="variable"}var We={};return We.top=function(Pe,Se,$e){if(Pe=="{")return In($e,Se,"block");if(Pe=="}"&&$e.context.prev)return dn($e);if(Ht&&/@component/i.test(Pe))return In($e,Se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Pe))return In($e,Se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Pe))return In($e,Se,"atBlock");if(/^@(font-face|counter-style)/i.test(Pe))return $e.stateArg=Pe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Pe))return"keyframes";if(Pe&&Pe.charAt(0)=="@")return In($e,Se,"at");if(Pe=="hash")Jt="builtin";else if(Pe=="word")Jt="tag";else{if(Pe=="variable-definition")return"maybeprop";if(Pe=="interpolation")return In($e,Se,"interpolation");if(Pe==":")return"pseudo";if(Nt&&Pe=="(")return In($e,Se,"parens")}return $e.context.type},We.block=function(Pe,Se,$e){if(Pe=="word"){var Ue=Se.current().toLowerCase();return Fe.hasOwnProperty(Ue)?(Jt="property","maybeprop"):Ze.hasOwnProperty(Ue)?(Jt=qt?"string-2":"property","maybeprop"):Nt?(Jt=Se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Jt+=" error","maybeprop")}else return Pe=="meta"?"block":!Nt&&(Pe=="hash"||Pe=="qualifier")?(Jt="error","block"):We.top(Pe,Se,$e)},We.maybeprop=function(Pe,Se,$e){return Pe==":"?In($e,Se,"prop"):kt(Pe,Se,$e)},We.prop=function(Pe,Se,$e){if(Pe==";")return dn($e);if(Pe=="{"&&Nt)return In($e,Se,"propBlock");if(Pe=="}"||Pe=="{")return Ye(Pe,Se,$e);if(Pe=="(")return In($e,Se,"parens");if(Pe=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Se.current()))Jt+=" error";else if(Pe=="word")_t(Se);else if(Pe=="interpolation")return In($e,Se,"interpolation");return"prop"},We.propBlock=function(Pe,Se,$e){return Pe=="}"?dn($e):Pe=="word"?(Jt="property","maybeprop"):$e.context.type},We.parens=function(Pe,Se,$e){return Pe=="{"||Pe=="}"?Ye(Pe,Se,$e):Pe==")"?dn($e):Pe=="("?In($e,Se,"parens"):Pe=="interpolation"?In($e,Se,"interpolation"):(Pe=="word"&&_t(Se),"parens")},We.pseudo=function(Pe,Se,$e){return Pe=="meta"?"pseudo":Pe=="word"?(Jt="variable-3",$e.context.type):kt(Pe,Se,$e)},We.documentTypes=function(Pe,Se,$e){return Pe=="word"&&ke.hasOwnProperty(Se.current())?(Jt="tag",$e.context.type):We.atBlock(Pe,Se,$e)},We.atBlock=function(Pe,Se,$e){if(Pe=="(")return In($e,Se,"atBlock_parens");if(Pe=="}"||Pe==";")return Ye(Pe,Se,$e);if(Pe=="{")return dn($e)&&In($e,Se,Nt?"block":"top");if(Pe=="interpolation")return In($e,Se,"interpolation");if(Pe=="word"){var Ue=Se.current().toLowerCase();Ue=="only"||Ue=="not"||Ue=="and"||Ue=="or"?Jt="keyword":Oe.hasOwnProperty(Ue)?Jt="attribute":Me.hasOwnProperty(Ue)?Jt="property":ze.hasOwnProperty(Ue)?Jt="keyword":Fe.hasOwnProperty(Ue)?Jt="property":Ze.hasOwnProperty(Ue)?Jt=qt?"string-2":"property":At.hasOwnProperty(Ue)?Jt="atom":Ve.hasOwnProperty(Ue)?Jt="keyword":Jt="error"}return $e.context.type},We.atComponentBlock=function(Pe,Se,$e){return Pe=="}"?Ye(Pe,Se,$e):Pe=="{"?dn($e)&&In($e,Se,Nt?"block":"top",!1):(Pe=="word"&&(Jt="error"),$e.context.type)},We.atBlock_parens=function(Pe,Se,$e){return Pe==")"?dn($e):Pe=="{"||Pe=="}"?Ye(Pe,Se,$e,2):We.atBlock(Pe,Se,$e)},We.restricted_atBlock_before=function(Pe,Se,$e){return Pe=="{"?In($e,Se,"restricted_atBlock"):Pe=="word"&&$e.stateArg=="@counter-style"?(Jt="variable","restricted_atBlock_before"):kt(Pe,Se,$e)},We.restricted_atBlock=function(Pe,Se,$e){return Pe=="}"?($e.stateArg=null,dn($e)):Pe=="word"?($e.stateArg=="@font-face"&&!lt.hasOwnProperty(Se.current().toLowerCase())||$e.stateArg=="@counter-style"&&!qe.hasOwnProperty(Se.current().toLowerCase())?Jt="error":Jt="property","maybeprop"):"restricted_atBlock"},We.keyframes=function(Pe,Se,$e){return Pe=="word"?(Jt="variable","keyframes"):Pe=="{"?In($e,Se,"top"):kt(Pe,Se,$e)},We.at=function(Pe,Se,$e){return Pe==";"?dn($e):Pe=="{"||Pe=="}"?Ye(Pe,Se,$e):(Pe=="word"?Jt="tag":Pe=="hash"&&(Jt="builtin"),"at")},We.interpolation=function(Pe,Se,$e){return Pe=="}"?dn($e):Pe=="{"||Pe==";"?Ye(Pe,Se,$e):(Pe=="word"?Jt="variable":Pe!="variable"&&Pe!="("&&Pe!=")"&&(Jt="error"),"interpolation")},{startState:function(Pe){return{tokenize:null,state:be?"block":"top",stateArg:null,context:new Fn(be?"block":"top",Pe||0,null)}},token:function(Pe,Se){if(!Se.tokenize&&Pe.eatSpace())return null;var $e=(Se.tokenize||_n)(Pe,Se);return $e&&typeof $e=="object"&&(Qt=$e[1],$e=$e[0]),Jt=$e,Qt!="comment"&&(Se.state=We[Se.state](Qt,Pe,Se)),Jt},indent:function(Pe,Se){var $e=Pe.context,Ue=Se&&Se.charAt(0),Qe=$e.indent;return $e.type=="prop"&&(Ue=="}"||Ue==")")&&($e=$e.prev),$e.prev&&(Ue=="}"&&($e.type=="block"||$e.type=="top"||$e.type=="interpolation"||$e.type=="restricted_atBlock")?($e=$e.prev,Qe=$e.indent):(Ue==")"&&($e.type=="parens"||$e.type=="atBlock_parens")||Ue=="{"&&($e.type=="at"||$e.type=="atBlock"))&&(Qe=Math.max(0,$e.indent-we))),Qe},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:zt,fold:"brace"}});function N(oe){for(var ye={},be=0;be<oe.length;++be)ye[oe[be].toLowerCase()]=!0;return ye}var B=["domain","regexp","url","url-prefix"],j=N(B),U=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],q=N(U),Y=["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"],K=N(Y),G=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],J=N(G),Z=["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"],ee=N(Z),te=["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"],re=N(te),se=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],ne=N(se),le=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],ge=N(le),ue=["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"],_e=N(ue),fe=["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"],me=N(fe),ve=B.concat(U).concat(Y).concat(G).concat(Z).concat(te).concat(ue).concat(fe);I.registerHelper("hintWords","css",ve);function xe(oe,ye){for(var be=!1,we;(we=oe.next())!=null;){if(be&&we=="/"){ye.tokenize=null;break}be=we=="*"}return["comment","comment"]}I.defineMIME("text/css",{documentTypes:j,mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:re,fontProperties:ne,counterDescriptors:ge,colorKeywords:_e,valueKeywords:me,tokenHooks:{"/":function(oe,ye){return oe.eat("*")?(ye.tokenize=xe,xe(oe,ye)):!1}},name:"css"}),I.defineMIME("text/x-scss",{mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:re,colorKeywords:_e,valueKeywords:me,fontProperties:ne,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(oe,ye){return oe.eat("/")?(oe.skipToEnd(),["comment","comment"]):oe.eat("*")?(ye.tokenize=xe,xe(oe,ye)):["operator","operator"]},":":function(oe){return oe.match(/^\s*\{/,!1)?[null,null]:!1},$:function(oe){return oe.match(/^[\w-]+/),oe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(oe){return oe.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),I.defineMIME("text/x-less",{mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:re,colorKeywords:_e,valueKeywords:me,fontProperties:ne,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(oe,ye){return oe.eat("/")?(oe.skipToEnd(),["comment","comment"]):oe.eat("*")?(ye.tokenize=xe,xe(oe,ye)):["operator","operator"]},"@":function(oe){return oe.eat("{")?[null,"interpolation"]:oe.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(oe.eatWhile(/[\w\\\-]/),oe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),I.defineMIME("text/x-gss",{documentTypes:j,mediaTypes:q,mediaFeatures:K,propertyKeywords:ee,nonStandardPropertyKeywords:re,fontProperties:ne,counterDescriptors:ge,colorKeywords:_e,valueKeywords:me,supportsAtComponent:!0,tokenHooks:{"/":function(oe,ye){return oe.eat("*")?(ye.tokenize=xe,xe(oe,ye)):!1}},name:"css",helperType:"gss"})})})();var cssExports=css.exports,clike={exports:{}};(function(M,$){(function(I){I(requireCodemirror())})(function(I){function N(ze,Fe,Ze,lt,qe,Ve){this.indented=ze,this.column=Fe,this.type=Ze,this.info=lt,this.align=qe,this.prev=Ve}function B(ze,Fe,Ze,lt){var qe=ze.indented;return ze.context&&ze.context.type=="statement"&&Ze!="statement"&&(qe=ze.context.indented),ze.context=new N(qe,Fe,Ze,lt,null,ze.context)}function j(ze){var Fe=ze.context.type;return(Fe==")"||Fe=="]"||Fe=="}")&&(ze.indented=ze.context.indented),ze.context=ze.context.prev}function U(ze,Fe,Ze){if(Fe.prevToken=="variable"||Fe.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(ze.string.slice(0,Ze))||Fe.typeAtEndOfLine&&ze.column()==ze.indentation())return!0}function q(ze){for(;;){if(!ze||ze.type=="top")return!0;if(ze.type=="}"&&ze.prev.info!="namespace")return!1;ze=ze.prev}}I.defineMode("clike",function(ze,Fe){var Ze=ze.indentUnit,lt=Fe.statementIndentUnit||Ze,qe=Fe.dontAlignCalls,Ve=Fe.keywords||{},At=Fe.types||{},Nt=Fe.builtin||{},zt=Fe.blockKeywords||{},Ht=Fe.defKeywords||{},qt=Fe.atoms||{},Qt=Fe.hooks||{},Jt=Fe.multiLineStrings,yn=Fe.indentStatements!==!1,_n=Fe.indentSwitch!==!1,Hn=Fe.namespaceSeparator,On=Fe.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Fn=Fe.numberStart||/[\d\.]/,In=Fe.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,dn=Fe.isOperatorChar||/[+\-*&%=<>!?|\/]/,kt=Fe.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Ye=Fe.isReservedIdentifier||!1,_t,We;function Pe(Qe,mt){var ht=Qe.next();if(Qt[ht]){var at=Qt[ht](Qe,mt);if(at!==!1)return at}if(ht=='"'||ht=="'")return mt.tokenize=Se(ht),mt.tokenize(Qe,mt);if(Fn.test(ht)){if(Qe.backUp(1),Qe.match(In))return"number";Qe.next()}if(On.test(ht))return _t=ht,null;if(ht=="/"){if(Qe.eat("*"))return mt.tokenize=$e,$e(Qe,mt);if(Qe.eat("/"))return Qe.skipToEnd(),"comment"}if(dn.test(ht)){for(;!Qe.match(/^\/[\/*]/,!1)&&Qe.eat(dn););return"operator"}if(Qe.eatWhile(kt),Hn)for(;Qe.match(Hn);)Qe.eatWhile(kt);var ut=Qe.current();return K(Ve,ut)?(K(zt,ut)&&(_t="newstatement"),K(Ht,ut)&&(We=!0),"keyword"):K(At,ut)?"type":K(Nt,ut)||Ye&&Ye(ut)?(K(zt,ut)&&(_t="newstatement"),"builtin"):K(qt,ut)?"atom":"variable"}function Se(Qe){return function(mt,ht){for(var at=!1,ut,Rt=!1;(ut=mt.next())!=null;){if(ut==Qe&&!at){Rt=!0;break}at=!at&&ut=="\\"}return(Rt||!(at||Jt))&&(ht.tokenize=null),"string"}}function $e(Qe,mt){for(var ht=!1,at;at=Qe.next();){if(at=="/"&&ht){mt.tokenize=null;break}ht=at=="*"}return"comment"}function Ue(Qe,mt){Fe.typeFirstDefinitions&&Qe.eol()&&q(mt.context)&&(mt.typeAtEndOfLine=U(Qe,mt,Qe.pos))}return{startState:function(Qe){return{tokenize:null,context:new N((Qe||0)-Ze,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Qe,mt){var ht=mt.context;if(Qe.sol()&&(ht.align==null&&(ht.align=!1),mt.indented=Qe.indentation(),mt.startOfLine=!0),Qe.eatSpace())return Ue(Qe,mt),null;_t=We=null;var at=(mt.tokenize||Pe)(Qe,mt);if(at=="comment"||at=="meta")return at;if(ht.align==null&&(ht.align=!0),_t==";"||_t==":"||_t==","&&Qe.match(/^\s*(?:\/\/.*)?$/,!1))for(;mt.context.type=="statement";)j(mt);else if(_t=="{")B(mt,Qe.column(),"}");else if(_t=="[")B(mt,Qe.column(),"]");else if(_t=="(")B(mt,Qe.column(),")");else if(_t=="}"){for(;ht.type=="statement";)ht=j(mt);for(ht.type=="}"&&(ht=j(mt));ht.type=="statement";)ht=j(mt)}else _t==ht.type?j(mt):yn&&((ht.type=="}"||ht.type=="top")&&_t!=";"||ht.type=="statement"&&_t=="newstatement")&&B(mt,Qe.column(),"statement",Qe.current());if(at=="variable"&&(mt.prevToken=="def"||Fe.typeFirstDefinitions&&U(Qe,mt,Qe.start)&&q(mt.context)&&Qe.match(/^\s*\(/,!1))&&(at="def"),Qt.token){var ut=Qt.token(Qe,mt,at);ut!==void 0&&(at=ut)}return at=="def"&&Fe.styleDefs===!1&&(at="variable"),mt.startOfLine=!1,mt.prevToken=We?"def":at||_t,Ue(Qe,mt),at},indent:function(Qe,mt){if(Qe.tokenize!=Pe&&Qe.tokenize!=null||Qe.typeAtEndOfLine)return I.Pass;var ht=Qe.context,at=mt&&mt.charAt(0),ut=at==ht.type;if(ht.type=="statement"&&at=="}"&&(ht=ht.prev),Fe.dontIndentStatements)for(;ht.type=="statement"&&Fe.dontIndentStatements.test(ht.info);)ht=ht.prev;if(Qt.indent){var Rt=Qt.indent(Qe,ht,mt,Ze);if(typeof Rt=="number")return Rt}var fn=ht.prev&&ht.prev.info=="switch";if(Fe.allmanIndentation&&/[{(]/.test(at)){for(;ht.type!="top"&&ht.type!="}";)ht=ht.prev;return ht.indented}return ht.type=="statement"?ht.indented+(at=="{"?0:lt):ht.align&&(!qe||ht.type!=")")?ht.column+(ut?0:1):ht.type==")"&&!ut?ht.indented+lt:ht.indented+(ut?0:Ze)+(!ut&&fn&&!/^(?:case|default)\b/.test(mt)?Ze:0)},electricInput:_n?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function Y(ze){for(var Fe={},Ze=ze.split(" "),lt=0;lt<Ze.length;++lt)Fe[Ze[lt]]=!0;return Fe}function K(ze,Fe){return typeof ze=="function"?ze(Fe):ze.propertyIsEnumerable(Fe)}var G="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",J="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",Z="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",ee="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",te=Y("int long char short double float unsigned signed void bool"),re=Y("SEL instancetype id Class Protocol BOOL");function se(ze){return K(te,ze)||/.+_t$/.test(ze)}function ne(ze){return se(ze)||K(re,ze)}var le="case do else for if switch while struct enum union",ge="struct enum union";function ue(ze,Fe){if(!Fe.startOfLine)return!1;for(var Ze,lt=null;Ze=ze.peek();){if(Ze=="\\"&&ze.match(/^.$/)){lt=ue;break}else if(Ze=="/"&&ze.match(/^\/[\/\*]/,!1))break;ze.next()}return Fe.tokenize=lt,"meta"}function _e(ze,Fe){return Fe.prevToken=="type"?"type":!1}function fe(ze){return!ze||ze.length<2||ze[0]!="_"?!1:ze[1]=="_"||ze[1]!==ze[1].toLowerCase()}function me(ze){return ze.eatWhile(/[\w\.']/),"number"}function ve(ze,Fe){if(ze.backUp(1),ze.match(/^(?:R|u8R|uR|UR|LR)/)){var Ze=ze.match(/^"([^\s\\()]{0,16})\(/);return Ze?(Fe.cpp11RawStringDelim=Ze[1],Fe.tokenize=ye,ye(ze,Fe)):!1}return ze.match(/^(?:u8|u|U|L)/)?ze.match(/^["']/,!1)?"string":!1:(ze.next(),!1)}function xe(ze){var Fe=/(\w+)::~?(\w+)$/.exec(ze);return Fe&&Fe[1]==Fe[2]}function oe(ze,Fe){for(var Ze;(Ze=ze.next())!=null;)if(Ze=='"'&&!ze.eat('"')){Fe.tokenize=null;break}return"string"}function ye(ze,Fe){var Ze=Fe.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),lt=ze.match(new RegExp(".*?\\)"+Ze+'"'));return lt?Fe.tokenize=null:ze.skipToEnd(),"string"}function be(ze,Fe){typeof ze=="string"&&(ze=[ze]);var Ze=[];function lt(Ve){if(Ve)for(var At in Ve)Ve.hasOwnProperty(At)&&Ze.push(At)}lt(Fe.keywords),lt(Fe.types),lt(Fe.builtin),lt(Fe.atoms),Ze.length&&(Fe.helperType=ze[0],I.registerHelper("hintWords",ze[0],Ze));for(var qe=0;qe<ze.length;++qe)I.defineMIME(ze[qe],Fe)}be(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:Y(G),types:se,blockKeywords:Y(le),defKeywords:Y(ge),typeFirstDefinitions:!0,atoms:Y("NULL true false"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e},modeProps:{fold:["brace","include"]}}),be(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:Y(G+" "+J),types:se,blockKeywords:Y(le+" class try catch"),defKeywords:Y(ge+" class namespace"),typeFirstDefinitions:!0,atoms:Y("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:fe,hooks:{"#":ue,"*":_e,u:ve,U:ve,L:ve,R:ve,0:me,1:me,2:me,3:me,4:me,5:me,6:me,7:me,8:me,9:me,token:function(ze,Fe,Ze){if(Ze=="variable"&&ze.peek()=="("&&(Fe.prevToken==";"||Fe.prevToken==null||Fe.prevToken=="}")&&xe(ze.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),be("text/x-java",{name:"clike",keywords:Y("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:Y("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:Y("catch class do else finally for if switch try while"),defKeywords:Y("class interface enum @interface"),typeFirstDefinitions:!0,atoms:Y("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(ze){return ze.match("interface",!1)?!1:(ze.eatWhile(/[\w\$_]/),"meta")},'"':function(ze,Fe){return ze.match(/""$/)?(Fe.tokenize=we,Fe.tokenize(ze,Fe)):!1}},modeProps:{fold:["brace","import"]}}),be("text/x-csharp",{name:"clike",keywords:Y("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:Y("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:Y("catch class do else finally for foreach if struct switch try while"),defKeywords:Y("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:Y("true false null"),hooks:{"@":function(ze,Fe){return ze.eat('"')?(Fe.tokenize=oe,oe(ze,Fe)):(ze.eatWhile(/[\w\$_]/),"meta")}}});function we(ze,Fe){for(var Ze=!1;!ze.eol();){if(!Ze&&ze.match('"""')){Fe.tokenize=null;break}Ze=ze.next()=="\\"&&!Ze}return"string"}function Ae(ze){return function(Fe,Ze){for(var lt;lt=Fe.next();)if(lt=="*"&&Fe.eat("/"))if(ze==1){Ze.tokenize=null;break}else return Ze.tokenize=Ae(ze-1),Ze.tokenize(Fe,Ze);else if(lt=="/"&&Fe.eat("*"))return Ze.tokenize=Ae(ze+1),Ze.tokenize(Fe,Ze);return"comment"}}be("text/x-scala",{name:"clike",keywords:Y("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:Y("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:Y("catch class enum do else finally for forSome if match switch try while"),defKeywords:Y("class enum def object package trait type val var"),atoms:Y("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(ze){return ze.eatWhile(/[\w\$_]/),"meta"},'"':function(ze,Fe){return ze.match('""')?(Fe.tokenize=we,Fe.tokenize(ze,Fe)):!1},"'":function(ze){return ze.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(ze,Fe){var Ze=Fe.context;return Ze.type=="}"&&Ze.align&&ze.eat(">")?(Fe.context=new N(Ze.indented,Ze.column,Ze.type,Ze.info,null,Ze.prev),"operator"):!1},"/":function(ze,Fe){return ze.eat("*")?(Fe.tokenize=Ae(1),Fe.tokenize(ze,Fe)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function ke(ze){return function(Fe,Ze){for(var lt=!1,qe,Ve=!1;!Fe.eol();){if(!ze&&!lt&&Fe.match('"')){Ve=!0;break}if(ze&&Fe.match('"""')){Ve=!0;break}qe=Fe.next(),!lt&&qe=="$"&&Fe.match("{")&&Fe.skipTo("}"),lt=!lt&&qe=="\\"&&!ze}return(Ve||!ze)&&(Ze.tokenize=null),"string"}}be("text/x-kotlin",{name:"clike",keywords:Y("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:Y("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:Y("catch class do else finally for if where try while enum"),defKeywords:Y("class val var object interface fun"),atoms:Y("true false null this"),hooks:{"@":function(ze){return ze.eatWhile(/[\w\$_]/),"meta"},"*":function(ze,Fe){return Fe.prevToken=="."?"variable":"operator"},'"':function(ze,Fe){return Fe.tokenize=ke(ze.match('""')),Fe.tokenize(ze,Fe)},"/":function(ze,Fe){return ze.eat("*")?(Fe.tokenize=Ae(1),Fe.tokenize(ze,Fe)):!1},indent:function(ze,Fe,Ze,lt){var qe=Ze&&Ze.charAt(0);if((ze.prevToken=="}"||ze.prevToken==")")&&Ze=="")return ze.indented;if(ze.prevToken=="operator"&&Ze!="}"&&ze.context.type!="}"||ze.prevToken=="variable"&&qe=="."||(ze.prevToken=="}"||ze.prevToken==")")&&qe==".")return lt*2+Fe.indented;if(Fe.align&&Fe.type=="}")return Fe.indented+(ze.context.type==(Ze||"").charAt(0)?0:lt)}},modeProps:{closeBrackets:{triples:'"'}}}),be(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:Y("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:Y("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:Y("for while do if else struct"),builtin:Y("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:Y("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":ue},modeProps:{fold:["brace","include"]}}),be("text/x-nesc",{name:"clike",keywords:Y(G+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:se,blockKeywords:Y(le),atoms:Y("null true false"),hooks:{"#":ue},modeProps:{fold:["brace","include"]}}),be("text/x-objectivec",{name:"clike",keywords:Y(G+" "+Z),types:ne,builtin:Y(ee),blockKeywords:Y(le+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:Y(ge+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:Y("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e},modeProps:{fold:["brace","include"]}}),be("text/x-objectivec++",{name:"clike",keywords:Y(G+" "+Z+" "+J),types:ne,builtin:Y(ee),blockKeywords:Y(le+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:Y(ge+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:Y("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e,u:ve,U:ve,L:ve,R:ve,0:me,1:me,2:me,3:me,4:me,5:me,6:me,7:me,8:me,9:me,token:function(ze,Fe,Ze){if(Ze=="variable"&&ze.peek()=="("&&(Fe.prevToken==";"||Fe.prevToken==null||Fe.prevToken=="}")&&xe(ze.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),be("text/x-squirrel",{name:"clike",keywords:Y("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:se,blockKeywords:Y("case catch class else for foreach if switch try while"),defKeywords:Y("function local class"),typeFirstDefinitions:!0,atoms:Y("true false null"),hooks:{"#":ue},modeProps:{fold:["brace","include"]}});var Oe=null;function Me(ze){return function(Fe,Ze){for(var lt=!1,qe,Ve=!1;!Fe.eol();){if(!lt&&Fe.match('"')&&(ze=="single"||Fe.match('""'))){Ve=!0;break}if(!lt&&Fe.match("``")){Oe=Me(ze),Ve=!0;break}qe=Fe.next(),lt=ze=="single"&&!lt&&qe=="\\"}return Ve&&(Ze.tokenize=null),"string"}}be("text/x-ceylon",{name:"clike",keywords:Y("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(ze){var Fe=ze.charAt(0);return Fe===Fe.toUpperCase()&&Fe!==Fe.toLowerCase()},blockKeywords:Y("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:Y("class dynamic function interface module object package value"),builtin:Y("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:Y("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(ze){return ze.eatWhile(/[\w\$_]/),"meta"},'"':function(ze,Fe){return Fe.tokenize=Me(ze.match('""')?"triple":"single"),Fe.tokenize(ze,Fe)},"`":function(ze,Fe){return!Oe||!ze.match("`")?!1:(Fe.tokenize=Oe,Oe=null,Fe.tokenize(ze,Fe))},"'":function(ze){return ze.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(ze,Fe,Ze){if((Ze=="variable"||Ze=="type")&&Fe.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();var clikeExports=clike.exports;(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("diff",function(){var N={"+":"positive","-":"negative","@":"meta"};return{token:function(B){var j=B.string.search(/[\t ]+?$/);if(!B.sol()||j===0)return B.skipToEnd(),("error "+(N[B.string.charAt(0)]||"")).replace(/ $/,"");var U=N[B.peek()]||B.skipToEnd();return j===-1?B.skipToEnd():B.pos=j,U}}}),I.defineMIME("text/x-diff","diff")})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("go",function(N){var B=N.indentUnit,j={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},U={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},q=/[+\-*&^%:=<>!|\/]/,Y;function K(re,se){var ne=re.next();if(ne=='"'||ne=="'"||ne=="`")return se.tokenize=G(ne),se.tokenize(re,se);if(/[\d\.]/.test(ne))return ne=="."?re.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):ne=="0"?re.match(/^[xX][0-9a-fA-F]+/)||re.match(/^0[0-7]+/):re.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(ne))return Y=ne,null;if(ne=="/"){if(re.eat("*"))return se.tokenize=J,J(re,se);if(re.eat("/"))return re.skipToEnd(),"comment"}if(q.test(ne))return re.eatWhile(q),"operator";re.eatWhile(/[\w\$_\xa1-\uffff]/);var le=re.current();return j.propertyIsEnumerable(le)?((le=="case"||le=="default")&&(Y="case"),"keyword"):U.propertyIsEnumerable(le)?"atom":"variable"}function G(re){return function(se,ne){for(var le=!1,ge,ue=!1;(ge=se.next())!=null;){if(ge==re&&!le){ue=!0;break}le=!le&&re!="`"&&ge=="\\"}return(ue||!(le||re=="`"))&&(ne.tokenize=K),"string"}}function J(re,se){for(var ne=!1,le;le=re.next();){if(le=="/"&&ne){se.tokenize=K;break}ne=le=="*"}return"comment"}function Z(re,se,ne,le,ge){this.indented=re,this.column=se,this.type=ne,this.align=le,this.prev=ge}function ee(re,se,ne){return re.context=new Z(re.indented,se,ne,null,re.context)}function te(re){if(re.context.prev){var se=re.context.type;return(se==")"||se=="]"||se=="}")&&(re.indented=re.context.indented),re.context=re.context.prev}}return{startState:function(re){return{tokenize:null,context:new Z((re||0)-B,0,"top",!1),indented:0,startOfLine:!0}},token:function(re,se){var ne=se.context;if(re.sol()&&(ne.align==null&&(ne.align=!1),se.indented=re.indentation(),se.startOfLine=!0,ne.type=="case"&&(ne.type="}")),re.eatSpace())return null;Y=null;var le=(se.tokenize||K)(re,se);return le=="comment"||(ne.align==null&&(ne.align=!0),Y=="{"?ee(se,re.column(),"}"):Y=="["?ee(se,re.column(),"]"):Y=="("?ee(se,re.column(),")"):Y=="case"?ne.type="case":(Y=="}"&&ne.type=="}"||Y==ne.type)&&te(se),se.startOfLine=!1),le},indent:function(re,se){if(re.tokenize!=K&&re.tokenize!=null)return I.Pass;var ne=re.context,le=se&&se.charAt(0);if(ne.type=="case"&&/^(?:case|default)\b/.test(se))return re.context.type="}",ne.indented;var ge=le==ne.type;return ne.align?ne.column+(ge?0:1):ne.indented+(ge?0:B)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),I.defineMIME("text/x-go","go")})})();var markdown$1={exports:{}},xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){var N={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},B={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(j,U){var q=j.indentUnit,Y={},K=U.htmlMode?N:B;for(var G in K)Y[G]=K[G];for(var G in U)Y[G]=U[G];var J,Z;function ee(ke,Oe){function Me(Ze){return Oe.tokenize=Ze,Ze(ke,Oe)}var ze=ke.next();if(ze=="<")return ke.eat("!")?ke.eat("[")?ke.match("CDATA[")?Me(se("atom","]]>")):null:ke.match("--")?Me(se("comment","-->")):ke.match("DOCTYPE",!0,!0)?(ke.eatWhile(/[\w\._\-]/),Me(ne(1))):null:ke.eat("?")?(ke.eatWhile(/[\w\._\-]/),Oe.tokenize=se("meta","?>"),"meta"):(J=ke.eat("/")?"closeTag":"openTag",Oe.tokenize=te,"tag bracket");if(ze=="&"){var Fe;return ke.eat("#")?ke.eat("x")?Fe=ke.eatWhile(/[a-fA-F\d]/)&&ke.eat(";"):Fe=ke.eatWhile(/[\d]/)&&ke.eat(";"):Fe=ke.eatWhile(/[\w\.\-:]/)&&ke.eat(";"),Fe?"atom":"error"}else return ke.eatWhile(/[^&<]/),null}ee.isInText=!0;function te(ke,Oe){var Me=ke.next();if(Me==">"||Me=="/"&&ke.eat(">"))return Oe.tokenize=ee,J=Me==">"?"endTag":"selfcloseTag","tag bracket";if(Me=="=")return J="equals",null;if(Me=="<"){Oe.tokenize=ee,Oe.state=fe,Oe.tagName=Oe.tagStart=null;var ze=Oe.tokenize(ke,Oe);return ze?ze+" tag error":"tag error"}else return/[\'\"]/.test(Me)?(Oe.tokenize=re(Me),Oe.stringStartCol=ke.column(),Oe.tokenize(ke,Oe)):(ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(ke){var Oe=function(Me,ze){for(;!Me.eol();)if(Me.next()==ke){ze.tokenize=te;break}return"string"};return Oe.isInAttribute=!0,Oe}function se(ke,Oe){return function(Me,ze){for(;!Me.eol();){if(Me.match(Oe)){ze.tokenize=ee;break}Me.next()}return ke}}function ne(ke){return function(Oe,Me){for(var ze;(ze=Oe.next())!=null;){if(ze=="<")return Me.tokenize=ne(ke+1),Me.tokenize(Oe,Me);if(ze==">")if(ke==1){Me.tokenize=ee;break}else return Me.tokenize=ne(ke-1),Me.tokenize(Oe,Me)}return"meta"}}function le(ke){return ke&&ke.toLowerCase()}function ge(ke,Oe,Me){this.prev=ke.context,this.tagName=Oe||"",this.indent=ke.indented,this.startOfLine=Me,(Y.doNotIndent.hasOwnProperty(Oe)||ke.context&&ke.context.noIndent)&&(this.noIndent=!0)}function ue(ke){ke.context&&(ke.context=ke.context.prev)}function _e(ke,Oe){for(var Me;;){if(!ke.context||(Me=ke.context.tagName,!Y.contextGrabbers.hasOwnProperty(le(Me))||!Y.contextGrabbers[le(Me)].hasOwnProperty(le(Oe))))return;ue(ke)}}function fe(ke,Oe,Me){return ke=="openTag"?(Me.tagStart=Oe.column(),me):ke=="closeTag"?ve:fe}function me(ke,Oe,Me){return ke=="word"?(Me.tagName=Oe.current(),Z="tag",ye):Y.allowMissingTagName&&ke=="endTag"?(Z="tag bracket",ye(ke,Oe,Me)):(Z="error",me)}function ve(ke,Oe,Me){if(ke=="word"){var ze=Oe.current();return Me.context&&Me.context.tagName!=ze&&Y.implicitlyClosed.hasOwnProperty(le(Me.context.tagName))&&ue(Me),Me.context&&Me.context.tagName==ze||Y.matchClosing===!1?(Z="tag",xe):(Z="tag error",oe)}else return Y.allowMissingTagName&&ke=="endTag"?(Z="tag bracket",xe(ke,Oe,Me)):(Z="error",oe)}function xe(ke,Oe,Me){return ke!="endTag"?(Z="error",xe):(ue(Me),fe)}function oe(ke,Oe,Me){return Z="error",xe(ke,Oe,Me)}function ye(ke,Oe,Me){if(ke=="word")return Z="attribute",be;if(ke=="endTag"||ke=="selfcloseTag"){var ze=Me.tagName,Fe=Me.tagStart;return Me.tagName=Me.tagStart=null,ke=="selfcloseTag"||Y.autoSelfClosers.hasOwnProperty(le(ze))?_e(Me,ze):(_e(Me,ze),Me.context=new ge(Me,ze,Fe==Me.indented)),fe}return Z="error",ye}function be(ke,Oe,Me){return ke=="equals"?we:(Y.allowMissing||(Z="error"),ye(ke,Oe,Me))}function we(ke,Oe,Me){return ke=="string"?Ae:ke=="word"&&Y.allowUnquoted?(Z="string",ye):(Z="error",ye(ke,Oe,Me))}function Ae(ke,Oe,Me){return ke=="string"?Ae:ye(ke,Oe,Me)}return{startState:function(ke){var Oe={tokenize:ee,state:fe,indented:ke||0,tagName:null,tagStart:null,context:null};return ke!=null&&(Oe.baseIndent=ke),Oe},token:function(ke,Oe){if(!Oe.tagName&&ke.sol()&&(Oe.indented=ke.indentation()),ke.eatSpace())return null;J=null;var Me=Oe.tokenize(ke,Oe);return(Me||J)&&Me!="comment"&&(Z=null,Oe.state=Oe.state(J||Me,ke,Oe),Z&&(Me=Z=="error"?Me+" error":Z)),Me},indent:function(ke,Oe,Me){var ze=ke.context;if(ke.tokenize.isInAttribute)return ke.tagStart==ke.indented?ke.stringStartCol+1:ke.indented+q;if(ze&&ze.noIndent)return I.Pass;if(ke.tokenize!=te&&ke.tokenize!=ee)return Me?Me.match(/^(\s*)/)[0].length:0;if(ke.tagName)return Y.multilineTagIndentPastTag!==!1?ke.tagStart+ke.tagName.length+2:ke.tagStart+q*(Y.multilineTagIndentFactor||1);if(Y.alignCDATA&&/<!\[CDATA\[/.test(Oe))return 0;var Fe=Oe&&/^<(\/)?([\w_:\.-]*)/.exec(Oe);if(Fe&&Fe[1])for(;ze;)if(ze.tagName==Fe[2]){ze=ze.prev;break}else if(Y.implicitlyClosed.hasOwnProperty(le(ze.tagName)))ze=ze.prev;else break;else if(Fe)for(;ze;){var Ze=Y.contextGrabbers[le(ze.tagName)];if(Ze&&Ze.hasOwnProperty(le(Fe[2])))ze=ze.prev;else break}for(;ze&&ze.prev&&!ze.startOfLine;)ze=ze.prev;return ze?ze.indent+q:ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Y.htmlMode?"html":"xml",helperType:Y.htmlMode?"html":"xml",skipAttribute:function(ke){ke.state==we&&(ke.state=ye)},xmlCurrentTag:function(ke){return ke.tagName?{name:ke.tagName,close:ke.type=="closeTag"}:null},xmlCurrentContext:function(ke){for(var Oe=[],Me=ke.context;Me;Me=Me.prev)Oe.push(Me.tagName);return Oe.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var N=0;N<I.modeInfo.length;N++){var B=I.modeInfo[N];B.mimes&&(B.mime=B.mimes[0])}I.findModeByMIME=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.mime==j)return q;if(q.mimes){for(var Y=0;Y<q.mimes.length;Y++)if(q.mimes[Y]==j)return q}}if(/\+xml$/.test(j))return I.findModeByMIME("application/xml");if(/\+json$/.test(j))return I.findModeByMIME("application/json")},I.findModeByExtension=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.ext){for(var Y=0;Y<q.ext.length;Y++)if(q.ext[Y]==j)return q}}},I.findModeByFileName=function(j){for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.file&&q.file.test(j))return q}var Y=j.lastIndexOf("."),K=Y>-1&&j.substring(Y+1,j.length);if(K)return I.findModeByExtension(K)},I.findModeByName=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.name.toLowerCase()==j)return q;if(q.alias){for(var Y=0;Y<q.alias.length;Y++)if(q.alias[Y].toLowerCase()==j)return q}}}})}()),meta.exports}var hasRequiredMarkdown;function requireMarkdown(){return hasRequiredMarkdown||(hasRequiredMarkdown=1,function(M,$){(function(I){I(requireCodemirror(),requireXml(),requireMeta())})(function(I){I.defineMode("markdown",function(N,B){var j=I.getMode(N,"text/html"),U=j.name=="null";function q(qe){if(I.findModeByName){var Ve=I.findModeByName(qe);Ve&&(qe=Ve.mime||Ve.mimes[0])}var At=I.getMode(N,qe);return At.name=="null"?null:At}B.highlightFormatting===void 0&&(B.highlightFormatting=!1),B.maxBlockquoteDepth===void 0&&(B.maxBlockquoteDepth=0),B.taskLists===void 0&&(B.taskLists=!1),B.strikethrough===void 0&&(B.strikethrough=!1),B.emoji===void 0&&(B.emoji=!1),B.fencedCodeBlockHighlighting===void 0&&(B.fencedCodeBlockHighlighting=!0),B.fencedCodeBlockDefaultMode===void 0&&(B.fencedCodeBlockDefaultMode="text/plain"),B.xml===void 0&&(B.xml=!0),B.tokenTypeOverrides===void 0&&(B.tokenTypeOverrides={});var Y={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var K in Y)Y.hasOwnProperty(K)&&B.tokenTypeOverrides[K]&&(Y[K]=B.tokenTypeOverrides[K]);var G=/^([*\-_])(?:\s*\1){2,}\s*$/,J=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Z=/^\[(x| )\](?=\s)/i,ee=B.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,te=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,se=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ge=" ";function ue(qe,Ve,At){return Ve.f=Ve.inline=At,At(qe,Ve)}function _e(qe,Ve,At){return Ve.f=Ve.block=At,At(qe,Ve)}function fe(qe){return!qe||!/\S/.test(qe.string)}function me(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==xe){var Ve=U;if(!Ve){var At=I.innerMode(j,qe.htmlState);Ve=At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText}Ve&&(qe.f=we,qe.block=ve,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function ve(qe,Ve){var At=qe.column()===Ve.indentation,Nt=fe(Ve.prevLine.stream),zt=Ve.indentedCode,Ht=Ve.prevLine.hr,qt=Ve.list!==!1,Qt=(Ve.listStack[Ve.listStack.length-1]||0)+3;Ve.indentedCode=!1;var Jt=Ve.indentation;if(Ve.indentationDiff===null&&(Ve.indentationDiff=Ve.indentation,qt)){for(Ve.list=null;Jt<Ve.listStack[Ve.listStack.length-1];)Ve.listStack.pop(),Ve.listStack.length?Ve.indentation=Ve.listStack[Ve.listStack.length-1]:Ve.list=!1;Ve.list!==!1&&(Ve.indentationDiff=Jt-Ve.listStack[Ve.listStack.length-1])}var yn=!Nt&&!Ht&&!Ve.prevLine.header&&(!qt||!zt)&&!Ve.prevLine.fencedCodeEnd,_n=(Ve.list===!1||Ht||Nt)&&Ve.indentation<=Qt&&qe.match(G),Hn=null;if(Ve.indentationDiff>=4&&(zt||Ve.prevLine.fencedCodeEnd||Ve.prevLine.header||Nt))return qe.skipToEnd(),Ve.indentedCode=!0,Y.code;if(qe.eatSpace())return null;if(At&&Ve.indentation<=Qt&&(Hn=qe.match(ee))&&Hn[1].length<=6)return Ve.quote=0,Ve.header=Hn[1].length,Ve.thisLine.header=!0,B.highlightFormatting&&(Ve.formatting="header"),Ve.f=Ve.inline,ye(Ve);if(Ve.indentation<=Qt&&qe.eat(">"))return Ve.quote=At?1:Ve.quote+1,B.highlightFormatting&&(Ve.formatting="quote"),qe.eatSpace(),ye(Ve);if(!_n&&!Ve.setext&&At&&Ve.indentation<=Qt&&(Hn=qe.match(J))){var On=Hn[1]?"ol":"ul";return Ve.indentation=Jt+qe.current().length,Ve.list=!0,Ve.quote=0,Ve.listStack.push(Ve.indentation),Ve.em=!1,Ve.strong=!1,Ve.code=!1,Ve.strikethrough=!1,B.taskLists&&qe.match(Z,!1)&&(Ve.taskList=!0),Ve.f=Ve.inline,B.highlightFormatting&&(Ve.formatting=["list","list-"+On]),ye(Ve)}else{if(At&&Ve.indentation<=Qt&&(Hn=qe.match(se,!0)))return Ve.quote=0,Ve.fencedEndRE=new RegExp(Hn[1]+"+ *$"),Ve.localMode=B.fencedCodeBlockHighlighting&&q(Hn[2]||B.fencedCodeBlockDefaultMode),Ve.localMode&&(Ve.localState=I.startState(Ve.localMode)),Ve.f=Ve.block=oe,B.highlightFormatting&&(Ve.formatting="code-block"),Ve.code=-1,ye(Ve);if(Ve.setext||(!yn||!qt)&&!Ve.quote&&Ve.list===!1&&!Ve.code&&!_n&&!ne.test(qe.string)&&(Hn=qe.lookAhead(1))&&(Hn=Hn.match(te)))return Ve.setext?(Ve.header=Ve.setext,Ve.setext=0,qe.skipToEnd(),B.highlightFormatting&&(Ve.formatting="header")):(Ve.header=Hn[0].charAt(0)=="="?1:2,Ve.setext=Ve.header),Ve.thisLine.header=!0,Ve.f=Ve.inline,ye(Ve);if(_n)return qe.skipToEnd(),Ve.hr=!0,Ve.thisLine.hr=!0,Y.hr;if(qe.peek()==="[")return ue(qe,Ve,ze)}return ue(qe,Ve,Ve.inline)}function xe(qe,Ve){var At=j.token(qe,Ve.htmlState);if(!U){var Nt=I.innerMode(j,Ve.htmlState);(Nt.mode.name=="xml"&&Nt.state.tagStart===null&&!Nt.state.context&&Nt.state.tokenize.isInText||Ve.md_inside&&qe.current().indexOf(">")>-1)&&(Ve.f=we,Ve.block=ve,Ve.htmlState=null)}return At}function oe(qe,Ve){var At=Ve.listStack[Ve.listStack.length-1]||0,Nt=Ve.indentation<At,zt=At+3;if(Ve.fencedEndRE&&Ve.indentation<=zt&&(Nt||qe.match(Ve.fencedEndRE))){B.highlightFormatting&&(Ve.formatting="code-block");var Ht;return Nt||(Ht=ye(Ve)),Ve.localMode=Ve.localState=null,Ve.block=ve,Ve.f=we,Ve.fencedEndRE=null,Ve.code=0,Ve.thisLine.fencedCodeEnd=!0,Nt?_e(qe,Ve,Ve.block):Ht}else return Ve.localMode?Ve.localMode.token(qe,Ve.localState):(qe.skipToEnd(),Y.code)}function ye(qe){var Ve=[];if(qe.formatting){Ve.push(Y.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var At=0;At<qe.formatting.length;At++)Ve.push(Y.formatting+"-"+qe.formatting[At]),qe.formatting[At]==="header"&&Ve.push(Y.formatting+"-"+qe.formatting[At]+"-"+qe.header),qe.formatting[At]==="quote"&&(!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=qe.quote?Ve.push(Y.formatting+"-"+qe.formatting[At]+"-"+qe.quote):Ve.push("error"))}if(qe.taskOpen)return Ve.push("meta"),Ve.length?Ve.join(" "):null;if(qe.taskClosed)return Ve.push("property"),Ve.length?Ve.join(" "):null;if(qe.linkHref?Ve.push(Y.linkHref,"url"):(qe.strong&&Ve.push(Y.strong),qe.em&&Ve.push(Y.em),qe.strikethrough&&Ve.push(Y.strikethrough),qe.emoji&&Ve.push(Y.emoji),qe.linkText&&Ve.push(Y.linkText),qe.code&&Ve.push(Y.code),qe.image&&Ve.push(Y.image),qe.imageAltText&&Ve.push(Y.imageAltText,"link"),qe.imageMarker&&Ve.push(Y.imageMarker)),qe.header&&Ve.push(Y.header,Y.header+"-"+qe.header),qe.quote&&(Ve.push(Y.quote),!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=qe.quote?Ve.push(Y.quote+"-"+qe.quote):Ve.push(Y.quote+"-"+B.maxBlockquoteDepth)),qe.list!==!1){var Nt=(qe.listStack.length-1)%3;Nt?Nt===1?Ve.push(Y.list2):Ve.push(Y.list3):Ve.push(Y.list1)}return qe.trailingSpaceNewLine?Ve.push("trailing-space-new-line"):qe.trailingSpace&&Ve.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),Ve.length?Ve.join(" "):null}function be(qe,Ve){if(qe.match(re,!0))return ye(Ve)}function we(qe,Ve){var At=Ve.text(qe,Ve);if(typeof At<"u")return At;if(Ve.list)return Ve.list=null,ye(Ve);if(Ve.taskList){var Nt=qe.match(Z,!0)[1]===" ";return Nt?Ve.taskOpen=!0:Ve.taskClosed=!0,B.highlightFormatting&&(Ve.formatting="task"),Ve.taskList=!1,ye(Ve)}if(Ve.taskOpen=!1,Ve.taskClosed=!1,Ve.header&&qe.match(/^#+$/,!0))return B.highlightFormatting&&(Ve.formatting="header"),ye(Ve);var zt=qe.next();if(Ve.linkTitle){Ve.linkTitle=!1;var Ht=zt;zt==="("&&(Ht=")"),Ht=(Ht+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qt="^\\s*(?:[^"+Ht+"\\\\]+|\\\\\\\\|\\\\.)"+Ht;if(qe.match(new RegExp(qt),!0))return Y.linkHref}if(zt==="`"){var Qt=Ve.formatting;B.highlightFormatting&&(Ve.formatting="code"),qe.eatWhile("`");var Jt=qe.current().length;if(Ve.code==0&&(!Ve.quote||Jt==1))return Ve.code=Jt,ye(Ve);if(Jt==Ve.code){var yn=ye(Ve);return Ve.code=0,yn}else return Ve.formatting=Qt,ye(Ve)}else if(Ve.code)return ye(Ve);if(zt==="\\"&&(qe.next(),B.highlightFormatting)){var _n=ye(Ve),Hn=Y.formatting+"-escape";return _n?_n+" "+Hn:Hn}if(zt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ve.imageMarker=!0,Ve.image=!0,B.highlightFormatting&&(Ve.formatting="image"),ye(Ve);if(zt==="["&&Ve.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ve.imageMarker=!1,Ve.imageAltText=!0,B.highlightFormatting&&(Ve.formatting="image"),ye(Ve);if(zt==="]"&&Ve.imageAltText){B.highlightFormatting&&(Ve.formatting="image");var _n=ye(Ve);return Ve.imageAltText=!1,Ve.image=!1,Ve.inline=Ve.f=ke,_n}if(zt==="["&&!Ve.image)return Ve.linkText&&qe.match(/^.*?\]/)||(Ve.linkText=!0,B.highlightFormatting&&(Ve.formatting="link")),ye(Ve);if(zt==="]"&&Ve.linkText){B.highlightFormatting&&(Ve.formatting="link");var _n=ye(Ve);return Ve.linkText=!1,Ve.inline=Ve.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?ke:we,_n}if(zt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=Ae,B.highlightFormatting&&(Ve.formatting="link");var _n=ye(Ve);return _n?_n+=" ":_n="",_n+Y.linkInline}if(zt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=Ae,B.highlightFormatting&&(Ve.formatting="link");var _n=ye(Ve);return _n?_n+=" ":_n="",_n+Y.linkEmail}if(B.xml&&zt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var On=qe.string.indexOf(">",qe.pos);if(On!=-1){var Fn=qe.string.substring(qe.start,On);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fn)&&(Ve.md_inside=!0)}return qe.backUp(1),Ve.htmlState=I.startState(j),_e(qe,Ve,xe)}if(B.xml&&zt==="<"&&qe.match(/^\/\w*?>/))return Ve.md_inside=!1,"tag";if(zt==="*"||zt==="_"){for(var In=1,dn=qe.pos==1?" ":qe.string.charAt(qe.pos-2);In<3&&qe.eat(zt);)In++;var kt=qe.peek()||" ",Ye=!/\s/.test(kt)&&(!le.test(kt)||/\s/.test(dn)||le.test(dn)),_t=!/\s/.test(dn)&&(!le.test(dn)||/\s/.test(kt)||le.test(kt)),We=null,Pe=null;if(In%2&&(!Ve.em&&Ye&&(zt==="*"||!_t||le.test(dn))?We=!0:Ve.em==zt&&_t&&(zt==="*"||!Ye||le.test(kt))&&(We=!1)),In>1&&(!Ve.strong&&Ye&&(zt==="*"||!_t||le.test(dn))?Pe=!0:Ve.strong==zt&&_t&&(zt==="*"||!Ye||le.test(kt))&&(Pe=!1)),Pe!=null||We!=null){B.highlightFormatting&&(Ve.formatting=We==null?"strong":Pe==null?"em":"strong em"),We===!0&&(Ve.em=zt),Pe===!0&&(Ve.strong=zt);var yn=ye(Ve);return We===!1&&(Ve.em=!1),Pe===!1&&(Ve.strong=!1),yn}}else if(zt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return ye(Ve);qe.backUp(1)}if(B.strikethrough){if(zt==="~"&&qe.eatWhile(zt)){if(Ve.strikethrough){B.highlightFormatting&&(Ve.formatting="strikethrough");var yn=ye(Ve);return Ve.strikethrough=!1,yn}else if(qe.match(/^[^\s]/,!1))return Ve.strikethrough=!0,B.highlightFormatting&&(Ve.formatting="strikethrough"),ye(Ve)}else if(zt===" "&&qe.match("~~",!0)){if(qe.peek()===" ")return ye(Ve);qe.backUp(2)}}if(B.emoji&&zt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ve.emoji=!0,B.highlightFormatting&&(Ve.formatting="emoji");var Se=ye(Ve);return Ve.emoji=!1,Se}return zt===" "&&(qe.match(/^ +$/,!1)?Ve.trailingSpace++:Ve.trailingSpace&&(Ve.trailingSpaceNewLine=!0)),ye(Ve)}function Ae(qe,Ve){var At=qe.next();if(At===">"){Ve.f=Ve.inline=we,B.highlightFormatting&&(Ve.formatting="link");var Nt=ye(Ve);return Nt?Nt+=" ":Nt="",Nt+Y.linkInline}return qe.match(/^[^>]+/,!0),Y.linkInline}function ke(qe,Ve){if(qe.eatSpace())return null;var At=qe.next();return At==="("||At==="["?(Ve.f=Ve.inline=Me(At==="("?")":"]"),B.highlightFormatting&&(Ve.formatting="link-string"),Ve.linkHref=!0,ye(Ve)):"error"}var Oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Me(qe){return function(Ve,At){var Nt=Ve.next();if(Nt===qe){At.f=At.inline=we,B.highlightFormatting&&(At.formatting="link-string");var zt=ye(At);return At.linkHref=!1,zt}return Ve.match(Oe[qe]),At.linkHref=!0,ye(At)}}function ze(qe,Ve){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ve.f=Fe,qe.next(),B.highlightFormatting&&(Ve.formatting="link"),Ve.linkText=!0,ye(Ve)):ue(qe,Ve,we)}function Fe(qe,Ve){if(qe.match("]:",!0)){Ve.f=Ve.inline=Ze,B.highlightFormatting&&(Ve.formatting="link");var At=ye(Ve);return Ve.linkText=!1,At}return qe.match(/^([^\]\\]|\\.)+/,!0),Y.linkText}function Ze(qe,Ve){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?Ve.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),Ve.f=Ve.inline=we,Y.linkHref+" url")}var lt={startState:function(){return{f:ve,prevLine:{stream:null},thisLine:{stream:null},block:ve,htmlState:null,indentation:0,inline:we,text:be,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&I.copyState(j,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?I.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,Ve){if(Ve.formatting=!1,qe!=Ve.thisLine.stream){if(Ve.header=0,Ve.hr=!1,qe.match(/^\s*$/,!0))return me(Ve),null;if(Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:qe},Ve.taskList=!1,Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,!Ve.localState&&(Ve.f=Ve.block,Ve.f!=xe)){var At=qe.match(/^\s*/,!0)[0].replace(/\t/g,ge).length;if(Ve.indentation=At,Ve.indentationDiff=null,At>0)return null}}return Ve.f(qe,Ve)},innerMode:function(qe){return qe.block==xe?{state:qe.htmlState,mode:j}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:lt}},indent:function(qe,Ve,At){return qe.block==xe&&j.indent?j.indent(qe.htmlState,Ve,At):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,Ve,At):I.Pass},blankLine:me,getType:ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return lt},"xml"),I.defineMIME("text/markdown","markdown"),I.defineMIME("text/x-markdown","markdown")})}()),markdown$1.exports}var overlay={exports:{}},hasRequiredOverlay;function requireOverlay(){return hasRequiredOverlay||(hasRequiredOverlay=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.overlayMode=function(N,B,j){return{startState:function(){return{base:I.startState(N),overlay:I.startState(B),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(U){return{base:I.copyState(N,U.base),overlay:I.copyState(B,U.overlay),basePos:U.basePos,baseCur:null,overlayPos:U.overlayPos,overlayCur:null}},token:function(U,q){return(U!=q.streamSeen||Math.min(q.basePos,q.overlayPos)<U.start)&&(q.streamSeen=U,q.basePos=q.overlayPos=U.start),U.start==q.basePos&&(q.baseCur=N.token(U,q.base),q.basePos=U.pos),U.start==q.overlayPos&&(U.pos=U.start,q.overlayCur=B.token(U,q.overlay),q.overlayPos=U.pos),U.pos=Math.min(q.basePos,q.overlayPos),q.overlayCur==null?q.baseCur:q.baseCur!=null&&q.overlay.combineTokens||j&&q.overlay.combineTokens==null?q.baseCur+" "+q.overlayCur:q.overlayCur},indent:N.indent&&function(U,q,Y){return N.indent(U.base,q,Y)},electricChars:N.electricChars,innerMode:function(U){return{state:U.base,mode:N}},blankLine:function(U){var q,Y;return N.blankLine&&(q=N.blankLine(U.base)),B.blankLine&&(Y=B.blankLine(U.overlay)),Y==null?q:j&&q!=null?q+" "+Y:Y}}}})}()),overlay.exports}(function(M,$){(function(I){I(requireCodemirror(),requireMarkdown(),requireOverlay())})(function(I){var N=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;I.defineMode("gfm",function(B,j){var U=0;function q(J){return J.code=!1,null}var Y={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(J){return{code:J.code,codeBlock:J.codeBlock,ateSpace:J.ateSpace}},token:function(J,Z){if(Z.combineTokens=null,Z.codeBlock)return J.match(/^```+/)?(Z.codeBlock=!1,null):(J.skipToEnd(),null);if(J.sol()&&(Z.code=!1),J.sol()&&J.match(/^```+/))return J.skipToEnd(),Z.codeBlock=!0,null;if(J.peek()==="`"){J.next();var ee=J.pos;J.eatWhile("`");var te=1+J.pos-ee;return Z.code?te===U&&(Z.code=!1):(U=te,Z.code=!0),null}else if(Z.code)return J.next(),null;if(J.eatSpace())return Z.ateSpace=!0,null;if((J.sol()||Z.ateSpace)&&(Z.ateSpace=!1,j.gitHubSpice!==!1)){if(J.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return Z.combineTokens=!0,"link";if(J.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return Z.combineTokens=!0,"link"}return J.match(N)&&J.string.slice(J.start-2,J.start)!="]("&&(J.start==0||/\W/.test(J.string.charAt(J.start-1)))?(Z.combineTokens=!0,"link"):(J.next(),null)},blankLine:q},K={taskLists:!0,strikethrough:!0,emoji:!0};for(var G in j)K[G]=j[G];return K.name="markdown",I.overlayMode(I.getMode(B,K),Y)},"markdown"),I.defineMIME("text/x-gfm","gfm")})})();var handlebars={exports:{}},simple={exports:{}},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineSimpleMode=function(Z,ee){I.defineMode(Z,function(te){return I.simpleMode(te,ee)})},I.simpleMode=function(Z,ee){N(ee,"start");var te={},re=ee.meta||{},se=!1;for(var ne in ee)if(ne!=re&&ee.hasOwnProperty(ne))for(var le=te[ne]=[],ge=ee[ne],ue=0;ue<ge.length;ue++){var _e=ge[ue];le.push(new U(_e,ee)),(_e.indent||_e.dedent)&&(se=!0)}var fe={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:se?[]:null}},copyState:function(ve){var xe={state:ve.state,pending:ve.pending,local:ve.local,localState:null,indent:ve.indent&&ve.indent.slice(0)};ve.localState&&(xe.localState=I.copyState(ve.local.mode,ve.localState)),ve.stack&&(xe.stack=ve.stack.slice(0));for(var oe=ve.persistentStates;oe;oe=oe.next)xe.persistentStates={mode:oe.mode,spec:oe.spec,state:oe.state==ve.localState?xe.localState:I.copyState(oe.mode,oe.state),next:xe.persistentStates};return xe},token:q(te,Z),innerMode:function(ve){return ve.local&&{mode:ve.local.mode,state:ve.localState}},indent:J(te,re)};if(re)for(var me in re)re.hasOwnProperty(me)&&(fe[me]=re[me]);return fe};function N(Z,ee){if(!Z.hasOwnProperty(ee))throw new Error("Undefined state "+ee+" in simple mode")}function B(Z,ee){if(!Z)return/(?:)/;var te="";return Z instanceof RegExp?(Z.ignoreCase&&(te="i"),Z.unicode&&(te+="u"),Z=Z.source):Z=String(Z),new RegExp((ee===!1?"":"^")+"(?:"+Z+")",te)}function j(Z){if(!Z)return null;if(Z.apply)return Z;if(typeof Z=="string")return Z.replace(/\./g," ");for(var ee=[],te=0;te<Z.length;te++)ee.push(Z[te]&&Z[te].replace(/\./g," "));return ee}function U(Z,ee){(Z.next||Z.push)&&N(ee,Z.next||Z.push),this.regex=B(Z.regex),this.token=j(Z.token),this.data=Z}function q(Z,ee){return function(te,re){if(re.pending){var se=re.pending.shift();return re.pending.length==0&&(re.pending=null),te.pos+=se.text.length,se.token}if(re.local)if(re.local.end&&te.match(re.local.end)){var ne=re.local.endToken||null;return re.local=re.localState=null,ne}else{var ne=re.local.mode.token(te,re.localState),le;return re.local.endScan&&(le=re.local.endScan.exec(te.current()))&&(te.pos=te.start+le.index),ne}for(var ge=Z[re.state],ue=0;ue<ge.length;ue++){var _e=ge[ue],fe=(!_e.data.sol||te.sol())&&te.match(_e.regex);if(fe){_e.data.next?re.state=_e.data.next:_e.data.push?((re.stack||(re.stack=[])).push(re.state),re.state=_e.data.push):_e.data.pop&&re.stack&&re.stack.length&&(re.state=re.stack.pop()),_e.data.mode&&K(ee,re,_e.data.mode,_e.token),_e.data.indent&&re.indent.push(te.indentation()+ee.indentUnit),_e.data.dedent&&re.indent.pop();var me=_e.token;if(me&&me.apply&&(me=me(fe)),fe.length>2&&_e.token&&typeof _e.token!="string"){for(var ve=2;ve<fe.length;ve++)fe[ve]&&(re.pending||(re.pending=[])).push({text:fe[ve],token:_e.token[ve-1]});return te.backUp(fe[0].length-(fe[1]?fe[1].length:0)),me[0]}else return me&&me.join?me[0]:me}}return te.next(),null}}function Y(Z,ee){if(Z===ee)return!0;if(!Z||typeof Z!="object"||!ee||typeof ee!="object")return!1;var te=0;for(var re in Z)if(Z.hasOwnProperty(re)){if(!ee.hasOwnProperty(re)||!Y(Z[re],ee[re]))return!1;te++}for(var re in ee)ee.hasOwnProperty(re)&&te--;return te==0}function K(Z,ee,te,re){var se;if(te.persistent)for(var ne=ee.persistentStates;ne&&!se;ne=ne.next)(te.spec?Y(te.spec,ne.spec):te.mode==ne.mode)&&(se=ne);var le=se?se.mode:te.mode||I.getMode(Z,te.spec),ge=se?se.state:I.startState(le);te.persistent&&!se&&(ee.persistentStates={mode:le,spec:te.spec,state:ge,next:ee.persistentStates}),ee.localState=ge,ee.local={mode:le,end:te.end&&B(te.end),endScan:te.end&&te.forceEnd!==!1&&B(te.end,!1),endToken:re&&re.join?re[re.length-1]:re}}function G(Z,ee){for(var te=0;te<ee.length;te++)if(ee[te]===Z)return!0}function J(Z,ee){return function(te,re,se){if(te.local&&te.local.mode.indent)return te.local.mode.indent(te.localState,re,se);if(te.indent==null||te.local||ee.dontIndentStates&&G(te.state,ee.dontIndentStates)>-1)return I.Pass;var ne=te.indent.length-1,le=Z[te.state];e:for(;;){for(var ge=0;ge<le.length;ge++){var ue=le[ge];if(ue.data.dedent&&ue.data.dedentIfLineStart!==!1){var _e=ue.regex.exec(re);if(_e&&_e[0]){ne--,(ue.next||ue.push)&&(le=Z[ue.next||ue.push]),re=re.slice(_e[0].length);continue e}}}break}return ne<0?0:te.indent[ne]}}})}()),simple.exports}var multiplex={exports:{}},hasRequiredMultiplex;function requireMultiplex(){return hasRequiredMultiplex||(hasRequiredMultiplex=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.multiplexingMode=function(N){var B=Array.prototype.slice.call(arguments,1);function j(U,q,Y,K){if(typeof q=="string"){var G=U.indexOf(q,Y);return K&&G>-1?G+q.length:G}var J=q.exec(Y?U.slice(Y):U);return J?J.index+Y+(K?J[0].length:0):-1}return{startState:function(){return{outer:I.startState(N),innerActive:null,inner:null,startingInner:!1}},copyState:function(U){return{outer:I.copyState(N,U.outer),innerActive:U.innerActive,inner:U.innerActive&&I.copyState(U.innerActive.mode,U.inner),startingInner:U.startingInner}},token:function(U,q){if(q.innerActive){var se=q.innerActive,K=U.string;if(!se.close&&U.sol())return q.innerActive=q.inner=null,this.token(U,q);var Z=se.close&&!q.startingInner?j(K,se.close,U.pos,se.parseDelimiters):-1;if(Z==U.pos&&!se.parseDelimiters)return U.match(se.close),q.innerActive=q.inner=null,se.delimStyle&&se.delimStyle+" "+se.delimStyle+"-close";Z>-1&&(U.string=K.slice(0,Z));var ne=se.mode.token(U,q.inner);return Z>-1?U.string=K:U.pos>U.start&&(q.startingInner=!1),Z==U.pos&&se.parseDelimiters&&(q.innerActive=q.inner=null),se.innerStyle&&(ne?ne=ne+" "+se.innerStyle:ne=se.innerStyle),ne}else{for(var Y=1/0,K=U.string,G=0;G<B.length;++G){var J=B[G],Z=j(K,J.open,U.pos);if(Z==U.pos){J.parseDelimiters||U.match(J.open),q.startingInner=!!J.parseDelimiters,q.innerActive=J;var ee=0;if(N.indent){var te=N.indent(q.outer,"","");te!==I.Pass&&(ee=te)}return q.inner=I.startState(J.mode,ee),J.delimStyle&&J.delimStyle+" "+J.delimStyle+"-open"}else Z!=-1&&Z<Y&&(Y=Z)}Y!=1/0&&(U.string=K.slice(0,Y));var re=N.token(U,q.outer);return Y!=1/0&&(U.string=K),re}},indent:function(U,q,Y){var K=U.innerActive?U.innerActive.mode:N;return K.indent?K.indent(U.innerActive?U.inner:U.outer,q,Y):I.Pass},blankLine:function(U){var q=U.innerActive?U.innerActive.mode:N;if(q.blankLine&&q.blankLine(U.innerActive?U.inner:U.outer),U.innerActive)U.innerActive.close===`
- `&&(U.innerActive=U.inner=null);else for(var Y=0;Y<B.length;++Y){var K=B[Y];K.open===`
- `&&(U.innerActive=K,U.inner=I.startState(K.mode,q.indent?q.indent(U.outer,"",""):0))}},electricChars:N.electricChars,innerMode:function(U){return U.inner?{state:U.inner,mode:U.innerActive.mode}:{state:U.outer,mode:N}}}}})}()),multiplex.exports}(function(M,$){(function(I){I(requireCodemirror(),requireSimple(),requireMultiplex())})(function(I){I.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),I.defineMode("handlebars",function(N,B){var j=I.getMode(N,"handlebars-tags");return!B||!B.base?j:I.multiplexingMode(I.getMode(N,B.base),{open:"{{",close:/\}\}\}?/,mode:j,parseDelimiters:!0})}),I.defineMIME("text/x-handlebars-template","handlebars")})})();var handlebarsExports=handlebars.exports,htmlmixed={exports:{}},javascript={exports:{}},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("javascript",function(N,B){var j=N.indentUnit,U=B.statementIndent,q=B.jsonld,Y=B.json||q,K=B.trackScope!==!1,G=B.typescript,J=B.wordCharacters||/[\w$\xa1-\uffff]/,Z=function(){function et(hn){return{type:hn,style:"keyword"}}var yt=et("keyword a"),wt=et("keyword b"),Bt=et("keyword c"),Kt=et("keyword d"),Mt=et("operator"),tn={type:"atom",style:"atom"};return{if:et("if"),while:yt,with:yt,else:wt,do:wt,try:wt,finally:wt,return:Kt,break:Kt,continue:Kt,new:et("new"),delete:Bt,void:Bt,throw:Bt,debugger:et("debugger"),var:et("var"),const:et("var"),let:et("var"),function:et("function"),catch:et("catch"),for:et("for"),switch:et("switch"),case:et("case"),default:et("default"),in:Mt,typeof:Mt,instanceof:Mt,true:tn,false:tn,null:tn,undefined:tn,NaN:tn,Infinity:tn,this:et("this"),class:et("class"),super:et("atom"),yield:Bt,export:et("export"),import:et("import"),extends:Bt,await:Bt}}(),ee=/[+\-*&%=<>!?|~^@]/,te=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function re(et){for(var yt=!1,wt,Bt=!1;(wt=et.next())!=null;){if(!yt){if(wt=="/"&&!Bt)return;wt=="["?Bt=!0:Bt&&wt=="]"&&(Bt=!1)}yt=!yt&&wt=="\\"}}var se,ne;function le(et,yt,wt){return se=et,ne=wt,yt}function ge(et,yt){var wt=et.next();if(wt=='"'||wt=="'")return yt.tokenize=ue(wt),yt.tokenize(et,yt);if(wt=="."&&et.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return le("number","number");if(wt=="."&&et.match(".."))return le("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(wt))return le(wt);if(wt=="="&&et.eat(">"))return le("=>","operator");if(wt=="0"&&et.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return le("number","number");if(/\d/.test(wt))return et.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),le("number","number");if(wt=="/")return et.eat("*")?(yt.tokenize=_e,_e(et,yt)):et.eat("/")?(et.skipToEnd(),le("comment","comment")):er(et,yt,1)?(re(et),et.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),le("regexp","string-2")):(et.eat("="),le("operator","operator",et.current()));if(wt=="`")return yt.tokenize=fe,fe(et,yt);if(wt=="#"&&et.peek()=="!")return et.skipToEnd(),le("meta","meta");if(wt=="#"&&et.eatWhile(J))return le("variable","property");if(wt=="<"&&et.match("!--")||wt=="-"&&et.match("->")&&!/\S/.test(et.string.slice(0,et.start)))return et.skipToEnd(),le("comment","comment");if(ee.test(wt))return(wt!=">"||!yt.lexical||yt.lexical.type!=">")&&(et.eat("=")?(wt=="!"||wt=="=")&&et.eat("="):/[<>*+\-|&?]/.test(wt)&&(et.eat(wt),wt==">"&&et.eat(wt))),wt=="?"&&et.eat(".")?le("."):le("operator","operator",et.current());if(J.test(wt)){et.eatWhile(J);var Bt=et.current();if(yt.lastType!="."){if(Z.propertyIsEnumerable(Bt)){var Kt=Z[Bt];return le(Kt.type,Kt.style,Bt)}if(Bt=="async"&&et.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return le("async","keyword",Bt)}return le("variable","variable",Bt)}}function ue(et){return function(yt,wt){var Bt=!1,Kt;if(q&&yt.peek()=="@"&&yt.match(te))return wt.tokenize=ge,le("jsonld-keyword","meta");for(;(Kt=yt.next())!=null&&!(Kt==et&&!Bt);)Bt=!Bt&&Kt=="\\";return Bt||(wt.tokenize=ge),le("string","string")}}function _e(et,yt){for(var wt=!1,Bt;Bt=et.next();){if(Bt=="/"&&wt){yt.tokenize=ge;break}wt=Bt=="*"}return le("comment","comment")}function fe(et,yt){for(var wt=!1,Bt;(Bt=et.next())!=null;){if(!wt&&(Bt=="`"||Bt=="$"&&et.eat("{"))){yt.tokenize=ge;break}wt=!wt&&Bt=="\\"}return le("quasi","string-2",et.current())}var me="([{}])";function ve(et,yt){yt.fatArrowAt&&(yt.fatArrowAt=null);var wt=et.string.indexOf("=>",et.start);if(!(wt<0)){if(G){var Bt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(et.string.slice(et.start,wt));Bt&&(wt=Bt.index)}for(var Kt=0,Mt=!1,tn=wt-1;tn>=0;--tn){var hn=et.string.charAt(tn),Cn=me.indexOf(hn);if(Cn>=0&&Cn<3){if(!Kt){++tn;break}if(--Kt==0){hn=="("&&(Mt=!0);break}}else if(Cn>=3&&Cn<6)++Kt;else if(J.test(hn))Mt=!0;else if(/["'\/`]/.test(hn))for(;;--tn){if(tn==0)return;var cn=et.string.charAt(tn-1);if(cn==hn&&et.string.charAt(tn-2)!="\\"){tn--;break}}else if(Mt&&!Kt){++tn;break}}Mt&&!Kt&&(yt.fatArrowAt=tn)}}var xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function oe(et,yt,wt,Bt,Kt,Mt){this.indented=et,this.column=yt,this.type=wt,this.prev=Kt,this.info=Mt,Bt!=null&&(this.align=Bt)}function ye(et,yt){if(!K)return!1;for(var wt=et.localVars;wt;wt=wt.next)if(wt.name==yt)return!0;for(var Bt=et.context;Bt;Bt=Bt.prev)for(var wt=Bt.vars;wt;wt=wt.next)if(wt.name==yt)return!0}function be(et,yt,wt,Bt,Kt){var Mt=et.cc;for(we.state=et,we.stream=Kt,we.marked=null,we.cc=Mt,we.style=yt,et.lexical.hasOwnProperty("align")||(et.lexical.align=!0);;){var tn=Mt.length?Mt.pop():Y?yn:Qt;if(tn(wt,Bt)){for(;Mt.length&&Mt[Mt.length-1].lex;)Mt.pop()();return we.marked?we.marked:wt=="variable"&&ye(et,Bt)?"variable-2":yt}}}var we={state:null,column:null,marked:null,cc:null};function Ae(){for(var et=arguments.length-1;et>=0;et--)we.cc.push(arguments[et])}function ke(){return Ae.apply(null,arguments),!0}function Oe(et,yt){for(var wt=yt;wt;wt=wt.next)if(wt.name==et)return!0;return!1}function Me(et){var yt=we.state;if(we.marked="def",!!K){if(yt.context){if(yt.lexical.info=="var"&&yt.context&&yt.context.block){var wt=ze(et,yt.context);if(wt!=null){yt.context=wt;return}}else if(!Oe(et,yt.localVars)){yt.localVars=new lt(et,yt.localVars);return}}B.globalVars&&!Oe(et,yt.globalVars)&&(yt.globalVars=new lt(et,yt.globalVars))}}function ze(et,yt){if(yt)if(yt.block){var wt=ze(et,yt.prev);return wt?wt==yt.prev?yt:new Ze(wt,yt.vars,!0):null}else return Oe(et,yt.vars)?yt:new Ze(yt.prev,new lt(et,yt.vars),!1);else return null}function Fe(et){return et=="public"||et=="private"||et=="protected"||et=="abstract"||et=="readonly"}function Ze(et,yt,wt){this.prev=et,this.vars=yt,this.block=wt}function lt(et,yt){this.name=et,this.next=yt}var qe=new lt("this",new lt("arguments",null));function Ve(){we.state.context=new Ze(we.state.context,we.state.localVars,!1),we.state.localVars=qe}function At(){we.state.context=new Ze(we.state.context,we.state.localVars,!0),we.state.localVars=null}Ve.lex=At.lex=!0;function Nt(){we.state.localVars=we.state.context.vars,we.state.context=we.state.context.prev}Nt.lex=!0;function zt(et,yt){var wt=function(){var Bt=we.state,Kt=Bt.indented;if(Bt.lexical.type=="stat")Kt=Bt.lexical.indented;else for(var Mt=Bt.lexical;Mt&&Mt.type==")"&&Mt.align;Mt=Mt.prev)Kt=Mt.indented;Bt.lexical=new oe(Kt,we.stream.column(),et,null,Bt.lexical,yt)};return wt.lex=!0,wt}function Ht(){var et=we.state;et.lexical.prev&&(et.lexical.type==")"&&(et.indented=et.lexical.indented),et.lexical=et.lexical.prev)}Ht.lex=!0;function qt(et){function yt(wt){return wt==et?ke():et==";"||wt=="}"||wt==")"||wt=="]"?Ae():ke(yt)}return yt}function Qt(et,yt){return et=="var"?ke(zt("vardef",yt),mn,qt(";"),Ht):et=="keyword a"?ke(zt("form"),Hn,Qt,Ht):et=="keyword b"?ke(zt("form"),Qt,Ht):et=="keyword d"?we.stream.match(/^\s*$/,!1)?ke():ke(zt("stat"),Fn,qt(";"),Ht):et=="debugger"?ke(qt(";")):et=="{"?ke(zt("}"),At,fn,Ht,Nt):et==";"?ke():et=="if"?(we.state.lexical.info=="else"&&we.state.cc[we.state.cc.length-1]==Ht&&we.state.cc.pop()(),ke(zt("form"),Hn,Qt,Ht,Er)):et=="function"?ke(pt):et=="for"?ke(zt("form"),At,Dr,Qt,Nt,Ht):et=="class"||G&&yt=="interface"?(we.marked="keyword",ke(zt("form",et=="class"?et:yt),sn,Ht)):et=="variable"?G&&yt=="declare"?(we.marked="keyword",ke(Qt)):G&&(yt=="module"||yt=="enum"||yt=="type")&&we.stream.match(/^\s*\w/,!1)?(we.marked="keyword",yt=="enum"?ke(br):yt=="type"?ke(Ne,qt("operator"),dt,qt(";")):ke(zt("form"),En,qt("{"),zt("}"),fn,Ht,Ht)):G&&yt=="namespace"?(we.marked="keyword",ke(zt("form"),yn,Qt,Ht)):G&&yt=="abstract"?(we.marked="keyword",ke(Qt)):ke(zt("stat"),Ue):et=="switch"?ke(zt("form"),Hn,qt("{"),zt("}","switch"),At,fn,Ht,Ht,Nt):et=="case"?ke(yn,qt(":")):et=="default"?ke(qt(":")):et=="catch"?ke(zt("form"),Ve,Jt,Qt,Ht,Nt):et=="export"?ke(zt("stat"),Xn,Ht):et=="import"?ke(zt("stat"),tr,Ht):et=="async"?ke(Qt):yt=="@"?ke(yn,Qt):Ae(zt("stat"),yn,qt(";"),Ht)}function Jt(et){if(et=="(")return ke(vt,qt(")"))}function yn(et,yt){return On(et,yt,!1)}function _n(et,yt){return On(et,yt,!0)}function Hn(et){return et!="("?Ae():ke(zt(")"),Fn,qt(")"),Ht)}function On(et,yt,wt){if(we.state.fatArrowAt==we.stream.start){var Bt=wt?We:_t;if(et=="(")return ke(Ve,zt(")"),ut(vt,")"),Ht,qt("=>"),Bt,Nt);if(et=="variable")return Ae(Ve,En,qt("=>"),Bt,Nt)}var Kt=wt?dn:In;return xe.hasOwnProperty(et)?ke(Kt):et=="function"?ke(pt,Kt):et=="class"||G&&yt=="interface"?(we.marked="keyword",ke(zt("form"),Xt,Ht)):et=="keyword c"||et=="async"?ke(wt?_n:yn):et=="("?ke(zt(")"),Fn,qt(")"),Ht,Kt):et=="operator"||et=="spread"?ke(wt?_n:yn):et=="["?ke(zt("]"),mr,Ht,Kt):et=="{"?Rt(mt,"}",null,Kt):et=="quasi"?Ae(kt,Kt):et=="new"?ke(Pe(wt)):ke()}function Fn(et){return et.match(/[;\}\)\],]/)?Ae():Ae(yn)}function In(et,yt){return et==","?ke(Fn):dn(et,yt,!1)}function dn(et,yt,wt){var Bt=wt==!1?In:dn,Kt=wt==!1?yn:_n;if(et=="=>")return ke(Ve,wt?We:_t,Nt);if(et=="operator")return/\+\+|--/.test(yt)||G&&yt=="!"?ke(Bt):G&&yt=="<"&&we.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ke(zt(">"),ut(dt,">"),Ht,Bt):yt=="?"?ke(yn,qt(":"),Kt):ke(Kt);if(et=="quasi")return Ae(kt,Bt);if(et!=";"){if(et=="(")return Rt(_n,")","call",Bt);if(et==".")return ke(Qe,Bt);if(et=="[")return ke(zt("]"),Fn,qt("]"),Ht,Bt);if(G&&yt=="as")return we.marked="keyword",ke(dt,Bt);if(et=="regexp")return we.state.lastType=we.marked="operator",we.stream.backUp(we.stream.pos-we.stream.start-1),ke(Kt)}}function kt(et,yt){return et!="quasi"?Ae():yt.slice(yt.length-2)!="${"?ke(kt):ke(Fn,Ye)}function Ye(et){if(et=="}")return we.marked="string-2",we.state.tokenize=fe,ke(kt)}function _t(et){return ve(we.stream,we.state),Ae(et=="{"?Qt:yn)}function We(et){return ve(we.stream,we.state),Ae(et=="{"?Qt:_n)}function Pe(et){return function(yt){return yt=="."?ke(et?$e:Se):yt=="variable"&&G?ke(Tt,et?dn:In):Ae(et?_n:yn)}}function Se(et,yt){if(yt=="target")return we.marked="keyword",ke(In)}function $e(et,yt){if(yt=="target")return we.marked="keyword",ke(dn)}function Ue(et){return et==":"?ke(Ht,Qt):Ae(In,qt(";"),Ht)}function Qe(et){if(et=="variable")return we.marked="property",ke()}function mt(et,yt){if(et=="async")return we.marked="property",ke(mt);if(et=="variable"||we.style=="keyword"){if(we.marked="property",yt=="get"||yt=="set")return ke(ht);var wt;return G&&we.state.fatArrowAt==we.stream.start&&(wt=we.stream.match(/^\s*:\s*/,!1))&&(we.state.fatArrowAt=we.stream.pos+wt[0].length),ke(at)}else{if(et=="number"||et=="string")return we.marked=q?"property":we.style+" property",ke(at);if(et=="jsonld-keyword")return ke(at);if(G&&Fe(yt))return we.marked="keyword",ke(mt);if(et=="[")return ke(yn,Bn,qt("]"),at);if(et=="spread")return ke(_n,at);if(yt=="*")return we.marked="keyword",ke(mt);if(et==":")return Ae(at)}}function ht(et){return et!="variable"?Ae(at):(we.marked="property",ke(pt))}function at(et){if(et==":")return ke(_n);if(et=="(")return Ae(pt)}function ut(et,yt,wt){function Bt(Kt,Mt){if(wt?wt.indexOf(Kt)>-1:Kt==","){var tn=we.state.lexical;return tn.info=="call"&&(tn.pos=(tn.pos||0)+1),ke(function(hn,Cn){return hn==yt||Cn==yt?Ae():Ae(et)},Bt)}return Kt==yt||Mt==yt?ke():wt&&wt.indexOf(";")>-1?Ae(et):ke(qt(yt))}return function(Kt,Mt){return Kt==yt||Mt==yt?ke():Ae(et,Bt)}}function Rt(et,yt,wt){for(var Bt=3;Bt<arguments.length;Bt++)we.cc.push(arguments[Bt]);return ke(zt(yt,wt),ut(et,yt),Ht)}function fn(et){return et=="}"?ke():Ae(Qt,fn)}function Bn(et,yt){if(G){if(et==":")return ke(dt);if(yt=="?")return ke(Bn)}}function en(et,yt){if(G&&(et==":"||yt=="in"))return ke(dt)}function xn(et){if(G&&et==":")return we.stream.match(/^\s*\w+\s+is\b/,!1)?ke(yn,ot,dt):ke(dt)}function ot(et,yt){if(yt=="is")return we.marked="keyword",ke()}function dt(et,yt){if(yt=="keyof"||yt=="typeof"||yt=="infer"||yt=="readonly")return we.marked="keyword",ke(yt=="typeof"?_n:dt);if(et=="variable"||yt=="void")return we.marked="type",ke(ft);if(yt=="|"||yt=="&")return ke(dt);if(et=="string"||et=="number"||et=="atom")return ke(ft);if(et=="[")return ke(zt("]"),ut(dt,"]",","),Ht,ft);if(et=="{")return ke(zt("}"),Yt,Ht,ft);if(et=="(")return ke(ut(Ct,")"),Ot,ft);if(et=="<")return ke(ut(dt,">"),dt);if(et=="quasi")return Ae(gn,ft)}function Ot(et){if(et=="=>")return ke(dt)}function Yt(et){return et.match(/[\}\)\]]/)?ke():et==","||et==";"?ke(Yt):Ae(Wt,Yt)}function Wt(et,yt){if(et=="variable"||we.style=="keyword")return we.marked="property",ke(Wt);if(yt=="?"||et=="number"||et=="string")return ke(Wt);if(et==":")return ke(dt);if(et=="[")return ke(qt("variable"),en,qt("]"),Wt);if(et=="(")return Ae(ct,Wt);if(!et.match(/[;\}\)\],]/))return ke()}function gn(et,yt){return et!="quasi"?Ae():yt.slice(yt.length-2)!="${"?ke(gn):ke(dt,Kn)}function Kn(et){if(et=="}")return we.marked="string-2",we.state.tokenize=fe,ke(gn)}function Ct(et,yt){return et=="variable"&&we.stream.match(/^\s*[?:]/,!1)||yt=="?"?ke(Ct):et==":"?ke(dt):et=="spread"?ke(Ct):Ae(dt)}function ft(et,yt){if(yt=="<")return ke(zt(">"),ut(dt,">"),Ht,ft);if(yt=="|"||et=="."||yt=="&")return ke(dt);if(et=="[")return ke(dt,qt("]"),ft);if(yt=="extends"||yt=="implements")return we.marked="keyword",ke(dt);if(yt=="?")return ke(dt,qt(":"),dt)}function Tt(et,yt){if(yt=="<")return ke(zt(">"),ut(dt,">"),Ht,ft)}function Lt(){return Ae(dt,pn)}function pn(et,yt){if(yt=="=")return ke(dt)}function mn(et,yt){return yt=="enum"?(we.marked="keyword",ke(br)):Ae(En,Bn,ir,Ir)}function En(et,yt){if(G&&Fe(yt))return we.marked="keyword",ke(En);if(et=="variable")return Me(yt),ke();if(et=="spread")return ke(En);if(et=="[")return Rt(jn,"]");if(et=="{")return Rt(cr,"}")}function cr(et,yt){return et=="variable"&&!we.stream.match(/^\s*:/,!1)?(Me(yt),ke(ir)):(et=="variable"&&(we.marked="property"),et=="spread"?ke(En):et=="}"?Ae():et=="["?ke(yn,qt("]"),qt(":"),cr):ke(qt(":"),En,ir))}function jn(){return Ae(En,ir)}function ir(et,yt){if(yt=="=")return ke(_n)}function Ir(et){if(et==",")return ke(mn)}function Er(et,yt){if(et=="keyword b"&&yt=="else")return ke(zt("form","else"),Qt,Ht)}function Dr(et,yt){if(yt=="await")return ke(Dr);if(et=="(")return ke(zt(")"),Vr,Ht)}function Vr(et){return et=="var"?ke(mn,Ge):et=="variable"?ke(Ge):Ae(Ge)}function Ge(et,yt){return et==")"?ke():et==";"?ke(Ge):yt=="in"||yt=="of"?(we.marked="keyword",ke(yn,Ge)):Ae(yn,Ge)}function pt(et,yt){if(yt=="*")return we.marked="keyword",ke(pt);if(et=="variable")return Me(yt),ke(pt);if(et=="(")return ke(Ve,zt(")"),ut(vt,")"),Ht,xn,Qt,Nt);if(G&&yt=="<")return ke(zt(">"),ut(Lt,">"),Ht,pt)}function ct(et,yt){if(yt=="*")return we.marked="keyword",ke(ct);if(et=="variable")return Me(yt),ke(ct);if(et=="(")return ke(Ve,zt(")"),ut(vt,")"),Ht,xn,Nt);if(G&&yt=="<")return ke(zt(">"),ut(Lt,">"),Ht,ct)}function Ne(et,yt){if(et=="keyword"||et=="variable")return we.marked="type",ke(Ne);if(yt=="<")return ke(zt(">"),ut(Lt,">"),Ht)}function vt(et,yt){return yt=="@"&&ke(yn,vt),et=="spread"?ke(vt):G&&Fe(yt)?(we.marked="keyword",ke(vt)):G&&et=="this"?ke(Bn,ir):Ae(En,Bn,ir)}function Xt(et,yt){return et=="variable"?sn(et,yt):Pn(et,yt)}function sn(et,yt){if(et=="variable")return Me(yt),ke(Pn)}function Pn(et,yt){if(yt=="<")return ke(zt(">"),ut(Lt,">"),Ht,Pn);if(yt=="extends"||yt=="implements"||G&&et==",")return yt=="implements"&&(we.marked="keyword"),ke(G?dt:yn,Pn);if(et=="{")return ke(zt("}"),Nn,Ht)}function Nn(et,yt){if(et=="async"||et=="variable"&&(yt=="static"||yt=="get"||yt=="set"||G&&Fe(yt))&&we.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return we.marked="keyword",ke(Nn);if(et=="variable"||we.style=="keyword")return we.marked="property",ke(Qn,Nn);if(et=="number"||et=="string")return ke(Qn,Nn);if(et=="[")return ke(yn,Bn,qt("]"),Qn,Nn);if(yt=="*")return we.marked="keyword",ke(Nn);if(G&&et=="(")return Ae(ct,Nn);if(et==";"||et==",")return ke(Nn);if(et=="}")return ke();if(yt=="@")return ke(yn,Nn)}function Qn(et,yt){if(yt=="!"||yt=="?")return ke(Qn);if(et==":")return ke(dt,ir);if(yt=="=")return ke(_n);var wt=we.state.lexical.prev,Bt=wt&&wt.info=="interface";return Ae(Bt?ct:pt)}function Xn(et,yt){return yt=="*"?(we.marked="keyword",ke(Rn,qt(";"))):yt=="default"?(we.marked="keyword",ke(yn,qt(";"))):et=="{"?ke(ut(Rr,"}"),Rn,qt(";")):Ae(Qt)}function Rr(et,yt){if(yt=="as")return we.marked="keyword",ke(qt("variable"));if(et=="variable")return Ae(_n,Rr)}function tr(et){return et=="string"?ke():et=="("?Ae(yn):et=="."?Ae(In):Ae(fr,Sr,Rn)}function fr(et,yt){return et=="{"?Rt(fr,"}"):(et=="variable"&&Me(yt),yt=="*"&&(we.marked="keyword"),ke(sr))}function Sr(et){if(et==",")return ke(fr,Sr)}function sr(et,yt){if(yt=="as")return we.marked="keyword",ke(fr)}function Rn(et,yt){if(yt=="from")return we.marked="keyword",ke(yn)}function mr(et){return et=="]"?ke():Ae(ut(_n,"]"))}function br(){return Ae(zt("form"),En,qt("{"),zt("}"),ut(hr,"}"),Ht,Ht)}function hr(){return Ae(En,ir)}function zn(et,yt){return et.lastType=="operator"||et.lastType==","||ee.test(yt.charAt(0))||/[,.]/.test(yt.charAt(0))}function er(et,yt,wt){return yt.tokenize==ge&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(yt.lastType)||yt.lastType=="quasi"&&/\{\s*$/.test(et.string.slice(0,et.pos-(wt||0)))}return{startState:function(et){var yt={tokenize:ge,lastType:"sof",cc:[],lexical:new oe((et||0)-j,0,"block",!1),localVars:B.localVars,context:B.localVars&&new Ze(null,null,!1),indented:et||0};return B.globalVars&&typeof B.globalVars=="object"&&(yt.globalVars=B.globalVars),yt},token:function(et,yt){if(et.sol()&&(yt.lexical.hasOwnProperty("align")||(yt.lexical.align=!1),yt.indented=et.indentation(),ve(et,yt)),yt.tokenize!=_e&&et.eatSpace())return null;var wt=yt.tokenize(et,yt);return se=="comment"?wt:(yt.lastType=se=="operator"&&(ne=="++"||ne=="--")?"incdec":se,be(yt,wt,se,ne,et))},indent:function(et,yt){if(et.tokenize==_e||et.tokenize==fe)return I.Pass;if(et.tokenize!=ge)return 0;var wt=yt&&yt.charAt(0),Bt=et.lexical,Kt;if(!/^\s*else\b/.test(yt))for(var Mt=et.cc.length-1;Mt>=0;--Mt){var tn=et.cc[Mt];if(tn==Ht)Bt=Bt.prev;else if(tn!=Er&&tn!=Nt)break}for(;(Bt.type=="stat"||Bt.type=="form")&&(wt=="}"||(Kt=et.cc[et.cc.length-1])&&(Kt==In||Kt==dn)&&!/^[,\.=+\-*:?[\(]/.test(yt));)Bt=Bt.prev;U&&Bt.type==")"&&Bt.prev.type=="stat"&&(Bt=Bt.prev);var hn=Bt.type,Cn=wt==hn;return hn=="vardef"?Bt.indented+(et.lastType=="operator"||et.lastType==","?Bt.info.length+1:0):hn=="form"&&wt=="{"?Bt.indented:hn=="form"?Bt.indented+j:hn=="stat"?Bt.indented+(zn(et,yt)?U||j:0):Bt.info=="switch"&&!Cn&&B.doubleIndentSwitch!=!1?Bt.indented+(/^(?:case|default)\b/.test(yt)?j:2*j):Bt.align?Bt.column+(Cn?0:1):Bt.indented+(Cn?0:j)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Y?null:"/*",blockCommentEnd:Y?null:"*/",blockCommentContinue:Y?null:" * ",lineComment:Y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Y?"json":"javascript",jsonldMode:q,jsonMode:Y,expressionAllowed:er,skipExpression:function(et){be(et,"atom","atom","true",new I.StringStream("",2,null))}}}),I.registerHelper("wordChars","javascript",/[\w$]/),I.defineMIME("text/javascript","javascript"),I.defineMIME("text/ecmascript","javascript"),I.defineMIME("application/javascript","javascript"),I.defineMIME("application/x-javascript","javascript"),I.defineMIME("application/ecmascript","javascript"),I.defineMIME("application/json",{name:"javascript",json:!0}),I.defineMIME("application/x-json",{name:"javascript",json:!0}),I.defineMIME("application/manifest+json",{name:"javascript",json:!0}),I.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),I.defineMIME("text/typescript",{name:"javascript",typescript:!0}),I.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),javascript.exports}var hasRequiredHtmlmixed;function requireHtmlmixed(){return hasRequiredHtmlmixed||(hasRequiredHtmlmixed=1,function(M,$){(function(I){I(requireCodemirror(),requireXml(),requireJavascript(),cssExports)})(function(I){var N={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function B(J,Z,ee){var te=J.current(),re=te.search(Z);return re>-1?J.backUp(te.length-re):te.match(/<\/?$/)&&(J.backUp(te.length),J.match(Z,!1)||J.match(te)),ee}var j={};function U(J){var Z=j[J];return Z||(j[J]=new RegExp("\\s+"+J+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function q(J,Z){var ee=J.match(U(Z));return ee?/^\s*(.*?)\s*$/.exec(ee[2])[1]:""}function Y(J,Z){return new RegExp((Z?"^":"")+"</\\s*"+J+"\\s*>","i")}function K(J,Z){for(var ee in J)for(var te=Z[ee]||(Z[ee]=[]),re=J[ee],se=re.length-1;se>=0;se--)te.unshift(re[se])}function G(J,Z){for(var ee=0;ee<J.length;ee++){var te=J[ee];if(!te[0]||te[1].test(q(Z,te[0])))return te[2]}}I.defineMode("htmlmixed",function(J,Z){var ee=I.getMode(J,{name:"xml",htmlMode:!0,multilineTagIndentFactor:Z.multilineTagIndentFactor,multilineTagIndentPastTag:Z.multilineTagIndentPastTag,allowMissingTagName:Z.allowMissingTagName}),te={},re=Z&&Z.tags,se=Z&&Z.scriptTypes;if(K(N,te),re&&K(re,te),se)for(var ne=se.length-1;ne>=0;ne--)te.script.unshift(["type",se[ne].matches,se[ne].mode]);function le(ge,ue){var _e=ee.token(ge,ue.htmlState),fe=/\btag\b/.test(_e),me;if(fe&&!/[<>\s\/]/.test(ge.current())&&(me=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&te.hasOwnProperty(me))ue.inTag=me+" ";else if(ue.inTag&&fe&&/>$/.test(ge.current())){var ve=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var xe=ge.current()==">"&&G(te[ve[1]],ve[2]),oe=I.getMode(J,xe),ye=Y(ve[1],!0),be=Y(ve[1],!1);ue.token=function(we,Ae){return we.match(ye,!1)?(Ae.token=le,Ae.localState=Ae.localMode=null,null):B(we,be,Ae.localMode.token(we,Ae.localState))},ue.localMode=oe,ue.localState=I.startState(oe,ee.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=ge.current(),ge.eol()&&(ue.inTag+=" "));return _e}return{startState:function(){var ge=I.startState(ee);return{token:le,inTag:null,localMode:null,localState:null,htmlState:ge}},copyState:function(ge){var ue;return ge.localState&&(ue=I.copyState(ge.localMode,ge.localState)),{token:ge.token,inTag:ge.inTag,localMode:ge.localMode,localState:ue,htmlState:I.copyState(ee,ge.htmlState)}},token:function(ge,ue){return ue.token(ge,ue)},indent:function(ge,ue,_e){return!ge.localMode||/^\s*<\//.test(ue)?ee.indent(ge.htmlState,ue,_e):ge.localMode.indent?ge.localMode.indent(ge.localState,ue,_e):I.Pass},innerMode:function(ge){return{state:ge.localState||ge.htmlState,mode:ge.localMode||ee}}}},"xml","javascript","css"),I.defineMIME("text/html","htmlmixed")})}()),htmlmixed.exports}var ruby={exports:{}},hasRequiredRuby;function requireRuby(){return hasRequiredRuby||(hasRequiredRuby=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){function N(G){for(var J={},Z=0,ee=G.length;Z<ee;++Z)J[G[Z]]=!0;return J}var B=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],j=N(B),U=N(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),q=N(["end","until"]),Y={"[":"]","{":"}","(":")"},K={"]":"[","}":"{",")":"("};I.defineMode("ruby",function(G){var J;function Z(ue,_e,fe){return fe.tokenize.push(ue),ue(_e,fe)}function ee(ue,_e){if(ue.sol()&&ue.match("=begin")&&ue.eol())return _e.tokenize.push(ge),"comment";if(ue.eatSpace())return null;var fe=ue.next(),me;if(fe=="`"||fe=="'"||fe=='"')return Z(ne(fe,"string",fe=='"'||fe=="`"),ue,_e);if(fe=="/")return te(ue)?Z(ne(fe,"string-2",!0),ue,_e):"operator";if(fe=="%"){var ve="string",xe=!0;ue.eat("s")?ve="atom":ue.eat(/[WQ]/)?ve="string":ue.eat(/[r]/)?ve="string-2":ue.eat(/[wxq]/)&&(ve="string",xe=!1);var oe=ue.eat(/[^\w\s=]/);return oe?(Y.propertyIsEnumerable(oe)&&(oe=Y[oe]),Z(ne(oe,ve,xe,!0),ue,_e)):"operator"}else{if(fe=="#")return ue.skipToEnd(),"comment";if(fe=="<"&&(me=ue.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return Z(le(me[2],me[1]),ue,_e);if(fe=="0")return ue.eat("x")?ue.eatWhile(/[\da-fA-F]/):ue.eat("b")?ue.eatWhile(/[01]/):ue.eatWhile(/[0-7]/),"number";if(/\d/.test(fe))return ue.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(fe=="?"){for(;ue.match(/^\\[CM]-/););return ue.eat("\\")?ue.eatWhile(/\w/):ue.next(),"string"}else{if(fe==":")return ue.eat("'")?Z(ne("'","atom",!1),ue,_e):ue.eat('"')?Z(ne('"',"atom",!0),ue,_e):ue.eat(/[\<\>]/)?(ue.eat(/[\<\>]/),"atom"):ue.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":ue.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(ue.eatWhile(/[\w$\xa1-\uffff]/),ue.eat(/[\?\!\=]/),"atom"):"operator";if(fe=="@"&&ue.match(/^@?[a-zA-Z_\xa1-\uffff]/))return ue.eat("@"),ue.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(fe=="$")return ue.eat(/[a-zA-Z_]/)?ue.eatWhile(/[\w]/):ue.eat(/\d/)?ue.eat(/\d/):ue.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(fe))return ue.eatWhile(/[\w\xa1-\uffff]/),ue.eat(/[\?\!]/),ue.eat(":")?"atom":"ident";if(fe=="|"&&(_e.varList||_e.lastTok=="{"||_e.lastTok=="do"))return J="|",null;if(/[\(\)\[\]{}\\;]/.test(fe))return J=fe,null;if(fe=="-"&&ue.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(fe)){var ye=ue.eatWhile(/[=+\-\/*:\.^%<>~|]/);return fe=="."&&!ye&&(J="."),"operator"}else return null}}}function te(ue){for(var _e=ue.pos,fe=0,me,ve=!1,xe=!1;(me=ue.next())!=null;)if(xe)xe=!1;else{if("[{(".indexOf(me)>-1)fe++;else if("]})".indexOf(me)>-1){if(fe--,fe<0)break}else if(me=="/"&&fe==0){ve=!0;break}xe=me=="\\"}return ue.backUp(ue.pos-_e),ve}function re(ue){return ue||(ue=1),function(_e,fe){if(_e.peek()=="}"){if(ue==1)return fe.tokenize.pop(),fe.tokenize[fe.tokenize.length-1](_e,fe);fe.tokenize[fe.tokenize.length-1]=re(ue-1)}else _e.peek()=="{"&&(fe.tokenize[fe.tokenize.length-1]=re(ue+1));return ee(_e,fe)}}function se(){var ue=!1;return function(_e,fe){return ue?(fe.tokenize.pop(),fe.tokenize[fe.tokenize.length-1](_e,fe)):(ue=!0,ee(_e,fe))}}function ne(ue,_e,fe,me){return function(ve,xe){var oe=!1,ye;for(xe.context.type==="read-quoted-paused"&&(xe.context=xe.context.prev,ve.eat("}"));(ye=ve.next())!=null;){if(ye==ue&&(me||!oe)){xe.tokenize.pop();break}if(fe&&ye=="#"&&!oe){if(ve.eat("{")){ue=="}"&&(xe.context={prev:xe.context,type:"read-quoted-paused"}),xe.tokenize.push(re());break}else if(/[@\$]/.test(ve.peek())){xe.tokenize.push(se());break}}oe=!oe&&ye=="\\"}return _e}}function le(ue,_e){return function(fe,me){return _e&&fe.eatSpace(),fe.match(ue)?me.tokenize.pop():fe.skipToEnd(),"string"}}function ge(ue,_e){return ue.sol()&&ue.match("=end")&&ue.eol()&&_e.tokenize.pop(),ue.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[ee],indented:0,context:{type:"top",indented:-G.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(ue,_e){J=null,ue.sol()&&(_e.indented=ue.indentation());var fe=_e.tokenize[_e.tokenize.length-1](ue,_e),me,ve=J;if(fe=="ident"){var xe=ue.current();fe=_e.lastTok=="."?"property":j.propertyIsEnumerable(ue.current())?"keyword":/^[A-Z]/.test(xe)?"tag":_e.lastTok=="def"||_e.lastTok=="class"||_e.varList?"def":"variable",fe=="keyword"&&(ve=xe,U.propertyIsEnumerable(xe)?me="indent":q.propertyIsEnumerable(xe)?me="dedent":((xe=="if"||xe=="unless")&&ue.column()==ue.indentation()||xe=="do"&&_e.context.indented<_e.indented)&&(me="indent"))}return(J||fe&&fe!="comment")&&(_e.lastTok=ve),J=="|"&&(_e.varList=!_e.varList),me=="indent"||/[\(\[\{]/.test(J)?_e.context={prev:_e.context,type:J||fe,indented:_e.indented}:(me=="dedent"||/[\)\]\}]/.test(J))&&_e.context.prev&&(_e.context=_e.context.prev),ue.eol()&&(_e.continuedLine=J=="\\"||fe=="operator"),fe},indent:function(ue,_e){if(ue.tokenize[ue.tokenize.length-1]!=ee)return I.Pass;var fe=_e&&_e.charAt(0),me=ue.context,ve=me.type==K[fe]||me.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(_e);return me.indented+(ve?0:G.indentUnit)+(ue.continuedLine?G.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),I.defineMIME("text/x-ruby","ruby"),I.registerHelper("hintWords","ruby",B)})}()),ruby.exports}(function(M,$){(function(I){I(requireCodemirror(),requireHtmlmixed(),requireRuby())})(function(I){I.defineMode("haml",function(N){var B=I.getMode(N,{name:"htmlmixed"}),j=I.getMode(N,"ruby");function U(K){return function(G,J){var Z=G.peek();return Z==K&&J.rubyState.tokenize.length==1?(G.next(),J.tokenize=Y,"closeAttributeTag"):q(G,J)}}function q(K,G){return K.match("-#")?(K.skipToEnd(),"comment"):j.token(K,G.rubyState)}function Y(K,G){var J=K.peek();if(G.previousToken.style=="comment"&&G.indented>G.previousToken.indented)return K.skipToEnd(),"commentLine";if(G.startOfLine){if(J=="!"&&K.match("!!"))return K.skipToEnd(),"tag";if(K.match(/^%[\w:#\.]+=/))return G.tokenize=q,"hamlTag";if(K.match(/^%[\w:]+/))return"hamlTag";if(J=="/")return K.skipToEnd(),"comment"}if((G.startOfLine||G.previousToken.style=="hamlTag")&&(J=="#"||J=="."))return K.match(/[\w-#\.]*/),"hamlAttribute";if(G.startOfLine&&!K.match("-->",!1)&&(J=="="||J=="-"))return G.tokenize=q,G.tokenize(K,G);if(G.previousToken.style=="hamlTag"||G.previousToken.style=="closeAttributeTag"||G.previousToken.style=="hamlAttribute"){if(J=="(")return G.tokenize=U(")"),G.tokenize(K,G);if(J=="{"&&!K.match(/^\{%.*/))return G.tokenize=U("}"),G.tokenize(K,G)}return B.token(K,G.htmlState)}return{startState:function(){var K=I.startState(B),G=I.startState(j);return{htmlState:K,rubyState:G,indented:0,previousToken:{style:null,indented:0},tokenize:Y}},copyState:function(K){return{htmlState:I.copyState(B,K.htmlState),rubyState:I.copyState(j,K.rubyState),indented:K.indented,previousToken:K.previousToken,tokenize:K.tokenize}},token:function(K,G){if(K.sol()&&(G.indented=K.indentation(),G.startOfLine=!0),K.eatSpace())return null;var J=G.tokenize(K,G);if(G.startOfLine=!1,J&&J!="commentLine"&&(G.previousToken={style:J,indented:G.indented}),K.eol()&&G.tokenize==q){K.backUp(1);var Z=K.peek();K.next(),Z&&Z!=","&&(G.tokenize=Y)}return J=="hamlTag"?J="tag":J=="commentLine"?J="comment":J=="hamlAttribute"?J="attribute":J=="closeAttributeTag"&&(J=null),J}}},"htmlmixed","ruby"),I.defineMIME("text/x-haml","haml")})})();requireHtmlmixed();requireJavascript();requireMarkdown();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("nginx",function(N){function B(re){for(var se={},ne=re.split(" "),le=0;le<ne.length;++le)se[ne[le]]=!0;return se}var j=B("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),U=B("http mail events server types location upstream charset_map limit_except if geo map"),q=B("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),Y=N.indentUnit,K;function G(re,se){return K=se,re}function J(re,se){re.eatWhile(/[\w\$_]/);var ne=re.current();if(j.propertyIsEnumerable(ne))return"keyword";if(U.propertyIsEnumerable(ne))return"variable-2";if(q.propertyIsEnumerable(ne))return"string-2";var le=re.next();if(le=="@")return re.eatWhile(/[\w\\\-]/),G("meta",re.current());if(le=="/"&&re.eat("*"))return se.tokenize=Z,Z(re,se);if(le=="<"&&re.eat("!"))return se.tokenize=ee,ee(re,se);if(le=="=")G(null,"compare");else return(le=="~"||le=="|")&&re.eat("=")?G(null,"compare"):le=='"'||le=="'"?(se.tokenize=te(le),se.tokenize(re,se)):le=="#"?(re.skipToEnd(),G("comment","comment")):le=="!"?(re.match(/^\s*\w*/),G("keyword","important")):/\d/.test(le)?(re.eatWhile(/[\w.%]/),G("number","unit")):/[,.+>*\/]/.test(le)?G(null,"select-op"):/[;{}:\[\]]/.test(le)?G(null,le):(re.eatWhile(/[\w\\\-]/),G("variable","variable"))}function Z(re,se){for(var ne=!1,le;(le=re.next())!=null;){if(ne&&le=="/"){se.tokenize=J;break}ne=le=="*"}return G("comment","comment")}function ee(re,se){for(var ne=0,le;(le=re.next())!=null;){if(ne>=2&&le==">"){se.tokenize=J;break}ne=le=="-"?ne+1:0}return G("comment","comment")}function te(re){return function(se,ne){for(var le=!1,ge;(ge=se.next())!=null&&!(ge==re&&!le);)le=!le&&ge=="\\";return le||(ne.tokenize=J),G("string","string")}}return{startState:function(re){return{tokenize:J,baseIndent:re||0,stack:[]}},token:function(re,se){if(re.eatSpace())return null;K=null;var ne=se.tokenize(re,se),le=se.stack[se.stack.length-1];return K=="hash"&&le=="rule"?ne="atom":ne=="variable"&&(le=="rule"?ne="number":(!le||le=="@media{")&&(ne="tag")),le=="rule"&&/^[\{\};]$/.test(K)&&se.stack.pop(),K=="{"?le=="@media"?se.stack[se.stack.length-1]="@media{":se.stack.push("{"):K=="}"?se.stack.pop():K=="@media"?se.stack.push("@media"):le=="{"&&K!="comment"&&se.stack.push("rule"),ne},indent:function(re,se){var ne=re.stack.length;return/^\}/.test(se)&&(ne-=re.stack[re.stack.length-1]=="rule"?2:1),re.baseIndent+ne*Y},electricChars:"}"}}),I.defineMIME("text/x-nginx-conf","nginx")})})();(function(M,$){(function(I){I(requireCodemirror(),requireHtmlmixed(),clikeExports)})(function(I){function N(J){for(var Z={},ee=J.split(" "),te=0;te<ee.length;++te)Z[ee[te]]=!0;return Z}function B(J,Z,ee){return J.length==0?j(Z):function(te,re){for(var se=J[0],ne=0;ne<se.length;ne++)if(te.match(se[ne][0]))return re.tokenize=B(J.slice(1),Z),se[ne][1];return re.tokenize=j(Z,ee),"string"}}function j(J,Z){return function(ee,te){return U(ee,te,J,Z)}}function U(J,Z,ee,te){if(te!==!1&&J.match("${",!1)||J.match("{$",!1))return Z.tokenize=null,"string";if(te!==!1&&J.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return J.match("[",!1)&&(Z.tokenize=B([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],ee,te)),J.match(/^->\w/,!1)&&(Z.tokenize=B([[["->",null]],[[/[\w]+/,"variable"]]],ee,te)),"variable-2";for(var re=!1;!J.eol()&&(re||te===!1||!J.match("{$",!1)&&!J.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!re&&J.match(ee)){Z.tokenize=null,Z.tokStack.pop(),Z.tokStack.pop();break}re=J.next()=="\\"&&!re}return"string"}var q="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",Y="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",K="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";I.registerHelper("hintWords","php",[q,Y,K].join(" ").split(" ")),I.registerHelper("wordChars","php",/[\w$]/);var G={name:"clike",helperType:"php",keywords:N(q),blockKeywords:N("catch do else elseif for foreach if switch try while finally"),defKeywords:N("class enum function interface namespace trait"),atoms:N(Y),builtin:N(K),multiLineStrings:!0,hooks:{$:function(J){return J.eatWhile(/[\w\$_]/),"variable-2"},"<":function(J,Z){var ee;if(ee=J.match(/^<<\s*/)){var te=J.eat(/['"]/);J.eatWhile(/[\w\.]/);var re=J.current().slice(ee[0].length+(te?2:1));if(te&&J.eat(te),re)return(Z.tokStack||(Z.tokStack=[])).push(re,0),Z.tokenize=j(re,te!="'"),"string"}return!1},"#":function(J){for(;!J.eol()&&!J.match("?>",!1);)J.next();return"comment"},"/":function(J){if(J.eat("/")){for(;!J.eol()&&!J.match("?>",!1);)J.next();return"comment"}return!1},'"':function(J,Z){return(Z.tokStack||(Z.tokStack=[])).push('"',0),Z.tokenize=j('"'),"string"},"{":function(J,Z){return Z.tokStack&&Z.tokStack.length&&Z.tokStack[Z.tokStack.length-1]++,!1},"}":function(J,Z){return Z.tokStack&&Z.tokStack.length>0&&!--Z.tokStack[Z.tokStack.length-1]&&(Z.tokenize=j(Z.tokStack[Z.tokStack.length-2])),!1}}};I.defineMode("php",function(J,Z){var ee=I.getMode(J,Z&&Z.htmlMode||"text/html"),te=I.getMode(J,G);function re(se,ne){var le=ne.curMode==te;if(se.sol()&&ne.pending&&ne.pending!='"'&&ne.pending!="'"&&(ne.pending=null),le)return le&&ne.php.tokenize==null&&se.match("?>")?(ne.curMode=ee,ne.curState=ne.html,ne.php.context.prev||(ne.php=null),"meta"):te.token(se,ne.curState);if(se.match(/^<\?\w*/))return ne.curMode=te,ne.php||(ne.php=I.startState(te,ee.indent(ne.html,"",""))),ne.curState=ne.php,"meta";if(ne.pending=='"'||ne.pending=="'"){for(;!se.eol()&&se.next()!=ne.pending;);var ge="string"}else if(ne.pending&&se.pos<ne.pending.end){se.pos=ne.pending.end;var ge=ne.pending.style}else var ge=ee.token(se,ne.curState);ne.pending&&(ne.pending=null);var ue=se.current(),_e=ue.search(/<\?/),fe;return _e!=-1&&(ge=="string"&&(fe=ue.match(/[\'\"]$/))&&!/\?>/.test(ue)?ne.pending=fe[0]:ne.pending={end:se.pos,style:ge},se.backUp(ue.length-_e)),ge}return{startState:function(){var se=I.startState(ee),ne=Z.startOpen?I.startState(te):null;return{html:se,php:ne,curMode:Z.startOpen?te:ee,curState:Z.startOpen?ne:se,pending:null}},copyState:function(se){var ne=se.html,le=I.copyState(ee,ne),ge=se.php,ue=ge&&I.copyState(te,ge),_e;return se.curMode==ee?_e=le:_e=ue,{html:le,php:ue,curMode:se.curMode,curState:_e,pending:se.pending}},token:re,indent:function(se,ne,le){return se.curMode!=te&&/^\s*<\//.test(ne)||se.curMode==te&&/^\?>/.test(ne)?ee.indent(se.html,ne,le):se.curMode.indent(se.curState,ne,le)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(se){return{state:se.curState,mode:se.curMode}}}},"htmlmixed","clike"),I.defineMIME("application/x-httpd-php","php"),I.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),I.defineMIME("text/x-php",G)})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){function N(K){return new RegExp("^(("+K.join(")|(")+"))\\b")}var B=N(["and","or","not","is"]),j=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],U=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];I.registerHelper("hintWords","python",j.concat(U).concat(["exec","print"]));function q(K){return K.scopes[K.scopes.length-1]}I.defineMode("python",function(K,G){for(var J="error",Z=G.delimiters||G.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,ee=[G.singleOperators,G.doubleOperators,G.doubleDelimiters,G.tripleDelimiters,G.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],te=0;te<ee.length;te++)ee[te]||ee.splice(te--,1);var re=G.hangingIndent||K.indentUnit,se=j,ne=U;G.extra_keywords!=null&&(se=se.concat(G.extra_keywords)),G.extra_builtins!=null&&(ne=ne.concat(G.extra_builtins));var le=!(G.version&&Number(G.version)<3);if(le){var ge=G.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;se=se.concat(["nonlocal","None","aiter","anext","async","await","breakpoint","match","case"]),ne=ne.concat(["ascii","bytes","exec","print"]);var ue=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var ge=G.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;se=se.concat(["exec","print"]),ne=ne.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","None"]);var ue=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var _e=N(se),fe=N(ne);function me(Oe,Me){var ze=Oe.sol()&&Me.lastToken!="\\";if(ze&&(Me.indent=Oe.indentation()),ze&&q(Me).type=="py"){var Fe=q(Me).offset;if(Oe.eatSpace()){var Ze=Oe.indentation();return Ze>Fe?ye(Me):Ze<Fe&&we(Oe,Me)&&Oe.peek()!="#"&&(Me.errorToken=!0),null}else{var lt=ve(Oe,Me);return Fe>0&&we(Oe,Me)&&(lt+=" "+J),lt}}return ve(Oe,Me)}function ve(Oe,Me,ze){if(Oe.eatSpace())return null;if(!ze&&Oe.match(/^#.*/))return"comment";if(Oe.match(/^[0-9\.]/,!1)){var Fe=!1;if(Oe.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(Fe=!0),Oe.match(/^[\d_]+\.\d*/)&&(Fe=!0),Oe.match(/^\.\d+/)&&(Fe=!0),Fe)return Oe.eat(/J/i),"number";var Ze=!1;if(Oe.match(/^0x[0-9a-f_]+/i)&&(Ze=!0),Oe.match(/^0b[01_]+/i)&&(Ze=!0),Oe.match(/^0o[0-7_]+/i)&&(Ze=!0),Oe.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(Oe.eat(/J/i),Ze=!0),Oe.match(/^0(?![\dx])/i)&&(Ze=!0),Ze)return Oe.eat(/L/i),"number"}if(Oe.match(ue)){var lt=Oe.current().toLowerCase().indexOf("f")!==-1;return lt?(Me.tokenize=xe(Oe.current(),Me.tokenize),Me.tokenize(Oe,Me)):(Me.tokenize=oe(Oe.current(),Me.tokenize),Me.tokenize(Oe,Me))}for(var qe=0;qe<ee.length;qe++)if(Oe.match(ee[qe]))return"operator";return Oe.match(Z)?"punctuation":Me.lastToken=="."&&Oe.match(ge)?"property":Oe.match(_e)||Oe.match(B)?"keyword":Oe.match(fe)?"builtin":Oe.match(/^(self|cls)\b/)?"variable-2":Oe.match(ge)?Me.lastToken=="def"||Me.lastToken=="class"?"def":"variable":(Oe.next(),ze?null:J)}function xe(Oe,Me){for(;"rubf".indexOf(Oe.charAt(0).toLowerCase())>=0;)Oe=Oe.substr(1);var ze=Oe.length==1,Fe="string";function Ze(qe){return function(Ve,At){var Nt=ve(Ve,At,!0);return Nt=="punctuation"&&(Ve.current()=="{"?At.tokenize=Ze(qe+1):Ve.current()=="}"&&(qe>1?At.tokenize=Ze(qe-1):At.tokenize=lt)),Nt}}function lt(qe,Ve){for(;!qe.eol();)if(qe.eatWhile(/[^'"\{\}\\]/),qe.eat("\\")){if(qe.next(),ze&&qe.eol())return Fe}else{if(qe.match(Oe))return Ve.tokenize=Me,Fe;if(qe.match("{{"))return Fe;if(qe.match("{",!1))return Ve.tokenize=Ze(0),qe.current()?Fe:Ve.tokenize(qe,Ve);if(qe.match("}}"))return Fe;if(qe.match("}"))return J;qe.eat(/['"]/)}if(ze){if(G.singleLineStringErrors)return J;Ve.tokenize=Me}return Fe}return lt.isString=!0,lt}function oe(Oe,Me){for(;"rubf".indexOf(Oe.charAt(0).toLowerCase())>=0;)Oe=Oe.substr(1);var ze=Oe.length==1,Fe="string";function Ze(lt,qe){for(;!lt.eol();)if(lt.eatWhile(/[^'"\\]/),lt.eat("\\")){if(lt.next(),ze&<.eol())return Fe}else{if(lt.match(Oe))return qe.tokenize=Me,Fe;lt.eat(/['"]/)}if(ze){if(G.singleLineStringErrors)return J;qe.tokenize=Me}return Fe}return Ze.isString=!0,Ze}function ye(Oe){for(;q(Oe).type!="py";)Oe.scopes.pop();Oe.scopes.push({offset:q(Oe).offset+K.indentUnit,type:"py",align:null})}function be(Oe,Me,ze){var Fe=Oe.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:Oe.column()+1;Me.scopes.push({offset:Me.indent+re,type:ze,align:Fe})}function we(Oe,Me){for(var ze=Oe.indentation();Me.scopes.length>1&&q(Me).offset>ze;){if(q(Me).type!="py")return!0;Me.scopes.pop()}return q(Me).offset!=ze}function Ae(Oe,Me){Oe.sol()&&(Me.beginningOfLine=!0,Me.dedent=!1);var ze=Me.tokenize(Oe,Me),Fe=Oe.current();if(Me.beginningOfLine&&Fe=="@")return Oe.match(ge,!1)?"meta":le?"operator":J;if(/\S/.test(Fe)&&(Me.beginningOfLine=!1),(ze=="variable"||ze=="builtin")&&Me.lastToken=="meta"&&(ze="meta"),(Fe=="pass"||Fe=="return")&&(Me.dedent=!0),Fe=="lambda"&&(Me.lambda=!0),Fe==":"&&!Me.lambda&&q(Me).type=="py"&&Oe.match(/^\s*(?:#|$)/,!1)&&ye(Me),Fe.length==1&&!/string|comment/.test(ze)){var Ze="[({".indexOf(Fe);if(Ze!=-1&&be(Oe,Me,"])}".slice(Ze,Ze+1)),Ze="])}".indexOf(Fe),Ze!=-1)if(q(Me).type==Fe)Me.indent=Me.scopes.pop().offset-re;else return J}return Me.dedent&&Oe.eol()&&q(Me).type=="py"&&Me.scopes.length>1&&Me.scopes.pop(),ze}var ke={startState:function(Oe){return{tokenize:me,scopes:[{offset:Oe||0,type:"py",align:null}],indent:Oe||0,lastToken:null,lambda:!1,dedent:0}},token:function(Oe,Me){var ze=Me.errorToken;ze&&(Me.errorToken=!1);var Fe=Ae(Oe,Me);return Fe&&Fe!="comment"&&(Me.lastToken=Fe=="keyword"||Fe=="punctuation"?Oe.current():Fe),Fe=="punctuation"&&(Fe=null),Oe.eol()&&Me.lambda&&(Me.lambda=!1),ze?Fe+" "+J:Fe},indent:function(Oe,Me){if(Oe.tokenize!=me)return Oe.tokenize.isString?I.Pass:0;var ze=q(Oe),Fe=ze.type==Me.charAt(0)||ze.type=="py"&&!Oe.dedent&&/^(else:|elif |except |finally:)/.test(Me);return ze.align!=null?ze.align-(Fe?1:0):ze.offset-(Fe?re:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return ke}),I.defineMIME("text/x-python","python");var Y=function(K){return K.split(" ")};I.defineMIME("text/x-cython",{name:"python",extra_keywords:Y("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();requireRuby();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("shell",function(){var N={};function B(te,re){for(var se=0;se<re.length;se++)N[re[se]]=te}var j=["true","false"],U=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],q=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];I.registerHelper("hintWords","shell",j.concat(U,q)),B("atom",j),B("keyword",U),B("builtin",q);function Y(te,re){if(te.eatSpace())return null;var se=te.sol(),ne=te.next();if(ne==="\\")return te.next(),null;if(ne==="'"||ne==='"'||ne==="`")return re.tokens.unshift(K(ne,ne==="`"?"quote":"string")),ee(te,re);if(ne==="#")return se&&te.eat("!")?(te.skipToEnd(),"meta"):(te.skipToEnd(),"comment");if(ne==="$")return re.tokens.unshift(J),ee(te,re);if(ne==="+"||ne==="=")return"operator";if(ne==="-")return te.eat("-"),te.eatWhile(/\w/),"attribute";if(ne=="<"){if(te.match("<<"))return"operator";var le=te.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(le)return re.tokens.unshift(Z(le[1])),"string-2"}if(/\d/.test(ne)&&(te.eatWhile(/\d/),te.eol()||!/\w/.test(te.peek())))return"number";te.eatWhile(/[\w-]/);var ge=te.current();return te.peek()==="="&&/\w+/.test(ge)?"def":N.hasOwnProperty(ge)?N[ge]:null}function K(te,re){var se=te=="("?")":te=="{"?"}":te;return function(ne,le){for(var ge,ue=!1;(ge=ne.next())!=null;){if(ge===se&&!ue){le.tokens.shift();break}else if(ge==="$"&&!ue&&te!=="'"&&ne.peek()!=se){ue=!0,ne.backUp(1),le.tokens.unshift(J);break}else{if(!ue&&te!==se&&ge===te)return le.tokens.unshift(K(te,re)),ee(ne,le);if(!ue&&/['"]/.test(ge)&&!/['"]/.test(te)){le.tokens.unshift(G(ge,"string")),ne.backUp(1);break}}ue=!ue&&ge==="\\"}return re}}function G(te,re){return function(se,ne){return ne.tokens[0]=K(te,re),se.next(),ee(se,ne)}}var J=function(te,re){re.tokens.length>1&&te.eat("$");var se=te.next();return/['"({]/.test(se)?(re.tokens[0]=K(se,se=="("?"quote":se=="{"?"def":"string"),ee(te,re)):(/\d/.test(se)||te.eatWhile(/\w/),re.tokens.shift(),"def")};function Z(te){return function(re,se){return re.sol()&&re.string==te&&se.tokens.shift(),re.skipToEnd(),"string-2"}}function ee(te,re){return(re.tokens[0]||Y)(te,re)}return{startState:function(){return{tokens:[]}},token:function(te,re){return ee(te,re)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),I.defineMIME("text/x-sh","shell"),I.defineMIME("application/x-sh","shell")})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("sql",function(G,J){var Z=J.client||{},ee=J.atoms||{false:!0,true:!0,null:!0},te=J.builtin||Y(K),re=J.keywords||Y(q),se=J.operatorChars||/^[*+\-%<>!=&|~^\/]/,ne=J.support||{},le=J.hooks||{},ge=J.dateSQL||{date:!0,time:!0,timestamp:!0},ue=J.backslashStringEscapes!==!1,_e=J.brackets||/^[\{}\(\)\[\]]/,fe=J.punctuation||/^[;.,:]/;function me(be,we){var Ae=be.next();if(le[Ae]){var ke=le[Ae](be,we);if(ke!==!1)return ke}if(ne.hexNumber&&(Ae=="0"&&be.match(/^[xX][0-9a-fA-F]+/)||(Ae=="x"||Ae=="X")&&be.match(/^'[0-9a-fA-F]*'/)))return"number";if(ne.binaryNumber&&((Ae=="b"||Ae=="B")&&be.match(/^'[01]*'/)||Ae=="0"&&be.match(/^b[01]+/)))return"number";if(Ae.charCodeAt(0)>47&&Ae.charCodeAt(0)<58)return be.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),ne.decimallessFloat&&be.match(/^\.(?!\.)/),"number";if(Ae=="?"&&(be.eatSpace()||be.eol()||be.eat(";")))return"variable-3";if(Ae=="'"||Ae=='"'&&ne.doubleQuote)return we.tokenize=ve(Ae),we.tokenize(be,we);if((ne.nCharCast&&(Ae=="n"||Ae=="N")||ne.charsetCast&&Ae=="_"&&be.match(/[a-z][a-z0-9]*/i))&&(be.peek()=="'"||be.peek()=='"'))return"keyword";if(ne.escapeConstant&&(Ae=="e"||Ae=="E")&&(be.peek()=="'"||be.peek()=='"'&&ne.doubleQuote))return we.tokenize=function(Me,ze){return(ze.tokenize=ve(Me.next(),!0))(Me,ze)},"keyword";if(ne.commentSlashSlash&&Ae=="/"&&be.eat("/"))return be.skipToEnd(),"comment";if(ne.commentHash&&Ae=="#"||Ae=="-"&&be.eat("-")&&(!ne.commentSpaceRequired||be.eat(" ")))return be.skipToEnd(),"comment";if(Ae=="/"&&be.eat("*"))return we.tokenize=xe(1),we.tokenize(be,we);if(Ae=="."){if(ne.zerolessFloat&&be.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(be.match(/^\.+/))return null;if(be.match(/^[\w\d_$#]+/))return"variable-2"}else{if(se.test(Ae))return be.eatWhile(se),"operator";if(_e.test(Ae))return"bracket";if(fe.test(Ae))return be.eatWhile(fe),"punctuation";if(Ae=="{"&&(be.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||be.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";be.eatWhile(/^[_\w\d]/);var Oe=be.current().toLowerCase();return ge.hasOwnProperty(Oe)&&(be.match(/^( )+'[^']*'/)||be.match(/^( )+"[^"]*"/))?"number":ee.hasOwnProperty(Oe)?"atom":te.hasOwnProperty(Oe)?"type":re.hasOwnProperty(Oe)?"keyword":Z.hasOwnProperty(Oe)?"builtin":null}}function ve(be,we){return function(Ae,ke){for(var Oe=!1,Me;(Me=Ae.next())!=null;){if(Me==be&&!Oe){ke.tokenize=me;break}Oe=(ue||we)&&!Oe&&Me=="\\"}return"string"}}function xe(be){return function(we,Ae){var ke=we.match(/^.*?(\/\*|\*\/)/);return ke?ke[1]=="/*"?Ae.tokenize=xe(be+1):be>1?Ae.tokenize=xe(be-1):Ae.tokenize=me:we.skipToEnd(),"comment"}}function oe(be,we,Ae){we.context={prev:we.context,indent:be.indentation(),col:be.column(),type:Ae}}function ye(be){be.indent=be.context.indent,be.context=be.context.prev}return{startState:function(){return{tokenize:me,context:null}},token:function(be,we){if(be.sol()&&we.context&&we.context.align==null&&(we.context.align=!1),we.tokenize==me&&be.eatSpace())return null;var Ae=we.tokenize(be,we);if(Ae=="comment")return Ae;we.context&&we.context.align==null&&(we.context.align=!0);var ke=be.current();return ke=="("?oe(be,we,")"):ke=="["?oe(be,we,"]"):we.context&&we.context.type==ke&&ye(we),Ae},indent:function(be,we){var Ae=be.context;if(!Ae)return I.Pass;var ke=we.charAt(0)==Ae.type;return Ae.align?Ae.col+(ke?0:1):Ae.indent+(ke?0:G.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:ne.commentSlashSlash?"//":ne.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:J}});function N(G){for(var J;(J=G.next())!=null;)if(J=="`"&&!G.eat("`"))return"variable-2";return G.backUp(G.current().length-1),G.eatWhile(/\w/)?"variable-2":null}function B(G){for(var J;(J=G.next())!=null;)if(J=='"'&&!G.eat('"'))return"variable-2";return G.backUp(G.current().length-1),G.eatWhile(/\w/)?"variable-2":null}function j(G){return G.eat("@")&&(G.match("session."),G.match("local."),G.match("global.")),G.eat("'")?(G.match(/^.*'/),"variable-2"):G.eat('"')?(G.match(/^.*"/),"variable-2"):G.eat("`")?(G.match(/^.*`/),"variable-2"):G.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function U(G){return G.eat("N")?"atom":G.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var q="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function Y(G){for(var J={},Z=G.split(" "),ee=0;ee<Z.length;++ee)J[Z[ee]]=!0;return J}var K="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";I.defineMIME("text/x-sql",{name:"sql",keywords:Y(q+"begin"),builtin:Y(K),atoms:Y("false true null unknown"),dateSQL:Y("date time timestamp"),support:Y("doubleQuote binaryNumber hexNumber")}),I.defineMIME("text/x-mssql",{name:"sql",client:Y("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:Y(q+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:Y("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:Y("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:Y("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":j}}),I.defineMIME("text/x-mysql",{name:"sql",client:Y("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:Y(q+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":j,"`":N,"\\":U}}),I.defineMIME("text/x-mariadb",{name:"sql",client:Y("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:Y(q+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":j,"`":N,"\\":U}}),I.defineMIME("text/x-sqlite",{name:"sql",client:Y("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:Y(q+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:Y("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:Y("date time timestamp datetime"),support:Y("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":j,":":j,"?":j,$:j,'"':B,"`":N}}),I.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:Y("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:Y("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:Y("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:Y("commentSlashSlash decimallessFloat"),hooks:{}}),I.defineMIME("text/x-plsql",{name:"sql",client:Y("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:Y("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:Y("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:Y("date time timestamp"),support:Y("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),I.defineMIME("text/x-hive",{name:"sql",keywords:Y("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:Y("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:Y("date timestamp"),support:Y("doubleQuote binaryNumber hexNumber")}),I.defineMIME("text/x-pgsql",{name:"sql",client:Y("source"),keywords:Y(q+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:Y("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:Y("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),I.defineMIME("text/x-gql",{name:"sql",keywords:Y("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:Y("false true"),builtin:Y("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),I.defineMIME("text/x-gpsql",{name:"sql",client:Y("source"),keywords:Y("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:Y("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),I.defineMIME("text/x-sparksql",{name:"sql",keywords:Y("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:Y("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:Y("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:Y("date time timestamp"),support:Y("doubleQuote zerolessFloat")}),I.defineMIME("text/x-esper",{name:"sql",client:Y("source"),keywords:Y("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:Y("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:Y("time"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber")}),I.defineMIME("text/x-trino",{name:"sql",keywords:Y("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:Y("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:Y("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:Y("date time timestamp zone"),support:Y("decimallessFloat zerolessFloat hexNumber")})})})();(function(M,$){(function(I){I(requireCodemirror(),requireMultiplex())})(function(I){I.defineMode("twig:inner",function(){var N=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],B=/^[+\-*&%=<>!?|~^]/,j=/^[:\[\(\{]/,U=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],q=/^(\d[+\-\*\/])?\d+(\.\d+)?/;N=new RegExp("(("+N.join(")|(")+"))\\b"),U=new RegExp("(("+U.join(")|(")+"))\\b");function Y(K,G){var J=K.peek();if(G.incomment)return K.skipTo("#}")?(K.eatWhile(/\#|}/),G.incomment=!1):K.skipToEnd(),"comment";if(G.intag){if(G.operator){if(G.operator=!1,K.match(U))return"atom";if(K.match(q))return"number"}if(G.sign){if(G.sign=!1,K.match(U))return"atom";if(K.match(q))return"number"}if(G.instring)return J==G.instring&&(G.instring=!1),K.next(),"string";if(J=="'"||J=='"')return G.instring=J,K.next(),"string";if(K.match(G.intag+"}")||K.eat("-")&&K.match(G.intag+"}"))return G.intag=!1,"tag";if(K.match(B))return G.operator=!0,"operator";if(K.match(j))G.sign=!0;else if(K.eat(" ")||K.sol()){if(K.match(N))return"keyword";if(K.match(U))return"atom";if(K.match(q))return"number";K.sol()&&K.next()}else K.next();return"variable"}else if(K.eat("{")){if(K.eat("#"))return G.incomment=!0,K.skipTo("#}")?(K.eatWhile(/\#|}/),G.incomment=!1):K.skipToEnd(),"comment";if(J=K.eat(/\{|%/))return G.intag=J,J=="{"&&(G.intag="}"),K.eat("-"),"tag"}K.next()}return{startState:function(){return{}},token:function(K,G){return Y(K,G)}}}),I.defineMode("twig",function(N,B){var j=I.getMode(N,"twig:inner");return!B||!B.base?j:I.multiplexingMode(I.getMode(N,B.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:j,parseDelimiters:!0})}),I.defineMIME("text/x-twig","twig")})})();var coffeescript={exports:{}},hasRequiredCoffeescript;function requireCoffeescript(){return hasRequiredCoffeescript||(hasRequiredCoffeescript=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("coffeescript",function(N,B){var j="error";function U(oe){return new RegExp("^(("+oe.join(")|(")+"))\\b")}var q=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,Y=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,K=/^[_A-Za-z$][_A-Za-z$0-9]*/,G=/^@[_A-Za-z$][_A-Za-z$0-9]*/,J=U(["and","or","not","is","isnt","in","instanceof","typeof"]),Z=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],ee=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],te=U(Z.concat(ee));Z=U(Z);var re=/^('{3}|\"{3}|['\"])/,se=/^(\/{3}|\/)/,ne=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],le=U(ne);function ge(oe,ye){if(oe.sol()){ye.scope.align===null&&(ye.scope.align=!1);var be=ye.scope.offset;if(oe.eatSpace()){var we=oe.indentation();return we>be&&ye.scope.type=="coffee"?"indent":we<be?"dedent":null}else be>0&&me(oe,ye)}if(oe.eatSpace())return null;var Ae=oe.peek();if(oe.match("####"))return oe.skipToEnd(),"comment";if(oe.match("###"))return ye.tokenize=_e,ye.tokenize(oe,ye);if(Ae==="#")return oe.skipToEnd(),"comment";if(oe.match(/^-?[0-9\.]/,!1)){var ke=!1;if(oe.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(ke=!0),oe.match(/^-?\d+\.\d*/)&&(ke=!0),oe.match(/^-?\.\d+/)&&(ke=!0),ke)return oe.peek()=="."&&oe.backUp(1),"number";var Oe=!1;if(oe.match(/^-?0x[0-9a-f]+/i)&&(Oe=!0),oe.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(Oe=!0),oe.match(/^-?0(?![\dx])/i)&&(Oe=!0),Oe)return"number"}if(oe.match(re))return ye.tokenize=ue(oe.current(),!1,"string"),ye.tokenize(oe,ye);if(oe.match(se)){if(oe.current()!="/"||oe.match(/^.*\//,!1))return ye.tokenize=ue(oe.current(),!0,"string-2"),ye.tokenize(oe,ye);oe.backUp(1)}return oe.match(q)||oe.match(J)?"operator":oe.match(Y)?"punctuation":oe.match(le)?"atom":oe.match(G)||ye.prop&&oe.match(K)?"property":oe.match(te)?"keyword":oe.match(K)?"variable":(oe.next(),j)}function ue(oe,ye,be){return function(we,Ae){for(;!we.eol();)if(we.eatWhile(/[^'"\/\\]/),we.eat("\\")){if(we.next(),ye&&we.eol())return be}else{if(we.match(oe))return Ae.tokenize=ge,be;we.eat(/['"\/]/)}return ye&&(B.singleLineStringErrors?be=j:Ae.tokenize=ge),be}}function _e(oe,ye){for(;!oe.eol();){if(oe.eatWhile(/[^#]/),oe.match("###")){ye.tokenize=ge;break}oe.eatWhile("#")}return"comment"}function fe(oe,ye,be){be=be||"coffee";for(var we=0,Ae=!1,ke=null,Oe=ye.scope;Oe;Oe=Oe.prev)if(Oe.type==="coffee"||Oe.type=="}"){we=Oe.offset+N.indentUnit;break}be!=="coffee"?(Ae=null,ke=oe.column()+oe.current().length):ye.scope.align&&(ye.scope.align=!1),ye.scope={offset:we,type:be,prev:ye.scope,align:Ae,alignOffset:ke}}function me(oe,ye){if(ye.scope.prev)if(ye.scope.type==="coffee"){for(var be=oe.indentation(),we=!1,Ae=ye.scope;Ae;Ae=Ae.prev)if(be===Ae.offset){we=!0;break}if(!we)return!0;for(;ye.scope.prev&&ye.scope.offset!==be;)ye.scope=ye.scope.prev;return!1}else return ye.scope=ye.scope.prev,!1}function ve(oe,ye){var be=ye.tokenize(oe,ye),we=oe.current();we==="return"&&(ye.dedent=!0),((we==="->"||we==="=>")&&oe.eol()||be==="indent")&&fe(oe,ye);var Ae="[({".indexOf(we);if(Ae!==-1&&fe(oe,ye,"])}".slice(Ae,Ae+1)),Z.exec(we)&&fe(oe,ye),we=="then"&&me(oe,ye),be==="dedent"&&me(oe,ye))return j;if(Ae="])}".indexOf(we),Ae!==-1){for(;ye.scope.type=="coffee"&&ye.scope.prev;)ye.scope=ye.scope.prev;ye.scope.type==we&&(ye.scope=ye.scope.prev)}return ye.dedent&&oe.eol()&&(ye.scope.type=="coffee"&&ye.scope.prev&&(ye.scope=ye.scope.prev),ye.dedent=!1),be}var xe={startState:function(oe){return{tokenize:ge,scope:{offset:oe||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(oe,ye){var be=ye.scope.align===null&&ye.scope;be&&oe.sol()&&(be.align=!1);var we=ve(oe,ye);return we&&we!="comment"&&(be&&(be.align=!0),ye.prop=we=="punctuation"&&oe.current()=="."),we},indent:function(oe,ye){if(oe.tokenize!=ge)return 0;var be=oe.scope,we=ye&&"])}".indexOf(ye.charAt(0))>-1;if(we)for(;be.type=="coffee"&&be.prev;)be=be.prev;var Ae=we&&be.type===ye.charAt(0);return be.align?be.alignOffset-(Ae?1:0):(Ae?be.prev:be).offset},lineComment:"#",fold:"indent"};return xe}),I.defineMIME("application/vnd.coffeescript","coffeescript"),I.defineMIME("text/x-coffeescript","coffeescript"),I.defineMIME("text/coffeescript","coffeescript")})}()),coffeescript.exports}var sass={exports:{}},hasRequiredSass;function requireSass(){return hasRequiredSass||(hasRequiredSass=1,function(M,$){(function(I){I(requireCodemirror(),cssExports)})(function(I){I.defineMode("sass",function(N){var B=I.mimeModes["text/css"],j=B.propertyKeywords||{},U=B.colorKeywords||{},q=B.valueKeywords||{},Y=B.fontProperties||{};function K(xe){return new RegExp("^"+xe.join("|"))}var G=["true","false","null","auto"],J=new RegExp("^"+G.join("|")),Z=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],ee=K(Z),te=/^::?[a-zA-Z_][\w\-]*/,re;function se(xe){return!xe.peek()||xe.match(/\s+$/,!1)}function ne(xe,oe){var ye=xe.peek();return ye===")"?(xe.next(),oe.tokenizer=me,"operator"):ye==="("?(xe.next(),xe.eatSpace(),"operator"):ye==="'"||ye==='"'?(oe.tokenizer=ge(xe.next()),"string"):(oe.tokenizer=ge(")",!1),"string")}function le(xe,oe){return function(ye,be){return ye.sol()&&ye.indentation()<=xe?(be.tokenizer=me,me(ye,be)):(oe&&ye.skipTo("*/")?(ye.next(),ye.next(),be.tokenizer=me):ye.skipToEnd(),"comment")}}function ge(xe,oe){oe==null&&(oe=!0);function ye(be,we){var Ae=be.next(),ke=be.peek(),Oe=be.string.charAt(be.pos-2),Me=Ae!=="\\"&&ke===xe||Ae===xe&&Oe!=="\\";return Me?(Ae!==xe&&oe&&be.next(),se(be)&&(we.cursorHalf=0),we.tokenizer=me,"string"):Ae==="#"&&ke==="{"?(we.tokenizer=ue(ye),be.next(),"operator"):"string"}return ye}function ue(xe){return function(oe,ye){return oe.peek()==="}"?(oe.next(),ye.tokenizer=xe,"operator"):me(oe,ye)}}function _e(xe){if(xe.indentCount==0){xe.indentCount++;var oe=xe.scopes[0].offset,ye=oe+N.indentUnit;xe.scopes.unshift({offset:ye})}}function fe(xe){xe.scopes.length!=1&&xe.scopes.shift()}function me(xe,oe){var ye=xe.peek();if(xe.match("/*"))return oe.tokenizer=le(xe.indentation(),!0),oe.tokenizer(xe,oe);if(xe.match("//"))return oe.tokenizer=le(xe.indentation(),!1),oe.tokenizer(xe,oe);if(xe.match("#{"))return oe.tokenizer=ue(me),"operator";if(ye==='"'||ye==="'")return xe.next(),oe.tokenizer=ge(ye),"string";if(oe.cursorHalf){if(ye==="#"&&(xe.next(),xe.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||xe.match(/^-?[0-9\.]+/))return se(xe)&&(oe.cursorHalf=0),"number";if(xe.match(/^(px|em|in)\b/))return se(xe)&&(oe.cursorHalf=0),"unit";if(xe.match(J))return se(xe)&&(oe.cursorHalf=0),"keyword";if(xe.match(/^url/)&&xe.peek()==="(")return oe.tokenizer=ne,se(xe)&&(oe.cursorHalf=0),"atom";if(ye==="$")return xe.next(),xe.eatWhile(/[\w-]/),se(xe)&&(oe.cursorHalf=0),"variable-2";if(ye==="!")return xe.next(),oe.cursorHalf=0,xe.match(/^[\w]+/)?"keyword":"operator";if(xe.match(ee))return se(xe)&&(oe.cursorHalf=0),"operator";if(xe.eatWhile(/[\w-]/))return se(xe)&&(oe.cursorHalf=0),re=xe.current().toLowerCase(),q.hasOwnProperty(re)?"atom":U.hasOwnProperty(re)?"keyword":j.hasOwnProperty(re)?(oe.prevProp=xe.current().toLowerCase(),"property"):"tag";if(se(xe))return oe.cursorHalf=0,null}else{if(ye==="-"&&xe.match(/^-\w+-/))return"meta";if(ye==="."){if(xe.next(),xe.match(/^[\w-]+/))return _e(oe),"qualifier";if(xe.peek()==="#")return _e(oe),"tag"}if(ye==="#"){if(xe.next(),xe.match(/^[\w-]+/))return _e(oe),"builtin";if(xe.peek()==="#")return _e(oe),"tag"}if(ye==="$")return xe.next(),xe.eatWhile(/[\w-]/),"variable-2";if(xe.match(/^-?[0-9\.]+/))return"number";if(xe.match(/^(px|em|in)\b/))return"unit";if(xe.match(J))return"keyword";if(xe.match(/^url/)&&xe.peek()==="(")return oe.tokenizer=ne,"atom";if(ye==="="&&xe.match(/^=[\w-]+/))return _e(oe),"meta";if(ye==="+"&&xe.match(/^\+[\w-]+/))return"variable-3";if(ye==="@"&&xe.match("@extend")&&(xe.match(/\s*[\w]/)||fe(oe)),xe.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return _e(oe),"def";if(ye==="@")return xe.next(),xe.eatWhile(/[\w-]/),"def";if(xe.eatWhile(/[\w-]/))if(xe.match(/ *: *[\w-\+\$#!\("']/,!1)){re=xe.current().toLowerCase();var be=oe.prevProp+"-"+re;return j.hasOwnProperty(be)?"property":j.hasOwnProperty(re)?(oe.prevProp=re,"property"):Y.hasOwnProperty(re)?"property":"tag"}else return xe.match(/ *:/,!1)?(_e(oe),oe.cursorHalf=1,oe.prevProp=xe.current().toLowerCase(),"property"):(xe.match(/ *,/,!1)||_e(oe),"tag");if(ye===":")return xe.match(te)?"variable-3":(xe.next(),oe.cursorHalf=1,"operator")}return xe.match(ee)?"operator":(xe.next(),null)}function ve(xe,oe){xe.sol()&&(oe.indentCount=0);var ye=oe.tokenizer(xe,oe),be=xe.current();if((be==="@return"||be==="}")&&fe(oe),ye!==null){for(var we=xe.pos-be.length,Ae=we+N.indentUnit*oe.indentCount,ke=[],Oe=0;Oe<oe.scopes.length;Oe++){var Me=oe.scopes[Oe];Me.offset<=Ae&&ke.push(Me)}oe.scopes=ke}return ye}return{startState:function(){return{tokenizer:me,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(xe,oe){var ye=ve(xe,oe);return oe.lastToken={style:ye,content:xe.current()},ye},indent:function(xe){return xe.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),I.defineMIME("text/x-sass","sass")})}()),sass.exports}var stylus={exports:{}},hasRequiredStylus;function requireStylus(){return hasRequiredStylus||(hasRequiredStylus=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("stylus",function(ue){for(var _e=ue.indentUnit,fe="",me=le(N),ve=/^(a|b|i|s|col|em)$/i,xe=le(q),oe=le(Y),ye=le(J),be=le(G),we=le(B),Ae=ne(B),ke=le(U),Oe=le(j),Me=le(K),ze=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,Fe=ne(Z),Ze=le(ee),lt=new RegExp(/^\-(moz|ms|o|webkit)-/i),qe=le(te),Ve="",At={},Nt,zt,Ht,qt;fe.length<_e;)fe+=" ";function Qt(at,ut){if(Ve=at.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),ut.context.line.firstWord=Ve?Ve[0].replace(/^\s*/,""):"",ut.context.line.indent=at.indentation(),Nt=at.peek(),at.match("//"))return at.skipToEnd(),["comment","comment"];if(at.match("/*"))return ut.tokenize=Jt,Jt(at,ut);if(Nt=='"'||Nt=="'")return at.next(),ut.tokenize=yn(Nt),ut.tokenize(at,ut);if(Nt=="@")return at.next(),at.eatWhile(/[\w\\-]/),["def",at.current()];if(Nt=="#"){if(at.next(),at.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(at.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return at.match(lt)?["meta","vendor-prefixes"]:at.match(/^-?[0-9]?\.?[0-9]/)?(at.eatWhile(/[a-z%]/i),["number","unit"]):Nt=="!"?(at.next(),[at.match(/^(important|optional)/i)?"keyword":"operator","important"]):Nt=="."&&at.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:at.match(Ae)?(at.peek()=="("&&(ut.tokenize=_n),["property","word"]):at.match(/^[a-z][\w-]*\(/i)?(at.backUp(1),["keyword","mixin"]):at.match(/^(\+|-)[a-z][\w-]*\(/i)?(at.backUp(1),["keyword","block-mixin"]):at.string.match(/^\s*&/)&&at.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:at.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(at.backUp(1),["variable-3","reference"]):at.match(/^&{1}\s*$/)?["variable-3","reference"]:at.match(Fe)?["operator","operator"]:at.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?at.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!kt(at.current())?(at.match("."),["variable-2","variable-name"]):["variable-2","word"]:at.match(ze)?["operator",at.current()]:/[:;,{}\[\]\(\)]/.test(Nt)?(at.next(),[null,Nt]):(at.next(),[null,null])}function Jt(at,ut){for(var Rt=!1,fn;(fn=at.next())!=null;){if(Rt&&fn=="/"){ut.tokenize=null;break}Rt=fn=="*"}return["comment","comment"]}function yn(at){return function(ut,Rt){for(var fn=!1,Bn;(Bn=ut.next())!=null;){if(Bn==at&&!fn){at==")"&&ut.backUp(1);break}fn=!fn&&Bn=="\\"}return(Bn==at||!fn&&at!=")")&&(Rt.tokenize=null),["string","string"]}}function _n(at,ut){return at.next(),at.match(/\s*[\"\')]/,!1)?ut.tokenize=null:ut.tokenize=yn(")"),[null,"("]}function Hn(at,ut,Rt,fn){this.type=at,this.indent=ut,this.prev=Rt,this.line=fn||{firstWord:"",indent:0}}function On(at,ut,Rt,fn){return fn=fn>=0?fn:_e,at.context=new Hn(Rt,ut.indentation()+fn,at.context),Rt}function Fn(at,ut){var Rt=at.context.indent-_e;return ut=ut||!1,at.context=at.context.prev,ut&&(at.context.indent=Rt),at.context.type}function In(at,ut,Rt){return At[Rt.context.type](at,ut,Rt)}function dn(at,ut,Rt,fn){for(var Bn=fn||1;Bn>0;Bn--)Rt.context=Rt.context.prev;return In(at,ut,Rt)}function kt(at){return at.toLowerCase()in me}function Ye(at){return at=at.toLowerCase(),at in xe||at in Me}function _t(at){return at.toLowerCase()in Ze}function We(at){return at.toLowerCase().match(lt)}function Pe(at){var ut=at.toLowerCase(),Rt="variable-2";return kt(at)?Rt="tag":_t(at)?Rt="block-keyword":Ye(at)?Rt="property":ut in ye||ut in qe?Rt="atom":ut=="return"||ut in be?Rt="keyword":at.match(/^[A-Z]/)&&(Rt="string"),Rt}function Se(at,ut){return mt(ut)&&(at=="{"||at=="]"||at=="hash"||at=="qualifier")||at=="block-mixin"}function $e(at,ut){return at=="{"&&ut.match(/^\s*\$?[\w-]+/i,!1)}function Ue(at,ut){return at==":"&&ut.match(/^[a-z-]+/,!1)}function Qe(at){return at.sol()||at.string.match(new RegExp("^\\s*"+ge(at.current())))}function mt(at){return at.eol()||at.match(/^\s*$/,!1)}function ht(at){var ut=/^\s*[-_]*[a-z0-9]+[\w-]*/i,Rt=typeof at=="string"?at.match(ut):at.string.match(ut);return Rt?Rt[0].replace(/^\s*/,""):""}return At.block=function(at,ut,Rt){if(at=="comment"&&Qe(ut)||at==","&&mt(ut)||at=="mixin")return On(Rt,ut,"block",0);if($e(at,ut))return On(Rt,ut,"interpolation");if(mt(ut)&&at=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(ut.string)&&!kt(ht(ut)))return On(Rt,ut,"block",0);if(Se(at,ut))return On(Rt,ut,"block");if(at=="}"&&mt(ut))return On(Rt,ut,"block",0);if(at=="variable-name")return ut.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||_t(ht(ut))?On(Rt,ut,"variableName"):On(Rt,ut,"variableName",0);if(at=="=")return!mt(ut)&&!_t(ht(ut))?On(Rt,ut,"block",0):On(Rt,ut,"block");if(at=="*"&&(mt(ut)||ut.match(/\s*(,|\.|#|\[|:|{)/,!1)))return qt="tag",On(Rt,ut,"block");if(Ue(at,ut))return On(Rt,ut,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(at))return On(Rt,ut,mt(ut)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(at))return On(Rt,ut,"keyframes");if(/@extends?/.test(at))return On(Rt,ut,"extend",0);if(at&&at.charAt(0)=="@")return ut.indentation()>0&&Ye(ut.current().slice(1))?(qt="variable-2","block"):/(@import|@require|@charset)/.test(at)?On(Rt,ut,"block",0):On(Rt,ut,"block");if(at=="reference"&&mt(ut))return On(Rt,ut,"block");if(at=="(")return On(Rt,ut,"parens");if(at=="vendor-prefixes")return On(Rt,ut,"vendorPrefixes");if(at=="word"){var fn=ut.current();if(qt=Pe(fn),qt=="property")return Qe(ut)?On(Rt,ut,"block",0):(qt="atom","block");if(qt=="tag"){if(/embed|menu|pre|progress|sub|table/.test(fn)&&Ye(ht(ut))||ut.string.match(new RegExp("\\[\\s*"+fn+"|"+fn+"\\s*\\]")))return qt="atom","block";if(ve.test(fn)&&(Qe(ut)&&ut.string.match(/=/)||!Qe(ut)&&!ut.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!kt(ht(ut))))return qt="variable-2",_t(ht(ut))?"block":On(Rt,ut,"block",0);if(mt(ut))return On(Rt,ut,"block")}if(qt=="block-keyword")return qt="keyword",ut.current(/(if|unless)/)&&!Qe(ut)?"block":On(Rt,ut,"block");if(fn=="return")return On(Rt,ut,"block",0);if(qt=="variable-2"&&ut.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return On(Rt,ut,"block")}return Rt.context.type},At.parens=function(at,ut,Rt){if(at=="(")return On(Rt,ut,"parens");if(at==")")return Rt.context.prev.type=="parens"?Fn(Rt):ut.string.match(/^[a-z][\w-]*\(/i)&&mt(ut)||_t(ht(ut))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ht(ut))||!ut.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&kt(ht(ut))?On(Rt,ut,"block"):ut.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||ut.string.match(/^\s*(\(|\)|[0-9])/)||ut.string.match(/^\s+[a-z][\w-]*\(/i)||ut.string.match(/^\s+[\$-]?[a-z]/i)?On(Rt,ut,"block",0):mt(ut)?On(Rt,ut,"block"):On(Rt,ut,"block",0);if(at&&at.charAt(0)=="@"&&Ye(ut.current().slice(1))&&(qt="variable-2"),at=="word"){var fn=ut.current();qt=Pe(fn),qt=="tag"&&ve.test(fn)&&(qt="variable-2"),(qt=="property"||fn=="to")&&(qt="atom")}return at=="variable-name"?On(Rt,ut,"variableName"):Ue(at,ut)?On(Rt,ut,"pseudo"):Rt.context.type},At.vendorPrefixes=function(at,ut,Rt){return at=="word"?(qt="property",On(Rt,ut,"block",0)):Fn(Rt)},At.pseudo=function(at,ut,Rt){return Ye(ht(ut.string))?dn(at,ut,Rt):(ut.match(/^[a-z-]+/),qt="variable-3",mt(ut)?On(Rt,ut,"block"):Fn(Rt))},At.atBlock=function(at,ut,Rt){if(at=="(")return On(Rt,ut,"atBlock_parens");if(Se(at,ut))return On(Rt,ut,"block");if($e(at,ut))return On(Rt,ut,"interpolation");if(at=="word"){var fn=ut.current().toLowerCase();if(/^(only|not|and|or)$/.test(fn)?qt="keyword":we.hasOwnProperty(fn)?qt="tag":Oe.hasOwnProperty(fn)?qt="attribute":ke.hasOwnProperty(fn)?qt="property":oe.hasOwnProperty(fn)?qt="string-2":qt=Pe(ut.current()),qt=="tag"&&mt(ut))return On(Rt,ut,"block")}return at=="operator"&&/^(not|and|or)$/.test(ut.current())&&(qt="keyword"),Rt.context.type},At.atBlock_parens=function(at,ut,Rt){if(at=="{"||at=="}")return Rt.context.type;if(at==")")return mt(ut)?On(Rt,ut,"block"):On(Rt,ut,"atBlock");if(at=="word"){var fn=ut.current().toLowerCase();return qt=Pe(fn),/^(max|min)/.test(fn)&&(qt="property"),qt=="tag"&&(ve.test(fn)?qt="variable-2":qt="atom"),Rt.context.type}return At.atBlock(at,ut,Rt)},At.keyframes=function(at,ut,Rt){return ut.indentation()=="0"&&(at=="}"&&Qe(ut)||at=="]"||at=="hash"||at=="qualifier"||kt(ut.current()))?dn(at,ut,Rt):at=="{"?On(Rt,ut,"keyframes"):at=="}"?Qe(ut)?Fn(Rt,!0):On(Rt,ut,"keyframes"):at=="unit"&&/^[0-9]+\%$/.test(ut.current())?On(Rt,ut,"keyframes"):at=="word"&&(qt=Pe(ut.current()),qt=="block-keyword")?(qt="keyword",On(Rt,ut,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(at)?On(Rt,ut,mt(ut)?"block":"atBlock"):at=="mixin"?On(Rt,ut,"block",0):Rt.context.type},At.interpolation=function(at,ut,Rt){return at=="{"&&Fn(Rt)&&On(Rt,ut,"block"),at=="}"?ut.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||ut.string.match(/^\s*[a-z]/i)&&kt(ht(ut))?On(Rt,ut,"block"):!ut.string.match(/^(\{|\s*\&)/)||ut.match(/\s*[\w-]/,!1)?On(Rt,ut,"block",0):On(Rt,ut,"block"):at=="variable-name"?On(Rt,ut,"variableName",0):(at=="word"&&(qt=Pe(ut.current()),qt=="tag"&&(qt="atom")),Rt.context.type)},At.extend=function(at,ut,Rt){return at=="["||at=="="?"extend":at=="]"?Fn(Rt):at=="word"?(qt=Pe(ut.current()),"extend"):Fn(Rt)},At.variableName=function(at,ut,Rt){return at=="string"||at=="["||at=="]"||ut.current().match(/^(\.|\$)/)?(ut.current().match(/^\.[\w-]+/i)&&(qt="variable-2"),"variableName"):dn(at,ut,Rt)},{startState:function(at){return{tokenize:null,state:"block",context:new Hn("block",at||0,null)}},token:function(at,ut){return!ut.tokenize&&at.eatSpace()?null:(zt=(ut.tokenize||Qt)(at,ut),zt&&typeof zt=="object"&&(Ht=zt[1],zt=zt[0]),qt=zt,ut.state=At[ut.state](Ht,at,ut),qt)},indent:function(at,ut,Rt){var fn=at.context,Bn=ut&&ut.charAt(0),en=fn.indent,xn=ht(ut),ot=Rt.match(/^\s*/)[0].replace(/\t/g,fe).length,dt=at.context.prev?at.context.prev.line.firstWord:"",Ot=at.context.prev?at.context.prev.line.indent:ot;return fn.prev&&(Bn=="}"&&(fn.type=="block"||fn.type=="atBlock"||fn.type=="keyframes")||Bn==")"&&(fn.type=="parens"||fn.type=="atBlock_parens")||Bn=="{"&&fn.type=="at")?en=fn.indent-_e:/(\})/.test(Bn)||(/@|\$|\d/.test(Bn)||/^\{/.test(ut)||/^\s*\/(\/|\*)/.test(ut)||/^\s*\/\*/.test(dt)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(ut)||/^(\+|-)?[a-z][\w-]*\(/i.test(ut)||/^return/.test(ut)||_t(xn)?en=ot:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Bn)||kt(xn)?/\,\s*$/.test(dt)?en=Ot:/^\s+/.test(Rt)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(dt)||kt(dt))?en=ot<=Ot?Ot:Ot+_e:en=ot:!/,\s*$/.test(Rt)&&(We(xn)||Ye(xn))&&(_t(dt)?en=ot<=Ot?Ot:Ot+_e:/^\{/.test(dt)?en=ot<=Ot?ot:Ot+_e:We(dt)||Ye(dt)?en=ot>=Ot?Ot:ot:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(dt)||/=\s*$/.test(dt)||kt(dt)||/^\$[\w-\.\[\]\'\"]/.test(dt)?en=Ot+_e:en=ot)),en},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var N=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],B=["domain","regexp","url-prefix","url"],j=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],U=["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","dynamic-range","video-dynamic-range"],q=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","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","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","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","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","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-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","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-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","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","justify-content","left","letter-spacing","line-break","line-height","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","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","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","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","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","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-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","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","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","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","font-smoothing","osx-font-smoothing"],Y=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],K=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],G=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],J=["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","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","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","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","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","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","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","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","malayalam","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","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","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","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-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","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","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","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","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],Z=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],ee=["for","if","else","unless","from","to"],te=["null","true","false","href","title","type","not-allowed","readonly","disabled"],re=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],se=N.concat(B,j,U,q,Y,G,J,K,Z,ee,te,re);function ne(ue){return ue=ue.sort(function(_e,fe){return fe>_e}),new RegExp("^(("+ue.join(")|(")+"))\\b")}function le(ue){for(var _e={},fe=0;fe<ue.length;++fe)_e[ue[fe]]=!0;return _e}function ge(ue){return ue.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}I.registerHelper("hintWords","stylus",se),I.defineMIME("text/x-styl","stylus")})}()),stylus.exports}var pug={exports:{}},hasRequiredPug;function requirePug(){return hasRequiredPug||(hasRequiredPug=1,function(M,$){(function(I){I(requireCodemirror(),requireJavascript(),cssExports,requireHtmlmixed())})(function(I){I.defineMode("pug",function(N){var B="keyword",j="meta",U="builtin",q="qualifier",Y={"{":"}","(":")","[":"]"},K=I.getMode(N,"javascript");function G(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=I.startState(K),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}G.prototype.copy=function(){var kt=new G;return kt.javaScriptLine=this.javaScriptLine,kt.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,kt.javaScriptArguments=this.javaScriptArguments,kt.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,kt.isInterpolating=this.isInterpolating,kt.interpolationNesting=this.interpolationNesting,kt.jsState=I.copyState(K,this.jsState),kt.innerMode=this.innerMode,this.innerMode&&this.innerState&&(kt.innerState=I.copyState(this.innerMode,this.innerState)),kt.restOfLine=this.restOfLine,kt.isIncludeFiltered=this.isIncludeFiltered,kt.isEach=this.isEach,kt.lastTag=this.lastTag,kt.scriptType=this.scriptType,kt.isAttrs=this.isAttrs,kt.attrsNest=this.attrsNest.slice(),kt.inAttributeName=this.inAttributeName,kt.attributeIsType=this.attributeIsType,kt.attrValue=this.attrValue,kt.indentOf=this.indentOf,kt.indentToken=this.indentToken,kt.innerModeForLine=this.innerModeForLine,kt};function J(kt,Ye){if(kt.sol()&&(Ye.javaScriptLine=!1,Ye.javaScriptLineExcludesColon=!1),Ye.javaScriptLine){if(Ye.javaScriptLineExcludesColon&&kt.peek()===":"){Ye.javaScriptLine=!1,Ye.javaScriptLineExcludesColon=!1;return}var _t=K.token(kt,Ye.jsState);return kt.eol()&&(Ye.javaScriptLine=!1),_t||!0}}function Z(kt,Ye){if(Ye.javaScriptArguments){if(Ye.javaScriptArgumentsDepth===0&&kt.peek()!=="("){Ye.javaScriptArguments=!1;return}if(kt.peek()==="("?Ye.javaScriptArgumentsDepth++:kt.peek()===")"&&Ye.javaScriptArgumentsDepth--,Ye.javaScriptArgumentsDepth===0){Ye.javaScriptArguments=!1;return}var _t=K.token(kt,Ye.jsState);return _t||!0}}function ee(kt){if(kt.match(/^yield\b/))return"keyword"}function te(kt){if(kt.match(/^(?:doctype) *([^\n]+)?/))return j}function re(kt,Ye){if(kt.match("#{"))return Ye.isInterpolating=!0,Ye.interpolationNesting=0,"punctuation"}function se(kt,Ye){if(Ye.isInterpolating){if(kt.peek()==="}"){if(Ye.interpolationNesting--,Ye.interpolationNesting<0)return kt.next(),Ye.isInterpolating=!1,"punctuation"}else kt.peek()==="{"&&Ye.interpolationNesting++;return K.token(kt,Ye.jsState)||!0}}function ne(kt,Ye){if(kt.match(/^case\b/))return Ye.javaScriptLine=!0,B}function le(kt,Ye){if(kt.match(/^when\b/))return Ye.javaScriptLine=!0,Ye.javaScriptLineExcludesColon=!0,B}function ge(kt){if(kt.match(/^default\b/))return B}function ue(kt,Ye){if(kt.match(/^extends?\b/))return Ye.restOfLine="string",B}function _e(kt,Ye){if(kt.match(/^append\b/))return Ye.restOfLine="variable",B}function fe(kt,Ye){if(kt.match(/^prepend\b/))return Ye.restOfLine="variable",B}function me(kt,Ye){if(kt.match(/^block\b *(?:(prepend|append)\b)?/))return Ye.restOfLine="variable",B}function ve(kt,Ye){if(kt.match(/^include\b/))return Ye.restOfLine="string",B}function xe(kt,Ye){if(kt.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&kt.match("include"))return Ye.isIncludeFiltered=!0,B}function oe(kt,Ye){if(Ye.isIncludeFiltered){var _t=Fe(kt,Ye);return Ye.isIncludeFiltered=!1,Ye.restOfLine="string",_t}}function ye(kt,Ye){if(kt.match(/^mixin\b/))return Ye.javaScriptLine=!0,B}function be(kt,Ye){if(kt.match(/^\+([-\w]+)/))return kt.match(/^\( *[-\w]+ *=/,!1)||(Ye.javaScriptArguments=!0,Ye.javaScriptArgumentsDepth=0),"variable";if(kt.match("+#{",!1))return kt.next(),Ye.mixinCallAfter=!0,re(kt,Ye)}function we(kt,Ye){if(Ye.mixinCallAfter)return Ye.mixinCallAfter=!1,kt.match(/^\( *[-\w]+ *=/,!1)||(Ye.javaScriptArguments=!0,Ye.javaScriptArgumentsDepth=0),!0}function Ae(kt,Ye){if(kt.match(/^(if|unless|else if|else)\b/))return Ye.javaScriptLine=!0,B}function ke(kt,Ye){if(kt.match(/^(- *)?(each|for)\b/))return Ye.isEach=!0,B}function Oe(kt,Ye){if(Ye.isEach){if(kt.match(/^ in\b/))return Ye.javaScriptLine=!0,Ye.isEach=!1,B;if(kt.sol()||kt.eol())Ye.isEach=!1;else if(kt.next()){for(;!kt.match(/^ in\b/,!1)&&kt.next(););return"variable"}}}function Me(kt,Ye){if(kt.match(/^while\b/))return Ye.javaScriptLine=!0,B}function ze(kt,Ye){var _t;if(_t=kt.match(/^(\w(?:[-:\w]*\w)?)\/?/))return Ye.lastTag=_t[1].toLowerCase(),Ye.lastTag==="script"&&(Ye.scriptType="application/javascript"),"tag"}function Fe(kt,Ye){if(kt.match(/^:([\w\-]+)/)){var _t;return N&&N.innerModes&&(_t=N.innerModes(kt.current().substring(1))),_t||(_t=kt.current().substring(1)),typeof _t=="string"&&(_t=I.getMode(N,_t)),_n(kt,Ye,_t),"atom"}}function Ze(kt,Ye){if(kt.match(/^(!?=|-)/))return Ye.javaScriptLine=!0,"punctuation"}function lt(kt){if(kt.match(/^#([\w-]+)/))return U}function qe(kt){if(kt.match(/^\.([\w-]+)/))return q}function Ve(kt,Ye){if(kt.peek()=="(")return kt.next(),Ye.isAttrs=!0,Ye.attrsNest=[],Ye.inAttributeName=!0,Ye.attrValue="",Ye.attributeIsType=!1,"punctuation"}function At(kt,Ye){if(Ye.isAttrs){if(Y[kt.peek()]&&Ye.attrsNest.push(Y[kt.peek()]),Ye.attrsNest[Ye.attrsNest.length-1]===kt.peek())Ye.attrsNest.pop();else if(kt.eat(")"))return Ye.isAttrs=!1,"punctuation";if(Ye.inAttributeName&&kt.match(/^[^=,\)!]+/))return(kt.peek()==="="||kt.peek()==="!")&&(Ye.inAttributeName=!1,Ye.jsState=I.startState(K),Ye.lastTag==="script"&&kt.current().trim().toLowerCase()==="type"?Ye.attributeIsType=!0:Ye.attributeIsType=!1),"attribute";var _t=K.token(kt,Ye.jsState);if(Ye.attributeIsType&&_t==="string"&&(Ye.scriptType=kt.current().toString()),Ye.attrsNest.length===0&&(_t==="string"||_t==="variable"||_t==="keyword"))try{return Function("","var x "+Ye.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),Ye.inAttributeName=!0,Ye.attrValue="",kt.backUp(kt.current().length),At(kt,Ye)}catch{}return Ye.attrValue+=kt.current(),_t||!0}}function Nt(kt,Ye){if(kt.match(/^&attributes\b/))return Ye.javaScriptArguments=!0,Ye.javaScriptArgumentsDepth=0,"keyword"}function zt(kt){if(kt.sol()&&kt.eatSpace())return"indent"}function Ht(kt,Ye){if(kt.match(/^ *\/\/(-)?([^\n]*)/))return Ye.indentOf=kt.indentation(),Ye.indentToken="comment","comment"}function qt(kt){if(kt.match(/^: */))return"colon"}function Qt(kt,Ye){if(kt.match(/^(?:\| ?| )([^\n]+)/))return"string";if(kt.match(/^(<[^\n]*)/,!1))return _n(kt,Ye,"htmlmixed"),Ye.innerModeForLine=!0,Hn(kt,Ye,!0)}function Jt(kt,Ye){if(kt.eat(".")){var _t=null;return Ye.lastTag==="script"&&Ye.scriptType.toLowerCase().indexOf("javascript")!=-1?_t=Ye.scriptType.toLowerCase().replace(/"|'/g,""):Ye.lastTag==="style"&&(_t="css"),_n(kt,Ye,_t),"dot"}}function yn(kt){return kt.next(),null}function _n(kt,Ye,_t){_t=I.mimeModes[_t]||_t,_t=N.innerModes&&N.innerModes(_t)||_t,_t=I.mimeModes[_t]||_t,_t=I.getMode(N,_t),Ye.indentOf=kt.indentation(),_t&&_t.name!=="null"?Ye.innerMode=_t:Ye.indentToken="string"}function Hn(kt,Ye,_t){if(kt.indentation()>Ye.indentOf||Ye.innerModeForLine&&!kt.sol()||_t)return Ye.innerMode?(Ye.innerState||(Ye.innerState=Ye.innerMode.startState?I.startState(Ye.innerMode,kt.indentation()):{}),kt.hideFirstChars(Ye.indentOf+2,function(){return Ye.innerMode.token(kt,Ye.innerState)||!0})):(kt.skipToEnd(),Ye.indentToken);kt.sol()&&(Ye.indentOf=1/0,Ye.indentToken=null,Ye.innerMode=null,Ye.innerState=null)}function On(kt,Ye){if(kt.sol()&&(Ye.restOfLine=""),Ye.restOfLine){kt.skipToEnd();var _t=Ye.restOfLine;return Ye.restOfLine="",_t}}function Fn(){return new G}function In(kt){return kt.copy()}function dn(kt,Ye){var _t=Hn(kt,Ye)||On(kt,Ye)||se(kt,Ye)||oe(kt,Ye)||Oe(kt,Ye)||At(kt,Ye)||J(kt,Ye)||Z(kt,Ye)||we(kt,Ye)||ee(kt)||te(kt)||re(kt,Ye)||ne(kt,Ye)||le(kt,Ye)||ge(kt)||ue(kt,Ye)||_e(kt,Ye)||fe(kt,Ye)||me(kt,Ye)||ve(kt,Ye)||xe(kt,Ye)||ye(kt,Ye)||be(kt,Ye)||Ae(kt,Ye)||ke(kt,Ye)||Me(kt,Ye)||ze(kt,Ye)||Fe(kt,Ye)||Ze(kt,Ye)||lt(kt)||qe(kt)||Ve(kt,Ye)||Nt(kt,Ye)||zt(kt)||Qt(kt,Ye)||Ht(kt,Ye)||qt(kt)||Jt(kt,Ye)||yn(kt);return _t===!0?null:_t}return{startState:Fn,copyState:In,token:dn}},"javascript","css","htmlmixed"),I.defineMIME("text/x-pug","pug"),I.defineMIME("text/x-jade","pug")})}()),pug.exports}(function(M,$){(function(I){I(requireCodemirror(),requireOverlay(),requireXml(),requireJavascript(),requireCoffeescript(),cssExports,requireSass(),requireStylus(),requirePug(),handlebarsExports)})(function(I){var N={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};I.defineMode("vue-template",function(B,j){var U={token:function(q){if(q.match(/^\{\{.*?\}\}/))return"meta mustache";for(;q.next()&&!q.match("{{",!1););return null}};return I.overlayMode(I.getMode(B,j.backdrop||"text/html"),U)}),I.defineMode("vue",function(B){return I.getMode(B,{name:"htmlmixed",tags:N})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),I.defineMIME("script/x-vue","vue"),I.defineMIME("text/x-vue","vue")})})();requireXml();var yaml={exports:{}},hasRequiredYaml;function requireYaml(){return hasRequiredYaml||(hasRequiredYaml=1,function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineMode("yaml",function(){var N=["true","false","on","off","yes","no"],B=new RegExp("\\b(("+N.join(")|(")+"))$","i");return{token:function(j,U){var q=j.peek(),Y=U.escaped;if(U.escaped=!1,q=="#"&&(j.pos==0||/\s/.test(j.string.charAt(j.pos-1))))return j.skipToEnd(),"comment";if(j.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(U.literal&&j.indentation()>U.keyCol)return j.skipToEnd(),"string";if(U.literal&&(U.literal=!1),j.sol()){if(U.keyCol=0,U.pair=!1,U.pairStart=!1,j.match("---")||j.match("..."))return"def";if(j.match(/\s*-\s+/))return"meta"}if(j.match(/^(\{|\}|\[|\])/))return q=="{"?U.inlinePairs++:q=="}"?U.inlinePairs--:q=="["?U.inlineList++:U.inlineList--,"meta";if(U.inlineList>0&&!Y&&q==",")return j.next(),"meta";if(U.inlinePairs>0&&!Y&&q==",")return U.keyCol=0,U.pair=!1,U.pairStart=!1,j.next(),"meta";if(U.pairStart){if(j.match(/^\s*(\||\>)\s*/))return U.literal=!0,"meta";if(j.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(U.inlinePairs==0&&j.match(/^\s*-?[0-9\.\,]+\s?$/)||U.inlinePairs>0&&j.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(j.match(B))return"keyword"}return!U.pair&&j.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(U.pair=!0,U.keyCol=j.indentation(),"atom"):U.pair&&j.match(/^:\s*/)?(U.pairStart=!0,"meta"):(U.pairStart=!1,U.escaped=q=="\\",j.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),I.defineMIME("text/x-yaml","yaml"),I.defineMIME("text/yaml","yaml")})}()),yaml.exports}requireYaml();(function(M,$){(function(I){I(requireCodemirror(),requireYaml())})(function(I){var N=0,B=1,j=2;I.defineMode("yaml-frontmatter",function(U,q){var Y=I.getMode(U,"yaml"),K=I.getMode(U,q&&q.base||"gfm");function G(J){return J.state==B?{mode:Y,state:J.yaml}:{mode:K,state:J.inner}}return{startState:function(){return{state:N,yaml:null,inner:I.startState(K)}},copyState:function(J){return{state:J.state,yaml:J.yaml&&I.copyState(Y,J.yaml),inner:I.copyState(K,J.inner)}},token:function(J,Z){if(Z.state==N)return J.match("---",!1)?(Z.state=B,Z.yaml=I.startState(Y),Y.token(J,Z.yaml)):(Z.state=j,K.token(J,Z.inner));if(Z.state==B){var ee=J.sol()&&J.match(/(---|\.\.\.)/,!1),te=Y.token(J,Z.yaml);return ee&&(Z.state=j,Z.yaml=null),te}else return K.token(J,Z.inner)},innerMode:G,indent:function(J,Z,ee){var te=G(J);return te.mode.indent?te.mode.indent(te.state,Z,ee):I.Pass},blankLine:function(J){var Z=G(J);if(Z.mode.blankLine)return Z.mode.blankLine(Z.state)}}})})})();const _sfc_main$1W={mixins:[Fieldtype],data(){return{codemirror:null,modes:[{value:"clike",label:"C-Like"},{value:"css",label:"CSS"},{value:"diff",label:"Diff"},{value:"go",label:"Go"},{value:"haml",label:"HAML"},{value:"handlebars",label:"Handlebars"},{value:"htmlmixed",label:"HTML"},{value:"less",label:"LESS"},{value:"markdown",label:"Markdown"},{value:"gfm",label:"Markdown (GHF)"},{value:"nginx",label:"Nginx"},{value:"text/x-java",label:"Java"},{value:"javascript",label:"JavaScript"},{value:"jsx",label:"JSX"},{value:"text/x-objectivec",label:"Objective-C"},{value:"php",label:"PHP"},{value:"python",label:"Python"},{value:"ruby",label:"Ruby"},{value:"scss",label:"SCSS"},{value:"shell",label:"Shell"},{value:"sql",label:"SQL"},{value:"twig",label:"Twig"},{value:"vue",label:"Vue"},{value:"xml",label:"XML"},{value:"yaml-frontmatter",label:"YAML"}],mode:this.value.mode||this.config.mode,fullScreenMode:!1}},computed:{modeLabel(){return _.findWhere(this.modes,{value:this.mode}).label||this.mode},exactTheme(){return this.config.theme==="light"?"default":"material"},themeClass(){return"theme-"+this.config.theme},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value.code?truncate(this.value.code,60):""},readOnlyOption(){return this.isReadOnly?"nocursor":!1},rulers(){if(!this.config.rulers)return[];let M=this.config.theme==="light"?"#d1d5db":"#546e7a";return Object.entries(this.config.rulers).map(([$,I])=>{let N=I==="dashed"?"dashed":"solid";return{column:parseInt($),lineStyle:N,color:M}})}},watch:{value(M,$){M.code!=this.codemirror.doc.getValue()&&(M.code||(M.code=""),this.codemirror.doc.setValue(M.code))},readOnlyOption(M){this.codemirror.setOption("readOnly",M)},mode(M){this.codemirror.setOption("mode",M),this.updateDebounced({code:this.value.code,mode:this.mode})},fullScreenMode:{immediate:!0,handler:function(M){this.$nextTick(()=>{this.$nextTick(()=>this.initCodeMirror())})}}},methods:{focus(){this.codemirror.focus()},refresh(){this.$nextTick(function(){this.codemirror.refresh()})},initCodeMirror(){this.codemirror=CodeMirror(this.$refs.codemirror,{value:this.value.code||"",mode:this.mode,direction:document.querySelector("html").getAttribute("dir")??"ltr",addModeClass:!0,keyMap:this.config.key_map,tabSize:this.config.indent_size,indentWithTabs:this.config.indent_type!=="spaces",lineNumbers:this.config.line_numbers,lineWrapping:this.config.line_wrapping,matchBrackets:!0,readOnly:this.readOnlyOption,theme:this.exactTheme,inputStyle:"contenteditable",rulers:this.rulers}),this.codemirror.on("change",M=>{this.updateDebounced({code:M.doc.getValue(),mode:this.mode})}),this.codemirror.on("focus",()=>this.$emit("focus")),this.codemirror.on("blur",()=>this.$emit("blur")),this.refresh(),this.codemirror.setOption("fullScreen",this.fullScreenMode),this.$events.$on("tab-switched",this.refresh)}}};var _sfc_render$1W=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"code-fullscreen",disabled:!$.fullScreenMode,"target-class":"code-fieldtype"}},[I("element-container",{on:{resized:$.refresh}},[I("div",{staticClass:"code-fieldtype-container",class:[$.themeClass,{"code-fullscreen":$.fullScreenMode}]},[I("div",{staticClass:"code-fieldtype-toolbar"},[I("div",[$.config.mode_selectable?I("select-input",{staticClass:"text-xs leading-none",attrs:{options:$.modes,"is-read-only":$.isReadOnly},model:{value:$.mode,callback:function(N){$.mode=N},expression:"mode"}}):I("div",{staticClass:"text-xs font-mono text-gray-700",domProps:{textContent:$._s($.modeLabel)}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen Mode"),expression:"__('Toggle Fullscreen Mode')"}],staticClass:"btn-icon h-8 leading-none flex items-center justify-center text-gray-800",on:{click:function(N){$.fullScreenMode=!$.fullScreenMode}}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.fullScreenMode,expression:"!fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.fullScreenMode,expression:"fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"arrows-shrink"}})],1)]),I("div",{ref:"codemirror"})])])],1)},_sfc_staticRenderFns$1W=[],__component__$1X=normalizeComponent$3(_sfc_main$1W,_sfc_render$1W,_sfc_staticRenderFns$1W,!1,null,null,null,null);const CodeFieldtype=__component__$1X.exports,_sfc_main$1V={props:["handle","value","state","columnHeader"],computed:{mode(){return this.value===null||typeof this.value=="string"?"single":"multiple"},sites(){let M=this.state;return M.values.sites?M.values.sites.map(($,I)=>({handle:$,name:M.meta.sites.data[I].title})):[]},hasMultipleSites(){return this.sites.length>1},inMultipleMode(){return this.mode==="multiple"}},methods:{setMode(M){if(M===this.mode)return;let $;M==="single"&&(this.multipleValue=this.value,$=this.singleValue||Object.values(this.value)[0]),M==="multiple"&&(this.singleValue=this.value,this.multipleValue?$=this.multipleValue:($={},this.sites.forEach(I=>$[I.handle]=""))),this.update($)},updateSiteValue(M,$){let I=this.value;I[M]=$,this.update(I)},update(M){this.$emit("input",M)}}};var _sfc_render$1V=function M(){var $=this,I=$._self._c;return I("div",[$.hasMultipleSites?I("div",[I("div",{staticClass:"radio-fieldtype mb-2"},[I("radio-fieldtype",{attrs:{handle:`${$.handle}_mode`,value:$.mode,config:{inline:!0,options:{single:$.__("Single"),multiple:$.__("Per-site")}}},on:{input:$.setMode}})],1),$.inMultipleMode?I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[I("th",{domProps:{textContent:$._s($.__("Site"))}}),I("th",{staticClass:"w-2/3",domProps:{textContent:$._s($.columnHeader)}})])]),I("tbody",$._l($.sites,function(N){return I("tr",{key:N.handle},[I("td",{staticClass:"align-middle",domProps:{textContent:$._s($.__(N.name))}}),I("td",[I("text-input",{staticClass:"slug-field",attrs:{dir:"ltr",value:$.value[N.handle]},on:{input:function(B){return $.updateSiteValue(N.handle,B)}}})],1)])}),0)]):$._e()]):$._e(),!$.hasMultipleSites||!$.inMultipleMode?I("div",[I("text-input",{staticClass:"slug-field",attrs:{value:$.value,dir:"ltr"},on:{input:$.update}})],1):$._e()])},_sfc_staticRenderFns$1V=[],__component__$1W=normalizeComponent$3(_sfc_main$1V,_sfc_render$1V,_sfc_staticRenderFns$1V,!1,null,null,null,null);const OneOrManySitesField=__component__$1W.exports,_sfc_main$1U={mixins:[Fieldtype],inject:["storeName"],components:{OneOrManySitesField}};var _sfc_render$1U=function M(){var $=this,I=$._self._c;return I("one-or-many-sites-field",{attrs:{handle:$.handle,value:$.value,state:$.$store.state.publish[this.storeName],"column-header":$.__("Route")},on:{input:$.update}})},_sfc_staticRenderFns$1U=[],__component__$1V=normalizeComponent$3(_sfc_main$1U,_sfc_render$1U,_sfc_staticRenderFns$1U,!1,null,null,null,null);const Routes=__component__$1V.exports,_sfc_main$1T={mixins:[Fieldtype],inject:["storeName"],components:{OneOrManySitesField}};var _sfc_render$1T=function M(){var $=this,I=$._self._c;return I("one-or-many-sites-field",{attrs:{handle:$.handle,value:$.value,state:$.$store.state.publish[this.storeName],"column-header":$.__("Format")},on:{input:$.update}})},_sfc_staticRenderFns$1T=[],__component__$1U=normalizeComponent$3(_sfc_main$1T,_sfc_render$1T,_sfc_staticRenderFns$1T,!1,null,null,null,null);const TitleFormats=__component__$1U.exports,_sfc_main$1S={mixins:[Fieldtype],data(){return{customColor:this.value}},watch:{value(M){this.customColor=M}},computed:{replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value?`<span class="little-dot" style="background-color:${this.value}"></span>`:null}},methods:{customColorSelected(M){this.customColor=M.target.value},commitCustomColor(){this.update(this.customColor)},resetColor(){this.update(null)}}};var _sfc_render$1S=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group w-auto",class:{"max-w-[130px]":$.config.allow_any}},[I("popover",{staticClass:"color-picker",attrs:{name:"swatches",placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pick Color"),expression:"__('Pick Color')"}],staticClass:"input-group-prepend px-px"},[I("div",{staticClass:"relative flex items-center outline-none"},[I("div",{staticClass:"inline-block cursor-pointer rounded m-0 p-[2px]"},[I("div",{staticClass:"rounded-sm w-8 h-8",class:{border:!$.value,"cursor-not-allowed":$.isReadOnly},style:{"background-color":$.value}})])])])]},proxy:!0},{key:"default",fn:function({close:N}){return[I("div",{staticClass:"p-4"},[$.config.swatches.length?I("div",{staticClass:"grid grid-cols-4 gap-3"},$._l($.config.swatches,function(B){return I("div",{staticClass:"w-10 h-10 inline-block cursor-pointer rounded flex border border-gray-400",style:{"background-color":B},on:{click:()=>{$.update(B),N()}}},[B===$.value?I("div",{staticClass:"flex items-center justify-center h-full w-full"},[I("div",{staticClass:"w-5 h-5 rounded-full bg-black/10 flex items-center justify-center"},[I("svg",{staticClass:"text-white fill-current",attrs:{version:"1.1",role:"presentation",width:"12",height:"12",viewBox:"0 0 1792 1792"}},[I("path",{attrs:{d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"}})])])]):$._e()])}),0):$._e(),$.config.allow_any?I("div",{staticClass:"flex items-center",class:{"mt-5":$.config.swatches.length}},[I("input",{staticClass:"h-10 w-full cursor-pointer input-text w-full rounded p-[2px] rtl:ml-2 ltr:mr-2",attrs:{type:"color"},domProps:{value:$.customColor},on:{input:$.customColorSelected}}),I("button",{staticClass:"btn btn-primary h-10 px-2",domProps:{textContent:$._s($.__("OK"))},on:{click:()=>{$.commitCustomColor(),N()}}})]):$._e()])]}}])}),$.config.allow_any?I("input",{staticClass:"input-text font-mono",attrs:{maxlength:"7",type:"text",readonly:$.isReadOnly},domProps:{value:$.customColor},on:{input:function(N){return $.updateDebounced(N.target.value)}}}):$._e()],1),$.value?I("button",{staticClass:"btn-close rtl:mr-1 ltr:ml-1",attrs:{"aria-label":$.__("Reset")},on:{click:$.resetColor}},[$._v("×")]):$._e()])},_sfc_staticRenderFns$1S=[],__component__$1T=normalizeComponent$3(_sfc_main$1S,_sfc_render$1S,_sfc_staticRenderFns$1S,!1,null,null,null,null);const ColorFieldtype=__component__$1T.exports,Picker={props:{isReadOnly:{type:Boolean,default:!1},bindings:{type:Object}}},_sfc_main$1R={mixins:[Picker],data(){return{open:!1,picker:null,portalTarget:`date-picker-${this._uid}`,inputValue:null}},computed:{inputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!0,{formatInput:!0}),keyup:M=>{var $;this.picker.onInputKeyup(M),M.key==="Escape"&&(($=this.$refs.popover)==null||$.close())}}}},watch:{"bindings.value":function(){this.$nextTick(()=>this.updateInputValue())}},methods:{updateInputValue(){this.inputValue=this.picker.inputValues[0]},dateSelected(M){this.$emit("input",M),this.$nextTick(()=>{var $;return($=this.$refs.popover)==null?void 0:$.close()})},clear(){this.$emit("input",null)},resetPicker(){this.picker=this.$refs.picker}},mounted(){this.$nextTick(()=>{this.resetPicker(),this.updateInputValue()})}};var _sfc_render$1R=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex-1"},[I("v-portal",{attrs:{disabled:!$.open,to:$.portalTarget}},[I("v-date-picker",$._b({directives:[{name:"show",rawName:"v-show",value:$.open,expression:"open"}],ref:"picker",on:{input:$.dateSelected}},"v-date-picker",$.bindings,!1))],1),I("popover",{ref:"popover",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:function(N){$.open=!0},closed:function(N){$.open=!1}},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 rtl:border-r-0 ltr:border-l-0 flex items-center rtl:pl-0 ltr:pr-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.inputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.inputEvents)),$.isReadOnly?$._e():I("button",{staticClass:"cursor-pointer px-2 hover:text-blue-500",attrs:{type:"button",title:"Clear","aria-label":"Clear"},on:{click:$.clear}},[I("span",[$._v("×")])])])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.portalTarget},on:{change:$.resetPicker}})],1)],1)},_sfc_staticRenderFns$1R=[],__component__$1S=normalizeComponent$3(_sfc_main$1R,_sfc_render$1R,_sfc_staticRenderFns$1R,!1,null,null,null,null);const SinglePopover=__component__$1S.exports,_sfc_main$1Q={mixins:[Picker],computed:{pickerBindings(){return{...this.bindings,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}}}};var _sfc_render$1Q=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative w-full"},[I("v-date-picker",$._b({on:{input:function(N){return $.$emit("input",N)}}},"v-date-picker",$.pickerBindings,!1)),$.isReadOnly?I("div",{staticClass:"absolute inset-0 z-1 cursor-not-allowed"}):$._e()],1)},_sfc_staticRenderFns$1Q=[],__component__$1R=normalizeComponent$3(_sfc_main$1Q,_sfc_render$1Q,_sfc_staticRenderFns$1Q,!1,null,null,null,null);const SingleInline=__component__$1R.exports,_sfc_main$1P={mixins:[Picker],data(){return{startOpen:!1,endOpen:!1,picker:null,portalTarget:null,startPortalTarget:`date-picker-start-${this._uid}`,endPortalTarget:`date-picker-end-${this._uid}`,startInputValue:null,endInputValue:null}},computed:{pickerBindings(){return{...this.bindings,isRange:!0,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}},open(){return this.startOpen||this.endOpen},startInputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!0,{formatInput:!0}),keyup:M=>{this.picker.onInputKeyup(M),M.key==="Escape"&&this.$refs.startPopover.close()}}},endInputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!1,{formatInput:!0}),keyup:M=>{this.picker.onInputKeyup(M),M.key==="Escape"&&this.$refs.endPopover.close()}}}},watch:{"bindings.value":function(){this.$nextTick(()=>this.updateInputValues())}},mounted(){this.$nextTick(()=>{this.resetPicker(),this.updateInputValues()})},methods:{startPopoverOpened(){this.endOpen&&this.$refs.endPopover.close(),this.startOpen=!0,this.portalTarget=this.startPortalTarget},startPopoverClosed(){this.startOpen=!1,this.portalTarget=null},endPopoverOpened(){this.startOpen&&this.$refs.startPopover.close(),this.endOpen=!0,this.portalTarget=this.endPortalTarget},endPopoverClosed(){this.endOpen=!1,this.portalTarget=null},updateInputValues(){this.startInputValue=this.picker.inputValues[0],this.endInputValue=this.picker.inputValues[1]},dateSelected(M){this.$emit("input",M),this.$nextTick(()=>{var $,I;($=this.$refs.startPopover)==null||$.close(),(I=this.$refs.endPopover)==null||I.close()})},clear(){this.$emit("input",null)},resetPicker(){this.picker=this.$refs.picker}}};var _sfc_render$1P=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("v-portal",{attrs:{disabled:!$.open,to:$.portalTarget}},[I("v-date-picker",$._b({directives:[{name:"show",rawName:"v-show",value:$.open,expression:"open"}],ref:"picker",on:{input:$.dateSelected}},"v-date-picker",$.pickerBindings,!1))],1),I("div",{staticClass:"w-full flex items-start @md:items-center flex-col @md:flex-row"},[I("popover",{ref:"startPopover",staticClass:"w-full",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:$.startPopoverOpened,closed:$.startPopoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 rtl:border-r-0 ltr:border-l-0 flex items-center rtl:pl-0 ltr:pr-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.startInputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.startInputEvents)),$.isReadOnly?$._e():I("button",{staticClass:"cursor-pointer px-2 hover:text-blue-500",attrs:{type:"button",title:"Clear","aria-label":"Clear"},on:{click:$.clear}},[I("span",[$._v("×")])])])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.startPortalTarget},on:{change:$.resetPicker}})],1),I("svg-icon",{staticClass:"w-6 h-6 my-1 mx-2 text-gray-700 hidden @md:block",attrs:{name:"micro/arrow-right"}}),I("svg-icon",{staticClass:"w-3.5 h-3.5 my-2 mx-2.5 rotate-90 text-gray-700 @md:hidden",attrs:{name:"micro/arrow-right"}}),I("popover",{ref:"endPopover",staticClass:"w-full",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:$.endPopoverOpened,closed:$.endPopoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 rtl:border-r-0 ltr:border-l-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.endInputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.endInputEvents))])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.endPortalTarget},on:{change:$.resetPicker}})],1)],1)],1)},_sfc_staticRenderFns$1P=[],__component__$1Q=normalizeComponent$3(_sfc_main$1P,_sfc_render$1P,_sfc_staticRenderFns$1P,!1,null,null,null,null);const RangePopover=__component__$1Q.exports,_sfc_main$1O={mixins:[Picker],computed:{pickerBindings(){return{...this.bindings,isRange:!0,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}}}};var _sfc_render$1O=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative w-full"},[I("v-date-picker",$._b({on:{input:function(N){return $.$emit("input",N)}}},"v-date-picker",$.pickerBindings,!1)),$.isReadOnly?I("div",{staticClass:"absolute inset-0 z-1 cursor-not-allowed"}):$._e()],1)},_sfc_staticRenderFns$1O=[],__component__$1P=normalizeComponent$3(_sfc_main$1O,_sfc_render$1O,_sfc_staticRenderFns$1O,!1,null,null,null,null);const RangeInline=__component__$1P.exports,_sfc_main$1N={components:{SinglePopover,SingleInline,RangePopover,RangeInline},mixins:[Fieldtype],inject:["storeName"],data(){return{containerWidth:null,focusedField:null}},computed:{pickerComponent(){return this.isRange?this.usesPopover?"RangePopover":"RangeInline":this.usesPopover?"SinglePopover":"SingleInline"},hasDate(){return this.config.required||this.value.date},hasTime(){return this.config.time_enabled&&!this.isRange},hasSeconds(){return this.config.time_has_seconds},isSingle(){return!this.isRange},isRange(){return this.config.mode==="range"},isInline(){return this.config.inline},usesPopover(){return!this.isInline},pickerProps(){return{isReadOnly:this.isReadOnly,bindings:this.commonDatePickerBindings}},datePickerValue(){return this.isRange?this.value.date:this.value.date+"T00:00:00"},commonDatePickerBindings(){return{attributes:[{key:"today",dot:!0,popover:{label:__("Today")},dates:new Date}],columns:this.$screens({default:1,lg:this.config.columns}),rows:this.$screens({default:1,lg:this.config.rows}),isExpanded:this.name==="date"||this.config.full_width,isRequired:this.config.required,locale:this.$config.get("locale").replace("_","-"),masks:{input:[this.displayFormat]},minDate:this.config.earliest_date.date,maxDate:this.config.latest_date.date,modelConfig:{type:"string",mask:this.format},updateOnInput:!1,value:this.datePickerValue}},datePickerEvents(){return{input:this.setDate}},format(){return"YYYY-MM-DD"},displayFormat(){return this.meta.displayFormat},replicatorPreview(){if(!this.showFieldPreviews||!this.config.replicator_preview||!this.value.date)return;if(this.isRange)return Vue$3.moment(this.value.date.start).format(this.displayFormat)+" – "+Vue$3.moment(this.value.date.end).format(this.displayFormat);let M=Vue$3.moment(this.value.date).format(this.displayFormat);return this.hasTime&&this.value.time&&(M+=` ${this.value.time}`),M}},created(){this.value.time==="now"&&(this.value.time=Vue$3.moment().format(this.hasSeconds?"HH:mm:ss":"HH:mm")),this.$events.$on(`container.${this.storeName}.saving`,this.triggerChangeOnFocusedField)},destroyed(){this.$events.$off(`container.${this.storeName}.saving`,this.triggerChangeOnFocusedField)},methods:{triggerChangeOnFocusedField(){this.focusedField&&this.focusedField.dispatchEvent(new Event("change"))},setDate(M){if(!M){this.update({date:null,time:null});return}this.update({...this.value,date:M})},setTime(M){this.update({...this.value,time:M})},addDate(){const M=Vue$3.moment().format(this.format),$=this.isRange?{start:M,end:M}:M;this.update({date:$,time:null})}}};var _sfc_render$1N=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"datetime min-w-[145px]"},[!$.isReadOnly&&$.config.inline===!1&&!$.hasDate?I("button",{staticClass:"btn flex mb-2 md:mb-0 items-center rtl:pr-3 ltr:pl-3",attrs:{type:"button",tabindex:"0"},on:{click:$.addDate}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/calendar"}}),$._v(" "+$._s($.__("Add Date"))+" ")],1):$._e(),$.hasDate||$.config.inline?I("div",{staticClass:"date-time-container flex flex-col @sm:flex-row gap-2"},[I($.pickerComponent,$._b({tag:"component",on:{input:$.setDate,focus:function(N){$.focusedField=N},blur:function(N){$.focusedField=null}}},"component",$.pickerProps,!1)),$.config.time_enabled&&!$.isRange?I("div",{staticClass:"time-container time-fieldtype"},[$.hasTime?I("time-fieldtype",{ref:"time",attrs:{handle:"",value:$.value.time,required:$.config.time_enabled,"show-seconds":$.config.time_seconds_enabled,"read-only":$.isReadOnly,config:{}},on:{input:$.setTime}}):$._e()],1):$._e()],1):$._e()])},_sfc_staticRenderFns$1N=[],__component__$1O=normalizeComponent$3(_sfc_main$1N,_sfc_render$1N,_sfc_staticRenderFns$1N,!1,null,null,null,null);const DateFieldtype=__component__$1O.exports,_sfc_main$1M={mixins:[Fieldtype$1],inject:["storeName"],computed:{nearestPublishContainer(){let M=this;for(;M.$options.name!=="publish-container";)if(M=M.$parent,M===this.$root)return null;return M},nearestFieldSettings(){let M=this;for(;M.$options._componentTag!=="field-settings";)if(M=M.$parent,M===this.$root)return null;return M},hidden(){return this.nearestFieldSettings.values.hide_display}},mounted(){this.$refs.input.select()},methods:{toggleHidden(){this.nearestFieldSettings.updateField("hide_display",!this.hidden)}}};var _sfc_render$1M=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("input",{ref:"input",staticClass:"input-text",attrs:{id:$.fieldId,name:$.name,type:"text"},domProps:{value:$.value},on:{input:function(N){return $.updateDebounced(N.target.value)},keydown:function(N){return $.$emit("keydown",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.hidden?$.__("Hidden"):$.__("Visible"),expression:"hidden ? __('Hidden') : __('Visible')"}],staticClass:"input-group-append flex items-center",on:{click:$.toggleHidden}},[I("svg-icon",{staticClass:"w-5 h-5",class:{"text-gray-500":!$.hidden},attrs:{name:"light/hidden"}})],1)])])},_sfc_staticRenderFns$1M=[],__component__$1N=normalizeComponent$3(_sfc_main$1M,_sfc_render$1M,_sfc_staticRenderFns$1M,!1,null,null,null,null);const FieldDisplayFieldtype=__component__$1N.exports,_sfc_main$1L={props:{field:{type:Object,required:!0},isRoot:{type:Boolean,default:!0},fields:{type:Array},isEditing:Boolean}},_sfc_render$1L=null,_sfc_staticRenderFns$1L=null;var __component__$1M=normalizeComponent$3(_sfc_main$1L,_sfc_render$1L,_sfc_staticRenderFns$1L,!1,null,null,null,null);const Field=__component__$1M.exports,RULES=[{label:"Accepted",value:"accepted"},{label:"Accepted If",value:"accepted_if:",example:"accepted_if:anotherfield,value,..."},{label:"Active URL",value:"active_url"},{label:"After (Date)",value:"after:",example:"after:date"},{label:"After Or Equal (Date)",value:"after_or_equal:",example:"after_or_equal:date"},{label:"Alpha",value:"alpha"},{label:"Alpha Dash",value:"alpha_dash"},{label:"Alpha Numeric",value:"alpha_num"},{label:"Array",value:"array"},{label:"Bail",value:"bail"},{label:"Before (Date)",value:"before:",example:"before:date"},{label:"Before Or Equal (Date)",value:"before_or_equal:",example:"before_or_equal:date"},{label:"Between",value:"between:",example:"between:min,max"},{label:"Boolean",value:"boolean"},{label:"Confirmed",value:"confirmed"},{label:"Date",value:"date"},{label:"Date Equals",value:"date_equals:",example:"date_equals:date"},{label:"Date Format",value:"date_format:",example:"date_format:date"},{label:"Different",value:"different:",example:"different:field"},{label:"Digits",value:"digits:",example:"digits:value"},{label:"Digits Between",value:"digits_between:",example:"digits_between:min,max"},{label:"Dimensions (Image Files)",value:"dimensions:",example:"dimensions:min_width=100,min_height=200"},{label:"Distinct",value:"distinct"},{label:"E-Mail",value:"email"},{label:"Ends With",value:"ends_with:",example:"ends_with:foo,bar,...",minVersion:"5.8.17"},{label:"File",value:"file"},{label:"Filled",value:"filled"},{label:"Greater Than",value:"gt:",example:"gt:field"},{label:"Greater Than Or Equal",value:"gte:",example:"gte:field"},{label:"Image (File)",value:"image"},{label:"In",value:"in:",example:"in:foo,bar,..."},{label:"In Array",value:"in_array:",example:"in_array:anotherfield"},{label:"Integer",value:"integer"},{label:"IP Address",value:"ip"},{label:"IP Address (ipv4)",value:"ipv4"},{label:"IP Address (ipv6)",value:"ipv6"},{label:"JSON",value:"json"},{label:"Less Than",value:"lt:",example:"lt:field"},{label:"Less Than Or Equal",value:"lte:",example:"lte:field"},{label:"Max",value:"max:",example:"max:value"},{label:"Max Filesize (KB)",value:"max_filesize:",example:"max_filesize:value"},{label:"MIME Types",value:"mimetypes:",example:"mimetypes:text/plain,..."},{label:"MIME Type By File Extension",value:"mimes:",example:"mimes:foo,bar,..."},{label:"Min",value:"min:",example:"min:value"},{label:"Min Filesize (KB)",value:"min_filesize:",example:"min_filesize:value"},{label:"Not In",value:"not_in:",example:"not_in:foo,bar,..."},{label:"Not Regular Expression",value:"not_regex:",example:"not_regex:pattern"},{label:"Nullable",value:"nullable"},{label:"Numeric",value:"numeric"},{label:"Present",value:"present"},{label:"Regular Expression",value:"regex:",example:"regex:pattern"},{label:"Required",value:"required"},{label:"Required If",value:"required_if:",example:"required_if:anotherfield,value,..."},{label:"Required Unless",value:"required_unless:",example:"required_unless:anotherfield,value,..."},{label:"Required With",value:"required_with:",example:"required_with:foo,bar,..."},{label:"Required With All",value:"required_with_all:",example:"required_with_all:foo,bar,..."},{label:"Required Without",value:"required_without:",example:"required_without:foo,bar,..."},{label:"Required Without All",value:"required_without_all:",example:"required_without_all:foo,bar,..."},{label:"Same",value:"same:",example:"same:field"},{label:"Size",value:"size:",example:"size:value"},{label:"Sometimes",value:"sometimes"},{label:"Starts With",value:"starts_with:",example:"starts_with:foo,bar,...",minVersion:"5.7.15"},{label:"String",value:"string"},{label:"Timezone",value:"timezone"},{label:"Unique Entry Value",value:"unique_entry_value:{collection},{id},{site}"},{label:"URL",value:"url"},{label:"UUID",value:"uuid",minVersion:"5.7.10"}];var semver={exports:{}};(function(M,$){$=M.exports=me;var I;typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?I=function(){var ot=Array.prototype.slice.call(arguments,0);ot.unshift("SEMVER"),console.log.apply(console,ot)}:I=function(){},$.SEMVER_SPEC_VERSION="2.0.0";var N=256,B=Number.MAX_SAFE_INTEGER||9007199254740991,j=16,U=N-6,q=$.re=[],Y=$.safeRe=[],K=$.src=[],G=$.tokens={},J=0;function Z(ot){G[ot]=J++}var ee="[a-zA-Z0-9-]",te=[["\\s",1],["\\d",N],[ee,U]];function re(ot){for(var dt=0;dt<te.length;dt++){var Ot=te[dt][0],Yt=te[dt][1];ot=ot.split(Ot+"*").join(Ot+"{0,"+Yt+"}").split(Ot+"+").join(Ot+"{1,"+Yt+"}")}return ot}Z("NUMERICIDENTIFIER"),K[G.NUMERICIDENTIFIER]="0|[1-9]\\d*",Z("NUMERICIDENTIFIERLOOSE"),K[G.NUMERICIDENTIFIERLOOSE]="\\d+",Z("NONNUMERICIDENTIFIER"),K[G.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ee+"*",Z("MAINVERSION"),K[G.MAINVERSION]="("+K[G.NUMERICIDENTIFIER]+")\\.("+K[G.NUMERICIDENTIFIER]+")\\.("+K[G.NUMERICIDENTIFIER]+")",Z("MAINVERSIONLOOSE"),K[G.MAINVERSIONLOOSE]="("+K[G.NUMERICIDENTIFIERLOOSE]+")\\.("+K[G.NUMERICIDENTIFIERLOOSE]+")\\.("+K[G.NUMERICIDENTIFIERLOOSE]+")",Z("PRERELEASEIDENTIFIER"),K[G.PRERELEASEIDENTIFIER]="(?:"+K[G.NUMERICIDENTIFIER]+"|"+K[G.NONNUMERICIDENTIFIER]+")",Z("PRERELEASEIDENTIFIERLOOSE"),K[G.PRERELEASEIDENTIFIERLOOSE]="(?:"+K[G.NUMERICIDENTIFIERLOOSE]+"|"+K[G.NONNUMERICIDENTIFIER]+")",Z("PRERELEASE"),K[G.PRERELEASE]="(?:-("+K[G.PRERELEASEIDENTIFIER]+"(?:\\."+K[G.PRERELEASEIDENTIFIER]+")*))",Z("PRERELEASELOOSE"),K[G.PRERELEASELOOSE]="(?:-?("+K[G.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+K[G.PRERELEASEIDENTIFIERLOOSE]+")*))",Z("BUILDIDENTIFIER"),K[G.BUILDIDENTIFIER]=ee+"+",Z("BUILD"),K[G.BUILD]="(?:\\+("+K[G.BUILDIDENTIFIER]+"(?:\\."+K[G.BUILDIDENTIFIER]+")*))",Z("FULL"),Z("FULLPLAIN"),K[G.FULLPLAIN]="v?"+K[G.MAINVERSION]+K[G.PRERELEASE]+"?"+K[G.BUILD]+"?",K[G.FULL]="^"+K[G.FULLPLAIN]+"$",Z("LOOSEPLAIN"),K[G.LOOSEPLAIN]="[v=\\s]*"+K[G.MAINVERSIONLOOSE]+K[G.PRERELEASELOOSE]+"?"+K[G.BUILD]+"?",Z("LOOSE"),K[G.LOOSE]="^"+K[G.LOOSEPLAIN]+"$",Z("GTLT"),K[G.GTLT]="((?:<|>)?=?)",Z("XRANGEIDENTIFIERLOOSE"),K[G.XRANGEIDENTIFIERLOOSE]=K[G.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",Z("XRANGEIDENTIFIER"),K[G.XRANGEIDENTIFIER]=K[G.NUMERICIDENTIFIER]+"|x|X|\\*",Z("XRANGEPLAIN"),K[G.XRANGEPLAIN]="[v=\\s]*("+K[G.XRANGEIDENTIFIER]+")(?:\\.("+K[G.XRANGEIDENTIFIER]+")(?:\\.("+K[G.XRANGEIDENTIFIER]+")(?:"+K[G.PRERELEASE]+")?"+K[G.BUILD]+"?)?)?",Z("XRANGEPLAINLOOSE"),K[G.XRANGEPLAINLOOSE]="[v=\\s]*("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:"+K[G.PRERELEASELOOSE]+")?"+K[G.BUILD]+"?)?)?",Z("XRANGE"),K[G.XRANGE]="^"+K[G.GTLT]+"\\s*"+K[G.XRANGEPLAIN]+"$",Z("XRANGELOOSE"),K[G.XRANGELOOSE]="^"+K[G.GTLT]+"\\s*"+K[G.XRANGEPLAINLOOSE]+"$",Z("COERCE"),K[G.COERCE]="(^|[^\\d])(\\d{1,"+j+"})(?:\\.(\\d{1,"+j+"}))?(?:\\.(\\d{1,"+j+"}))?(?:$|[^\\d])",Z("COERCERTL"),q[G.COERCERTL]=new RegExp(K[G.COERCE],"g"),Y[G.COERCERTL]=new RegExp(re(K[G.COERCE]),"g"),Z("LONETILDE"),K[G.LONETILDE]="(?:~>?)",Z("TILDETRIM"),K[G.TILDETRIM]="(\\s*)"+K[G.LONETILDE]+"\\s+",q[G.TILDETRIM]=new RegExp(K[G.TILDETRIM],"g"),Y[G.TILDETRIM]=new RegExp(re(K[G.TILDETRIM]),"g");var se="$1~";Z("TILDE"),K[G.TILDE]="^"+K[G.LONETILDE]+K[G.XRANGEPLAIN]+"$",Z("TILDELOOSE"),K[G.TILDELOOSE]="^"+K[G.LONETILDE]+K[G.XRANGEPLAINLOOSE]+"$",Z("LONECARET"),K[G.LONECARET]="(?:\\^)",Z("CARETTRIM"),K[G.CARETTRIM]="(\\s*)"+K[G.LONECARET]+"\\s+",q[G.CARETTRIM]=new RegExp(K[G.CARETTRIM],"g"),Y[G.CARETTRIM]=new RegExp(re(K[G.CARETTRIM]),"g");var ne="$1^";Z("CARET"),K[G.CARET]="^"+K[G.LONECARET]+K[G.XRANGEPLAIN]+"$",Z("CARETLOOSE"),K[G.CARETLOOSE]="^"+K[G.LONECARET]+K[G.XRANGEPLAINLOOSE]+"$",Z("COMPARATORLOOSE"),K[G.COMPARATORLOOSE]="^"+K[G.GTLT]+"\\s*("+K[G.LOOSEPLAIN]+")$|^$",Z("COMPARATOR"),K[G.COMPARATOR]="^"+K[G.GTLT]+"\\s*("+K[G.FULLPLAIN]+")$|^$",Z("COMPARATORTRIM"),K[G.COMPARATORTRIM]="(\\s*)"+K[G.GTLT]+"\\s*("+K[G.LOOSEPLAIN]+"|"+K[G.XRANGEPLAIN]+")",q[G.COMPARATORTRIM]=new RegExp(K[G.COMPARATORTRIM],"g"),Y[G.COMPARATORTRIM]=new RegExp(re(K[G.COMPARATORTRIM]),"g");var le="$1$2$3";Z("HYPHENRANGE"),K[G.HYPHENRANGE]="^\\s*("+K[G.XRANGEPLAIN]+")\\s+-\\s+("+K[G.XRANGEPLAIN]+")\\s*$",Z("HYPHENRANGELOOSE"),K[G.HYPHENRANGELOOSE]="^\\s*("+K[G.XRANGEPLAINLOOSE]+")\\s+-\\s+("+K[G.XRANGEPLAINLOOSE]+")\\s*$",Z("STAR"),K[G.STAR]="(<|>)?=?\\s*\\*";for(var ge=0;ge<J;ge++)I(ge,K[ge]),q[ge]||(q[ge]=new RegExp(K[ge]),Y[ge]=new RegExp(re(K[ge])));$.parse=ue;function ue(ot,dt){if((!dt||typeof dt!="object")&&(dt={loose:!!dt,includePrerelease:!1}),ot instanceof me)return ot;if(typeof ot!="string"||ot.length>N)return null;var Ot=dt.loose?Y[G.LOOSE]:Y[G.FULL];if(!Ot.test(ot))return null;try{return new me(ot,dt)}catch{return null}}$.valid=_e;function _e(ot,dt){var Ot=ue(ot,dt);return Ot?Ot.version:null}$.clean=fe;function fe(ot,dt){var Ot=ue(ot.trim().replace(/^[=v]+/,""),dt);return Ot?Ot.version:null}$.SemVer=me;function me(ot,dt){if((!dt||typeof dt!="object")&&(dt={loose:!!dt,includePrerelease:!1}),ot instanceof me){if(ot.loose===dt.loose)return ot;ot=ot.version}else if(typeof ot!="string")throw new TypeError("Invalid Version: "+ot);if(ot.length>N)throw new TypeError("version is longer than "+N+" characters");if(!(this instanceof me))return new me(ot,dt);I("SemVer",ot,dt),this.options=dt,this.loose=!!dt.loose;var Ot=ot.trim().match(dt.loose?Y[G.LOOSE]:Y[G.FULL]);if(!Ot)throw new TypeError("Invalid Version: "+ot);if(this.raw=ot,this.major=+Ot[1],this.minor=+Ot[2],this.patch=+Ot[3],this.major>B||this.major<0)throw new TypeError("Invalid major version");if(this.minor>B||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>B||this.patch<0)throw new TypeError("Invalid patch version");Ot[4]?this.prerelease=Ot[4].split(".").map(function(Yt){if(/^[0-9]+$/.test(Yt)){var Wt=+Yt;if(Wt>=0&&Wt<B)return Wt}return Yt}):this.prerelease=[],this.build=Ot[5]?Ot[5].split("."):[],this.format()}me.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},me.prototype.toString=function(){return this.version},me.prototype.compare=function(ot){return I("SemVer.compare",this.version,this.options,ot),ot instanceof me||(ot=new me(ot,this.options)),this.compareMain(ot)||this.comparePre(ot)},me.prototype.compareMain=function(ot){return ot instanceof me||(ot=new me(ot,this.options)),ye(this.major,ot.major)||ye(this.minor,ot.minor)||ye(this.patch,ot.patch)},me.prototype.comparePre=function(ot){if(ot instanceof me||(ot=new me(ot,this.options)),this.prerelease.length&&!ot.prerelease.length)return-1;if(!this.prerelease.length&&ot.prerelease.length)return 1;if(!this.prerelease.length&&!ot.prerelease.length)return 0;var dt=0;do{var Ot=this.prerelease[dt],Yt=ot.prerelease[dt];if(I("prerelease compare",dt,Ot,Yt),Ot===void 0&&Yt===void 0)return 0;if(Yt===void 0)return 1;if(Ot===void 0)return-1;if(Ot===Yt)continue;return ye(Ot,Yt)}while(++dt)},me.prototype.compareBuild=function(ot){ot instanceof me||(ot=new me(ot,this.options));var dt=0;do{var Ot=this.build[dt],Yt=ot.build[dt];if(I("prerelease compare",dt,Ot,Yt),Ot===void 0&&Yt===void 0)return 0;if(Yt===void 0)return 1;if(Ot===void 0)return-1;if(Ot===Yt)continue;return ye(Ot,Yt)}while(++dt)},me.prototype.inc=function(ot,dt){switch(ot){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",dt);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",dt);break;case"prepatch":this.prerelease.length=0,this.inc("patch",dt),this.inc("pre",dt);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",dt),this.inc("pre",dt);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var Ot=this.prerelease.length;--Ot>=0;)typeof this.prerelease[Ot]=="number"&&(this.prerelease[Ot]++,Ot=-2);Ot===-1&&this.prerelease.push(0)}dt&&(this.prerelease[0]===dt?isNaN(this.prerelease[1])&&(this.prerelease=[dt,0]):this.prerelease=[dt,0]);break;default:throw new Error("invalid increment argument: "+ot)}return this.format(),this.raw=this.version,this},$.inc=ve;function ve(ot,dt,Ot,Yt){typeof Ot=="string"&&(Yt=Ot,Ot=void 0);try{return new me(ot,Ot).inc(dt,Yt).version}catch{return null}}$.diff=xe;function xe(ot,dt){if(At(ot,dt))return null;var Ot=ue(ot),Yt=ue(dt),Wt="";if(Ot.prerelease.length||Yt.prerelease.length){Wt="pre";var gn="prerelease"}for(var Kn in Ot)if((Kn==="major"||Kn==="minor"||Kn==="patch")&&Ot[Kn]!==Yt[Kn])return Wt+Kn;return gn}$.compareIdentifiers=ye;var oe=/^[0-9]+$/;function ye(ot,dt){var Ot=oe.test(ot),Yt=oe.test(dt);return Ot&&Yt&&(ot=+ot,dt=+dt),ot===dt?0:Ot&&!Yt?-1:Yt&&!Ot?1:ot<dt?-1:1}$.rcompareIdentifiers=be;function be(ot,dt){return ye(dt,ot)}$.major=we;function we(ot,dt){return new me(ot,dt).major}$.minor=Ae;function Ae(ot,dt){return new me(ot,dt).minor}$.patch=ke;function ke(ot,dt){return new me(ot,dt).patch}$.compare=Oe;function Oe(ot,dt,Ot){return new me(ot,Ot).compare(new me(dt,Ot))}$.compareLoose=Me;function Me(ot,dt){return Oe(ot,dt,!0)}$.compareBuild=ze;function ze(ot,dt,Ot){var Yt=new me(ot,Ot),Wt=new me(dt,Ot);return Yt.compare(Wt)||Yt.compareBuild(Wt)}$.rcompare=Fe;function Fe(ot,dt,Ot){return Oe(dt,ot,Ot)}$.sort=Ze;function Ze(ot,dt){return ot.sort(function(Ot,Yt){return $.compareBuild(Ot,Yt,dt)})}$.rsort=lt;function lt(ot,dt){return ot.sort(function(Ot,Yt){return $.compareBuild(Yt,Ot,dt)})}$.gt=qe;function qe(ot,dt,Ot){return Oe(ot,dt,Ot)>0}$.lt=Ve;function Ve(ot,dt,Ot){return Oe(ot,dt,Ot)<0}$.eq=At;function At(ot,dt,Ot){return Oe(ot,dt,Ot)===0}$.neq=Nt;function Nt(ot,dt,Ot){return Oe(ot,dt,Ot)!==0}$.gte=zt;function zt(ot,dt,Ot){return Oe(ot,dt,Ot)>=0}$.lte=Ht;function Ht(ot,dt,Ot){return Oe(ot,dt,Ot)<=0}$.cmp=qt;function qt(ot,dt,Ot,Yt){switch(dt){case"===":return typeof ot=="object"&&(ot=ot.version),typeof Ot=="object"&&(Ot=Ot.version),ot===Ot;case"!==":return typeof ot=="object"&&(ot=ot.version),typeof Ot=="object"&&(Ot=Ot.version),ot!==Ot;case"":case"=":case"==":return At(ot,Ot,Yt);case"!=":return Nt(ot,Ot,Yt);case">":return qe(ot,Ot,Yt);case">=":return zt(ot,Ot,Yt);case"<":return Ve(ot,Ot,Yt);case"<=":return Ht(ot,Ot,Yt);default:throw new TypeError("Invalid operator: "+dt)}}$.Comparator=Qt;function Qt(ot,dt){if((!dt||typeof dt!="object")&&(dt={loose:!!dt,includePrerelease:!1}),ot instanceof Qt){if(ot.loose===!!dt.loose)return ot;ot=ot.value}if(!(this instanceof Qt))return new Qt(ot,dt);ot=ot.trim().split(/\s+/).join(" "),I("comparator",ot,dt),this.options=dt,this.loose=!!dt.loose,this.parse(ot),this.semver===Jt?this.value="":this.value=this.operator+this.semver.version,I("comp",this)}var Jt={};Qt.prototype.parse=function(ot){var dt=this.options.loose?Y[G.COMPARATORLOOSE]:Y[G.COMPARATOR],Ot=ot.match(dt);if(!Ot)throw new TypeError("Invalid comparator: "+ot);this.operator=Ot[1]!==void 0?Ot[1]:"",this.operator==="="&&(this.operator=""),Ot[2]?this.semver=new me(Ot[2],this.options.loose):this.semver=Jt},Qt.prototype.toString=function(){return this.value},Qt.prototype.test=function(ot){if(I("Comparator.test",ot,this.options.loose),this.semver===Jt||ot===Jt)return!0;if(typeof ot=="string")try{ot=new me(ot,this.options)}catch{return!1}return qt(ot,this.operator,this.semver,this.options)},Qt.prototype.intersects=function(ot,dt){if(!(ot instanceof Qt))throw new TypeError("a Comparator is required");(!dt||typeof dt!="object")&&(dt={loose:!!dt,includePrerelease:!1});var Ot;if(this.operator==="")return this.value===""?!0:(Ot=new yn(ot.value,dt),Ue(this.value,Ot,dt));if(ot.operator==="")return ot.value===""?!0:(Ot=new yn(this.value,dt),Ue(ot.semver,Ot,dt));var Yt=(this.operator===">="||this.operator===">")&&(ot.operator===">="||ot.operator===">"),Wt=(this.operator==="<="||this.operator==="<")&&(ot.operator==="<="||ot.operator==="<"),gn=this.semver.version===ot.semver.version,Kn=(this.operator===">="||this.operator==="<=")&&(ot.operator===">="||ot.operator==="<="),Ct=qt(this.semver,"<",ot.semver,dt)&&(this.operator===">="||this.operator===">")&&(ot.operator==="<="||ot.operator==="<"),ft=qt(this.semver,">",ot.semver,dt)&&(this.operator==="<="||this.operator==="<")&&(ot.operator===">="||ot.operator===">");return Yt||Wt||gn&&Kn||Ct||ft},$.Range=yn;function yn(ot,dt){if((!dt||typeof dt!="object")&&(dt={loose:!!dt,includePrerelease:!1}),ot instanceof yn)return ot.loose===!!dt.loose&&ot.includePrerelease===!!dt.includePrerelease?ot:new yn(ot.raw,dt);if(ot instanceof Qt)return new yn(ot.value,dt);if(!(this instanceof yn))return new yn(ot,dt);if(this.options=dt,this.loose=!!dt.loose,this.includePrerelease=!!dt.includePrerelease,this.raw=ot.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(Ot){return this.parseRange(Ot.trim())},this).filter(function(Ot){return Ot.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}yn.prototype.format=function(){return this.range=this.set.map(function(ot){return ot.join(" ").trim()}).join("||").trim(),this.range},yn.prototype.toString=function(){return this.range},yn.prototype.parseRange=function(ot){var dt=this.options.loose,Ot=dt?Y[G.HYPHENRANGELOOSE]:Y[G.HYPHENRANGE];ot=ot.replace(Ot,Se),I("hyphen replace",ot),ot=ot.replace(Y[G.COMPARATORTRIM],le),I("comparator trim",ot,Y[G.COMPARATORTRIM]),ot=ot.replace(Y[G.TILDETRIM],se),ot=ot.replace(Y[G.CARETTRIM],ne),ot=ot.split(/\s+/).join(" ");var Yt=dt?Y[G.COMPARATORLOOSE]:Y[G.COMPARATOR],Wt=ot.split(" ").map(function(gn){return On(gn,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(Wt=Wt.filter(function(gn){return!!gn.match(Yt)})),Wt=Wt.map(function(gn){return new Qt(gn,this.options)},this),Wt},yn.prototype.intersects=function(ot,dt){if(!(ot instanceof yn))throw new TypeError("a Range is required");return this.set.some(function(Ot){return _n(Ot,dt)&&ot.set.some(function(Yt){return _n(Yt,dt)&&Ot.every(function(Wt){return Yt.every(function(gn){return Wt.intersects(gn,dt)})})})})};function _n(ot,dt){for(var Ot=!0,Yt=ot.slice(),Wt=Yt.pop();Ot&&Yt.length;)Ot=Yt.every(function(gn){return Wt.intersects(gn,dt)}),Wt=Yt.pop();return Ot}$.toComparators=Hn;function Hn(ot,dt){return new yn(ot,dt).set.map(function(Ot){return Ot.map(function(Yt){return Yt.value}).join(" ").trim().split(" ")})}function On(ot,dt){return I("comp",ot,dt),ot=kt(ot,dt),I("caret",ot),ot=In(ot,dt),I("tildes",ot),ot=_t(ot,dt),I("xrange",ot),ot=Pe(ot,dt),I("stars",ot),ot}function Fn(ot){return!ot||ot.toLowerCase()==="x"||ot==="*"}function In(ot,dt){return ot.trim().split(/\s+/).map(function(Ot){return dn(Ot,dt)}).join(" ")}function dn(ot,dt){var Ot=dt.loose?Y[G.TILDELOOSE]:Y[G.TILDE];return ot.replace(Ot,function(Yt,Wt,gn,Kn,Ct){I("tilde",ot,Yt,Wt,gn,Kn,Ct);var ft;return Fn(Wt)?ft="":Fn(gn)?ft=">="+Wt+".0.0 <"+(+Wt+1)+".0.0":Fn(Kn)?ft=">="+Wt+"."+gn+".0 <"+Wt+"."+(+gn+1)+".0":Ct?(I("replaceTilde pr",Ct),ft=">="+Wt+"."+gn+"."+Kn+"-"+Ct+" <"+Wt+"."+(+gn+1)+".0"):ft=">="+Wt+"."+gn+"."+Kn+" <"+Wt+"."+(+gn+1)+".0",I("tilde return",ft),ft})}function kt(ot,dt){return ot.trim().split(/\s+/).map(function(Ot){return Ye(Ot,dt)}).join(" ")}function Ye(ot,dt){I("caret",ot,dt);var Ot=dt.loose?Y[G.CARETLOOSE]:Y[G.CARET];return ot.replace(Ot,function(Yt,Wt,gn,Kn,Ct){I("caret",ot,Yt,Wt,gn,Kn,Ct);var ft;return Fn(Wt)?ft="":Fn(gn)?ft=">="+Wt+".0.0 <"+(+Wt+1)+".0.0":Fn(Kn)?Wt==="0"?ft=">="+Wt+"."+gn+".0 <"+Wt+"."+(+gn+1)+".0":ft=">="+Wt+"."+gn+".0 <"+(+Wt+1)+".0.0":Ct?(I("replaceCaret pr",Ct),Wt==="0"?gn==="0"?ft=">="+Wt+"."+gn+"."+Kn+"-"+Ct+" <"+Wt+"."+gn+"."+(+Kn+1):ft=">="+Wt+"."+gn+"."+Kn+"-"+Ct+" <"+Wt+"."+(+gn+1)+".0":ft=">="+Wt+"."+gn+"."+Kn+"-"+Ct+" <"+(+Wt+1)+".0.0"):(I("no pr"),Wt==="0"?gn==="0"?ft=">="+Wt+"."+gn+"."+Kn+" <"+Wt+"."+gn+"."+(+Kn+1):ft=">="+Wt+"."+gn+"."+Kn+" <"+Wt+"."+(+gn+1)+".0":ft=">="+Wt+"."+gn+"."+Kn+" <"+(+Wt+1)+".0.0"),I("caret return",ft),ft})}function _t(ot,dt){return I("replaceXRanges",ot,dt),ot.split(/\s+/).map(function(Ot){return We(Ot,dt)}).join(" ")}function We(ot,dt){ot=ot.trim();var Ot=dt.loose?Y[G.XRANGELOOSE]:Y[G.XRANGE];return ot.replace(Ot,function(Yt,Wt,gn,Kn,Ct,ft){I("xRange",ot,Yt,Wt,gn,Kn,Ct,ft);var Tt=Fn(gn),Lt=Tt||Fn(Kn),pn=Lt||Fn(Ct),mn=pn;return Wt==="="&&mn&&(Wt=""),ft=dt.includePrerelease?"-0":"",Tt?Wt===">"||Wt==="<"?Yt="<0.0.0-0":Yt="*":Wt&&mn?(Lt&&(Kn=0),Ct=0,Wt===">"?(Wt=">=",Lt?(gn=+gn+1,Kn=0,Ct=0):(Kn=+Kn+1,Ct=0)):Wt==="<="&&(Wt="<",Lt?gn=+gn+1:Kn=+Kn+1),Yt=Wt+gn+"."+Kn+"."+Ct+ft):Lt?Yt=">="+gn+".0.0"+ft+" <"+(+gn+1)+".0.0"+ft:pn&&(Yt=">="+gn+"."+Kn+".0"+ft+" <"+gn+"."+(+Kn+1)+".0"+ft),I("xRange return",Yt),Yt})}function Pe(ot,dt){return I("replaceStars",ot,dt),ot.trim().replace(Y[G.STAR],"")}function Se(ot,dt,Ot,Yt,Wt,gn,Kn,Ct,ft,Tt,Lt,pn,mn){return Fn(Ot)?dt="":Fn(Yt)?dt=">="+Ot+".0.0":Fn(Wt)?dt=">="+Ot+"."+Yt+".0":dt=">="+dt,Fn(ft)?Ct="":Fn(Tt)?Ct="<"+(+ft+1)+".0.0":Fn(Lt)?Ct="<"+ft+"."+(+Tt+1)+".0":pn?Ct="<="+ft+"."+Tt+"."+Lt+"-"+pn:Ct="<="+Ct,(dt+" "+Ct).trim()}yn.prototype.test=function(ot){if(!ot)return!1;if(typeof ot=="string")try{ot=new me(ot,this.options)}catch{return!1}for(var dt=0;dt<this.set.length;dt++)if($e(this.set[dt],ot,this.options))return!0;return!1};function $e(ot,dt,Ot){for(var Yt=0;Yt<ot.length;Yt++)if(!ot[Yt].test(dt))return!1;if(dt.prerelease.length&&!Ot.includePrerelease){for(Yt=0;Yt<ot.length;Yt++)if(I(ot[Yt].semver),ot[Yt].semver!==Jt&&ot[Yt].semver.prerelease.length>0){var Wt=ot[Yt].semver;if(Wt.major===dt.major&&Wt.minor===dt.minor&&Wt.patch===dt.patch)return!0}return!1}return!0}$.satisfies=Ue;function Ue(ot,dt,Ot){try{dt=new yn(dt,Ot)}catch{return!1}return dt.test(ot)}$.maxSatisfying=Qe;function Qe(ot,dt,Ot){var Yt=null,Wt=null;try{var gn=new yn(dt,Ot)}catch{return null}return ot.forEach(function(Kn){gn.test(Kn)&&(!Yt||Wt.compare(Kn)===-1)&&(Yt=Kn,Wt=new me(Yt,Ot))}),Yt}$.minSatisfying=mt;function mt(ot,dt,Ot){var Yt=null,Wt=null;try{var gn=new yn(dt,Ot)}catch{return null}return ot.forEach(function(Kn){gn.test(Kn)&&(!Yt||Wt.compare(Kn)===1)&&(Yt=Kn,Wt=new me(Yt,Ot))}),Yt}$.minVersion=ht;function ht(ot,dt){ot=new yn(ot,dt);var Ot=new me("0.0.0");if(ot.test(Ot)||(Ot=new me("0.0.0-0"),ot.test(Ot)))return Ot;Ot=null;for(var Yt=0;Yt<ot.set.length;++Yt){var Wt=ot.set[Yt];Wt.forEach(function(gn){var Kn=new me(gn.semver.version);switch(gn.operator){case">":Kn.prerelease.length===0?Kn.patch++:Kn.prerelease.push(0),Kn.raw=Kn.format();case"":case">=":(!Ot||qe(Ot,Kn))&&(Ot=Kn);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+gn.operator)}})}return Ot&&ot.test(Ot)?Ot:null}$.validRange=at;function at(ot,dt){try{return new yn(ot,dt).range||"*"}catch{return null}}$.ltr=ut;function ut(ot,dt,Ot){return fn(ot,dt,"<",Ot)}$.gtr=Rt;function Rt(ot,dt,Ot){return fn(ot,dt,">",Ot)}$.outside=fn;function fn(ot,dt,Ot,Yt){ot=new me(ot,Yt),dt=new yn(dt,Yt);var Wt,gn,Kn,Ct,ft;switch(Ot){case">":Wt=qe,gn=Ht,Kn=Ve,Ct=">",ft=">=";break;case"<":Wt=Ve,gn=zt,Kn=qe,Ct="<",ft="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ue(ot,dt,Yt))return!1;for(var Tt=0;Tt<dt.set.length;++Tt){var Lt=dt.set[Tt],pn=null,mn=null;if(Lt.forEach(function(En){En.semver===Jt&&(En=new Qt(">=0.0.0")),pn=pn||En,mn=mn||En,Wt(En.semver,pn.semver,Yt)?pn=En:Kn(En.semver,mn.semver,Yt)&&(mn=En)}),pn.operator===Ct||pn.operator===ft||(!mn.operator||mn.operator===Ct)&&gn(ot,mn.semver))return!1;if(mn.operator===ft&&Kn(ot,mn.semver))return!1}return!0}$.prerelease=Bn;function Bn(ot,dt){var Ot=ue(ot,dt);return Ot&&Ot.prerelease.length?Ot.prerelease:null}$.intersects=en;function en(ot,dt,Ot){return ot=new yn(ot,Ot),dt=new yn(dt,Ot),ot.intersects(dt)}$.coerce=xn;function xn(ot,dt){if(ot instanceof me)return ot;if(typeof ot=="number"&&(ot=String(ot)),typeof ot!="string")return null;dt=dt||{};var Ot=null;if(!dt.rtl)Ot=ot.match(Y[G.COERCE]);else{for(var Yt;(Yt=Y[G.COERCERTL].exec(ot))&&(!Ot||Ot.index+Ot[0].length!==ot.length);)(!Ot||Yt.index+Yt[0].length!==Ot.index+Ot[0].length)&&(Ot=Yt),Y[G.COERCERTL].lastIndex=Yt.index+Yt[1].length+Yt[2].length;Y[G.COERCERTL].lastIndex=-1}return Ot===null?null:ue(Ot[2]+"."+(Ot[3]||"0")+"."+(Ot[4]||"0"),dt)}})(semver,semver.exports);var semverExports=semver.exports;const SemVer=getDefaultExportFromCjs(semverExports),Builder_vue_vue_type_style_index_0_scoped_7cc420c9_lang="",_sfc_main$1K={components:{SortableList,SortableItem},props:{config:{required:!0}},data(){return{isRequired:!1,sometimesValidate:!1,rules:[],selectedLaravelRule:null,customRule:null}},computed:{laravelVersion(){return this.$store.state.statamic.config.laravelVersion},laravelDocsLink(){let M=new RegExp("([0-9]+.[0-9]+).[0-9]+").exec(this.laravelVersion)[1],$=Number(M.split(".",1)[0]);return $>=6&&(M=`${$}.x`),`https://laravel.com/docs/${M}/validation#available-validation-rules`},laravelRules(){return _.chain(clone(RULES)).filter(M=>M.minVersion?SemVer.gte(this.laravelVersion,M.minVersion):!0).filter(M=>M.maxVersion?SemVer.lte(this.laravelVersion,M.maxVersion):!0).map(M=>this.prepareRenderableRule(M)).value()},extensionRules(){return _.chain(clone(Statamic.$config.get("extensionRules"))).map(M=>this.prepareRenderableRule(M)).value()},allRules(){return _.sortBy([...this.laravelRules,...this.extensionRules],"display")},helpBlock(){return this.selectedLaravelRule&&_.chain(RULES).filter($=>$.value===this.selectedLaravelRule).first().value().example||!1}},watch:{isRequired(M){M===!0?this.ensureToggleableRule("required"):this.remove("required")},sometimesValidate(M){M===!0?this.ensureToggleableRule("sometimes"):this.remove("sometimes")},rules(M){this.resetState(),this.$emit("updated",M)}},created(){this.getInitial()},methods:{getInitial(){this.rules=this.config.validate?this.explodeRules(this.config.validate):[]},resetState(){this.selectedLaravelRule=null,this.customRule=null,this.isRequired=this.rules.includes("required"),this.sometimesValidate=this.rules.includes("sometimes")},explodeRules(M){return typeof M=="string"?M.split("|").map($=>$.trim()):M},prepareRenderableRule(M){return M.display=clone(M.label),this.$nextTick(()=>{M.label=`${M.label} ${M.value}`}),M},ensureToggleableRule(M){this.rules.includes(M)||this.rules.unshift(M)},ensure(M){this.resetState(),this.rules.includes(M)||this.rules.push(M)},add(M){this.hasUnfinishedParameters(M)?(this.resetState(),this.selectedLaravelRule=M,this.customRule=M,this.$nextTick(()=>this.$refs.customRuleInput.$refs.input.focus())):this.ensure(M)},ifSearchNotFoundAddCustom(){let M=this.$refs.rulesSelect,$=M.search;this.searchNotFound(M)||this.hasUnfinishedParameters($)||(this.add($),this.$nextTick(()=>this.$refs.searchInput.blur()))},remove(M){this.rules=this.rules.filter($=>$!==M)},hasUnfinishedParameters(M){return M.substr(M.length-1)===":"},searchNotFound(M){return M.search.length===0||M.filteredOptions.length>0},updated(M){this.rules=M},valueWithoutTrailingColon(M){return this.hasUnfinishedParameters(M)?M.replace(":",""):M}}};var _sfc_render$1K=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("div",{staticClass:"flex"},[I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Required")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_validation_required_instructions")))])]),I("toggle-input",{model:{value:$.isRequired,callback:function(N){$.isRequired=N},expression:"isRequired"}})],1),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Sometimes")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_validation_sometimes_instructions")))])]),I("toggle-input",{model:{value:$.sometimesValidate,callback:function(N){$.sometimesValidate=N},expression:"sometimesValidate"}})],1)]),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Rules")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v(" "+$._s($.__("messages.field_validation_advanced_instructions"))+" "),I("a",{attrs:{href:$.laravelDocsLink,target:"_blank"}},[$._v($._s($.__("Learn more")))]),$.helpBlock?I("span",{staticClass:"italic text-gray-500 ltr:float-right rtl:float-left"},[$._v(" "+$._s($.__("Example"))+": "),I("span",{staticClass:"italic text-blue-400"},[$._v($._s($.helpBlock))])]):$._e()])]),$.customRule?I("text-input",{ref:"customRuleInput",on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.add($.customRule))},blur:function(N){return $.add($.customRule)}},model:{value:$.customRule,callback:function(N){$.customRule=N},expression:"customRule"}}):I("v-select",{ref:"rulesSelect",staticClass:"w-full",attrs:{name:"rules",options:$.allRules,reduce:N=>N.value,placeholder:$.__("Add Rule"),multiple:!1,searchable:!0,value:$.selectedLaravelRule},on:{input:$.add},scopedSlots:$._u([{key:"search",fn:function({attributes:N,events:B}){return[I("input",$._g($._b({ref:"searchInput",staticClass:"vs__search",on:{keydown:function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"enter",13,j.key,"Enter")?null:$.ifSearchNotFoundAddCustom.apply(null,arguments)},blur:$.ifSearchNotFoundAddCustom}},"input",N,!1),B))]}},{key:"option",fn:function({value:N,display:B}){return[$._v(" "+$._s($.__(B))+" "),I("code",{staticClass:"rtl:mr-2 ltr:ml-2"},[$._v($._s($.valueWithoutTrailingColon(N)))])]}},{key:"no-options",fn:function({search:N}){return[I("div",{staticClass:"vs__dropdown-option rtl:text-right ltr:text-left"},[$._v($._s($.__("Add"))+" "),I("code",{staticClass:"rtl:mr-2 ltr:ml-2"},[$._v($._s(N))])])]}}],null,!1,2877689603)}),I("div",{staticClass:"v-select"},[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",distance:5,mirror:!1},model:{value:$.rules,callback:function(N){$.rules=N},expression:"rules"}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap outline-none"},$._l($.rules,function(N){return I("span",{key:N,staticClass:"vs__selected mt-2 sortable-item"},[$._v(" "+$._s(N)+" "),I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Delete Rule")},on:{click:function(B){return $.remove(N)}}},[I("span",[$._v("×")])])])}),0)])],1)],1)])},_sfc_staticRenderFns$1K=[],__component__$1L=normalizeComponent$3(_sfc_main$1K,_sfc_render$1K,_sfc_staticRenderFns$1K,!1,null,"7cc420c9",null,null);const FieldValidationBuilder=__component__$1L.exports,_sfc_main$1J={components:{PublishField,FieldConditionsBuilder,FieldValidationBuilder},mixins:[ValidatesFieldConditions],props:{id:String,config:Object,overrides:{type:Array,default:()=>[]},type:String,root:Boolean,fields:Array,suggestableConditionFields:Array},provide:{isInsideConfigFields:!0},model:{prop:"config",event:"input"},data:function(){return{values:null,meta:null,error:null,errors:{},editedFields:clone(this.overrides),activeTab:"settings",storeName:"base",fieldtype:null,loading:!0,blueprint:null}},computed:{publishContainer(){return`field-settings-${this._uid}`},selectedWidth:function(){var M=this.config.width||100,$=_.findWhere(this.widths,{value:M});return $.text},fieldtypeConfig(){return this.fieldtype.config},canBeLocalized:function(){return this.root&&Object.keys(Statamic.$config.get("locales")).length>1&&this.fieldtype.canBeLocalized},canBeValidated:function(){return this.fieldtype.canBeValidated},canHaveDefault:function(){return this.fieldtype.canHaveDefault},hasExtras(){return this.filteredFieldtypeConfig.length>0},filteredFieldtypeConfig(){return this.type==="grid"?_.filter(this.fieldtypeConfig,M=>M.handle!=="fields"):["replicator","bard"].includes(this.type)?_.filter(this.fieldtypeConfig,M=>M.handle!=="sets"):this.fieldtypeConfig}},created(){this.load()},methods:{configFieldClasses(M){return[`form-group p-4 m-0 ${M.type}-fieldtype`,tailwind_width_class(M.width)]},updateField(M,$,I=null){this.values[M]=$,this.markFieldEdited(M),I&&I(M,$)},updateFieldConditions(M){let $={};_.each(this.values,(I,N)=>{KEYS.includes(N)||($[N]=I)}),this.values={...$,...M},Object.keys(M).length>0&&this.markFieldEdited(Object.keys(M)[0])},updateAlwaysSave(M){this.values.always_save=M,this.markFieldEdited("always_save")},markFieldEdited(M){this.editedFields.indexOf(M)===-1&&this.editedFields.push(M)},commit(){this.clearErrors(),this.$axios.post(cp_url("fields/update"),{id:this.id,type:this.type,values:this.values,fields:this.fields}).then(M=>{this.$emit("committed",M.data,this.editedFields),this.close()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))},clearErrors(){this.error=null,this.errors={}},close(){this.$emit("closed")},load(){this.$axios.post(cp_url("fields/edit"),{type:this.type,values:this.config}).then(M=>{this.loading=!1,this.fieldtype=M.data.fieldtype,this.blueprint=M.data.blueprint,this.values=M.data.values,this.meta={...M.data.meta}})}}};var _sfc_render$1J=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-gray-300 h-full overflow-scroll"},[$.loading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.loading?$._e():I("header",{staticClass:"flex items-center sticky top-0 inset-x-0 bg-white shadow px-8 py-2 z-1 h-13"},[I("h1",{staticClass:"flex-1 flex items-center text-xl"},[$._v(" "+$._s($.__($.values.display)||$.__($.config.display)||$.config.handle)+" "),I("small",{staticClass:"badge-pill bg-gray-100 rtl:mr-4 ltr:ml-4 border text-xs text-gray-700 font-medium leading-none flex items-center"},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 inline-block text-gray-700",attrs:{name:$.fieldtype.icon.startsWith("<svg")?$.fieldtype.icon:`light/${$.fieldtype.icon}`}}),$._v(" "+$._s($.fieldtype.title)+" ")],1)]),I("button",{staticClass:"text-gray-700 hover:text-gray-800 rtl:ml-6 ltr:mr-6 text-sm",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}}),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Apply"))},on:{click:function(N){return N.preventDefault(),$.commit.apply(null,arguments)}}})]),I("section",{staticClass:"py-4 px-3 md:px-8"},[I("div",{staticClass:"tabs-container"},[I("div",{staticClass:"publish-tabs tabs"},[I("button",{staticClass:"tab-button",class:{active:$.activeTab==="settings"},domProps:{textContent:$._s($.__("Settings"))},on:{click:function(N){$.activeTab="settings"}}}),I("button",{staticClass:"tab-button",class:{active:$.activeTab==="conditions"},domProps:{textContent:$._s($.__("Conditions"))},on:{click:function(N){$.activeTab="conditions"}}}),I("button",{staticClass:"tab-button",class:{active:$.activeTab==="validation"},domProps:{textContent:$._s($.__("Validation"))},on:{click:function(N){$.activeTab="validation"}}})])]),$.loading?$._e():I("div",{staticClass:"field-settings"},[I("publish-container",{attrs:{name:$.publishContainer,blueprint:$.blueprint,values:$.values,meta:$.meta,"is-config":!0,errors:$.errors,"is-root":!0},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="settings",expression:"activeTab === 'settings'"}]},[I("publish-sections",{attrs:{sections:$.blueprint.tabs[0].sections},on:{updated:(j,U)=>$.updateField(j,U,N),"meta-updated":B}})],1)}}],null,!1,2204686883)}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="conditions",expression:"activeTab === 'conditions'"}],staticClass:"card p-0"},[I("div",{staticClass:"publish-fields @container"},[I("field-conditions-builder",{attrs:{config:$.config,"suggestable-fields":$.suggestableConditionFields},on:{updated:$.updateFieldConditions,"updated-always-save":$.updateAlwaysSave}})],1)]),I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="validation",expression:"activeTab === 'validation'"}],staticClass:"card p-0"},[I("div",{staticClass:"publish-fields @container"},[I("field-validation-builder",{attrs:{config:$.config},on:{updated:function(N){return $.updateField("validate",N)}}})],1)])],1)])])},_sfc_staticRenderFns$1J=[],__component__$1K=normalizeComponent$3(_sfc_main$1J,_sfc_render$1J,_sfc_staticRenderFns$1J,!1,null,null,null,null);const FieldSettings$1=__component__$1K.exports,_sfc_main$1I={props:["value","initialWidths"],data(){return{isHovering:!1,hoveringOver:null,widths:this.initialWidths??[25,33,50,66,75,100]}},computed:{selected(){return this.isHovering?this.hoveringOver:this.value}}};var _sfc_render$1I=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"field-width field-width-selector",on:{mouseenter:function(N){$.isHovering=!0},mouseleave:function(N){$.isHovering=!1}}},[I("div",{staticClass:"w-full flex"},$._l($.widths,function(N){return I("div",{key:N,class:["field-width-notch","notch-"+N,{filled:$.selected>=N,selected:$.selected==N}],on:{mouseenter:function(B){B.stopPropagation(),$.hoveringOver=N},click:function(B){return $.$emit("input",N)}}})}),0),I("div",{staticClass:"field-width-label"},[$._v($._s($.selected)+"%")])])},_sfc_staticRenderFns$1I=[],__component__$1J=normalizeComponent$3(_sfc_main$1I,_sfc_render$1I,_sfc_staticRenderFns$1I,!1,null,null,null,null);const WidthSelector=__component__$1J.exports,CanDefineLocalizable={props:{canDefineLocalizable:{type:Boolean,default:()=>Statamic.$config.get("sites").length>1}}},_sfc_main$1H={mixins:[Field,CanDefineLocalizable],components:{FieldSettings:FieldSettings$1,WidthSelector},props:["suggestableConditionFields"],data(){return{showHandle:!1}},computed:{tooltipText(){return this.field.fieldtype},isReferenceField(){return this.field.hasOwnProperty("field_reference")},isInlineField(){return!this.isReferenceField},fieldConfig(){return Object.assign({},this.field.config,{handle:this.field.handle})},labelText(){return this.field.config.display||Vue$3.options.filters.titleize(Vue$3.options.filters.deslugify(this.field.handle))},width:{get(){return this.field.config.width},set(M){let $=this.field;$.config.width=M,$.type==="reference"&&$.config_overrides.push("width"),this.$emit("updated",$)}},isHidden(){return this.fieldConfig.visibility==="hidden"},widthClass(){return`blueprint-section-field-${tailwind_width_class(this.width)}`},localizable:{get(){return this.field.config.localizable||!1},set(M){let $=this.field;$.config.localizable=M,$.type==="reference"&&$.config_overrides.push("localizable"),this.$emit("updated",$)}}},methods:{settingsUpdated(M,$){let I=this.field;I.handle=M.handle,delete M.handle,I.config=M,I.type==="reference"&&(I.config_overrides=$),this.$emit("updated",I)},editorClosed(){this.$emit("editor-closed")}}};var _sfc_render$1H=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section-field",class:$.widthClass},[I("div",{staticClass:"blueprint-section-field-inner"},[I("div",{staticClass:"blueprint-drag-handle w-4 ltr:border-r rtl:border-l"}),I("div",{staticClass:"flex flex-1 items-center justify-between"},[I("div",{staticClass:"flex items-center flex-1 rtl:pl-4 ltr:pr-4 py-2 rtl:pr-2 ltr:pl-2"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.tooltipText,expression:"tooltipText"}],staticClass:"text-gray-800 rtl:ml-2 ltr:mr-2 h-4 w-4 flex-none",attrs:{name:$.field.icon.startsWith("<svg")?$.field.icon:`light/${$.field.icon}`,default:"light/generic-field"}}),I("a",{staticClass:"break-all",domProps:{textContent:$._s($.__($.labelText))},on:{click:function(N){return $.$emit("edit")}}}),$.isReferenceField?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Imported from fieldset")+": "+$.field.field_reference,expression:"__('Imported from fieldset') + ': ' + field.field_reference"}],staticClass:"text-gray-600 text-3xs rtl:mr-2 ltr:ml-2 h-4 w-4",attrs:{name:"light/hyperlink"}}):$._e()],1),I("div",{staticClass:"flex-none rtl:pl-2 ltr:pr-2 flex"},[$.isHidden?I("div",{staticClass:"relative border border-gray-400 opacity-50 w-12 flex items-center justify-center rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"h-4 w-4 opacity-50",attrs:{name:"regular/hidden"}})],1):I("width-selector",{staticClass:"rtl:ml-2 ltr:mr-2",model:{value:$.width,callback:function(N){$.width=N},expression:"width"}}),$.canDefineLocalizable?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Localizable"),expression:"__('Localizable')"}],staticClass:"hover:text-gray-950 rtl:ml-2 ltr:mr-2 flex items-center",class:{"text-gray-950":$.localizable,"text-gray-600":!$.localizable},on:{click:function(N){$.localizable=!$.localizable}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/earth"}})],1):$._e(),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Duplicate"),expression:"__('Duplicate')"}],staticClass:"text-gray-600 hover:text-gray-950 flex items-center rtl:ml-2 ltr:mr-2",on:{click:function(N){return N.preventDefault(),$.$emit("duplicate")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/duplicate"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove"),expression:"__('Remove')"}],staticClass:"text-gray-600 hover:text-gray-950 flex items-center",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"micro/trash"}})],1),$.isEditing?I("stack",{attrs:{name:"field-settings"},on:{closed:$.editorClosed}},[I("field-settings",{ref:"settings",attrs:{id:$.field._id,type:$.field.fieldtype,root:$.isRoot,fields:$.fields,config:$.fieldConfig,overrides:$.field.config_overrides||[],"suggestable-condition-fields":$.suggestableConditionFields},on:{committed:$.settingsUpdated,closed:$.editorClosed}})],1):$._e()],1)])])])},_sfc_staticRenderFns$1H=[],__component__$1I=normalizeComponent$3(_sfc_main$1H,_sfc_render$1H,_sfc_staticRenderFns$1H,!1,null,null,null,null);const RegularField=__component__$1I.exports,_sfc_main$1G={props:["config"],model:{prop:"config",event:"input"},data:function(){return{values:clone(this.config)}},methods:{focus(){this.$els.display.select()},updateField(M,$){this.values[M]=$},commit(){this.$emit("committed",this.values),this.close()},close(){this.$emit("closed")}}};var _sfc_render$1G=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full overflow-auto p-8 bg-gray-300 h-full"},[I("div",{staticClass:"flex items-center mb-6 -mt-2"},[I("h1",{staticClass:"flex-1"},[I("small",{staticClass:"block text-xs text-gray-700 font-medium leading-none mt-2 flex items-center"},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 inline-block text-gray-700",attrs:{name:"paperclip"}}),$._v($._s($.__("Linked fieldset"))+" ")],1),$._v(" "+$._s($.__("Fieldset"))+" ")]),I("button",{staticClass:"text-gray-700 hover:text-gray-800 rtl:ml-6 ltr:mr-6 text-sm",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}}),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Finish"))},on:{click:function(N){return N.preventDefault(),$.commit.apply(null,arguments)}}})]),I("div",{staticClass:"card"},[I("div",{staticClass:"publish-fields @container"},[I("form-group",{attrs:{handle:"fieldset",display:$.__("Fieldset"),instructions:$.__("messages.fieldset_import_fieldset_instructions"),autofocus:"",value:$.config.fieldset},on:{input:function(N){return $.updateField("fieldset",N)}}}),I("form-group",{attrs:{handle:"prefix",display:$.__("Prefix"),instructions:$.__("messages.fieldset_import_prefix_instructions"),value:$.config.prefix},on:{input:function(N){return $.updateField("prefix",N)}}})],1)])])},_sfc_staticRenderFns$1G=[],__component__$1H=normalizeComponent$3(_sfc_main$1G,_sfc_render$1G,_sfc_staticRenderFns$1G,!1,null,null,null,null);const FieldSettings=__component__$1H.exports,_sfc_main$1F={mixins:[Field],components:{FieldSettings},computed:{fieldConfig(){return _.omit(this.field,["_id","type"])}},methods:{settingsUpdated(M){const $=Object.assign({},this.field,M);this.$emit("updated",$)},editorClosed(){this.$emit("editor-closed")}}};var _sfc_render$1F=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section-field blueprint-section-import blueprint-section-field-w-full"},[I("div",{staticClass:"blueprint-section-field-inner"},[I("div",{staticClass:"blueprint-drag-handle w-4 ltr:border-r rtl:border-l"}),I("div",{staticClass:"flex flex-1 items-center justify-between"},[I("div",{staticClass:"flex items-center flex-1 rtl:pl-4 ltr:pr-4 py-2 rtl:pr-2 ltr:pl-2"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Linked fieldset"),expression:"__('Linked fieldset')"}],staticClass:"flex-none text-gray-700 h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"paperclip"}}),I("a",{staticClass:"break-all",on:{click:function(N){return $.$emit("edit")}}},[I("span",{domProps:{textContent:$._s($.__("Fieldset"))}}),I("span",{staticClass:"font-mono text-3xs text-gray-600 rtl:mr-2 ltr:ml-2"},[$._v($._s($.field.fieldset))])])],1),I("div",{staticClass:"flex-none rtl:pl-2 ltr:pr-2 flex"},[I("button",{staticClass:"text-gray-600 hover:text-gray-950",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"micro/trash"}})],1),$.isEditing?I("stack",{attrs:{name:"field-settings"},on:{closed:$.editorClosed}},[I("field-settings",{ref:"settings",attrs:{id:$.field._id,root:$.isRoot,fields:$.fields,config:$.fieldConfig},on:{committed:$.settingsUpdated,closed:$.editorClosed}})],1):$._e()],1)])])])},_sfc_staticRenderFns$1F=[],__component__$1G=normalizeComponent$3(_sfc_main$1F,_sfc_render$1F,_sfc_staticRenderFns$1F,!1,null,null,null,null);const ImportField=__component__$1G.exports,_sfc_main$1E={props:{excludeFieldset:String},data(){const M=JSON.parse(JSON.stringify(Object.values(this.$config.get("fieldsets")).filter(I=>I.handle!=this.excludeFieldset)));return{open:!1,reference:null,fieldset:null,importPrefix:null,fieldSuggestions:M.flatMap(I=>I.fields.filter(N=>N.type!=="import").map(N=>({value:`${I.handle}.${N.handle}`,label:__(N.config.display),fieldset:__(I.title)}))),fieldsetSuggestions:M.map(I=>({value:I.handle,label:__(I.title)})),fieldsets:M}},methods:{linkField(){const[M,$]=this.reference.split("."),I=this.fieldsets.find(N=>N.handle===M).fields.find(N=>N.handle===$);I.config.isNew=!0,this.linkAndClose({...I,_id:uniqid$1(),type:"reference",field_reference:this.reference,config_overrides:[]})},linkFieldset(){this.linkAndClose({_id:uniqid$1(),type:"import",fieldset:this.fieldset,prefix:this.importPrefix})},linkAndClose(M){this.$emit("linked",M),this.open=!1,this.reference=null,this.fieldset=null,this.importPrefix=null}}};var _sfc_render$1E=function M(){var $=this,I=$._self._c;return I("div",[I("button",{staticClass:"btn flex w-full justify-center items-center",on:{click:function(N){$.open=!0}}},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 w-4 h-4",attrs:{name:"light/hyperlink"}}),I("span",[$._v($._s($.__("Link Existing")))])],1),$.open?I("stack",{attrs:{narrow:"",name:"field-linker"},on:{closed:function(N){$.open=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-6 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Link Fields"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[I("div",[I("p",{staticClass:"text-sm font-medium mb-2",domProps:{textContent:$._s($.__("Link a single field"))}}),I("p",{staticClass:"text-2xs text-gray mb-2",domProps:{textContent:$._s($.__("Changes to this field in the fieldset will stay in sync."))}}),I("v-select",{attrs:{name:"field",placeholder:$.__("Fields"),options:$.fieldSuggestions,multiple:!1,searchable:!0,reduce:B=>B.value},scopedSlots:$._u([{key:"option",fn:function(B){return[I("div",{staticClass:"flex items-center"},[I("span",{staticClass:"text-2xs text-gray-500 rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s(B.fieldset)}}),I("span",{domProps:{textContent:$._s(B.label)}})])]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0}],null,!0),model:{value:$.reference,callback:function(B){$.reference=B},expression:"reference"}}),I("button",{staticClass:"btn-primary w-full mt-6",class:{"opacity-50":!$.reference},attrs:{disabled:!$.reference},domProps:{textContent:$._s($.__("Link"))},on:{click:$.linkField}})],1),I("div",{staticClass:"my-4 flex items-center"},[I("div",{staticClass:"border-b border-gray-300 flex-1"}),I("div",{staticClass:"text-2xs text-gray-600 mx-4",domProps:{textContent:$._s($.__("or"))}}),I("div",{staticClass:"border-b border-gray-300 flex-1"})]),I("div",[I("p",{staticClass:"text-sm font-medium mb-2",domProps:{textContent:$._s($.__("Link a fieldset"))}}),I("p",{staticClass:"text-2xs text-gray mb-2",domProps:{textContent:$._s($.__("Changes to this fieldset will stay in sync."))}}),I("v-select",{attrs:{name:"field",placeholder:$.__("Fieldsets"),options:$.fieldsetSuggestions,multiple:!1,searchable:!0,reduce:B=>B.value},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0}],null,!0),model:{value:$.fieldset,callback:function(B){$.fieldset=B},expression:"fieldset"}}),I("p",{staticClass:"text-sm font-medium mt-6 mb-2",domProps:{textContent:$._s($.__("Prefix"))}}),I("p",{staticClass:"text-2xs text-gray mb-2",domProps:{textContent:$._s($.__("messages.fieldset_link_fields_prefix_instructions"))}}),I("text-input",{attrs:{placeholder:$.__("e.g. hero_")},model:{value:$.importPrefix,callback:function(B){$.importPrefix=B},expression:"importPrefix"}}),I("button",{staticClass:"btn-primary w-full mt-6",class:{"opacity-50":!$.fieldset},attrs:{disabled:!$.fieldset},domProps:{textContent:$._s($.__("Link"))},on:{click:$.linkFieldset}})],1)])])}}],null,!1,3252286146)}):$._e()],1)},_sfc_staticRenderFns$1E=[],__component__$1F=normalizeComponent$3(_sfc_main$1E,_sfc_render$1E,_sfc_staticRenderFns$1E,!1,null,null,null,null);const LinkFields=__component__$1F.exports,ProvidesFieldtypes={computed:{fieldtypes(){if(!this.fieldtypesLoading)return this.$store.state.statamic.fieldtypes},fieldtypesLoading(){return this.$store.state.statamic.fieldtypes==="loading"},fieldtypesLoaded(){return Array.isArray(this.fieldtypes)}},created(){if(this.fieldtypes||this.fieldtypesLoading)return;this.$store.commit("statamic/fieldtypes","loading");let M=cp_url("fields/fieldtypes?selectable=true");this.$config.get("isFormBlueprint")&&(M+="&forms=true"),this.$axios.get(M).then($=>this.$store.commit("statamic/fieldtypes",$.data))}},_sfc_main$1D={mixins:[ProvidesFieldtypes],props:{allowTitle:{default:!1},allowSlug:{default:!1},allowDate:{default:!1}},data:function(){return{categories:{text:{title:__("Text & Rich Content"),description:__("fieldtypes.picker.category.text.description")},controls:{title:__("Buttons & Controls"),description:__("fieldtypes.picker.category.controls.description")},media:{title:__("Media"),description:__("fieldtypes.picker.category.media.description")},number:{title:__("Number"),description:__("fieldtypes.picker.category.number.description")},relationship:{title:__("Relationship"),description:__("fieldtypes.picker.category.relationship.description")},structured:{title:__("Structured"),description:__("fieldtypes.picker.category.structured.description")},special:{title:__("Special"),description:__("fieldtypes.picker.category.special.description")}},search:""}},computed:{allFieldtypes(){if(!this.fieldtypesLoaded)return[];let M=this.fieldtypes.map($=>({text:$.title,value:$.handle,categories:$.categories,icon:$.icon}));return this.allowDate&&M.unshift({text:__("Publish Date"),value:"date",categories:["system"],isMeta:!0,icon:"date"}),this.allowSlug&&M.unshift({text:__("Slug"),value:"slug",categories:["system"],isMeta:!0,icon:"slug"}),this.allowTitle&&M.unshift({text:__("Title"),value:"title",categories:["system"],isMeta:!0,icon:"title"}),M},groupedFieldtypes(){return _.mapObject(this.categories,(M,$)=>(M.handle=$,M.fieldtypes=[],this.allFieldtypes.forEach(I=>{let N=I.categories;N.length===0&&(N=["special"]),N.includes($)&&M.fieldtypes.push(I)}),M))},searchFieldtypes(){let M=this.allFieldtypes;return this.search&&(M=new Fuse(M,{findAllMatches:!0,threshold:.1,minMatchCharLength:2,keys:["text"]}).search(this.search)),M},displayedFieldtypes(){return this.isSearching?[{fieldtypes:this.searchFieldtypes}]:this.groupedFieldtypes},allowMeta(){return this.allowTitle||this.allowSlug||this.allowDate},isSearching(){return this.search}},watch:{fieldtypesLoaded:{immediate:!0,handler(){this.$nextTick(()=>{this.$refs.search&&this.$refs.search.focus()})}}},methods:{select(M){if(M.isMeta)return this.selectMeta(M);const $=this.createField(M.value);this.$emit("selected",$),this.close()},selectMeta(M){let $=M.value;["title","slug"].includes($)&&($="text");let I=this.createField($);I=Object.assign({display:__(`cp.${M.value}`),handle:M.value,type:$,isMeta:!0},I),this.$emit("selected",I),this.close()},createField(M){const $=_.findWhere(this.fieldtypes,{handle:M});let I={type:$.handle,display:__(":title Field",{title:$.title}),handle:null,icon:$.icon,instructions:null,localizable:!1,width:100,listable:"hidden",isNew:!0},N={};return _.each($.config,B=>{N[B.handle]=B.default||null}),Object.assign(N,I)},close(){this.search="",this.filterBy="all",this.$emit("closed")},cancelSearch(M){this.search&&(M.stopPropagation(),this.search="")}}};var _sfc_render$1D=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-gray-100 overflow-auto"},[I("div",{staticClass:"bg-gray-300 px-6 py-2 border-b text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Fieldtypes"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},on:{click:$.close}},[$._v("×")])]),$.fieldtypesLoading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.fieldtypesLoaded?I("div",{staticClass:"py-4 px-6 border-b bg-white flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.search,expression:"search"}],ref:"search",staticClass:"input-text flex-1 bg-white text-sm w-full",attrs:{type:"text",autofocus:"",placeholder:`${$.__("Search")}...`},domProps:{value:$.search},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.cancelSearch.apply(null,arguments)},input:function(N){N.target.composing||($.search=N.target.value)}}})]):$._e(),$.fieldtypesLoaded?I("div",{staticClass:"p-4"},$._l($.displayedFieldtypes,function(N){return I("div",{directives:[{name:"show",rawName:"v-show",value:N.fieldtypes.length>0,expression:"group.fieldtypes.length > 0"}],key:N.handle,staticClass:"mb-8"},[N.title?I("h2",{staticClass:"px-2 mb-1",domProps:{textContent:$._s(N.title)}}):$._e(),N.description?I("p",{staticClass:"px-2 mb-2 text-gray-700 text-sm",domProps:{textContent:$._s(N.description)}}):$._e(),I("div",{staticClass:"fieldtype-selector"},[I("div",{staticClass:"fieldtype-list"},$._l(N.fieldtypes,function(B){return I("div",{key:B.handle,staticClass:"p-2"},[I("button",{staticClass:"bg-white border border-gray-500 flex items-center group w-full rounded hover:border-gray-600 shadow-sm hover:shadow-md rtl:pl-3 ltr:pr-3",on:{click:function(j){return $.select(B)}}},[I("div",{staticClass:"p-2 flex items-center rtl:border-l ltr:border-r border-gray-500 group-hover:border-gray-600 bg-gray-200 rtl:rounded-r ltr:rounded-l"},[I("svg-icon",{staticClass:"h-5 w-5 text-gray-800",attrs:{name:B.icon.startsWith("<svg")?B.icon:`light/${B.icon}`,default:"light/generic-field"}})],1),I("span",{staticClass:"rtl:pr-3 ltr:pl-3 text-gray-800 text-md group-hover:text-gray-900"},[$._v($._s(B.text))])])])}),0)])])}),0):$._e()])},_sfc_staticRenderFns$1D=[],__component__$1E=normalizeComponent$3(_sfc_main$1D,_sfc_render$1D,_sfc_staticRenderFns$1D,!1,null,null,null,null);const FieldtypeSelector=__component__$1E.exports,_sfc_main$1C={mixins:[CanDefineLocalizable],components:{RegularField,ImportField,LinkFields,FieldtypeSelector,FieldSettings:FieldSettings$1},props:{tabId:String,sectionId:String,fields:Array,editingField:{},suggestableConditionFields:Array,excludeFieldset:String},data(){return{isSelectingNewFieldtype:!1,pendingCreatedField:null}},methods:{fieldComponent(M){return M.type==="import"?"ImportField":"RegularField"},fieldtypeSelected(M){this.isSelectingNewFieldtype=!1;const $={_id:uniqid$1(),type:"inline",fieldtype:M.type,icon:M.icon,config:{...M,isNew:!0}};this.$nextTick(()=>this.pendingCreatedField=$)},fieldCreated(M){let $=M.handle;delete M.handle,delete M.isNew;let I={...this.pendingCreatedField,handle:$,config:M};this.$emit("field-created",I),this.$toast.success(__("Field added")),this.pendingCreatedField=null},duplicateField(M){let $=`${M.handle}_duplicate`,I=M.config.display?`${M.config.display} (Duplicate)`:`${M.handle} (Duplicate)`,N={...M,_id:uniqid$1(),handle:$,config:{...M.config,display:I}};this.$nextTick(()=>this.pendingCreatedField=N)}}};var _sfc_render$1C=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-col text-sm"},[I("div",{staticClass:"blueprint-section-draggable-zone -mx-1",class:{"flex flex-wrap flex-1":$.fields.length},attrs:{"data-tab":$.tabId,"data-section":$.sectionId}},[$.fields.length?$._e():$._t("empty-state"),$._l($.fields,function(N,B){return I($.fieldComponent(N),{key:N._id,tag:"component",attrs:{field:N,fields:$.fields,"is-editing":$.editingField===N._id,"suggestable-condition-fields":$.suggestableConditionFields,"can-define-localizable":$.canDefineLocalizable},on:{edit:function(j){return $.$emit("field-editing",N._id)},updated:function(j){return $.$emit("field-updated",B,j)},deleted:function(j){return $.$emit("field-deleted",B)},"editor-closed":function(j){return $.$emit("editor-closed")},duplicate:function(j){return $.duplicateField(N)}}})})],2),I("div",{staticClass:"blueprint-section-field-actions flex mt-2 -mx-1"},[I("div",{staticClass:"px-1"},[I("link-fields",{attrs:{"exclude-fieldset":$.excludeFieldset},on:{linked:function(N){return $.$emit("field-linked",N)}}})],1),I("div",{staticClass:"px-1"},[I("button",{staticClass:"btn w-full flex justify-center items-center",on:{click:function(N){$.isSelectingNewFieldtype=!0}}},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 w-4 h-4",attrs:{name:"light/wireframe"}}),$._v(" "+$._s($.__("Create Field"))+" ")],1)])]),$.isSelectingNewFieldtype?I("stack",{attrs:{name:"fieldtype-selector"},on:{closed:function(N){$.isSelectingNewFieldtype=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("fieldtype-selector",{on:{closed:N,selected:$.fieldtypeSelected}})}}],null,!1,4030444126)}):$._e(),$.pendingCreatedField!=null?I("stack",{attrs:{name:"field-settings"},on:{closed:function(N){$.pendingCreatedField=null}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("field-settings",{ref:"settings",attrs:{type:$.pendingCreatedField.config.type,root:!0,fields:$.fields,config:$.pendingCreatedField.config,"suggestable-condition-fields":$.suggestableConditionFields},on:{committed:$.fieldCreated,closed:N}})}}],null,!1,1873534134)}):$._e()],1)},_sfc_staticRenderFns$1C=[],__component__$1D=normalizeComponent$3(_sfc_main$1C,_sfc_render$1C,_sfc_staticRenderFns$1C,!1,null,null,null,null);const Fields=__component__$1D.exports,SuggestsConditionalFields={provide(){return{suggestableConditionFieldsProvider:this.makeConditionsProvider()}},computed:{fieldsForConditionSuggestions(){return this.tabs.reduce((M,$)=>M.concat($.sections.reduce((I,N)=>I.concat(N.fields),[])),[])}},methods:{suggestableConditionFields(M=null){let $=this.getSectionFieldsForConditionSuggestions(M).reduce((I,N)=>I.concat(N.type==="import"?this.getFieldsFromImportedFieldset(N.fieldset,N.prefix):[N]),[]);return _.unique($)},makeConditionsProvider(){return{suggestableFields:$=>this.suggestableConditionFields($)}},getFieldsFromImportedFieldset(M,$){return Statamic.$config.get(`fieldsets.${M}.fields`,[]).reduce((I,N)=>I.concat(N.type==="import"?this.getFieldsFromImportedFieldset(N.fieldset,N.prefix):[N]),[]).map(I=>$?{...I,handle:$+I.handle}:I)},getSectionFieldsForConditionSuggestions(M=null){return this.fieldsForConditionSuggestions}}},_sfc_main$1B={mixins:[Fieldtype,SuggestsConditionalFields],inject:{suggestableConditionFieldsProvider:{default:null}},components:{Fields},data(){return{fields:this.value,editingField:null}},computed:{fieldsForConditionSuggestions(){return this.fields}},mounted(){this.makeSortable()},methods:{fieldCreated(M){this.fields.push(M),this.update(this.fields)},fieldUpdated(M,$){this.fields.splice(M,1,$),this.update(this.fields)},deleteField(M){this.fields.splice(M,1),this.update(this.fields)},fieldLinked(M){this.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},makeSortable(){new draggable_bundleExports.Sortable(this.$el.querySelector(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("sortable:stop",M=>{this.fields.splice(M.newIndex,0,this.fields.splice(M.oldIndex,1)[0]),this.update(this.fields)})}}};var _sfc_render$1B=function M(){var $=this,I=$._self._c;return I("fields",{attrs:{fields:$.fields,"editing-field":$.editingField,"can-define-localizable":!1,"suggestable-condition-fields":$.suggestableConditionFields(this)},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-linked":$.fieldLinked,"field-deleted":$.deleteField,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}}})},_sfc_staticRenderFns$1B=[],__component__$1C=normalizeComponent$3(_sfc_main$1B,_sfc_render$1B,_sfc_staticRenderFns$1B,!1,null,null,null,null);const FieldsFieldtype=__component__$1C.exports,_sfc_main$1A={mixins:[Fieldtype],components:{Uploader,Uploads},data(){return{uploads:[]}},methods:{uploadComplete(M){this.value.push(M.id)},uploadsUpdated(M){this.uploads=M},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},uploadFile(){this.$refs.uploader.browse()},getExtension(M){return M.split(".").pop()},remove(M){this.update([...this.value.slice(0,M),...this.value.slice(M+1)])}}};var _sfc_render$1A=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"assets-fieldtype"},[I("uploader",{ref:"uploader",attrs:{url:$.meta.uploadUrl,container:$.config.container},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"assets-fieldtype-drag-container"},[I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-6 ltr:mr-6",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop File to Upload")))])],1),I("div",{staticClass:"assets-fieldtype-picker py-4",class:{"is-expanded":$.value.length}},[I("p",{staticClass:"asset-upload-control text-xs text-gray-600 rtl:mr-0 ltr:ml-0"},[I("button",{staticClass:"upload-text-button",attrs:{type:"button"},on:{click:function(B){return B.preventDefault(),$.uploadFile.apply(null,arguments)}}},[$._v(" "+$._s($.__("Upload file"))+" ")]),I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here."))}})])]),$.uploads.length?I("uploads",{attrs:{uploads:$.uploads}}):$._e(),$.value.length?I("div",{staticClass:"asset-table-listing"},[I("table",{staticClass:"table-fixed"},[I("tbody",$._l($.value,function(B,j){return I("tr",{key:B,staticClass:"asset-row bg-white hover:bg-gray-100"},[I("td",{staticClass:"flex items-center"},[I("div",{staticClass:"w-7 h-7 cursor-pointer whitespace-nowrap flex items-center justify-center"},[I("file-icon",{attrs:{extension:$.getExtension(B)}})],1),I("div",{staticClass:"flex items-center flex-1 rtl:mr-2 ltr:ml-2 text-xs rtl:text-right ltr:text-left truncate",domProps:{textContent:$._s(B.slice(11))}})]),I("td",{staticClass:"p-0 w-8 rtl:text-left ltr:text-right align-middle"},[I("button",{staticClass:"flex items-center p-2 w-full h-full text-gray-600 hover:text-gray-900",on:{click:function(U){return $.remove(j)}}},[I("svg-icon",{staticClass:"w-6 h-6",attrs:{name:"micro/trash"}})],1)])])}),0)])]):$._e()],1)}}])})],1)},_sfc_staticRenderFns$1A=[],__component__$1B=normalizeComponent$3(_sfc_main$1A,_sfc_render$1A,_sfc_staticRenderFns$1A,!1,null,null,null,null);const FilesFieldtype=__component__$1B.exports,_sfc_main$1z={mixins:[Fieldtype],props:["focus"]};var _sfc_render$1z=function M(){var $=this,I=$._self._c;return I("text-input",{attrs:{type:"text",tabindex:"0",name:$.name,focus:$.focus,value:$.value,"is-read-only":$.isReadOnly,id:$.fieldId},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$1z=[],__component__$1A=normalizeComponent$3(_sfc_main$1z,_sfc_render$1z,_sfc_staticRenderFns$1z,!1,null,null,null,null);const FloatFieldtype=__component__$1A.exports,_sfc_main$1y={mixins:[Fieldtype],inject:["storeName"],data(){return{sites:this.value}},created(){},watch:{sites(M){this.update(M)}},methods:{siteOriginOptions(M){return this.sites.map($=>({value:$.handle,label:__($.name)})).filter($=>$.value!==M.handle)}}};var _sfc_render$1y=function M(){var $=this,I=$._self._c;return I("div",[I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[I("th",[$._v($._s($.__("Site")))]),I("th",[$._v($._s($.__("Origin")))])])]),I("tbody",$._l($.sites,function(N){return I("tr",{key:N.handle},[I("td",[I("div",{staticClass:"flex items-center text-sm"},[I("toggle-input",{staticClass:"rtl:ml-4 ltr:mr-4",model:{value:N.enabled,callback:function(B){$.$set(N,"enabled",B)},expression:"site.enabled"}}),$._v(" "+$._s($.__(N.name))+" ")],1)]),I("td",{staticClass:"text-sm"},[I("v-select",{attrs:{options:$.siteOriginOptions(N),value:N.origin,searchable:!1,reduce:B=>B.value},on:{input:function(B){N.origin=B}}})],1)])}),0)])])},_sfc_staticRenderFns$1y=[],__component__$1z=normalizeComponent$3(_sfc_main$1y,_sfc_render$1y,_sfc_staticRenderFns$1y,!1,null,null,null,null);const Sites=__component__$1z.exports,_sfc_main$1x={props:["fields","rows","meta","name","canDeleteRows","canAddRows","allowFullscreen","hideDisplay"],inject:["grid"],computed:{sortableItemClass(){return`${this.name}-sortable-item`},sortableHandleClass(){return`${this.name}-drag-handle`},fieldPathPrefix(){return this.grid.fieldPathPrefix||this.grid.handle}},provide(){return{sortableItemClass:this.sortableItemClass,sortableHandleClass:this.sortableHandleClass}}},_sfc_render$1x=null,_sfc_staticRenderFns$1x=null;var __component__$1y=normalizeComponent$3(_sfc_main$1x,_sfc_render$1x,_sfc_staticRenderFns$1x,!1,null,null,null,null);const View=__component__$1y.exports,_sfc_main$1w={props:{field:{type:Object,required:!0},value:{required:!0},meta:{required:!0},index:{type:Number,required:!0},rowIndex:{type:Number,required:!0},gridName:{type:String,required:!0},showInner:{type:Boolean,required:!0},errors:{type:Array,required:!0},fieldPath:{type:String,required:!0}},inject:["grid"],computed:{classes(){return[this.fieldtypeComponent,this.field.classes]},fieldtypeComponent(){return`${this.field.component||this.field.type}-fieldtype`},namePrefix(){return`${this.gridName}[${this.rowIndex}]`},hasError(){return this.errors.length>0},width(){if(this.field.width)return this.field.width+"%"}}};var _sfc_render$1w=function M(){var $=this,I=$._self._c;return I("td",{staticClass:"grid-cell",class:$.classes,attrs:{width:$.width}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.showInner,expression:"showInner"}],staticClass:"@container"},[I($.fieldtypeComponent,{tag:"component",attrs:{config:$.field,value:$.value,meta:$.meta,handle:$.field.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPath,"read-only":$.grid.isReadOnly},on:{input:function(N){return $.$emit("updated",N)},"meta-updated":function(N){return $.$emit("meta-updated",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})],1),$.hasError?I("div",$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(N)}})}),0):$._e()])},_sfc_staticRenderFns$1w=[],__component__$1x=normalizeComponent$3(_sfc_main$1w,_sfc_render$1w,_sfc_staticRenderFns$1w,!1,null,null,null,null);const GridCell=__component__$1x.exports,Row_vue_vue_type_style_index_0_scoped_7ddde4ab_lang="",_sfc_main$1v={components:{GridCell},mixins:[ValidatesFieldConditions],props:{index:{type:Number,required:!0},fields:{type:Array,required:!0},values:{type:Object,required:!0},meta:{type:Object,required:!0},name:{type:String,required:!0},fieldPathPrefix:{type:String},canDelete:{type:Boolean,default:!0},canAddRows:{type:Boolean,default:!0}},inject:["grid","sortableItemClass","sortableHandleClass","storeName"],computed:{isExcessive(){const M=this.grid.config.max_rows;return M?this.index>=M:!1}},methods:{updated(M,$){let I=JSON.parse(JSON.stringify(this.values));I[M]=$,this.$emit("updated",this.index,I)},metaUpdated(M,$){let I=clone(this.meta);I[M]=$,this.$emit("meta-updated",I)},fieldPath(M){return`${this.fieldPathPrefix}.${this.index}.${M}`},errors(M){const $=this.$store.state.publish[this.storeName];return $?$.errors[this.fieldPath(M)]||[]:[]}}};var _sfc_render$1v=function M(){var $=this,I=$._self._c;return I("tr",{class:[$.sortableItemClass,{"opacity-50":$.isExcessive}]},[$.grid.isReorderable?I("td",{staticClass:"drag-handle",class:$.sortableHandleClass}):$._e(),$._l($.fields,function(N,B){return I("grid-cell",{key:N.handle,attrs:{"show-inner":$.showField(N,$.fieldPath(N.handle)),field:N,value:$.values[N.handle],meta:$.meta[N.handle],index:B,"row-index":$.index,"grid-name":$.name,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle)},on:{updated:function(j){return $.updated(N.handle,j)},"meta-updated":function(j){return $.metaUpdated(N.handle,j)},focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),!$.grid.isReadOnly&&($.canAddRows||$.canDelete)?I("td",{staticClass:"grid-row-controls row-controls"},[I("dropdown-list",[$.canAddRows?I("dropdown-item",{attrs:{text:$.__("Duplicate Row")},on:{click:function(N){return $.$emit("duplicate",$.index)}}}):$._e(),$.canDelete?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Row")},on:{click:function(N){return $.$emit("removed",$.index)}}}):$._e()],1)],1):$._e()],2)},_sfc_staticRenderFns$1v=[],__component__$1w=normalizeComponent$3(_sfc_main$1v,_sfc_render$1v,_sfc_staticRenderFns$1v,!1,null,"7ddde4ab",null,null);const Row=__component__$1w.exports,_sfc_main$1u={props:{field:{type:Object,required:!0}}};var _sfc_render$1u=function M(){var $=this,I=$._self._c;return I("th",{directives:[{name:"show",rawName:"v-show",value:$.field.type!=="hidden",expression:"field.type !== 'hidden'"}]},[I("div",{staticClass:"flex items-center justify-between"},[I("div",[$.field.hide_display?$._e():[$._v($._s($.__($.field.display||$.field.handle)))]],2),$.field.instructions?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.field.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(field.instructions)), html:true }"}],staticClass:"text-gray-600 hover:text-gray-700 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}}):$._e()],1)])},_sfc_staticRenderFns$1u=[],__component__$1v=normalizeComponent$3(_sfc_main$1u,_sfc_render$1u,_sfc_staticRenderFns$1u,!1,null,null,null,null);const GridHeaderCell=__component__$1v.exports,_sfc_main$1t={mixins:[View],components:{GridRow:Row,GridHeaderCell,SortableList,SortableItem}};var _sfc_render$1t=function M(){var $=this,I=$._self._c;return $.rows.length>0?I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[$.grid.isReorderable?I("th",{staticClass:"grid-drag-handle-header"}):$._e(),$._l($.fields,function(N){return I("grid-header-cell",{key:N.handle,attrs:{field:N}})}),I("th",{staticClass:"grid-row-controls row-controls"},[$.allowFullscreen?I("button",{staticClass:"flex items-center w-full h-full justify-center text-gray-500 hover:text-gray-700",on:{click:$.grid.toggleFullScreen}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.grid.fullScreenMode,expression:"! grid.fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.grid.fullScreenMode,expression:"grid.fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"shrink-all"}})],1):$._e()])],2)]),I("sortable-list",{attrs:{value:$.rows,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body"},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")},input:N=>$.$emit("sorted",N)},scopedSlots:$._u([{key:"default",fn:function({}){return I("tbody",{},$._l($.rows,function(N,B){return I("grid-row",{key:`row-${N._id}`,attrs:{index:B,fields:$.fields,values:N,meta:$.meta[N._id],name:$.name,"field-path-prefix":$.fieldPathPrefix,"can-delete":$.canDeleteRows,"can-add-rows":$.canAddRows},on:{updated:(j,U)=>$.$emit("updated",j,U),"meta-updated":function(j){return $.$emit("meta-updated",N._id,j)},duplicate:j=>$.$emit("duplicate",j),removed:j=>$.$emit("removed",j),focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),1)}}],null,!1,2994308055)})],1):$._e()},_sfc_staticRenderFns$1t=[],__component__$1u=normalizeComponent$3(_sfc_main$1t,_sfc_render$1t,_sfc_staticRenderFns$1t,!1,null,null,null,null);const GridTable=__component__$1u.exports,StackedRow_vue_vue_type_style_index_0_scoped_e44ee797_lang="",_sfc_main$1s={mixins:[Row,ValidatesFieldConditions],components:{SetField}};var _sfc_render$1s=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"replicator-set shadow-sm mb-4 rounded border",class:[$.sortableItemClass,{"opacity-50":$.isExcessive}]},[I("div",{staticClass:"replicator-set-header"},[I("div",{staticClass:"item-move cursor-grab sortable-handle",class:{[$.sortableHandleClass]:$.grid.isReorderable}}),I("div",{staticClass:"py-2 rtl:pr-2 ltr:pl-2 replicator-set-header-inner flex justify-end items-end w-full"},[$.canDelete?I("button",{staticClass:"flex self-end group items-center",attrs:{"aria-label":$.__("Delete Row")},on:{click:function(N){return $.$emit("removed",$.index)}}},[I("svg-icon",{staticClass:"w-4 h-4 text-gray-600 group-hover:text-gray-900",attrs:{name:"micro/trash"}})],1):$._e()])]),I("div",{staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N.handle)),expression:"showField(field, fieldPath(field.handle))"}],key:N.handle,staticClass:"p-4",attrs:{field:N,meta:$.meta[N.handle],value:$.values[N.handle],"parent-name":$.name,"set-index":$.index,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle),"read-only":$.grid.isReadOnly},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")}}})}),1)])},_sfc_staticRenderFns$1s=[],__component__$1t=normalizeComponent$3(_sfc_main$1s,_sfc_render$1s,_sfc_staticRenderFns$1s,!1,null,"e44ee797",null,null);const StackedRow=__component__$1t.exports,_sfc_main$1r={mixins:[View],components:{StackedRow,SortableList}};var _sfc_render$1r=function M(){var $=this,I=$._self._c;return I("div",[$.grid.fullScreenMode?$._e():I("div",{staticClass:"flex justify-end absolute top-3 rtl:left-3 ltr:right-3 @md:rtl:left-6 @md:ltr:right-6"},[$.allowFullscreen?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen Mode"),expression:"__('Toggle Fullscreen Mode')"}],staticClass:"btn btn-icon flex items-center",on:{click:$.grid.toggleFullScreen}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.grid.fullScreenMode,expression:"! grid.fullScreenMode"}],staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.grid.fullScreenMode,expression:"grid.fullScreenMode"}],staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"shrink-all"}})],1):$._e()]),I("sortable-list",{attrs:{value:$.rows,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body","constrain-dimensions":""},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")},input:N=>$.$emit("sorted",N)},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"grid-stacked",class:{"mt-0":!$.allowFullscreen&&$.hideDisplay,"mt-4":!$.hideDisplay,"mt-10":$.allowFullscreen}},$._l($.rows,function(N,B){return I("stacked-row",{key:`row-${N._id}`,attrs:{index:B,fields:$.fields,values:N,meta:$.meta[N._id],name:$.name,"field-path-prefix":$.fieldPathPrefix,"can-delete":$.canDeleteRows,"can-add-rows":$.canAddRows},on:{updated:(j,U)=>$.$emit("updated",j,U),"meta-updated":function(j){return $.$emit("meta-updated",N._id,j)},removed:j=>$.$emit("removed",j),focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),1)}}])})],1)},_sfc_staticRenderFns$1r=[],__component__$1s=normalizeComponent$3(_sfc_main$1r,_sfc_render$1r,_sfc_staticRenderFns$1r,!1,null,null,null,null);const GridStacked=__component__$1s.exports,_sfc_main$1q={mixins:[Fieldtype,ManagesRowMeta],components:{GridTable,GridStacked},data(){return{containerWidth:null,focused:!1,fullScreenMode:!1,provide:{grid:this.makeGridProvide(),storeName:this.storeName}}},inject:["storeName"],computed:{component(){const M=this.fields.length>1&&this.containerWidth<600;return this.config.mode==="stacked"||M?"GridStacked":"GridTable"},fields(){return this.config.fields},minRows(){return this.config.min_rows||0},maxRows(){return this.config.max_rows||1/0},canAddRows(){return!this.isReadOnly&&this.value.length<this.maxRows},canDeleteRows(){return!this.isReadOnly&&this.value.length>this.minRows},addRowButtonLabel(){return __(this.config.add_row)||__("Add Row")},hasMaxRows(){return this.maxRows!=null},hasExcessRows(){return this.value.length-this.maxRows>0},hasNotEnoughRows(){return this.value.length-this.minRows<0},isReorderable(){return!this.isReadOnly&&this.config.reorderable&&this.maxRows>1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return`${__(this.config.display)}: ${__n(":count row|:count rows",this.value.length)}`}},watch:{isReorderable:{immediate:!0,handler(M){this.reorderable=M}},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}}},methods:{addRow(){const M=uniqid$1(),$=_.chain(this.fields).indexBy("handle").mapObject(I=>this.meta.defaults[I.handle]).value();$._id=M,this.updateRowMeta(M,this.meta.new),this.update([...this.value,$])},updated(M,$){this.update([...this.value.slice(0,M),$,...this.value.slice(M+1)])},removed(M){confirm(__("Are you sure?"))&&this.update([...this.value.slice(0,M),...this.value.slice(M+1)])},duplicate(M){const $=clone(this.value[M]),I=$._id;$._id=uniqid$1(),this.updateRowMeta($._id,this.meta.existing[I]),this.update([...this.value,$])},sorted(M){this.update(M)},focus(){},blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},toggleFullScreen(){this.fullScreenMode=!this.fullScreenMode},makeGridProvide(){const M={};return Object.defineProperties(M,{config:{get:()=>this.config},isReorderable:{get:()=>this.isReorderable},isReadOnly:{get:()=>this.isReadOnly},handle:{get:()=>this.handle},fieldPathPrefix:{get:()=>this.fieldPathPrefix},fullScreenMode:{get:()=>this.fullScreenMode},toggleFullScreen:{get:()=>this.toggleFullScreen}}),M}}};var _sfc_render$1q=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"grid-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",{staticClass:"grid-fieldtype-container",class:{"grid-fullscreen bg-white":$.fullScreenMode}},[$.fullScreenMode?I("header",{staticClass:"bg-gray-200 border-b py-3 rtl:pr-3 ltr:pl-3 flex items-center justify-between relative"},[I("h2",{domProps:{textContent:$._s($.__($.config.display))}}),I("button",{staticClass:"btn-close absolute top-2 rtl:left-5 ltr:right-5",attrs:{"aria-label":$.__("Exit Fullscreen Mode")},on:{click:function(N){$.fullScreenMode=!1}}},[$._v("×")])]):$._e(),I("section",{class:{"p-4":$.fullScreenMode}},[$.hasExcessRows?I("small",{staticClass:"help-block text-red-500"},[$._v(" "+$._s($.__("Max Rows"))+": "+$._s($.maxRows)+" ")]):$.hasNotEnoughRows?I("small",{staticClass:"help-block text-red-500"},[$._v(" "+$._s($.__("Min Rows"))+": "+$._s($.minRows)+" ")]):$._e(),I($.component,{tag:"component",attrs:{fields:$.fields,rows:$.value,meta:$.meta.existing,name:$.name,"can-delete-rows":$.canDeleteRows,"can-add-rows":$.canAddRows,"allow-fullscreen":$.config.fullscreen,"hide-display":$.config.hide_display},on:{updated:$.updated,"meta-updated":$.updateRowMeta,removed:$.removed,duplicate:$.duplicate,sorted:$.sorted,focus:function(N){$.focused=!0},blur:$.blurred}}),$.canAddRows?I("button",{staticClass:"btn",domProps:{textContent:$._s($.__($.addRowButtonLabel))},on:{click:function(N){return N.preventDefault(),$.addRow.apply(null,arguments)}}}):$._e()],1)])])],1)},_sfc_staticRenderFns$1q=[],__component__$1r=normalizeComponent$3(_sfc_main$1q,_sfc_render$1q,_sfc_staticRenderFns$1q,!1,null,null,null,null);const Grid=__component__$1r.exports,_sfc_main$1p={mixins:[IndexFieldtype]};var _sfc_render$1p=function M(){var $=this,I=$._self._c;return $.value?I("div",[$._v(" "+$._s($.__n(":count row|:count rows",$.value))+" ")]):$._e()},_sfc_staticRenderFns$1p=[],__component__$1q=normalizeComponent$3(_sfc_main$1p,_sfc_render$1p,_sfc_staticRenderFns$1p,!1,null,null,null,null);const GridIndex=__component__$1q.exports,GroupFieldtype_vue_vue_type_style_index_0_lang="",_sfc_main$1o={mixins:[Fieldtype$1,ValidatesFieldConditions],components:{SetField},data(){return{containerWidth:null,focused:!1,fullScreenMode:!1,provide:{group:this.makeGroupProvide(),storeName:this.storeName}}},inject:["storeName"],computed:{values(){return this.value},fields(){return this.config.fields},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return Object.values(this.value).join(", ")}},methods:{blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},toggleFullScreen(){this.fullScreenMode=!this.fullScreenMode},makeGroupProvide(){const M={};return Object.defineProperties(M,{config:{get:()=>this.config},isReadOnly:{get:()=>this.isReadOnly},handle:{get:()=>this.handle},fieldPathPrefix:{get:()=>this.fieldPathPrefix||this.handle},fullScreenMode:{get:()=>this.fullScreenMode},toggleFullScreen:{get:()=>this.toggleFullScreen}}),M},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}},updated(M,$){this.update({...this.value,[M]:$})},updateMeta(M,$){this.$emit("meta-updated",{...this.meta,[M]:$})},fieldPath(M){return(this.fieldPathPrefix||this.handle)+"."+M},errors(M){const $=this.$store.state.publish[this.storeName];return $?$.errors[this.fieldPath(M)]||[]:[]}}};var _sfc_render$1o=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"group-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",{staticClass:"group-fieldtype-container",class:{"grid-fullscreen bg-white":$.fullScreenMode}},[$.fullScreenMode?I("header",{staticClass:"relative flex items-center justify-between py-3 rtl:pr-3 ltr:pl-3 bg-gray-200 border-b"},[I("h2",{domProps:{textContent:$._s($.__($.config.display))}}),I("button",{staticClass:"absolute btn-close top-2 rtl:left-5 ltr:right-5",attrs:{"aria-label":$.__("Exit Fullscreen Mode")},on:{click:function(N){$.fullScreenMode=!1}}},[$._v("×")])]):$._e(),I("section",{class:{"p-4":$.fullScreenMode}},[$.fullScreenMode?$._e():I("div",{staticClass:"group-fieldtype-button-wrapper"},[$.config.fullscreen?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen Mode"),expression:"__('Toggle Fullscreen Mode')"}],staticClass:"flex items-center group",on:{click:$.toggleFullScreen}},[I("svg-icon",{staticClass:"h-3.5 px-0.5 text-gray-750 group-hover:text-black",attrs:{name:"expand-bold"}})],1):$._e()]),I("div",{staticClass:"mb-4 border rounded shadow-sm replicator-set"},[I("div",{staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N.handle)),expression:"showField(field, fieldPath(field.handle))"}],key:N.handle,staticClass:"p-4",attrs:{field:N,meta:$.meta[N.handle],value:$.value[N.handle],"parent-name":$.name,"set-index":0,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle),"read-only":$.isReadOnly},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.updateMeta(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")}}})}),1)])])])])],1)},_sfc_staticRenderFns$1o=[],__component__$1p=normalizeComponent$3(_sfc_main$1o,_sfc_render$1o,_sfc_staticRenderFns$1o,!1,null,null,null,null);const GroupFieldtype=__component__$1p.exports,_sfc_main$1n={mixins:[Fieldtype]};var _sfc_render$1n=function M(){var $=this,I=$._self._c;return I("input",{attrs:{type:"hidden",name:$.name},domProps:{value:$.value}})},_sfc_staticRenderFns$1n=[],__component__$1o=normalizeComponent$3(_sfc_main$1n,_sfc_render$1n,_sfc_staticRenderFns$1n,!1,null,null,null,null);const HiddenFieldtype=__component__$1o.exports,_sfc_main$1m={mixins:[Fieldtype]};var _sfc_render$1m=function M(){var $=this,I=$._self._c;return I("div",{domProps:{innerHTML:$._s($.config.html)}})},_sfc_staticRenderFns$1m=[],__component__$1n=normalizeComponent$3(_sfc_main$1m,_sfc_render$1m,_sfc_staticRenderFns$1m,!1,null,null,null,null);const HtmlFieldtype=__component__$1n.exports,_sfc_main$1l={mixins:[Fieldtype,PositionsSelectOptions],computed:{options(){let M=[];for(let[$,I]of Object.entries(this.meta.icons))M.push({value:$,label:$,html:I});return M},selectedOption(){return this.options.find(M=>M.value===this.value)}},methods:{focus(){this.$refs.input.focus()},vueSelectUpdated(M){M?this.update(M.value):this.update(null)}}};var _sfc_render$1l=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex icon-fieldtype-wrapper"},[I("v-select",{ref:"input",staticClass:"w-full",attrs:{"append-to-body":"","calculate-position":$.positionOptions,clearable:"",name:$.name,disabled:$.config.disabled||$.isReadOnly,options:$.options,placeholder:$.__($.config.placeholder||"Search..."),searchable:!0,multiple:!1,"close-on-select":!0,value:$.selectedOption,"create-option":N=>({value:N,label:N})},on:{input:$.vueSelectUpdated,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[N.html?$._e():I("svg-icon",{staticClass:"w-5 h-5",attrs:{name:`${$.meta.set}/${N.label}`}}),N.html?I("div",{staticClass:"w-5 h-5",domProps:{innerHTML:$._s(N.html)}}):$._e(),I("span",{staticClass:"text-xs rtl:mr-4 ltr:ml-4 text-gray-800 truncate"},[$._v($._s($.__(N.label)))])],1)]}},{key:"selected-option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[N.html?$._e():I("svg-icon",{staticClass:"w-5 h-5 flex items-center",attrs:{name:`${$.meta.set}/${N.label}`}}),N.html?I("div",{staticClass:"w-5 h-5",domProps:{innerHTML:$._s(N.html)}}):$._e(),I("span",{staticClass:"text-xs rtl:mr-4 ltr:ml-4 text-gray-800 truncate"},[$._v($._s($.__(N.label)))])],1)]}}])})],1)},_sfc_staticRenderFns$1l=[],__component__$1m=normalizeComponent$3(_sfc_main$1l,_sfc_render$1l,_sfc_staticRenderFns$1l,!1,null,null,null,null);const IconFieldtype=__component__$1m.exports,_sfc_main$1k={mixins:[Fieldtype],props:{prepend:{default:null},append:{default:null}}};var _sfc_render$1k=function M(){var $=this,I=$._self._c;return I("text-input",{ref:"input",attrs:{type:"number",name:$.name,focus:$.config.focus,value:$.value,"is-read-only":$.isReadOnly,id:$.fieldId,min:$.config.min,prepend:$.__($.config.prepend),append:$.__($.config.append)},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$1k=[],__component__$1l=normalizeComponent$3(_sfc_main$1k,_sfc_render$1k,_sfc_staticRenderFns$1k,!1,null,null,null,null);const IntegerFieldtype=__component__$1l.exports,_sfc_main$1j={mixins:[Fieldtype,PositionsSelectOptions],data(){return{option:this.meta.initialOption,options:this.initialOptions(),urlValue:this.meta.initialUrl,selectedEntries:this.meta.initialSelectedEntries,selectedAssets:this.meta.initialSelectedAssets,metaChanging:!1}},computed:{entryValue(){return this.selectedEntries.length?`entry::${this.selectedEntries[0]}`:null},assetValue(){return this.selectedAssets.length?`asset::${this.selectedAssets[0]}`:null}},watch:{option(M,$){this.metaChanging||(M===null?this.update(null):M==="url"?this.updateDebounced(this.urlValue):M==="first-child"?this.update("@child"):M==="entry"?this.entryValue?this.update(this.entryValue):setTimeout(()=>this.$refs.entries.linkExistingItem(),0):M==="asset"&&(this.assetValue?this.update(this.assetValue):setTimeout(()=>this.$refs.assets.openSelector(),0)))},urlValue(M){this.metaChanging||this.update(M)},meta(M,$){JSON.stringify(M)!==JSON.stringify($)&&(this.metaChanging=!0,this.urlValue=M.initialUrl,this.option=M.initialOption,this.selectedEntries=M.initialSelectedEntries,this.selectedAssets=M.initialSelectedAssets,this.$nextTick(()=>this.metaChanging=!1))}},methods:{initialOptions(){return[this.config.required?null:{label:__("None"),value:null},{label:__("URL"),value:"url"},this.meta.showFirstChildOption?{label:__("First Child"),value:"first-child"}:null,{label:__("Entry"),value:"entry"},this.meta.showAssetOption?{label:__("Asset"),value:"asset"}:null].filter(M=>M)},entriesSelected(M){this.selectedEntries=M,this.update(this.entryValue)},assetsSelected(M){this.selectedAssets=M,this.update(this.assetValue)}}};var _sfc_render$1j=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"w-28 rtl:ml-4 ltr:mr-4"},[I("v-select",{attrs:{"append-to-body":"","calculate-position":$.positionOptions,options:$.options,clearable:!1,reduce:N=>N.value},scopedSlots:$._u([{key:"option",fn:function({label:N}){return[$._v(" "+$._s($.__(N))+" ")]}}]),model:{value:$.option,callback:function(N){$.option=N},expression:"option"}})],1),I("div",{staticClass:"flex-1"},[$.option==="url"?I("text-input",{model:{value:$.urlValue,callback:function(N){$.urlValue=N},expression:"urlValue"}}):$._e(),$.option==="entry"?I("relationship-fieldtype",{ref:"entries",attrs:{handle:"entry",value:$.selectedEntries,config:$.meta.entry.config,meta:$.meta.entry.meta},on:{input:$.entriesSelected,"meta-updated":function(N){$.meta.entry.meta=N}}}):$._e(),$.option==="asset"?I("assets-fieldtype",{ref:"assets",attrs:{handle:"asset",value:$.selectedAssets,config:$.meta.asset.config,meta:$.meta.asset.meta},on:{input:$.assetsSelected,"meta-updated":function(N){$.meta.asset.meta=N}}}):$._e()],1)])},_sfc_staticRenderFns$1j=[],__component__$1k=normalizeComponent$3(_sfc_main$1j,_sfc_render$1j,_sfc_staticRenderFns$1j,!1,null,null,null,null);const LinkFieldtype=__component__$1k.exports,_sfc_main$1i={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data(){return{data:[],editing:null,focused:!1,mounted:!1,deleting:!1}},mounted(){this.$nextTick(()=>this.mounted=!0)},watch:{data:{deep:!0,handler(M){this.mounted&&this.updateDebounced(this.sortableToArray(M))}},value:{immediate:!0,handler(M){JSON.stringify(M)!=JSON.stringify(this.sortableToArray(this.data))&&(this.data=this.arrayToSortable(M))}},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||(this.$emit("blur"),this.editing=null)},1)}}},computed:{addButton(){return __(this.config.add_button||"Add Item")}},methods:{addItem(){this.data.push(this.newSortableValue()),this.$nextTick(()=>this.editItem(this.data.length-1))},deleteValue(M){this.data.splice(M,1)},editItem(M){this.editItemWithoutFocusing(M),this.$refs.listItem[M].focus()},editItemWithoutFocusing(M){this.editing=M},newItemInputPaste(M){const $=M.clipboardData.getData("text");$.includes(`
- `)&&(this.deleteIfEmpty(),$.split(`
- `).forEach(I=>{this.data.push(this.newSortableValue(I))}),this.$nextTick(()=>this.editItem(this.data.length-1)),M.preventDefault())},previousItem(){this.deleteIfEmpty(),this.editItem(Math.max(this.editing-1,0))},nextItem(){let M=this.deleteIfEmpty()?1:0;this.editing+1>=this.data.length?this.addItem():this.editItem(this.editing+1-M)},deleteIfEmpty(){if(!data_get(this.data[this.editing],"value",!0))return this.deleteItem(this.editing)},deleteItem(M){return this.data.splice(M,1)}}};var _sfc_render$1i=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"table-field"},[$.data.length>0?I("table",{staticClass:"table-fieldtype-table"},[I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"sortable-handle",mirror:!1},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"sortable-handle table-drag-handle",class:{"rounded-tl":B===0}}),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value,expression:"element.value"}],ref:"listItem",refInFor:!0,staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value},on:{blur:function(j){$.focused=!1},focus:function(j){return $.editItemWithoutFocusing(B)},keydown:function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"enter",13,j.key,"Enter")?null:(j.preventDefault(),$.nextItem.apply(null,arguments))},keyup:[function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"up",38,j.key,["Up","ArrowUp"])?null:$.previousItem.apply(null,arguments)},function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"down",40,j.key,["Down","ArrowDown"])?null:$.nextItem.apply(null,arguments)}],paste:$.newItemInputPaste,input:function(j){j.target.composing||$.$set(N,"value",j.target.value)}}})]),$.isReadOnly?$._e():I("td",{staticClass:"row-controls"},[I("button",{staticClass:"inline text-lg antialiased text-gray-600 hover:text-gray-800",on:{click:function(j){return $.deleteValue(B)}}},[$._v("×")])])])}),0)])],1):$._e(),$.isReadOnly?$._e():I("button",{staticClass:"btn btn-sm",on:{click:$.addItem}},[$._v(" "+$._s($.addButton)+" ")])])},_sfc_staticRenderFns$1i=[],__component__$1j=normalizeComponent$3(_sfc_main$1i,_sfc_render$1i,_sfc_staticRenderFns$1i,!1,null,null,null,null);const ListFieldtype=__component__$1j.exports;function Renderer(M){this.options=M||{},this.whitespaceDelimiter=this.options.spaces?" ":`
- `}Renderer.prototype.code=function(M,$,I){return this.whitespaceDelimiter+this.whitespaceDelimiter+M+this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.blockquote=function(M){return" "+M+this.whitespaceDelimiter};Renderer.prototype.html=function(M){return M};Renderer.prototype.heading=function(M,$,I){return M};Renderer.prototype.hr=function(){return this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.list=function(M,$){return M};Renderer.prototype.listitem=function(M){return" "+M+this.whitespaceDelimiter};Renderer.prototype.paragraph=function(M){return this.whitespaceDelimiter+M+this.whitespaceDelimiter};Renderer.prototype.table=function(M,$){return this.whitespaceDelimiter+M+this.whitespaceDelimiter+$+this.whitespaceDelimiter};Renderer.prototype.tablerow=function(M){return M+this.whitespaceDelimiter};Renderer.prototype.tablecell=function(M,$){return M+" "};Renderer.prototype.strong=function(M){return M};Renderer.prototype.em=function(M){return M};Renderer.prototype.codespan=function(M){return M};Renderer.prototype.br=function(){return this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.del=function(M){return M};Renderer.prototype.link=function(M,$,I){return I};Renderer.prototype.image=function(M,$,I){return I};Renderer.prototype.text=function(M){return M};var markedPlaintext=Renderer;const PlainTextRenderer=getDefaultExportFromCjs(markedPlaintext);(function(M,$){(function(I){I(requireCodemirror())})(function(I){var N={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},B=I.Pos;I.defineOption("autoCloseBrackets",!1,function(ne,le,ge){ge&&ge!=I.Init&&(ne.removeKeyMap(U),ne.state.closeBrackets=null),le&&(q(j(le,"pairs")),ne.state.closeBrackets=le,ne.addKeyMap(U))});function j(ne,le){return le=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[le]!=null?ne[le]:N[le]}var U={Backspace:G,Enter:J};function q(ne){for(var le=0;le<ne.length;le++){var ge=ne.charAt(le),ue="'"+ge+"'";U[ue]||(U[ue]=Y(ge))}}q(N.pairs+"`");function Y(ne){return function(le){return te(le,ne)}}function K(ne){var le=ne.state.closeBrackets;if(!le||le.override)return le;var ge=ne.getModeAt(ne.getCursor());return ge.closeBrackets||le}function G(ne){var le=K(ne);if(!le||ne.getOption("disableInput"))return I.Pass;for(var ge=j(le,"pairs"),ue=ne.listSelections(),_e=0;_e<ue.length;_e++){if(!ue[_e].empty())return I.Pass;var fe=re(ne,ue[_e].head);if(!fe||ge.indexOf(fe)%2!=0)return I.Pass}for(var _e=ue.length-1;_e>=0;_e--){var me=ue[_e].head;ne.replaceRange("",B(me.line,me.ch-1),B(me.line,me.ch+1),"+delete")}}function J(ne){var le=K(ne),ge=le&&j(le,"explode");if(!ge||ne.getOption("disableInput"))return I.Pass;for(var ue=ne.listSelections(),_e=0;_e<ue.length;_e++){if(!ue[_e].empty())return I.Pass;var fe=re(ne,ue[_e].head);if(!fe||ge.indexOf(fe)%2!=0)return I.Pass}ne.operation(function(){var me=ne.lineSeparator()||`
- `;ne.replaceSelection(me+me,null),Z(ne,-1),ue=ne.listSelections();for(var ve=0;ve<ue.length;ve++){var xe=ue[ve].head.line;ne.indentLine(xe,null,!0),ne.indentLine(xe+1,null,!0)}})}function Z(ne,le){for(var ge=[],ue=ne.listSelections(),_e=0,fe=0;fe<ue.length;fe++){var me=ue[fe];me.head==ne.getCursor()&&(_e=fe);var ve=me.head.ch||le>0?{line:me.head.line,ch:me.head.ch+le}:{line:me.head.line-1};ge.push({anchor:ve,head:ve})}ne.setSelections(ge,_e)}function ee(ne){var le=I.cmpPos(ne.anchor,ne.head)>0;return{anchor:new B(ne.anchor.line,ne.anchor.ch+(le?-1:1)),head:new B(ne.head.line,ne.head.ch+(le?1:-1))}}function te(ne,le){var ge=K(ne);if(!ge||ne.getOption("disableInput"))return I.Pass;var ue=j(ge,"pairs"),_e=ue.indexOf(le);if(_e==-1)return I.Pass;for(var fe=j(ge,"closeBefore"),me=j(ge,"triples"),ve=ue.charAt(_e+1)==le,xe=ne.listSelections(),oe=_e%2==0,ye,be=0;be<xe.length;be++){var we=xe[be],Ae=we.head,ke,Oe=ne.getRange(Ae,B(Ae.line,Ae.ch+1));if(oe&&!we.empty())ke="surround";else if((ve||!oe)&&Oe==le)ve&&se(ne,Ae)?ke="both":me.indexOf(le)>=0&&ne.getRange(Ae,B(Ae.line,Ae.ch+3))==le+le+le?ke="skipThree":ke="skip";else if(ve&&Ae.ch>1&&me.indexOf(le)>=0&&ne.getRange(B(Ae.line,Ae.ch-2),Ae)==le+le){if(Ae.ch>2&&/\bstring/.test(ne.getTokenTypeAt(B(Ae.line,Ae.ch-2))))return I.Pass;ke="addFour"}else if(ve){var Me=Ae.ch==0?" ":ne.getRange(B(Ae.line,Ae.ch-1),Ae);if(!I.isWordChar(Oe)&&Me!=le&&!I.isWordChar(Me))ke="both";else return I.Pass}else if(oe&&(Oe.length===0||/\s/.test(Oe)||fe.indexOf(Oe)>-1))ke="both";else return I.Pass;if(!ye)ye=ke;else if(ye!=ke)return I.Pass}var ze=_e%2?ue.charAt(_e-1):le,Fe=_e%2?le:ue.charAt(_e+1);ne.operation(function(){if(ye=="skip")Z(ne,1);else if(ye=="skipThree")Z(ne,3);else if(ye=="surround"){for(var Ze=ne.getSelections(),lt=0;lt<Ze.length;lt++)Ze[lt]=ze+Ze[lt]+Fe;ne.replaceSelections(Ze,"around"),Ze=ne.listSelections().slice();for(var lt=0;lt<Ze.length;lt++)Ze[lt]=ee(Ze[lt]);ne.setSelections(Ze)}else ye=="both"?(ne.replaceSelection(ze+Fe,null),ne.triggerElectric(ze+Fe),Z(ne,-1)):ye=="addFour"&&(ne.replaceSelection(ze+ze+ze+ze,"before"),Z(ne,1))})}function re(ne,le){var ge=ne.getRange(B(le.line,le.ch-1),B(le.line,le.ch+1));return ge.length==2?ge:null}function se(ne,le){var ge=ne.getTokenAt(B(le.line,le.ch+1));return/\bstring/.test(ge.type)&&ge.start==le.ch&&(le.ch==0||!/\bstring/.test(ne.getTokenTypeAt(le)))}})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){I.defineOption("autoRefresh",!1,function(j,U){j.state.autoRefresh&&(B(j,j.state.autoRefresh),j.state.autoRefresh=null),U&&j.display.wrapper.offsetHeight==0&&N(j,j.state.autoRefresh={delay:U.delay||250})});function N(j,U){function q(){j.display.wrapper.offsetHeight?(B(j,U),j.display.lastWrapHeight!=j.display.wrapper.clientHeight&&j.refresh()):U.timeout=setTimeout(q,U.delay)}U.timeout=setTimeout(q,U.delay),U.hurry=function(){clearTimeout(U.timeout),U.timeout=setTimeout(q,50)},I.on(window,"mouseup",U.hurry),I.on(window,"keyup",U.hurry)}function B(j,U){clearTimeout(U.timeout),I.off(window,"mouseup",U.hurry),I.off(window,"keyup",U.hurry)}})})();(function(M,$){(function(I){I(requireCodemirror())})(function(I){var N=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,B=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,j=/[*+-]\s/;I.commands.newlineAndIndentContinueMarkdownList=function(q){if(q.getOption("disableInput"))return I.Pass;for(var Y=q.listSelections(),K=[],G=0;G<Y.length;G++){var J=Y[G].head,Z=q.getStateAfter(J.line),ee=I.innerMode(q.getMode(),Z);if(ee.mode.name!=="markdown"&&ee.mode.helperType!=="markdown"){q.execCommand("newlineAndIndent");return}else Z=ee.state;var te=Z.list!==!1,re=Z.quote!==0,se=q.getLine(J.line),ne=N.exec(se),le=/^\s*$/.test(se.slice(0,J.ch));if(!Y[G].empty()||!te&&!re||!ne||le){q.execCommand("newlineAndIndent");return}if(B.test(se)){var ge=re&&/>\s*$/.test(se),ue=!/>\s*$/.test(se);(ge||ue)&&q.replaceRange("",{line:J.line,ch:0},{line:J.line,ch:J.ch+1}),K[G]=`
- `}else{var _e=ne[1],fe=ne[5],me=!(j.test(ne[2])||ne[2].indexOf(">")>=0),ve=me?parseInt(ne[3],10)+1+ne[4]:ne[2].replace("x"," ");K[G]=`
- `+_e+ve+fe,me&&U(q,J)}}q.replaceSelections(K)};function U(q,Y){var K=Y.line,G=0,J=0,Z=N.exec(q.getLine(K)),ee=Z[1];do{G+=1;var te=K+G,re=q.getLine(te),se=N.exec(re);if(se){var ne=se[1],le=parseInt(Z[3],10)+G-J,ge=parseInt(se[3],10),ue=ge;if(ee===ne&&!isNaN(ge))le===ge&&(ue=ge+1),le>ge&&(ue=le+1),q.replaceRange(re.replace(N,ne+ue+se[4]+se[5]),{line:te,ch:0},{line:te,ch:re.length});else{if(ee.length>ne.length||ee.length<ne.length&&G===1)return;J+=1}}}while(se)}})})();const availableButtons=()=>[{name:"bold",text:__("Bold"),command:M=>M.toggleInline("bold"),svg:"text-bold"},{name:"italic",text:__("Italic"),command:M=>M.toggleInline("italic"),svg:"text-italic"},{name:"strikethrough",text:__("Strikethrough"),command:M=>M.toggleInline("strikethrough"),svg:"text-strike-through"},{name:"unorderedlist",text:__("Unordered List"),command:M=>M.toggleLine("unordered-list"),svg:"list-ul"},{name:"orderedlist",text:__("Ordered List"),command:M=>M.toggleLine("ordered-list"),svg:"list-ol"},{name:"quote",text:__("Blockquote"),command:M=>M.toggleLine("quote"),svg:"quote"},{name:"link",text:__("Insert Link"),command:M=>M.insertLink(""),svg:"insert-link"},{name:"table",text:__("Table"),command:M=>M.insertTable(),svg:"add-table"},{name:"image",text:__("Insert Image"),command:M=>M.insertImage(),svg:"insert-image"},{name:"asset",text:__("Insert Asset"),command:M=>M.addAsset(),svg:"asset-folder",condition:M=>M.container},{name:"code",text:__("Inline Code"),command:M=>M.toggleInline("code"),svg:"code-inline"},{name:"codeblock",text:__("Code Block"),command:M=>M.toggleBlock("code"),svg:"code-block"}];var Countable={exports:{}};/**
- * Countable is a script to allow for live paragraph-, word- and character-
- * counting on an HTML element.
- *
- * @author Sacha Schmid (<https://github.com/RadLikeWhoa>)
- * @version 3.0.1
- * @license MIT
- * @see <http://radlikewhoa.github.io/Countable/>
- */(function(M,$){(function(I){let N=[];const B=Array.prototype.forEach;function j(K){const G=[];let J=0;const Z=K.length;for(;J<Z;){const ee=K.charCodeAt(J++);if(ee>=55296&&ee<=56319&&J<Z){const te=K.charCodeAt(J++);(te&64512)==56320?G.push(((ee&1023)<<10)+(te&1023)+65536):(G.push(ee),J--)}else G.push(ee)}return G}function U(K,G){const J=Object.prototype.toString.call(K),Z=typeof K=="string"||J==="[object NodeList]"||J==="[object HTMLCollection]"||K.nodeType===1,ee=typeof G=="function";return Z||console.error("Countable: Not a valid target"),ee||console.error("Countable: Not a valid callback function"),Z&&ee}function q(K,G){let J=""+(typeof K=="string"?K:"value"in K?K.value:K.textContent);G=G||{},G.stripTags&&(J=J.replace(/<\/?[a-z][^>]*>/gi,"")),G.ignore&&B.call(G.ignore,function(ee){J=J.replace(ee,"")});const Z=J.trim();return{paragraphs:Z?(Z.match(G.hardReturns?/\n{2,}/g:/\n+/g)||[]).length+1:0,sentences:Z?(Z.match(/[.?!…]+./g)||[]).length+1:0,words:Z?(Z.replace(/['";:,.?¿\-!¡]+/g,"").match(/\S+/g)||[]).length:0,characters:Z?j(Z.replace(/\s/g,"")).length:0,all:j(J).length}}const Y={on:function(K,G,J){if(U(K,G))return Array.isArray(K)||(K=[K]),B.call(K,function(Z){const ee=function(){G.call(Z,q(Z,J))};N.push({element:Z,handler:ee}),ee(),Z.addEventListener("input",ee)}),this},off:function(K){if(U(K,function(){}))return Array.isArray(K)||(K=[K]),N.filter(function(G){return K.indexOf(G.element)!==-1}).forEach(function(G){G.element.removeEventListener("input",G.handler)}),N=N.filter(function(G){return K.indexOf(G.element)===-1}),this},count:function(K,G,J){if(U(K,G))return Array.isArray(K)||(K=[K]),B.call(K,function(Z){G.call(Z,q(Z,J))}),this},enabled:function(K){return K.length===void 0&&(K=[K]),N.filter(function(G){return K.indexOf(G.element)!==-1}).length===K.length}};M.exports=Y})()})(Countable);var CountableExports=Countable.exports;const countable=getDefaultExportFromCjs(CountableExports);var script$1={name:"VueCountable",props:{text:{type:String,required:!0},elementId:{type:String,required:!0},hardReturns:{type:Boolean,required:!1,default:!1},stripTags:{type:Boolean,required:!1,default:!1},ignore:{type:Array,required:!1,default:function(){return[]}}},data:function M(){return{countable:null}},computed:{options:function M(){return{hardReturns:this.hardReturns,stripTags:this.stripTags,ignore:this.ignore}}},watch:{text:{handler:function(M){this.init()}}},methods:{init:function M(){var $=this;this.countable=countable,this.$nextTick(function(){$.countable.count($.text,function(I){$.$emit("change",I)},$.options)})}},mounted:function M(){this.init()}};function normalizeComponent$2(M,$,I,N,B,j,U,q,Y,K){typeof U!="boolean"&&(Y=q,q=U,U=!1);var G=typeof I=="function"?I.options:I;M&&M.render&&(G.render=M.render,G.staticRenderFns=M.staticRenderFns,G._compiled=!0,B&&(G.functional=!0)),N&&(G._scopeId=N);var J;if(j?(J=function(re){re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!re&&typeof __VUE_SSR_CONTEXT__<"u"&&(re=__VUE_SSR_CONTEXT__),$&&$.call(this,Y(re)),re&&re._registeredComponents&&re._registeredComponents.add(j)},G._ssrRegister=J):$&&(J=U?function(){$.call(this,K(this.$root.$options.shadowRoot))}:function(te){$.call(this,q(te))}),J)if(G.functional){var Z=G.render;G.render=function(re,se){return J.call(se),Z(re,se)}}else{var ee=G.beforeCreate;G.beforeCreate=ee?[].concat(ee,J):[J]}return I}var normalizeComponent_1=normalizeComponent$2,isOldIE=typeof navigator<"u"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(M){return function($,I){return addStyle($,I)}}var HEAD=document.head||document.getElementsByTagName("head")[0],styles={};function addStyle(M,$){var I=isOldIE?$.media||"default":M,N=styles[I]||(styles[I]={ids:new Set,styles:[]});if(!N.ids.has(M)){N.ids.add(M);var B=$.source;if($.map&&(B+=`
- /*# sourceURL=`+$.map.sources[0]+" */",B+=`
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify($.map))))+" */"),N.element||(N.element=document.createElement("style"),N.element.type="text/css",$.media&&N.element.setAttribute("media",$.media),HEAD.appendChild(N.element)),"styleSheet"in N.element)N.styles.push(B),N.element.styleSheet.cssText=N.styles.filter(Boolean).join(`
- `);else{var j=N.ids.size-1,U=document.createTextNode(B),q=N.element.childNodes;q[j]&&N.element.removeChild(q[j]),q.length?N.element.insertBefore(U,q[j]):N.element.appendChild(U)}}}var browser=createInjector,__vue_script__$1=script$1,__vue_render__$1=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("div")},__vue_staticRenderFns__$1=[];__vue_render__$1._withStripped=!0;var __vue_inject_styles__$1=function(M){M&&M("data-v-12d8198d_0",{source:`
- /*# sourceMappingURL=vue-countable.vue.map */`,map:{version:3,sources:["vue-countable.vue"],names:[],mappings:";AACA,4CAA4C",file:"vue-countable.vue"},media:void 0})},__vue_scope_id__$1="data-v-12d8198d",__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,component=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,browser,void 0);function install$3(M){install$3.installed||(install$3.installed=!0,M.component("VueCountable",component))}var plugin$2={install:install$3},GlobalVue$2=null;typeof window<"u"?GlobalVue$2=window.Vue:typeof global<"u"&&(GlobalVue$2=global.Vue);GlobalVue$2&&GlobalVue$2.use(plugin$2);const _sfc_main$1h={mixins:[Fieldtype],components:{Selector,Uploader,Uploads,VueCountable:component},data:function(){return{data:this.value||"",buttons:[],mode:"write",selections:null,showAssetSelector:!1,selectedAssets:[],selectorViewMode:null,draggingFile:!1,showCheatsheet:!1,fullScreenMode:!1,darkMode:!1,codemirror:null,uploads:[],count:{},escBinding:null,markdownPreviewText:null}},watch:{data(M){this.updateDebounced(M)},fullScreenMode:{immediate:!0,handler:function(M){this.$nextTick(()=>{this.$nextTick(()=>this.initCodeMirror())})}},mode(M){M==="preview"&&this.updateMarkdownPreview()},readOnly(M){this.codemirror.setOption("readOnly",M?"nocursor":!1)}},mounted(){this.initToolbarButtons();let M=document.querySelector(`label[for="${this.fieldId}"]`);M&&M.addEventListener("click",()=>{this.codemirror.focus()})},methods:{closeFullScreen(){this.fullScreenMode=!1,this.escBinding.destroy(),this.trackHeightUpdates()},openFullScreen(){this.fullScreenMode=!0,this.escBinding=this.$keys.bindGlobal("esc",this.closeFullScreen),this.trackHeightUpdates()},toggleFullScreen(){this.fullScreenMode?this.closeFullScreen():this.openFullScreen()},toggleDarkMode(){this.darkMode=!this.darkMode},getText:function(M){var $=_.indexOf(this.selections,M);return this.codemirror.getSelections()[$]},toggleInline(M){var $=this,I=[];let N={bold:{pattern:/^\*{2}(.*)\*{2}$/,delimiter:"**"},code:{pattern:/^\`(.*)\`$/,delimiter:"`"},italic:{pattern:/^\_(.*)\_$/,delimiter:"_"},strikethrough:{pattern:/^\~\~(.*)\~\~$/,delimiter:"~~"}};_.each($.selections,function(B){let j=N[M].delimiter,U=$.getText(B).match(N[M].pattern)?$.removeInline(B,N[M].delimiter):j+$.getText(B)+j;I.push(U)}),this.codemirror.replaceSelections(I,"around"),this.codemirror.focus()},toggleBlock(M){var $=this,I=[];let N={code:{pattern:/^\`\`\`(.*)\n(.*)\n\`\`\`$/,delimiter:"```"}};_.each($.selections,function(B){let j=$.getText(B),U=N[M].delimiter,q=j.match(N[M].pattern)?$.removeInline(B,U):U+`
- `+j+`
- `+U;I.push(q)}),this.codemirror.replaceSelections(I,"around"),this.codemirror.focus()},removeInline:function(M,$){var I=this.getText(M),N=$.length;return I.substring(N,I.length-N)},toggleLine(M){let $=this.codemirror.getCursor("start"),I=this.codemirror.getCursor("end"),N={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},B={quote:"> ","unordered-list":"- ","ordered-list":"1. "};for(let j=$.line;j<=I.line;j++){let U=this.codemirror.getLine(j);U=this.isInside(M)?U.replace(N[M],"$1"):B[M]+U,this.codemirror.replaceRange(U,{line:j,ch:0},{line:j,ch:1/0})}this.codemirror.focus()},getState(M){M=M||this.codemirror.getCursor("start");let $=this.codemirror.getTokenAt(M);if(!$.type)return{};let I=$.type.split(" "),N={},B,j;for(var U=0;U<I.length;U++)B=I[U],B==="strong"?N.bold=!0:B==="variable-2"?(j=this.codemirror.getLine(M.line),/^\s*\d+\.\s/.test(j)?N["ordered-list"]=!0:N["unordered-list"]=!0):B==="atom"?N.quote=!0:B==="em"?N.italic=!0:B==="quote"?N.quote=!0:B==="strikethrough"?N.strikethrough=!0:B==="comment"?N.code=!0:B==="link"?N.link=!0:B==="tag"?N.image=!0:B.match(/^header(\-[1-6])?$/)&&(N[B.replace("header","heading")]=!0);return N},isInside(M){return this.getState()[M]??!1},insertTable(){let M=this.codemirror.getDoc(),$=M.getCursor(),I=M.getLine($.line),N={line:$.line},B=`| | |
- | --- | --- |
- | | |`;I.length===0?(M.replaceRange(B,N),this.codemirror.focus(),this.codemirror.setCursor($.line,2)):(M.replaceRange(`
-
- `+B,N),this.codemirror.focus(),this.codemirror.setCursor($.line+2,2))},insertImage:function(B,$){var I=this.codemirror.doc,N="";I.somethingSelected()?N=I.getSelection():$&&(N=$);var B=B||"",j="!["+N+"]("+B+")";I.replaceSelection(j,"start");var U=I.getCursor().line,q=I.getCursor().ch+2,Y=q+N.length;I.setSelection({line:U,ch:q},{line:U,ch:Y}),this.codemirror.focus()},appendImage:function(M,$){$=$||"",this.data+=`
-
- ![`+$+"]("+M+")"},insertLink:function(M,$){var I=this.codemirror.doc,N="";if(I.somethingSelected()?N=I.getSelection():$&&(N=$),!(!M&&(M=prompt(__("Enter URL"),"https://"),!M))){var B="["+N+"]("+M+")";I.replaceSelection(B,"start");var j=I.getCursor().line,U=I.getCursor().ch+1,q=U+N.length;I.setSelection({line:j,ch:U},{line:j,ch:q}),this.codemirror.focus()}},appendLink:function(M,$){$=$||"",this.data+=`
-
- [`+$+"]("+M+")"},addAsset:function(){this.showAssetSelector=!0},shortcut:function(M){var $=M.keyCode,I=M.metaKey===!0||M.ctrlKey===!0;I&&$===66&&(this.toggleInline("bold"),M.preventDefault()),I&&$===73&&(this.toggleInline("italic"),M.preventDefault()),I&&$===190&&(this.toggleLine("quote"),M.preventDefault()),I&&$===192&&(this.toggleInline("code"),M.preventDefault()),I&&$===76&&(this.toggleLine("unordered-list"),M.preventDefault()),I&&$===79&&(this.toggleLine("ordered-list"),M.preventDefault()),I&&$===220&&(this.toggleBlock("code"),M.preventDefault()),I&&$===75&&(this.insertLink(),M.preventDefault())},assetsSelected:function(M){var $=M.length===1?"insert":"append";this.closeAssetSelector(),this.selectedAssets=[],this.$axios.post(cp_url("assets-fieldtype"),{assets:M}).then(I=>{_(I.data).each(N=>{var B=N.values.alt||"",j=encodeURI("statamic://"+N.reference);N.isImage?this[$+"Image"](j,B):this[$+"Link"](j,B)})})},closeAssetSelector(){this.showAssetSelector=!1},uploadsUpdated(M){this.uploads=M},uploadComplete(M,$){M.is_image?this.insertImage(M.url):this.insertLink(M.url),$.length>1&&this.codemirror.setCursor(this.codemirror.lineCount(),0)},focus(){this.codemirror.focus()},change(M){this.count=M},trackHeightUpdates(){const M=()=>{window.dispatchEvent(new Event("resize"))},$=_.throttle(M,100);this.$root.$on("livepreview.opened",$),this.$root.$on("livepreview.closed",$),this.$root.$on("livepreview.resizing",$),this.$once("hook:beforeDestroy",()=>{this.$root.$off("livepreview.opened",$),this.$root.$off("livepreview.closed",$),this.$root.$off("livepreview.resizing",$)})},updateMarkdownPreview(){this.$axios.post(this.meta.previewUrl,{value:this.data,config:this.config}).then(M=>this.markdownPreviewText=M.data).catch(M=>this.$toast.error(M.response?M.response.data.message:__("Something went wrong")))},initCodeMirror(){var M=this;M.codemirror=CodeMirror(this.$refs.codemirror,{value:M.data,mode:"gfm",dragDrop:!1,keyMap:"sublime",direction:document.querySelector("html").getAttribute("dir")??"ltr",lineWrapping:!0,viewportMargin:1/0,tabindex:0,autoRefresh:!0,readOnly:M.isReadOnly?"nocursor":!1,inputStyle:"contenteditable",spellcheck:!0,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList","Cmd-Left":"goLineLeftSmart"}}),M.codemirror.on("change",function($){M.data=$.doc.getValue()}),M.codemirror.on("focus",()=>M.$emit("focus")),M.codemirror.on("blur",()=>M.$emit("blur")),M.codemirror.on("beforeSelectionChange",function($,I){M.selections=I.ranges}),this.$watch("value",function($){$!==M.codemirror.doc.getValue()&&M.codemirror.doc.setValue($)}),this.trackHeightUpdates()},refresh(){this.$nextTick(function(){this.codemirror.refresh()})},initToolbarButtons(){let M=this.config.buttons.map($=>_.findWhere(availableButtons(),{name:$.toLowerCase()})||$);M=M.filter($=>$.condition?$.condition.call(null,this.config):!0),this.buttons=M}},computed:{assetsEnabled:function(){return!!(this.config&&this.config.container)},container:function(){return this.config.container},editor(){return this},folder:function(){return this.config.folder||"/"},restrictAssetNavigation(){return this.config.restrict_assets||!1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return marked(this.data||"",{renderer:new PlainTextRenderer}).replace(/<\/?[^>]+(>|$)/g,"")}}};var _sfc_render$1h=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"markdown-fullscreen",disabled:!$.fullScreenMode,"target-class":"markdown-fieldtype"}},[I("element-container",{on:{resized:$.refresh}},[I("div",{staticClass:"markdown-fieldtype-wrapper @container/markdown",class:{"markdown-fullscreen":$.fullScreenMode,"markdown-dark-mode":$.darkMode}},[I("uploader",{ref:"uploader",attrs:{enabled:$.assetsEnabled,container:$.container,path:$.folder},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{},[I("div",{staticClass:"markdown-toolbar"},[I("div",{staticClass:"markdown-modes"},[I("button",{class:{active:$.mode=="write"},attrs:{"aria-pressed":$.mode==="write"?"true":"false"},domProps:{textContent:$._s($.__("Write"))},on:{click:function(B){$.mode="write"}}}),I("button",{class:{active:$.mode=="preview"},attrs:{"aria-pressed":$.mode==="preview"?"true":"false"},domProps:{textContent:$._s($.__("Preview"))},on:{click:function(B){$.mode="preview"}}})]),$.isReadOnly?$._e():I("div",{staticClass:"markdown-buttons"},[$._l($.buttons,function(B){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:B.text,expression:"button.text"}],attrs:{"aria-label":B.text},on:{click:function(j){return B.command($.editor)}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:B.svg}})],1)}),$.fullScreenMode?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.darkMode?$.__("Light Mode"):$.__("Dark Mode"),expression:"darkMode ? __('Light Mode') : __('Dark Mode')"}],attrs:{"aria-label":$.__("Toggle Dark Mode")},on:{click:$.toggleDarkMode}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"dark-mode"}})],1):$._e(),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen"),expression:"__('Toggle Fullscreen')"}],attrs:{"aria-label":$.__("Toggle Fullscreen Mode")},on:{click:$.toggleFullScreen}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.fullScreenMode,expression:"!fullScreenMode"}],staticClass:"w-4 h-4",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.fullScreenMode,expression:"fullScreenMode"}],staticClass:"w-4 h-4",attrs:{name:"arrows-shrink"}})],1)],2)]),I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 mb-4",attrs:{name:"upload"}}),$._v(" "+$._s($.__("Drop File to Upload"))+" ")],1),$.uploads.length?I("uploads",{staticClass:"-mt-px",attrs:{uploads:$.uploads}}):$._e(),I("div",{class:`mode-wrap mode-${$.mode}`,on:{click:$.focus}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.mode=="write",expression:"mode == 'write'"}],ref:"writer",staticClass:"markdown-writer",on:{dragover:function(B){$.draggingFile=!0},dragleave:function(B){$.draggingFile=!1},drop:function(B){$.draggingFile=!1},keydown:$.shortcut}},[I("div",{ref:"codemirror",staticClass:"editor"}),I("div",{staticClass:"helpers"},[I("div",{staticClass:"flex w-full"},[I("div",{staticClass:"markdown-cheatsheet-helper"},[I("button",{staticClass:"text-link flex items-center",attrs:{"aria-label":$.__("Show Markdown Cheatsheet")},on:{click:function(B){$.showCheatsheet=!0}}},[I("svg-icon",{staticClass:"w-6 h-4 items-start rtl:ml-2 ltr:mr-2",attrs:{name:"markdown-icon"}}),I("span",[$._v($._s($.__("Markdown Cheatsheet")))])],1)])]),$.fullScreenMode?I("div",{staticClass:"flex items-center rtl:pl-2 ltr:pr-2"},[I("div",{staticClass:"whitespace-nowrap rtl:ml-4 ltr:mr-4"},[I("span",{domProps:{textContent:$._s($.count.words)}}),$._v(" "+$._s($.__("Words")))]),I("div",{staticClass:"whitespace-nowrap"},[I("span",{domProps:{textContent:$._s($.count.characters)}}),$._v(" "+$._s($.__("Characters")))])]):$._e()]),$.assetsEnabled&&$.draggingFile?I("div",{staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 mb-4",attrs:{name:"upload"}}),$._v(" "+$._s($.__("Drop File to Upload"))+" ")],1):$._e()]),I("div",{directives:[{name:"show",rawName:"v-show",value:$.mode=="preview",expression:"mode == 'preview'"}],staticClass:"markdown-preview prose-sm @md/markdown:prose-base",domProps:{innerHTML:$._s($.markdownPreviewText)}})])],1)}}])}),$.showAssetSelector&&!$.isReadOnly?I("stack",{attrs:{name:"markdown-asset-selector"},on:{closed:$.closeAssetSelector}},[I("selector",{attrs:{container:$.container,folder:$.folder,selected:$.selectedAssets,"restrict-container-navigation":$.restrictAssetNavigation,"restrict-folder-navigation":$.restrictAssetNavigation},on:{selected:$.assetsSelected,closed:$.closeAssetSelector}})],1):$._e(),$.showCheatsheet?I("stack",{attrs:{name:"markdownCheatSheet"},on:{closed:function(N){$.showCheatsheet=!1}}},[I("div",{staticClass:"h-full overflow-auto p-6 bg-white relative"},[I("button",{staticClass:"btn-close absolute top-0 rtl:left-0 ltr:right-0 mt-4 rtl:ml-8 ltr:mr-8",attrs:{"aria-label":$.__("Close Markdown Cheatsheet")},on:{click:function(N){$.showCheatsheet=!1}}},[$._v("×")]),I("div",{staticClass:"max-w-md mx-auto my-8 prose"},[I("h2",{domProps:{textContent:$._s($.__("Markdown Cheatsheet"))}}),I("div",{domProps:{innerHTML:$._s($.__("markdown.cheatsheet"))}})])])]):$._e(),I("vue-countable",{attrs:{text:$.data,elementId:"myId"},on:{change:$.change}})],1)])],1)},_sfc_staticRenderFns$1h=[],__component__$1i=normalizeComponent$3(_sfc_main$1h,_sfc_render$1h,_sfc_staticRenderFns$1h,!1,null,null,null,null);const MarkdownFieldtype=__component__$1i.exports,_sfc_main$1g={mixins:[Fieldtype],data(){return{data:this.value,buttons:[],autoBindChangeWatcher:!1}},mounted(){this.initButtons(),this.initSortable()},watch:{buttons:{deep:!0,handler(M){const $=M.filter(I=>I.enabled).map(I=>I.name);JSON.stringify($)!==JSON.stringify(this.data)&&(this.data=$)}},data(M){this.update(M)}},methods:{initButtons(){let M=availableButtons(),$=M.map(j=>(j.enabled=this.data.includes(j.name),j)),I=M.map(j=>j.name),N=this.data.filter(j=>!I.includes(j));N.length&&(N=N.map(j=>({name:j,text:j,html:`<span>${j.charAt(0).toUpperCase()}</span>`,enabled:!0})),$=[...$,...N]);let B=$.filter(j=>j.enabled).map(j=>j.name);if(JSON.stringify(B)!==JSON.stringify(this.data)){$=this.data.map(U=>_.findWhere($,{name:U}));let j=M.filter(U=>!this.data.includes(U.name));$=[...$,...j]}this.buttons=$},initSortable(){new draggable_bundleExports.Sortable(this.$refs.buttons,{draggable:"button",mirror:{constrainDimensions:!0,xAxis:!0,appendTo:"body"},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.buttons.splice(M.newIndex,0,this.buttons.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},toggleButton(M){const $=_.findWhere(this.buttons,{name:M});$.enabled=!$.enabled},enabled(M){return _.findWhere(this.buttons,{name:M}).enabled}}};var _sfc_render$1g=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative"},[I("div",{ref:"buttons",staticClass:"bard-fixed-toolbar dark bard-toolbar-setting"},$._l($.buttons,function(N){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.text,expression:"button.text"}],key:N.name,class:{active:$.enabled(N.name)},on:{click:function(B){return $.toggleButton(N.name)}}},[I("svg-icon",{attrs:{name:N.svg}})],1)}),0)])},_sfc_staticRenderFns$1g=[],__component__$1h=normalizeComponent$3(_sfc_main$1g,_sfc_render$1g,_sfc_staticRenderFns$1g,!1,null,null,null,null);const MarkdownButtonsSettingFieldtype=__component__$1h.exports,_sfc_main$1f={mixins:[Fieldtype,HasInputOptions],computed:{options(){return this.normalizeInputOptions(this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview)){var M=_.findWhere(this.config.options,{value:this.value});return M?M.label:this.value}}},methods:{focus(){this.$refs.radio[0].focus()}}};var _sfc_render$1f=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"radio-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},$._l($.options,function(N,B){return I("div",{key:B,staticClass:"option"},[I("label",[I("input",{ref:"radio",refInFor:!0,attrs:{type:"radio",name:$.name,disabled:$.isReadOnly},domProps:{value:N.value,checked:$.value===N.value},on:{input:function(j){return $.update(j.target.value)}}}),$._v(" "+$._s(N.label||N.value)+" ")])])}),0)},_sfc_staticRenderFns$1f=[],__component__$1g=normalizeComponent$3(_sfc_main$1f,_sfc_render$1f,_sfc_staticRenderFns$1f,!1,null,null,null,null);const RadioFieldtype=__component__$1g.exports,_sfc_main$1e={mixins:[Fieldtype$1],data(){return{val:this.getValue()}},methods:{getDefault(){if(this.config.max<this.config.min)return this.config.min;var M=this.config.min+(this.config.max-this.config.min)/2;return this.config.step&&(M=Math.floor(M/this.config.step)*this.config.step),M},getValue(){return typeof this.value=="number"?this.value:typeof this.config.default=="number"?this.config.default:this.getDefault()}},watch:{value(M){this.val=M},val(M){this.updateDebounced(M)}}};var _sfc_render$1e=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"range-fieldtype-wrapper bg-gray-200 rounded py-2 px-4 border"},[I("div",{staticClass:"flex items-center"},[$.config.prepend?I("div",{staticClass:"rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s($.__($.config.prepend))}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.val,expression:"val"}],staticClass:"flex-1 min-w-0",attrs:{type:"range",name:$.name,min:$.config.min,max:$.config.max,step:$.config.step,width:$.config.width,readonly:$.isReadOnly,disabled:$.isReadOnly,id:$.fieldId},domProps:{value:$.val},on:{__r:function(N){$.val=N.target.value}}}),I("div",{staticClass:"rounded border px-2 py-1 mx-2 bg-gray-100"},[$._v($._s($.val))]),$.config.append?I("div",{domProps:{textContent:$._s($.__($.config.append))}}):$._e()])])},_sfc_staticRenderFns$1e=[],__component__$1f=normalizeComponent$3(_sfc_main$1e,_sfc_render$1e,_sfc_staticRenderFns$1e,!1,null,null,null,null);const RangeFieldtype=__component__$1f.exports,_sfc_main$1d={mixins:[Fieldtype],data(){return{}},inject:{storeName:{default:null}},computed:{maxItems(){return this.config.max_items||1/0},columns(){return this.meta.columns},itemComponent(){return this.meta.itemComponent},itemDataUrl(){return this.meta.itemDataUrl+"?"+qs.stringify({config:this.configParameter})},filtersUrl(){return this.meta.filtersUrl+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return this.baseSelectionsUrl+"?"+qs.stringify({config:this.configParameter,...this.meta.getBaseSelectionsUrlParameters})},baseSelectionsUrl(){return this.meta.baseSelectionsUrl},configParameter(){return utf8btoa(JSON.stringify(this.config))},site(){return this.storeName?this.$store.state.publish[this.storeName].site||this.$config.get("selectedSite"):this.$config.get("selectedSite")},canEdit(){return this.meta.canEdit},canCreate(){return this.meta.canCreate},canSearch(){return this.meta.canSearch},canReorder(){return this.maxItems>1},statusIcons(){return this.meta.statusIcons},creatables(){return this.meta.creatables},formComponent(){return this.meta.formComponent},formComponentProps(){return this.meta.formComponentProps},taggable(){return this.meta.taggable},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value.map(M=>{const $=_.findWhere(this.meta.data,{id:M});return $?$.title:M})}},methods:{itemDataUpdated(M){const $=clone(this.meta);$.data=M,this.updateMeta($)},linkExistingItem(){this.$refs.input.$refs.existing.click()}}};var _sfc_render$1d=function M(){var $=this,I=$._self._c;return I("relationship-input",{ref:"input",attrs:{name:$.name,value:$.value,mode:$.config.mode,"can-edit":$.canEdit,config:$.config,"can-create":$.canCreate,"can-reorder":$.canReorder,site:$.site,data:$.meta?$.meta.data:[],"max-items":$.maxItems,"item-component":$.itemComponent,"item-data-url":$.itemDataUrl,"filters-url":$.filtersUrl,"selections-url":$.selectionsUrl,creatables:$.creatables,"form-component":$.formComponent,"form-component-props":$.formComponentProps,"status-icons":$.statusIcons,columns:$.columns,search:$.canSearch,"read-only":$.isReadOnly,taggable:$.taggable,tree:$.meta.tree,"initial-sort-column":$.meta.initialSortColumn,"initial-sort-direction":$.meta.initialSortDirection},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},input:$.update,"item-data-updated":$.itemDataUpdated}})},_sfc_staticRenderFns$1d=[],__component__$1e=normalizeComponent$3(_sfc_main$1d,_sfc_render$1d,_sfc_staticRenderFns$1d,!1,null,null,null,null);const RelationshipFieldtype=__component__$1e.exports,_sfc_main$1c={mixins:[IndexFieldtype],data(){return{showingAll:!1}},computed:{items(){var M;return this.showingAll?this.value:(M=this.value)==null?void 0:M.slice(0,2)},hasMore(){var M;return((M=this.value)==null?void 0:M.length)>2}},methods:{showAll(){this.showingAll=!0},hideExtra(){this.showingAll=!1}}};var _sfc_render$1c=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex flex-wrap"},$._l($.items,function(N,B){return I("div",{key:N.id,staticClass:"relationship-index-field-item h-5",class:{"mb-1.5":B<$.items.length-1}},[I("div",{staticClass:"flex items-center shrink"},[N.hasOwnProperty("published")&&N.published!==null?I("div",{staticClass:"little-dot h-1 w-1 rtl:ml-1 ltr:mr-1",class:[N.published?"bg-green-600":"bg-gray-400"]}):$._e(),I("a",{attrs:{href:N.edit_url,title:N.title},domProps:{textContent:$._s(N.title)}})])])}),0),$.hasMore&&!$.showingAll?I("button",{staticClass:"mt-1 text-blue text-2xs",domProps:{textContent:$._s($.__("messages.view_more_count",{count:$.value.length-2}))},on:{click:function(N){return N.stopPropagation(),$.showAll.apply(null,arguments)}}}):$._e(),$.showingAll?I("button",{staticClass:"mt-1 text-blue text-2xs",domProps:{textContent:$._s($.__("Hide"))},on:{click:function(N){return N.stopPropagation(),$.hideExtra.apply(null,arguments)}}}):$._e()])},_sfc_staticRenderFns$1c=[],__component__$1d=normalizeComponent$3(_sfc_main$1c,_sfc_render$1c,_sfc_staticRenderFns$1c,!1,null,null,null,null);const RelationshipIndexFieldtype=__component__$1d.exports,Set_vue_vue_type_style_index_0_scoped_509ab281_lang="",_sfc_main$1b={components:{SetField},mixins:[ValidatesFieldConditions,ManagesPreviewText],inject:["replicatorSets"],props:{config:{type:Object,required:!0},meta:{type:Object,required:!0},index:{type:Number,required:!0},collapsed:{type:Boolean,default:!1},values:{type:Object,required:!0},parentName:{type:String,required:!0},fieldPathPrefix:{type:String,required:!0},hasError:{type:Boolean,default:!1},sortableItemClass:{type:String},sortableHandleClass:{type:String},canAddSet:{type:Boolean,default:!0},isReadOnly:Boolean,previews:Object,showFieldPreviews:{type:Boolean}},data(){return{fieldPreviews:this.previews}},computed:{fields(){return this.config.fields},display(){return __(this.config.display)||this.values.type},instructions(){return this.config.instructions?markdown(__(this.config.instructions)):null},setGroup(){return this.replicatorSets.length<1?null:this.replicatorSets.find(M=>M.sets.filter($=>$.handle===this.config.handle).length>0)},hasMultipleFields(){return this.fields.length>1},isSetGroupVisible(){var M;return this.replicatorSets.length>1&&((M=this.setGroup)==null?void 0:M.display)},isHidden(){return this.values["#hidden"]===!0},isInvalid(){return Object.keys(this.config).length===0}},methods:{updated(M,$){this.$emit("updated",this.index,{...this.values,[M]:$})},metaUpdated(M,$){this.$emit("meta-updated",{...this.meta,[M]:$})},previewUpdated(M,$){this.$emit("previews-updated",this.fieldPreviews={...this.fieldPreviews,[M]:$})},destroy(){confirm(__("Are you sure?"))&&this.$emit("removed")},toggle(){this.isHidden?this.expand():this.collapse()},toggleEnabledState(){this.updated("enabled",!this.values.enabled)},toggleCollapsedState(){this.collapsed?this.expand():this.collapse()},collapse(){this.$emit("collapsed")},expand(){this.$emit("expanded")},duplicate(){this.$emit("duplicated")},fieldPath(M){return`${this.fieldPathPrefix}.${this.index}.${M.handle}`}}};var _sfc_render$1b=function M(){var $=this,I=$._self._c;return I("div",{class:$.sortableItemClass},[$._t("picker"),I("div",{staticClass:"replicator-set",class:{"has-error":this.hasError}},[I("div",{staticClass:"replicator-set-header",class:{"p-2":$.isReadOnly,collapsed:$.collapsed,invalid:$.isInvalid}},[$.isReadOnly?$._e():I("div",{staticClass:"item-move sortable-handle",class:$.sortableHandleClass}),I("div",{staticClass:"flex items-center flex-1 p-2 replicator-set-header-inner cursor-pointer",class:{"flex items-center":$.collapsed},on:{click:$.toggleCollapsedState}},[I("label",{staticClass:"text-xs whitespace-nowrap rtl:ml-2 ltr:mr-2 cursor-pointer"},[$.isSetGroupVisible?I("span",[$._v(" "+$._s($.setGroup.display)+" "),I("svg-icon",{staticClass:"w-4",attrs:{name:"micro/chevron-right"}})],1):$._e(),$._v(" "+$._s($.display||$.config.handle)+" ")]),$.config.instructions&&!$.collapsed?I("div",{staticClass:"flex items-center"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.config.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(config.instructions)), html:true }"}],staticClass:"text-gray-700 hover:text-gray-800 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}})],1):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.collapsed,expression:"collapsed"}],staticClass:"flex-1 min-w-0 w-1 rtl:pl-8 ltr:pr-8"},[I("div",{staticClass:"help-block mb-0 whitespace-nowrap overflow-hidden text-ellipsis",domProps:{innerHTML:$._s($.previewText)}})])]),$.isReadOnly?$._e():I("div",{staticClass:"replicator-set-controls"},[I("toggle-fieldtype",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.values.enabled?$.__("Included in output"):$.__("Hidden from output"),expression:"(values.enabled) ? __('Included in output') : __('Hidden from output')",modifiers:{top:!0}}],staticClass:"toggle-sm rtl:ml-2 ltr:mr-2",attrs:{handle:"set-enabled",value:$.values.enabled},on:{input:$.toggleEnabledState}}),I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__($.collapsed?$.__("Expand Set"):$.__("Collapse Set"))},on:{click:$.toggleCollapsedState}}),$.canAddSet?I("dropdown-item",{attrs:{text:$.__("Duplicate Set")},on:{click:$.duplicate}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Set")},on:{click:$.destroy}})],1)],1)]),I("div",{directives:[{name:"show",rawName:"v-show",value:!$.collapsed,expression:"!collapsed"}],staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N)),expression:"showField(field, fieldPath(field))"}],key:N.handle,attrs:{field:N,meta:$.meta[N.handle],value:$.values[N.handle],"parent-name":$.parentName,"set-index":$.index,"field-path":$.fieldPath(N),"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")},"replicator-preview-updated":function(B){return $.previewUpdated(N.handle,B)}}})}),1)])],2)},_sfc_staticRenderFns$1b=[],__component__$1c=normalizeComponent$3(_sfc_main$1b,_sfc_render$1b,_sfc_staticRenderFns$1b,!1,null,"509ab281",null,null);const ReplicatorSet=__component__$1c.exports,_sfc_main$1a={components:{SetPicker},props:{sets:Array,groups:Array,index:Number,last:Boolean,enabled:{type:Boolean,default:!0}},methods:{addSet(M){this.$emit("added",M,this.index)},addSetButtonClicked(){this.sets.length===1&&this.addSet(this.sets[0].handle)}}};var _sfc_render$1a=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"replicator-set-picker"},[I("set-picker",{attrs:{sets:$.groups},on:{added:$.addSet},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"replicator-set-picker-button-wrapper"},[$.enabled?I("button",{staticClass:"btn-round flex items-center justify-center",class:{"h-5 w-5":!$.last},on:{click:$.addSetButtonClicked}},[I("svg-icon",{class:{"w-3 h-3 text-gray-800 group-hover:text-black":$.last,"w-2 h-2 text-gray-700 group-hover:text-black transition duration-150":!$.last},attrs:{name:"micro/plus"}})],1):$._e()])]},proxy:!0}])})],1)},_sfc_staticRenderFns$1a=[],__component__$1b=normalizeComponent$3(_sfc_main$1a,_sfc_render$1a,_sfc_staticRenderFns$1a,!1,null,null,null,null);const AddSetButton=__component__$1b.exports,_sfc_main$19={mixins:[Fieldtype,ManagesSetMeta],components:{ReplicatorSet,SortableList,AddSetButton},inject:["storeName"],data(){return{focused:!1,collapsed:clone(this.meta.collapsed),previews:this.meta.previews,fullScreenMode:!1,provide:{storeName:this.storeName,replicatorSets:this.config.sets}}},computed:{canAddSet(){return this.isReadOnly?!1:!this.config.max_sets||this.value.length<this.config.max_sets},setConfigs(){return reduce(this.groupConfigs,(M,$)=>M.concat($.sets),[])},groupConfigs(){return this.config.sets},sortableItemClass(){return`${this.name}-sortable-item`},sortableHandleClass(){return`${this.name}-sortable-handle`},storeState(){return this.$store.state.publish[this.storeName]||{}},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return`${__(this.config.display)}: ${__n(":count set|:count sets",this.value.length)}`}},methods:{setConfig(M){return _.find(this.setConfigs,{handle:M})||{}},updated(M,$){this.update([...this.value.slice(0,M),$,...this.value.slice(M+1)])},removed(M,$){this.removeSetMeta(M._id),this.update([...this.value.slice(0,$),...this.value.slice($+1)])},sorted(M){this.update(M)},addSet(M,$){const I={...this.meta.defaults[M],_id:uniqid$1(),type:M,enabled:!0};this.updateSetPreviews(I._id,{}),this.updateSetMeta(I._id,this.meta.new[M]),this.update([...this.value.slice(0,$),I,...this.value.slice($)]),this.expandSet(I._id)},duplicateSet(M){const $=this.value.findIndex(B=>B._id===M),N={...this.value[$],_id:uniqid$1()};this.updateSetPreviews(N._id,{}),this.updateSetMeta(N._id,this.meta.existing[M]),this.update([...this.value.slice(0,$+1),N,...this.value.slice($+1)]),this.expandSet(N._id)},updateSetPreviews(M,$){this.previews[M]=$},collapseSet(M){this.collapsed.includes(M)||this.collapsed.push(M)},expandSet(M){if(this.config.collapse==="accordion"){this.collapsed=this.value.map(I=>I._id).filter(I=>I!==M);return}if(this.collapsed.includes(M)){var $=this.collapsed.indexOf(M);this.collapsed.splice($,1)}},collapseAll(){this.collapsed=_.pluck(this.value,"_id")},expandAll(){this.collapsed=[]},blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},setHasError(M){const $=`${this.fieldPathPrefix||this.handle}.${M}.`;return Object.keys(this.storeState.errors??[]).some(I=>I.startsWith($))}},mounted(){this.config.collapse&&this.collapseAll()},watch:{focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}},collapsed(M){this.updateMeta({...this.meta,collapsed:clone(M)})},previews:{deep:!0,handler(M){if(JSON.stringify(this.meta.previews)===JSON.stringify(M))return;const $=this.meta;$.previews=M,this.updateMeta($)}}}};var _sfc_render$19=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"replicator-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("div",{class:{"publish-fields":$.fullScreenMode}},[I("div",{class:{wrapperClasses:$.fullScreenMode}},[I("div",{staticClass:"replicator-fieldtype-container",class:{"replicator-fullscreen bg-gray-200":$.fullScreenMode}},[$.fullScreenMode?I("header",{staticClass:"bg-white fixed top-0 inset-x-0 border-b p-3 rtl:pr-4 ltr:pl-4 flex items-center justify-between shadow z-max"},[I("h2",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.config.display))}}),I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"btn-group"},[$.config.collapse!=="accordion"&&$.value.length>0?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Expand Sets"),expression:"__('Expand Sets')"}],staticClass:"btn btn-icon flex items-center",on:{click:$.expandAll}},[I("svg-icon",{staticClass:"h-3.5 px-1 text-gray-750",attrs:{name:"arrows-horizontal-expand"}})],1):$._e(),$.config.collapse!=="accordion"&&$.value.length>0?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Collapse Sets"),expression:"__('Collapse Sets')"}],staticClass:"btn btn-icon flex items-center",on:{click:$.collapseAll}},[I("svg-icon",{staticClass:"h-3.5 px-1 text-gray-750",attrs:{name:"arrows-horizontal-collapse"}})],1):$._e()]),I("button",{staticClass:"btn-close rtl:mr-2 ltr:ml-2",attrs:{"aria-label":$.__("Exit Fullscreen Mode")},on:{click:function(N){$.fullScreenMode=!1}}},[$._v("×")])])]):$._e(),I("section",{class:{"mt-12 p-4 bg-gray-200":$.fullScreenMode}},[$.fullScreenMode?$._e():I("div",{staticClass:"flex justify-end",class:{"absolute top-3 rtl:left-3 ltr:right-3 @md:right-6":!$.config.hide_display}},[I("div",{staticClass:"btn-group"},[$.config.collapse!=="accordion"&&$.value.length>0?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Expand Sets"),expression:"__('Expand Sets')"}],staticClass:"btn btn-icon flex items-center",on:{click:$.expandAll}},[I("svg-icon",{staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"arrows-horizontal-expand"}})],1):$._e(),$.config.collapse!=="accordion"&&$.value.length>0?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Collapse Sets"),expression:"__('Collapse Sets')"}],staticClass:"btn btn-icon flex items-center",on:{click:$.collapseAll}},[I("svg-icon",{staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"arrows-horizontal-collapse"}})],1):$._e(),$.config.fullscreen?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Toggle Fullscreen Mode"),expression:"__('Toggle Fullscreen Mode')"}],staticClass:"btn btn-icon flex items-center",on:{click:function(N){$.fullScreenMode=!$.fullScreenMode}}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.fullScreenMode,expression:"! fullScreenMode"}],staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.fullScreenMode,expression:"fullScreenMode"}],staticClass:"h-3.5 px-0.5 text-gray-750",attrs:{name:"shrink-all"}})],1):$._e()])]),I("sortable-list",{attrs:{value:$.value,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body","constrain-dimensions":""},on:{input:function(N){return $.sorted(N)},dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"replicator-set-container"},$._l($.value,function(N,B){return I("replicator-set",{key:N._id,attrs:{index:B,values:N,meta:$.meta.existing[N._id],config:$.setConfig(N.type),"parent-name":$.name,"sortable-item-class":$.sortableItemClass,"sortable-handle-class":$.sortableHandleClass,"is-read-only":$.isReadOnly,collapsed:$.collapsed.includes(N._id),"field-path-prefix":$.fieldPathPrefix||$.handle,"has-error":$.setHasError(B),previews:$.previews[N._id],"show-field-previews":$.config.previews,"can-add-set":$.canAddSet},on:{collapsed:function(j){return $.collapseSet(N._id)},expanded:function(j){return $.expandSet(N._id)},duplicated:function(j){return $.duplicateSet(N._id)},updated:$.updated,"meta-updated":function(j){return $.updateSetMeta(N._id,j)},removed:function(j){return $.removed(N,B)},focus:function(j){$.focused=!0},blur:$.blurred,"previews-updated":function(j){return $.updateSetPreviews(N._id,j)}},scopedSlots:$._u([{key:"picker",fn:function(){return[I("add-set-button",{staticClass:"between",attrs:{groups:$.groupConfigs,sets:$.setConfigs,index:B,enabled:$.canAddSet},on:{added:$.addSet}})]},proxy:!0}],null,!0)})}),1)}}])}),$.canAddSet?I("add-set-button",{staticClass:"mt-3",attrs:{last:!0,groups:$.groupConfigs,sets:$.setConfigs,index:$.value.length},on:{added:$.addSet}}):$._e()],1)])])])])},_sfc_staticRenderFns$19=[],__component__$1a=normalizeComponent$3(_sfc_main$19,_sfc_render$19,_sfc_staticRenderFns$19,!1,null,null,null,null);const Replicator=__component__$1a.exports,_sfc_main$18={mixins:[IndexFieldtype]};var _sfc_render$18=function M(){var $=this,I=$._self._c;return $.value?I("div",[$._v(" "+$._s($.__n(":count set|:count sets",$.value))+" ")]):$._e()},_sfc_staticRenderFns$18=[],__component__$19=normalizeComponent$3(_sfc_main$18,_sfc_render$18,_sfc_staticRenderFns$18,!1,null,null,null,null);const ReplicatorIndex=__component__$19.exports,_sfc_main$17={mixins:[Fieldtype],render(){return""}},_sfc_render$17=null,_sfc_staticRenderFns$17=null;var __component__$18=normalizeComponent$3(_sfc_main$17,_sfc_render$17,_sfc_staticRenderFns$17,!1,null,null,null,null);const SectionFieldtype=__component__$18.exports,SelectFieldtype_vue_vue_type_style_index_0_scoped_288ded3d_lang="",_sfc_main$16={mixins:[Fieldtype,HasInputOptions,PositionsSelectOptions],components:{SortableList},computed:{selectedOptions(){let M=this.value||[];return(typeof M=="string"||typeof M=="number")&&(M=[M]),M.map($=>_.findWhere(this.options,{value:$})||{value:$,label:$})},options(){return this.normalizeInputOptions(this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.selectedOptions.map(M=>M.label).join(", ")},resetOnOptionsChange(){return this.config.reset_on_options_change!==!0?!1:(M,$,I)=>{let N=M.map(B=>B.value);return!I.some(B=>N.includes(B.value))}},limitReached(){return this.config.max_items?this.currentLength>=this.config.max_items:!1},limitExceeded(){return this.config.max_items?this.currentLength>this.config.max_items:!1},currentLength(){return this.value?typeof this.value=="string"?1:this.value.length:0},limitIndicatorColor(){return this.limitExceeded?"text-red-500":this.limitReached?"text-green-600":"text-gray"}},methods:{focus(){this.$refs.input.focus()},vueSelectUpdated(M){this.config.multiple?this.update(M.map($=>$.value)):M?this.update(M.value):this.update(null)}}};var _sfc_render$16=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[I("v-select",{ref:"input",staticClass:"flex-1",attrs:{"input-id":$.fieldId,"append-to-body":"","calculate-position":$.positionOptions,name:$.name,clearable:$.config.clearable,disabled:$.config.disabled||$.isReadOnly||$.config.multiple&&$.limitReached,options:$.options,placeholder:$.__($.config.placeholder),searchable:$.config.searchable||$.config.taggable,taggable:$.config.taggable,"push-tags":$.config.push_tags,multiple:$.config.multiple,"reset-on-options-change":$.resetOnOptionsChange,"close-on-select":!0,value:$.selectedOptions,"create-option":N=>({value:N,label:N})},on:{input:$.vueSelectUpdated,focus:function(N){return $.$emit("focus")},"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([$.config.multiple?{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0}:null,$.config.multiple?{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.__($.config.placeholder),type:"search"}},"input",B,!1),N))]}}:null,{key:"option",fn:function({label:N}){return[$.config.label_html?I("div",{domProps:{innerHTML:$._s(N)}}):void 0]}},{key:"selected-option",fn:function({label:N}){return[$.config.label_html?I("div",{domProps:{innerHTML:$._s(N)}}):void 0]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},$.config.multiple?{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.value,distance:5,mirror:!1},on:{input:$.update}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.selectedOptions,function(B){return I("span",{key:B.value,staticClass:"vs__selected mt-2 sortable-item"},[$.config.label_html?I("div",{domProps:{innerHTML:$._s(B.label)}}):[$._v($._s($.__(B.label)))],$.readOnly?I("button",{staticClass:"vs__deselect",attrs:{type:"button"}},[I("span",{staticClass:"text-gray-500"},[$._v("×")])]):I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Deselect option")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])],2)}),0)])]}}:null],null,!0)}),$.config.max_items?I("div",{staticClass:"text-xs rtl:mr-2 ltr:ml-2 mt-3",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.config.max_items)}})]):$._e()],1)},_sfc_staticRenderFns$16=[],__component__$17=normalizeComponent$3(_sfc_main$16,_sfc_render$16,_sfc_staticRenderFns$16,!1,null,"288ded3d",null,null);const SelectFieldtype=__component__$17.exports,_sfc_main$15={props:{tab:{type:Object,required:!0},currentTab:{type:String,required:!0},showInstructions:{type:Boolean,default:!1},editText:{type:String}},data(){return{handle:this.tab.handle,display:this.tab.display,instructions:this.tab.instructions,icon:this.tab.icon,editing:!1,handleSyncedWithDisplay:!1}},created(){(!this.handle||this.handle=="new_tab"||this.handle=="new_set_group")&&(this.handleSyncedWithDisplay=!0)},computed:{isActive(){return this.currentTab===this.tab._id},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")}},methods:{edit(){this.editing=!0},editConfirmed(){this.handle||(this.handle=this.$slugify(this.display,"_")),this.$emit("updated",{...this.tab,handle:this.handle,display:this.display,instructions:this.instructions,icon:this.icon}),this.editing=!1},editCancelled(){this.editing=!1,this.handle=this.tab.handle,this.display=this.tab.display},fieldUpdated(M,$){M==="display"&&this.handleSyncedWithDisplay&&(this.handle=this.$slugify($,"_")),M==="handle"&&(this.handleSyncedWithDisplay=!1),this[M]=$},remove(){this.$emit("removed")},iconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:null}}};var _sfc_render$15=function M(){var $=this,I=$._self._c;return I("button",{staticClass:"blueprint-tab tab-button",class:{active:$.isActive},attrs:{role:"tab","aria-controls":`tab-panel-${$.tab._id}`,"aria-selected":$.isActive,id:`tab-${$.tab._id}`,tabindex:$.isActive?0:-1},on:{click:function(N){return $.$emit("selected")},mouseenter:function(N){return $.$emit("mouseenter")}}},[$.tab.icon?I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-1 ltr:mr-1",attrs:{name:$.iconName($.tab.icon),directory:$.iconBaseDirectory}}):$._e(),$._v(" "+$._s($.__($.tab.display))+" "),$.isActive?I("dropdown-list",{ref:"dropdown",staticClass:"rtl:text-right ltr:text-left",attrs:{placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"rtl:mr-2 ltr:ml-2 hover:text-gray-900 active:text-gray-900",attrs:{"aria-label":$.__("Open Dropdown")}},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!1,2518280138)},[I("dropdown-item",{domProps:{textContent:$._s($.__("Edit"))},on:{click:$.edit}}),I("dropdown-item",{staticClass:"warning",domProps:{textContent:$._s($.__("Delete"))},on:{click:$.remove}})],1):$._e(),$.editing?I("confirmation-modal",{attrs:{title:$.editText},on:{opened:function(N){return $.$refs.title.focus()},confirm:$.editConfirmed,cancel:$.editCancelled}},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Title"))}}),I("input",{ref:"title",staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.display},on:{input:function(N){return $.fieldUpdated("display",N.target.value)}}})]),I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Handle"))}}),I("input",{staticClass:"input-text font-mono text-sm",attrs:{type:"text"},domProps:{value:$.handle},on:{input:function(N){return $.fieldUpdated("handle",N.target.value)}}})]),$.showInstructions?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Instructions"))}}),I("input",{staticClass:"input-text text-sm",attrs:{type:"text"},domProps:{value:$.instructions},on:{input:function(N){return $.fieldUpdated("instructions",N.target.value)}}})]):$._e(),$.showInstructions?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Icon"))}}),I("publish-field-meta",{attrs:{config:{handle:"icon",type:"icon",directory:this.iconBaseDirectory,folder:this.iconSubFolder},"initial-value":$.icon},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return[j?$._e():I("icon-fieldtype",{attrs:{handle:"icon",meta:N,value:B},on:{input:function(U){return $.fieldUpdated("icon",U)}}})]}}],null,!1,1777112979)})],1):$._e()])]):$._e()],1)},_sfc_staticRenderFns$15=[],__component__$16=normalizeComponent$3(_sfc_main$15,_sfc_render$15,_sfc_staticRenderFns$15,!1,null,null,null,null);const Tab=__component__$16.exports,_sfc_main$14={mixins:[CanDefineLocalizable],inject:{suggestableConditionFieldsProvider:{default:null}},components:{Fields},props:{tabId:{type:String},section:{type:Object,required:!0},showHandleField:{type:Boolean,default:!1},editText:{type:String}},data(){return{editingSection:!1,editingField:null,handleSyncedWithDisplay:!1}},computed:{suggestableConditionFields(){var M;return((M=this.suggestableConditionFieldsProvider)==null?void 0:M.suggestableFields(this))||[]},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")}},watch:{section:{deep:!0,handler(M){this.$emit("updated",M)}},"editingSection.display":function(M){this.editingSection&&this.handleSyncedWithDisplay&&(this.editingSection.handle=this.$slugify(M,"_"))}},created(){(!this.section.handle||this.section.handle=="new_section"||this.section.handle=="new_set")&&(this.handleSyncedWithDisplay=!0)},methods:{fieldLinked(M){this.section.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},fieldCreated(M){this.section.fields.push(M)},fieldUpdated(M,$){this.section.fields.splice(M,1,$)},deleteField(M){this.section.fields.splice(M,1)},edit(){this.editingSection={display:this.section.display,handle:this.section.handle,instructions:this.section.instructions,icon:this.section.icon}},editConfirmed(){this.editingSection.handle||(this.editingSection.handle=this.$slugify(this.editingSection.display,"_")),this.$emit("updated",{...this.section,...this.editingSection}),this.editingSection=!1},editCancelled(){this.editingSection=!1},iconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"folder-generic"}}};var _sfc_render$14=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section @container"},[I("div",{staticClass:"blueprint-section-card card p-0 h-full flex rounded-t flex-col"},[I("div",{staticClass:"bg-gray-200 border-b text-sm flex rounded-t"},[I("div",{staticClass:"blueprint-drag-handle blueprint-section-drag-handle w-4 ltr:border-r rtl:border-l"}),I("div",{staticClass:"p-2 flex-1 flex items-center"},[I("a",{staticClass:"flex items-center flex-1 group",on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 text-gray-700 group-hover:text-blue-500",attrs:{name:$.iconName($.section.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s($.__($.section.display))}})],1),I("button",{staticClass:"flex items-center text-gray-700 hover:text-gray-950 rtl:ml-3 ltr:mr-3",on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"pencil"}})],1),I("button",{staticClass:"flex items-center text-gray-700 hover:text-gray-950",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"micro/trash"}})],1)])]),$.editingSection?I("confirmation-modal",{attrs:{title:$.editText},on:{opened:function(N){return $.$refs.displayInput.select()},confirm:$.editConfirmed,cancel:$.editCancelled}},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Display"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.display,expression:"editingSection.display"}],ref:"displayInput",staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.editingSection.display},on:{input:function(N){N.target.composing||$.$set($.editingSection,"display",N.target.value)}}})]),$.showHandleField?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Handle"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.handle,expression:"editingSection.handle"}],staticClass:"input-text font-mono text-sm",attrs:{type:"text"},domProps:{value:$.editingSection.handle},on:{input:[function(N){N.target.composing||$.$set($.editingSection,"handle",N.target.value)},function(N){$.handleSyncedWithDisplay=!1}]}})]):$._e(),I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Instructions"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.instructions,expression:"editingSection.instructions"}],staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.editingSection.instructions},on:{input:function(N){N.target.composing||$.$set($.editingSection,"instructions",N.target.value)}}})]),$.showHandleField?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Icon"))}}),I("publish-field-meta",{attrs:{config:{handle:"icon",type:"icon",directory:this.iconBaseDirectory,folder:this.iconSubFolder},"initial-value":$.editingSection.icon},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return[j?$._e():I("icon-fieldtype",{attrs:{handle:"icon",meta:N,value:B},on:{input:function(U){$.editingSection.icon=U}}})]}}],null,!1,2591874917)})],1):$._e()])]):$._e(),I("fields",{staticClass:"p-4",attrs:{"tab-id":$.tabId,"section-id":$.section._id,fields:$.section.fields,"editing-field":$.editingField,"suggestable-condition-fields":$.suggestableConditionFields,"can-define-localizable":$.canDefineLocalizable},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-deleted":$.deleteField,"field-linked":$.fieldLinked,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}},scopedSlots:$._u([{key:"empty-state",fn:function(){return[I("div",{staticClass:"text-2xs text-gray-600 text-center border border-dashed rounded mb-2 p-2",domProps:{textContent:$._s($.__("Add or drag fields here"))}})]},proxy:!0}])})],1)])},_sfc_staticRenderFns$14=[],__component__$15=normalizeComponent$3(_sfc_main$14,_sfc_render$14,_sfc_staticRenderFns$14,!1,null,null,null,null);const BlueprintSection=__component__$15.exports,_sfc_main$13={mixins:[CanDefineLocalizable],components:{BlueprintSection},props:{tabId:{type:String},initialSections:{type:Array,required:!0},addSectionText:{type:String,default:()=>__("Add Section")},editSectionText:{type:String,default:()=>__("Edit Section")},newSectionText:{type:String,default:()=>__("New Section")},singleSection:{type:Boolean,default:!1},requireSection:{type:Boolean,default:!0},showSectionHandleField:{type:Boolean,default:!1}},data(){return{sections:this.initialSections}},watch:{sections(M){this.$emit("updated",M)}},methods:{addSection(){const M={_id:uniqid$1(),display:this.newSectionText,instructions:null,icon:null,handle:this.$slugify(this.newSectionText,"_"),fields:[]};return this.sections.push(M),M},addAndEditSection(){const M=this.addSection();this.$nextTick(()=>{this.$refs.section.find($=>$.section._id===M._id).edit()})},deleteSection(M){this.sections.splice(M,1),this.ensureSection()},updateSection(M,$){this.sections.splice(M,1,$)},ensureSection(){this.requireSection&&this.sections.length===0&&this.addSection()}}};var _sfc_render$13=function M(){var $=this,I=$._self._c;return I("div",[I("div",{ref:"sections",staticClass:"blueprint-sections flex flex-wrap -mx-2 outline-none",attrs:{"data-tab":$.tabId}},[$._l($.sections,function(N,B){return I("blueprint-section",{key:N._id,ref:"section",refInFor:!0,attrs:{section:N,"can-define-localizable":$.canDefineLocalizable,"tab-id":$.tabId,"show-handle-field":$.showSectionHandleField,"edit-text":$.editSectionText},on:{updated:function(j){return $.updateSection(B,j)},deleted:function(j){return $.deleteSection(B)}}})}),I("div",{staticClass:"blueprint-add-section-container w-full"},[I("button",{staticClass:"blueprint-add-section-button outline-none",on:{click:$.addAndEditSection}},[I("div",{staticClass:"text-center flex items-center leading-none"},[I("svg-icon",{staticClass:"h-3 w-3 rtl:ml-2 ltr:mr-2",attrs:{name:"micro/plus"}}),I("div",{domProps:{textContent:$._s($.addSectionText)}})],1),I("div",{staticClass:"blueprint-section-draggable-zone outline-none",attrs:{"data-tab":$.tabId}})])])],2)])},_sfc_staticRenderFns$13=[],__component__$14=normalizeComponent$3(_sfc_main$13,_sfc_render$13,_sfc_staticRenderFns$13,!1,null,null,null,null);const Sections=__component__$14.exports,_sfc_main$12={components:{Sections},props:{tab:{type:Object},showSectionHandleField:{type:Boolean,default:!1},addSectionText:{type:String},editSectionText:{type:String},newSectionText:{type:String}},methods:{addSection(){return this.$refs.sections.addSection()},sectionsUpdated(M){let $={...this.tab,sections:M};this.$emit("updated",$)}}};var _sfc_render$12=function M(){var $=this,I=$._self._c;return I("div",{attrs:{role:"tabpanel","aria-labelledby":`tab-${$.tab._id}`,id:`tab-panel-${$.tab._id}`}},[I("sections",{ref:"sections",attrs:{"tab-id":$.tab._id,"initial-sections":$.tab.sections,"new-section-text":$.newSectionText,"add-section-text":$.addSectionText,"edit-section-text":$.editSectionText,"show-section-handle-field":$.showSectionHandleField},on:{updated:function(N){return $.sectionsUpdated(N)}}})],1)},_sfc_staticRenderFns$12=[],__component__$13=normalizeComponent$3(_sfc_main$12,_sfc_render$12,_sfc_staticRenderFns$12,!1,null,null,null,null);const TabContent=__component__$13.exports,_sfc_main$11={components:{Tab,TabContent},props:{initialTabs:{type:Array,required:!0},addSectionText:{type:String},editSectionText:{type:String},newSectionText:{type:String},addTabText:{type:String,default:()=>__("Add Tab")},editTabText:{type:String,default:()=>__("Edit Tab")},newTabText:{type:String,default:()=>__("New Tab")},singleTab:{type:Boolean,default:!1},requireSection:{type:Boolean,default:!0},showTabInstructionsField:{type:Boolean,default:!1},showSectionHandleField:{type:Boolean,default:!1},errors:{type:Array}},data(){return{tabs:this.initialTabs,currentTab:this.initialTabs.length?this.initialTabs[0]._id:null,lastInteractedTab:null,hiddenTabs:[],tabsAreScrolled:!1,canScrollLeft:!1,canScrollRight:!1,sortableTabs:null,sortableSections:null,sortableFields:null}},watch:{tabs(M){this.$emit("updated",M),this.makeSortable()}},mounted(){this.ensureTab(),this.makeSortable()},destroyed(){this.sortableTabs&&this.sortableTabs.destroy(),this.sortableSections&&this.sortableSections.destroy(),this.sortableFields&&this.sortableFields.destroy()},methods:{ensureTab(){this.requireSection&&this.tabs.length===0&&this.addTab()},makeSortable(){this.singleTab||this.makeTabsSortable(),this.makeSectionsSortable(),this.makeFieldsSortable()},makeTabsSortable(){this.sortableTabs&&this.sortableTabs.destroy(),this.sortableTabs=new draggable_bundleExports.Sortable(this.$refs.tabs,{draggable:".blueprint-tab",mirror:{constrainDimensions:!0},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.tabs.splice(M.newIndex,0,this.tabs.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},makeSectionsSortable(){this.sortableSections&&this.sortableSections.destroy(),this.sortableSections=new draggable_bundleExports.Sortable(this.$el.querySelectorAll(".blueprint-sections"),{draggable:".blueprint-section",handle:".blueprint-section-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"}}).on("drag:start",M=>this.lastInteractedTab=this.currentTab).on("drag:stop",M=>this.lastInteractedTab=null).on("sortable:sort",M=>this.lastInteractedTab=this.currentTab).on("sortable:stop",M=>this.sectionHasBeenDropped(M))},makeFieldsSortable(){this.sortableFields&&this.sortableFields.destroy(),this.sortableFields=new draggable_bundleExports.Sortable(this.$el.querySelectorAll(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"}}).on("drag:start",M=>this.lastInteractedTab=this.currentTab).on("drag:stop",M=>this.lastInteractedTab=null).on("sortable:stop",M=>this.fieldHasBeenDropped(M))},sectionHasBeenDropped(M){const $=M.oldContainer.dataset.tab,I=M.oldIndex;let N=M.newContainer.dataset.tab,B=M.newIndex;if(this.lastInteractedTab!==this.currentTab&&this.currentTab!==N&&(N=this.currentTab,B=0),$!==N){const U=this.tabs.find(K=>K._id===$),q=this.tabs.find(K=>K._id===N),Y=U.sections.splice(I,1)[0];q.sections.splice(B,0,Y),this.updateTab($,U),this.updateTab(N,q)}else{const U=this.tabs.find(q=>q._id===$);U.sections.splice(B,0,U.sections.splice(I,1)[0]),this.updateTab($,U)}},fieldHasBeenDropped(M){const $=M.oldContainer.dataset.tab;let I=M.newContainer.dataset.tab,N=this.tabs.find(K=>K._id===I),B=M.newIndex,j;M.newContainer.parentElement.classList.contains("blueprint-add-section-button")?j=this.$refs.tabContent.find(K=>K.tab._id===I).addSection():j=N.sections.find(K=>K._id===M.newContainer.dataset.section),this.lastInteractedTab!==this.currentTab&&this.currentTab!==I&&(I=this.currentTab,N=this.tabs.find(K=>K._id===I),j=N.sections[0],B=0);const U=this.tabs.find(K=>K._id===$),Y=U.sections.find(K=>K._id===M.oldContainer.dataset.section).fields.splice(M.oldIndex,1)[0];j.fields.splice(B,0,Y),this.updateTab($,U),this.updateTab(I,N),this.$nextTick(()=>this.makeFieldsSortable())},updateTab(M,$){const I=this.tabs.findIndex(N=>N._id===M);this.tabs.splice(I,1,$)},selectTab(M){this.currentTab=M},mouseEnteredTab(M){this.lastInteractedTab&&this.selectTab(M)},addTab(){const M=uniqid$1();this.tabs.push({_id:M,display:this.newTabText,handle:this.$slugify(this.newTabText,"_"),instructions:null,icon:null,sections:[]}),this.selectTab(M),this.$nextTick(()=>this.$refs.tabContent.find($=>$.tab._id===M).addSection())},addAndEditTab(){this.addTab(),this.$nextTick(()=>this.$refs.tab.find(M=>M.tab._id===this.currentTab).edit())},removeTab(M){this.tabs=this.tabs.filter($=>$._id!==M),this.selectTab(this.tabs.length?this.tabs[0]._id:null),this.ensureTab()}}};var _sfc_render$11=function M(){var $=this,I=$._self._c;return I("div",[!$.singleTab&&$.tabs.length>0?I("div",{staticClass:"tabs-container relative"},[I("div",{ref:"tabs",staticClass:"tabs flex-1 flex space-x-3 overflow-auto rtl:pl-6 ltr:pr-6",attrs:{role:"tablist"}},[$._l($.tabs,function(N){return I("tab",{key:N._id,ref:"tab",refInFor:!0,attrs:{tab:N,"current-tab":$.currentTab,"show-instructions":$.showTabInstructionsField,"edit-text":$.editTabText},on:{selected:function(B){return $.selectTab(N._id)},removed:function(B){return $.removeTab(N._id)},updated:function(B){return $.updateTab(N._id,B)},mouseenter:function(B){return $.mouseEnteredTab(N._id)}}})}),$.canScrollLeft?I("div",{staticClass:"fade-left"}):$._e()],2),I("div",{staticClass:"fade-right rtl:left-10 ltr:right-10"}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.addTabText,expression:"addTabText"}],staticClass:"btn-round rtl:mr-2 ltr:ml-2 flex items-center justify-center relative top-1",on:{click:$.addAndEditTab}},[I("svg-icon",{staticClass:"w-3 h-3",attrs:{name:"add"}})],1)]):$._e(),!$.singleTab&&$.tabs.length===0?I("button",{staticClass:"btn",domProps:{textContent:$._s($.addTabText)},on:{click:$.addAndEditTab}}):$._e(),$.errors?I("div",{staticClass:"-mt-2"},$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e(),$._l($.tabs,function(N){return I("tab-content",{directives:[{name:"show",rawName:"v-show",value:$.currentTab===N._id,expression:"currentTab === tab._id"}],key:N._id,ref:"tabContent",refInFor:!0,attrs:{tab:N,"show-section-handle-field":$.showSectionHandleField,"new-section-text":$.newSectionText,"edit-section-text":$.editSectionText,"add-section-text":$.addSectionText},on:{updated:function(B){return $.updateTab(N._id,B)}}})})],2)},_sfc_staticRenderFns$11=[],__component__$12=normalizeComponent$3(_sfc_main$11,_sfc_render$11,_sfc_staticRenderFns$11,!1,null,null,null,null);const Tabs=__component__$12.exports,_sfc_main$10={mixins:[Fieldtype,SuggestsConditionalFields],components:{Tabs},data(){return{tabs:this.value}},methods:{tabsUpdated(M){this.update(M)},getSectionFieldsForConditionSuggestions(M=null){return M.section.fields}}};var _sfc_render$10=function M(){var $=this,I=$._self._c;return I("div",[I("tabs",{attrs:{"initial-tabs":$.tabs,"require-section":$.config.require_set,"can-define-localizable":!1,"add-tab-text":$.__("Add Set Group"),"edit-tab-text":$.__("Edit Set Group"),"new-tab-text":$.__("New Set Group"),"add-section-text":$.__("Add Set"),"edit-section-text":$.__("Edit Set"),"new-section-text":$.__("New Set"),"show-tab-instructions-field":"","show-section-handle-field":""},on:{updated:$.tabsUpdated}})],1)},_sfc_staticRenderFns$10=[],__component__$11=normalizeComponent$3(_sfc_main$10,_sfc_render$10,_sfc_staticRenderFns$10,!1,null,null,null,null);const SetsFieldtype=__component__$11.exports,_sfc_main$$={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data:function(){return{data:this.arrayToSortable(this.value||[]),deletingRow:!1,deletingColumn:!1,fullScreenMode:!1}},watch:{data:{deep:!0,handler(M){this.updateDebounced(this.sortableToArray(M))}},value(M,$){JSON.stringify(M)!=JSON.stringify($)&&JSON.stringify(M)!=JSON.stringify(this.sortableToArray(this.data))&&(this.data=this.arrayToSortable(M))}},computed:{maxRows(){return this.config.max_rows||null},maxColumns(){return this.config.max_columns||null},rowCount(){return this.data.length},columnCount(){return data_get(this,"data.0.value.cells.length",0)},atRowMax(){return this.maxRows?this.rowCount>=this.maxRows:!1},atColumnMax(){return this.maxColumns?this.columnCount>=this.maxColumns:!1},canAddRows(){return!this.isReadOnly},canDeleteRows(){return!this.isReadOnly},canAddColumns(){return!this.isReadOnly&&this.rowCount>0},canDeleteColumns(){return!this.isReadOnly&&this.columnCount>1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return _(this.data).map(M=>M.value.cells.filter($=>!!$).join(", ")).filter(M=>!!M).join(", ")}},methods:{addRow(){this.data.push(this.newSortableValue({cells:new Array(this.columnCount||1)}))},addColumn(){for(var M=this.data.length,$=0;$<M;$++)this.data[$].value.cells.push("")},confirmDeleteRow(M){this.deletingRow=M},confirmDeleteColumn(M){this.deletingColumn=M},deleteRow(M){this.deletingRow=!1,this.data.splice(M,1)},deleteColumn(M){this.deletingColumn=!1;for(var $=this.data.length,I=0;I<$;I++)this.data[I].value.cells.splice(M,1)},deleteCancelled(){this.deletingRow=!1,this.deletingColumn=!1}}};var _sfc_render$$=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"table-fullscreen",disabled:!$.fullScreenMode,"target-class":"table-fieldtype"}},[I("div",{staticClass:"table-fieldtype-container",class:{"table-fullscreen bg-white":$.fullScreenMode}},[$.fullScreenMode?I("header",{staticClass:"bg-gray-200 border-b py-3 rtl:pr-3 ltr:pl-3 flex items-center justify-between relative"},[I("h2",{domProps:{textContent:$._s($.__($.config.display))}}),I("button",{staticClass:"btn-close absolute top-2 rtl:left-5 ltr:right-5",attrs:{"aria-label":$.__("Exit Fullscreen Mode")},on:{click:function(N){$.fullScreenMode=!1}}},[$._v("×")])]):$._e(),I("section",{class:{"p-4":$.fullScreenMode}},[$.rowCount?I("table",{staticClass:"table-fieldtype-table"},[I("thead",[I("tr",[$.isReadOnly?$._e():I("th",{staticClass:"grid-drag-handle-header"}),$._l($.columnCount,function(N,B){return I("th",{key:B},[I("div",{staticClass:"flex items-center justify-between h-6"},[I("span",{staticClass:"column-count"},[$._v($._s(B+1))]),I("a",{directives:[{name:"show",rawName:"v-show",value:$.canDeleteColumns,expression:"canDeleteColumns"}],staticClass:"opacity-25 text-lg antialiased hover:opacity-75",attrs:{"aria-label":$.__("Delete Column")},on:{click:function(j){return $.confirmDeleteColumn(B)}}},[$._v(" × ")])])])}),I("th",{staticClass:"row-controls rtl:pl-0 ltr:pr-0"},[I("button",{staticClass:"flex items-center w-full h-full justify-center text-gray-600 hover:text-gray-800",on:{click:function(N){$.fullScreenMode=!$.fullScreenMode}}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.fullScreenMode,expression:"! fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"expand-bold"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.fullScreenMode,expression:"fullScreenMode"}],staticClass:"h-3.5 w-3.5",attrs:{name:"shrink-all"}})],1)])],2)]),I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"table-drag-handle",mirror:!1},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"table-drag-handle"}),$._l(N.value.cells,function(j,U){return I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value.cells[U],expression:"row.value.cells[cellIndex]"}],staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value.cells[U]},on:{focus:function(q){return $.$emit("focus")},blur:function(q){return $.$emit("blur")},input:function(q){q.target.composing||$.$set(N.value.cells,U,q.target.value)}}})])}),$.canDeleteRows?I("td",{staticClass:"row-controls"},[I("button",{staticClass:"inline opacity-25 text-lg antialiased hover:opacity-75",attrs:{"aria-label":$.__("Delete Row")},on:{click:function(j){return $.confirmDeleteRow(B)}}},[$._v("×")])]):$._e()],2)}),0)])],1):$._e(),$.canAddRows?I("button",{staticClass:"btn",attrs:{disabled:$.atRowMax},on:{click:$.addRow}},[$._v(" "+$._s($.__("Add Row"))+" ")]):$._e(),$.canAddColumns?I("button",{staticClass:"btn rtl:mr-2 ltr:ml-2",attrs:{disabled:$.atColumnMax},on:{click:$.addColumn}},[$._v(" "+$._s($.__("Add Column"))+" ")]):$._e()]),$.deletingRow!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Row"),bodyText:$.__("Are you sure you want to delete this row?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteRow($.deletingRow)},cancel:$.deleteCancelled}}):$._e(),$.deletingColumn!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Column"),bodyText:$.__("Are you sure you want to delete this column?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteColumn($.deletingColumn)},cancel:$.deleteCancelled}}):$._e()],1)])},_sfc_staticRenderFns$$=[],__component__$10=normalizeComponent$3(_sfc_main$$,_sfc_render$$,_sfc_staticRenderFns$$,!1,null,null,null,null);const TableFieldtype=__component__$10.exports,TagsFieldtype_vue_vue_type_style_index_0_scoped_1c1a3dab_lang="",_sfc_main$_={components:{SortableList,SortableItem},mixins:[Fieldtype,HasInputOptions],methods:{focus(){this.$refs.input.focus()},onPaste(M){const $=M.clipboardData.getData("text");this.update([...this.value,...$.split(",")]),M.preventDefault()}}};var _sfc_render$_=function M(){var $=this,I=$._self._c;return I("v-select",{ref:"input",attrs:{name:$.name,clearable:$.config.clearable,"close-on-select":!1,disabled:$.config.disabled||$.isReadOnly,multiple:!0,placeholder:$.__($.config.placeholder),searchable:!0,"select-on-key-codes":[9,13,188],taggable:!0,"append-to-body":!0,value:$.value},on:{input:$.update,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0},{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.config.placeholder,type:"search"},on:{paste:$.onPaste}},"input",B,!1),N))]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.value,distance:5,mirror:!1},on:{input:$.update}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.value,function(B){return I("span",{key:B,staticClass:"vs__selected mt-2 sortable-item"},[$._v(" "+$._s(B)+" "),I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Remove tag")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])])}),0)])]}}])})},_sfc_staticRenderFns$_=[],__component__$$=normalizeComponent$3(_sfc_main$_,_sfc_render$_,_sfc_staticRenderFns$_,!1,null,"1c1a3dab",null,null);const TagsFieldtype=__component__$$.exports,_sfc_main$Z={mixins:[IndexFieldtype],computed:{formatted(){return this.value?this.value.join(", "):null}}};var _sfc_render$Z=function M(){var $=this,I=$._self._c;return I("div",[$._v($._s($.formatted))])},_sfc_staticRenderFns$Z=[],__component__$_=normalizeComponent$3(_sfc_main$Z,_sfc_render$Z,_sfc_staticRenderFns$Z,!1,null,null,null,null);const TagsIndexFieldtype=__component__$_.exports,_sfc_main$Y={mixins:[Fieldtype],inject:["storeName"],computed:{relationshipMeta(){return{...this.meta,getBaseSelectionsUrlParameters:{}}}}};var _sfc_render$Y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"template-folder-fieldtype-wrapper"},[I("relationship-fieldtype",{attrs:{handle:$.handle,value:$.value,meta:$.relationshipMeta,config:{type:"template_folder",mode:"select",max_items:1}},on:{input:$.update}})],1)},_sfc_staticRenderFns$Y=[],__component__$Z=normalizeComponent$3(_sfc_main$Y,_sfc_render$Y,_sfc_staticRenderFns$Y,!1,null,null,null,null);const TemplateFolderFieldtype=__component__$Z.exports;function _objectWithoutPropertiesLoose(M,$){if(M==null)return{};var I={},N=Object.keys(M),B,j;for(j=0;j<N.length;j++)B=N[j],!($.indexOf(B)>=0)&&(I[B]=M[B]);return I}class ChangeDetails{constructor($){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},$)}aggregate($){return this.rawInserted+=$.rawInserted,this.skip=this.skip||$.skip,this.inserted+=$.inserted,this.tailShift+=$.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function isString$2(M){return typeof M=="string"||M instanceof String}const DIRECTION={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function forceDirection(M){switch(M){case DIRECTION.LEFT:return DIRECTION.FORCE_LEFT;case DIRECTION.RIGHT:return DIRECTION.FORCE_RIGHT;default:return M}}function escapeRegExp(M){return M.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function normalizePrepare(M){return Array.isArray(M)?M:[M,new ChangeDetails]}function objectIncludes(M,$){if($===M)return!0;var I=Array.isArray($),N=Array.isArray(M),B;if(I&&N){if($.length!=M.length)return!1;for(B=0;B<$.length;B++)if(!objectIncludes($[B],M[B]))return!1;return!0}if(I!=N)return!1;if($&&M&&typeof $=="object"&&typeof M=="object"){var j=$ instanceof Date,U=M instanceof Date;if(j&&U)return $.getTime()==M.getTime();if(j!=U)return!1;var q=$ instanceof RegExp,Y=M instanceof RegExp;if(q&&Y)return $.toString()==M.toString();if(q!=Y)return!1;var K=Object.keys($);for(B=0;B<K.length;B++)if(!Object.prototype.hasOwnProperty.call(M,K[B]))return!1;for(B=0;B<K.length;B++)if(!objectIncludes(M[K[B]],$[K[B]]))return!1;return!0}else if($&&M&&typeof $=="function"&&typeof M=="function")return $.toString()===M.toString();return!1}class ActionDetails{constructor($,I,N,B){for(this.value=$,this.cursorPos=I,this.oldValue=N,this.oldSelection=B;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?DIRECTION.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?DIRECTION.RIGHT:DIRECTION.LEFT}}class ContinuousTailDetails{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;this.value=$,this.from=I,this.stop=N}toString(){return this.value}extend($){this.value+=String($)}appendTo($){return $.append(this.toString(),{tail:!0}).aggregate($._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state($){Object.assign(this,$)}unshift($){if(!this.value.length||$!=null&&this.from>=$)return"";const I=this.value[0];return this.value=this.value.slice(1),I}shift(){if(!this.value.length)return"";const $=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),$}}function IMask(M){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new IMask.InputMask(M,$)}class Masked{constructor($){this._value="",this._update(Object.assign({},Masked.DEFAULTS,$)),this.isInitialized=!0}updateOptions($){Object.keys($).length&&this.withValueRefresh(this._update.bind(this,$))}_update($){Object.assign(this,$)}get state(){return{_value:this.value}}set state($){this._value=$._value}reset(){this._value=""}get value(){return this._value}set value($){this.resolve($)}resolve($){return this.reset(),this.append($,{input:!0},""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue($){this.reset(),this.append($,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue($){this.value=this.doFormat($)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue($){this.reset(),this.append($,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos($,I){return $}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice($,I)}extractTail(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new ContinuousTailDetails(this.extractInput($,I),$)}appendTail($){return isString$2($)&&($=new ContinuousTailDetails(String($))),$.appendTo(this)}_appendCharRaw($){return $?(this._value+=$,new ChangeDetails({inserted:$,rawInserted:$})):new ChangeDetails}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2?arguments[2]:void 0;const B=this.state;let j;if([$,j]=normalizePrepare(this.doPrepare($,I)),j=j.aggregate(this._appendCharRaw($,I)),j.inserted){let U,q=this.doValidate(I)!==!1;if(q&&N!=null){const Y=this.state;this.overwrite===!0&&(U=N.state,N.unshift(this.value.length-j.tailShift));let K=this.appendTail(N);q=K.rawInserted===N.toString(),!(q&&K.inserted)&&this.overwrite==="shift"&&(this.state=Y,U=N.state,N.shift(),K=this.appendTail(N),q=K.rawInserted===N.toString()),q&&K.inserted&&(this.state=Y)}q||(j=new ChangeDetails,this.state=B,N&&U&&(N.state=U))}return j}_appendPlaceholder(){return new ChangeDetails}_appendEager(){return new ChangeDetails}append($,I,N){if(!isString$2($))throw new Error("value should be string");const B=new ChangeDetails,j=isString$2(N)?new ContinuousTailDetails(String(N)):N;I!=null&&I.tail&&(I._beforeTailState=this.state);for(let U=0;U<$.length;++U){const q=this._appendChar($[U],I,j);if(!q.rawInserted&&!this.doSkipInvalid($[U],I,j))break;B.aggregate(q)}return j!=null&&(B.tailShift+=this.appendTail(j).tailShift),(this.eager===!0||this.eager==="append")&&I!==null&&I!==void 0&&I.input&&$&&B.aggregate(this._appendEager()),B}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,$)+this.value.slice(I),new ChangeDetails}withValueRefresh($){if(this._refreshing||!this.isInitialized)return $();this._refreshing=!0;const I=this.rawInputValue,N=this.value,B=$();return this.rawInputValue=I,this.value&&this.value!==N&&N.indexOf(this.value)===0&&this.append(N.slice(this.value.length),{},""),delete this._refreshing,B}runIsolated($){if(this._isolated||!this.isInitialized)return $(this);this._isolated=!0;const I=this.state,N=$(this);return this.state=I,delete this._isolated,N}doSkipInvalid($){return this.skipInvalid}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare($,this,I):$}doValidate($){return(!this.validate||this.validate(this.value,this,$))&&(!this.parent||this.parent.doValidate($))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat($){return this.format?this.format($,this):$}doParse($){return this.parse?this.parse($,this):$}splice($,I,N,B){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0};const U=$+I,q=this.extractTail(U),Y=this.eager===!0||this.eager==="remove";let K;Y&&(B=forceDirection(B),K=this.extractInput(0,U,{raw:!0}));let G=$;const J=new ChangeDetails;if(B!==DIRECTION.NONE&&(G=this.nearestInputPos($,I>1&&$!==0&&!Y?DIRECTION.NONE:B),J.tailShift=G-$),J.aggregate(this.remove(G)),Y&&B!==DIRECTION.NONE&&K===this.rawInputValue)if(B===DIRECTION.FORCE_LEFT){let Z;for(;K===this.rawInputValue&&(Z=this.value.length);)J.aggregate(new ChangeDetails({tailShift:-1})).aggregate(this.remove(Z-1))}else B===DIRECTION.FORCE_RIGHT&&q.unshift();return J.aggregate(this.append(N,j,q))}maskEquals($){return this.mask===$}typedValueEquals($){const I=this.typedValue;return $===I||Masked.EMPTY_VALUES.includes($)&&Masked.EMPTY_VALUES.includes(I)||this.doFormat($)===this.doFormat(this.typedValue)}}Masked.DEFAULTS={format:String,parse:M=>M,skipInvalid:!0};Masked.EMPTY_VALUES=[void 0,null,""];IMask.Masked=Masked;function maskedClass(M){if(M==null)throw new Error("mask property should be defined");return M instanceof RegExp?IMask.MaskedRegExp:isString$2(M)?IMask.MaskedPattern:M instanceof Date||M===Date?IMask.MaskedDate:M instanceof Number||typeof M=="number"||M===Number?IMask.MaskedNumber:Array.isArray(M)||M===Array?IMask.MaskedDynamic:IMask.Masked&&M.prototype instanceof IMask.Masked?M:M instanceof IMask.Masked?M.constructor:M instanceof Function?IMask.MaskedFunction:(console.warn("Mask not found for mask",M),IMask.Masked)}function createMask(M){if(IMask.Masked&&M instanceof IMask.Masked)return M;M=Object.assign({},M);const $=M.mask;if(IMask.Masked&&$ instanceof IMask.Masked)return $;const I=maskedClass($);if(!I)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new I(M)}IMask.createMask=createMask;const _excluded$4=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],DEFAULT_INPUT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class PatternInputDefinition{constructor($){const{parent:I,isOptional:N,placeholderChar:B,displayChar:j,lazy:U,eager:q}=$,Y=_objectWithoutPropertiesLoose($,_excluded$4);this.masked=createMask(Y),Object.assign(this,{parent:I,isOptional:N,placeholderChar:B,displayChar:j,lazy:U,eager:q})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return $===0&&I>=1?(this.isFilled=!1,this.masked.remove($,I)):new ChangeDetails}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new ChangeDetails;const N=this.masked.state,B=this.masked._appendChar($,I);return B.inserted&&this.doValidate(I)===!1&&(B.inserted=B.rawInserted="",this.masked.state=N),!B.inserted&&!this.isOptional&&!this.lazy&&!I.input&&(B.inserted=this.placeholderChar),B.skip=!B.inserted&&!this.isOptional,this.isFilled=!!B.inserted,B}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const $=new ChangeDetails;return this.isFilled||this.isOptional||(this.isFilled=!0,$.inserted=this.placeholderChar),$}_appendEager(){return new ChangeDetails}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput($,I,N)}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;const N=0,B=this.value.length,j=Math.min(Math.max($,N),B);switch(I){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return this.isComplete?j:N;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:return this.isComplete?j:B;case DIRECTION.NONE:default:return j}}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state($){this.masked.state=$.masked,this.isFilled=$.isFilled}}class PatternFixedDefinition{constructor($){Object.assign(this,$),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,$)+this._value.slice(I),this._value||(this._isRawInput=!1),new ChangeDetails}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;const N=0,B=this._value.length;switch(I){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return N;case DIRECTION.NONE:case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:default:return B}}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice($,I)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=new ChangeDetails;if(this._value)return N;const B=this.eager===!0||this.eager==="append",U=this.char===$&&(this.isUnmasking||I.input||I.raw)&&(!I.raw||!B)&&!I.tail;return U&&(N.rawInserted=this.char),this._value=N.inserted=this.char,this._isRawInput=U&&(I.raw||I.input),N}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const $=new ChangeDetails;return this._value||(this._value=$.inserted=this.char),$}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new ContinuousTailDetails("")}appendTail($){return isString$2($)&&($=new ContinuousTailDetails(String($))),$.appendTo(this)}append($,I,N){const B=this._appendChar($[0],I);return N!=null&&(B.tailShift+=this.appendTail(N).tailShift),B}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state($){Object.assign(this,$)}}const _excluded$3=["chunks"];class ChunksTailDetails{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=$,this.from=I}toString(){return this.chunks.map(String).join("")}extend($){if(!String($))return;isString$2($)&&($=new ContinuousTailDetails(String($)));const I=this.chunks[this.chunks.length-1],N=I&&(I.stop===$.stop||$.stop==null)&&$.from===I.from+I.toString().length;if($ instanceof ContinuousTailDetails)N?I.extend($.toString()):this.chunks.push($);else if($ instanceof ChunksTailDetails){if($.stop==null){let B;for(;$.chunks.length&&$.chunks[0].stop==null;)B=$.chunks.shift(),B.from+=$.from,this.extend(B)}$.toString()&&($.stop=$.blockIndex,this.chunks.push($))}}appendTo($){if(!($ instanceof IMask.MaskedPattern))return new ContinuousTailDetails(this.toString()).appendTo($);const I=new ChangeDetails;for(let N=0;N<this.chunks.length&&!I.skip;++N){const B=this.chunks[N],j=$._mapPosToBlock($.value.length),U=B.stop;let q;if(U!=null&&(!j||j.index<=U)&&((B instanceof ChunksTailDetails||$._stops.indexOf(U)>=0)&&I.aggregate($._appendPlaceholder(U)),q=B instanceof ChunksTailDetails&&$._blocks[U]),q){const Y=q.appendTail(B);Y.skip=!1,I.aggregate(Y),$._value+=Y.inserted;const K=B.toString().slice(Y.rawInserted.length);K&&I.aggregate($.append(K,{tail:!0}))}else I.aggregate($.append(B.toString(),{tail:!0}))}return I}get state(){return{chunks:this.chunks.map($=>$.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state($){const{chunks:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$3);Object.assign(this,N),this.chunks=I.map(B=>{const j="chunks"in B?new ChunksTailDetails:new ContinuousTailDetails;return j.state=B,j})}unshift($){if(!this.chunks.length||$!=null&&this.from>=$)return"";const I=$!=null?$-this.from:$;let N=0;for(;N<this.chunks.length;){const B=this.chunks[N],j=B.unshift(I);if(B.toString()){if(!j)break;++N}else this.chunks.splice(N,1);if(j)return j}return""}shift(){if(!this.chunks.length)return"";let $=this.chunks.length-1;for(;0<=$;){const I=this.chunks[$],N=I.shift();if(I.toString()){if(!N)break;--$}else this.chunks.splice($,1);if(N)return N}return""}}class PatternCursor{constructor($,I){this.masked=$,this._log=[];const{offset:N,index:B}=$._mapPosToBlock(I)||(I<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=N,this.index=B,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state($){Object.assign(this,$)}pushState(){this._log.push(this.state)}popState(){const $=this._log.pop();return this.state=$,$}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft($){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((I=this.block)===null||I===void 0?void 0:I.value.length)||0){var I;if($())return this.ok=!0}return this.ok=!1}_pushRight($){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if($())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,DIRECTION.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,DIRECTION.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.NONE),!0})}}class MaskedRegExp extends Masked{_update($){$.mask&&($.validate=I=>I.search($.mask)>=0),super._update($)}}IMask.MaskedRegExp=MaskedRegExp;const _excluded$2=["_blocks"];class MaskedPattern extends Masked{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.definitions=Object.assign({},DEFAULT_INPUT_DEFINITIONS,$.definitions),super(Object.assign({},MaskedPattern.DEFAULTS,$))}_update(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.definitions=Object.assign({},this.definitions,$.definitions),super._update($),this._rebuildMask()}_rebuildMask(){const $=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let I=this.mask;if(!I||!$)return;let N=!1,B=!1;for(let q=0;q<I.length;++q){var j,U;if(this.blocks){const Z=I.slice(q),ee=Object.keys(this.blocks).filter(re=>Z.indexOf(re)===0);ee.sort((re,se)=>se.length-re.length);const te=ee[0];if(te){const re=createMask(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[te]));re&&(this._blocks.push(re),this._maskedBlocks[te]||(this._maskedBlocks[te]=[]),this._maskedBlocks[te].push(this._blocks.length-1)),q+=te.length-1;continue}}let Y=I[q],K=Y in $;if(Y===MaskedPattern.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(Y==="{"||Y==="}"){N=!N;continue}if(Y==="["||Y==="]"){B=!B;continue}if(Y===MaskedPattern.ESCAPE_CHAR){if(++q,Y=I[q],!Y)break;K=!1}const G=(j=$[Y])!==null&&j!==void 0&&j.mask&&!(((U=$[Y])===null||U===void 0?void 0:U.mask.prototype)instanceof IMask.Masked)?$[Y]:{mask:$[Y]},J=K?new PatternInputDefinition(Object.assign({parent:this,isOptional:B,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},G)):new PatternFixedDefinition({char:Y,eager:this.eager,isUnmasking:N});this._blocks.push(J)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map($=>$.state)})}set state($){const{_blocks:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$2);this._blocks.forEach((B,j)=>B.state=I[j]),super.state=N}reset(){super.reset(),this._blocks.forEach($=>$.reset())}get isComplete(){return this._blocks.every($=>$.isComplete)}get isFilled(){return this._blocks.every($=>$.isFilled)}get isFixed(){return this._blocks.every($=>$.isFixed)}get isOptional(){return this._blocks.every($=>$.isOptional)}doCommit(){this._blocks.forEach($=>$.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce(($,I)=>$+=I.unmaskedValue,"")}set unmaskedValue($){super.unmaskedValue=$}get value(){return this._blocks.reduce(($,I)=>$+=I.value,"")}set value($){super.value=$}get displayValue(){return this._blocks.reduce(($,I)=>$+=I.displayValue,"")}appendTail($){return super.appendTail($).aggregate(this._appendPlaceholder())}_appendEager(){var $;const I=new ChangeDetails;let N=($=this._mapPosToBlock(this.value.length))===null||$===void 0?void 0:$.index;if(N==null)return I;this._blocks[N].isFilled&&++N;for(let B=N;B<this._blocks.length;++B){const j=this._blocks[B]._appendEager();if(!j.inserted)break;I.aggregate(j)}return I}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=this._mapPosToBlock(this.value.length),B=new ChangeDetails;if(!N)return B;for(let q=N.index;;++q){var j,U;const Y=this._blocks[q];if(!Y)break;const K=Y._appendChar($,Object.assign({},I,{_beforeTailState:(j=I._beforeTailState)===null||j===void 0||(U=j._blocks)===null||U===void 0?void 0:U[q]})),G=K.skip;if(B.aggregate(K),G||K.rawInserted)break}return B}extractTail(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const N=new ChunksTailDetails;return $===I||this._forEachBlocksInRange($,I,(B,j,U,q)=>{const Y=B.extractTail(U,q);Y.stop=this._findStopBefore(j),Y.from=this._blockStartPos(j),Y instanceof ChunksTailDetails&&(Y.blockIndex=j),N.extend(Y)}),N}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if($===I)return"";let B="";return this._forEachBlocksInRange($,I,(j,U,q,Y)=>{B+=j.extractInput(q,Y,N)}),B}_findStopBefore($){let I;for(let N=0;N<this._stops.length;++N){const B=this._stops[N];if(B<=$)I=B;else break}return I}_appendPlaceholder($){const I=new ChangeDetails;if(this.lazy&&$==null)return I;const N=this._mapPosToBlock(this.value.length);if(!N)return I;const B=N.index,j=$??this._blocks.length;return this._blocks.slice(B,j).forEach(U=>{if(!U.lazy||$!=null){const q=U._blocks!=null?[U._blocks.length]:[],Y=U._appendPlaceholder(...q);this._value+=Y.inserted,I.aggregate(Y)}}),I}_mapPosToBlock($){let I="";for(let N=0;N<this._blocks.length;++N){const B=this._blocks[N],j=I.length;if(I+=B.value,$<=I.length)return{index:N,offset:$-j}}}_blockStartPos($){return this._blocks.slice(0,$).reduce((I,N)=>I+=N.value.length,0)}_forEachBlocksInRange($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;const B=this._mapPosToBlock($);if(B){const j=this._mapPosToBlock(I),U=j&&B.index===j.index,q=B.offset,Y=j&&U?j.offset:this._blocks[B.index].value.length;if(N(this._blocks[B.index],B.index,q,Y),j&&!U){for(let K=B.index+1;K<j.index;++K)N(this._blocks[K],K,0,this._blocks[K].value.length);N(this._blocks[j.index],j.index,0,j.offset)}}}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const N=super.remove($,I);return this._forEachBlocksInRange($,I,(B,j,U,q)=>{N.aggregate(B.remove(U,q))}),N}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;if(!this._blocks.length)return 0;const N=new PatternCursor(this,$);if(I===DIRECTION.NONE)return N.pushRightBeforeInput()||(N.popState(),N.pushLeftBeforeInput())?N.pos:this.value.length;if(I===DIRECTION.LEFT||I===DIRECTION.FORCE_LEFT){if(I===DIRECTION.LEFT){if(N.pushRightBeforeFilled(),N.ok&&N.pos===$)return $;N.popState()}if(N.pushLeftBeforeInput(),N.pushLeftBeforeRequired(),N.pushLeftBeforeFilled(),I===DIRECTION.LEFT){if(N.pushRightBeforeInput(),N.pushRightBeforeRequired(),N.ok&&N.pos<=$||(N.popState(),N.ok&&N.pos<=$))return N.pos;N.popState()}return N.ok?N.pos:I===DIRECTION.FORCE_LEFT?0:(N.popState(),N.ok||(N.popState(),N.ok)?N.pos:0)}return I===DIRECTION.RIGHT||I===DIRECTION.FORCE_RIGHT?(N.pushRightBeforeInput(),N.pushRightBeforeRequired(),N.pushRightBeforeFilled()?N.pos:I===DIRECTION.FORCE_RIGHT?this.value.length:(N.popState(),N.ok||(N.popState(),N.ok)?N.pos:this.nearestInputPos($,DIRECTION.LEFT))):$}maskedBlock($){return this.maskedBlocks($)[0]}maskedBlocks($){const I=this._maskedBlocks[$];return I?I.map(N=>this._blocks[N]):[]}}MaskedPattern.DEFAULTS={lazy:!0,placeholderChar:"_"};MaskedPattern.STOP_CHAR="`";MaskedPattern.ESCAPE_CHAR="\\";MaskedPattern.InputDefinition=PatternInputDefinition;MaskedPattern.FixedDefinition=PatternFixedDefinition;IMask.MaskedPattern=MaskedPattern;class MaskedRange extends MaskedPattern{get _matchFrom(){return this.maxLength-String(this.from).length}_update($){$=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},$);let I=String($.to).length;$.maxLength!=null&&(I=Math.max(I,$.maxLength)),$.maxLength=I;const N=String($.from).padStart(I,"0"),B=String($.to).padStart(I,"0");let j=0;for(;j<B.length&&B[j]===N[j];)++j;$.mask=B.slice(0,j).replace(/0/g,"\\0")+"0".repeat(I-j),super._update($)}get isComplete(){return super.isComplete&&!!this.value}boundaries($){let I="",N="";const[,B,j]=$.match(/^(\D*)(\d*)(\D*)/)||[];return j&&(I="0".repeat(B.length)+j,N="9".repeat(B.length)+j),I=I.padEnd(this.maxLength,"0"),N=N.padEnd(this.maxLength,"9"),[I,N]}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N;if([$,N]=normalizePrepare(super.doPrepare($.replace(/\D/g,""),I)),!this.autofix||!$)return $;const B=String(this.from).padStart(this.maxLength,"0"),j=String(this.to).padStart(this.maxLength,"0");let U=this.value+$;if(U.length>this.maxLength)return"";const[q,Y]=this.boundaries(U);return Number(Y)<this.from?B[U.length-1]:Number(q)>this.to?this.autofix==="pad"&&U.length<this.maxLength?["",N.aggregate(this.append(B[U.length-1]+$,I))]:j[U.length-1]:$}doValidate(){const $=this.value;if($.search(/[^0]/)===-1&&$.length<=this._matchFrom)return!0;const[N,B]=this.boundaries($);return this.from<=Number(B)&&Number(N)<=this.to&&super.doValidate(...arguments)}}IMask.MaskedRange=MaskedRange;class MaskedDate extends MaskedPattern{constructor($){super(Object.assign({},MaskedDate.DEFAULTS,$))}_update($){$.mask===Date&&delete $.mask,$.pattern&&($.mask=$.pattern);const I=$.blocks;$.blocks=Object.assign({},MaskedDate.GET_DEFAULT_BLOCKS()),$.min&&($.blocks.Y.from=$.min.getFullYear()),$.max&&($.blocks.Y.to=$.max.getFullYear()),$.min&&$.max&&$.blocks.Y.from===$.blocks.Y.to&&($.blocks.m.from=$.min.getMonth()+1,$.blocks.m.to=$.max.getMonth()+1,$.blocks.m.from===$.blocks.m.to&&($.blocks.d.from=$.min.getDate(),$.blocks.d.to=$.max.getDate())),Object.assign($.blocks,this.blocks,I),Object.keys($.blocks).forEach(N=>{const B=$.blocks[N];!("autofix"in B)&&"autofix"in $&&(B.autofix=$.autofix)}),super._update($)}doValidate(){const $=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&$!=null&&(this.min==null||this.min<=$)&&(this.max==null||$<=this.max))}isDateExist($){return this.format(this.parse($,this),this).indexOf($)>=0}get date(){return this.typedValue}set date($){this.typedValue=$}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue($){super.typedValue=$}maskEquals($){return $===Date||super.maskEquals($)}}MaskedDate.DEFAULTS={pattern:"d{.}`m{.}`Y",format:M=>{if(!M)return"";const $=String(M.getDate()).padStart(2,"0"),I=String(M.getMonth()+1).padStart(2,"0"),N=M.getFullYear();return[$,I,N].join(".")},parse:M=>{const[$,I,N]=M.split(".");return new Date(N,I-1,$)}};MaskedDate.GET_DEFAULT_BLOCKS=()=>({d:{mask:MaskedRange,from:1,to:31,maxLength:2},m:{mask:MaskedRange,from:1,to:12,maxLength:2},Y:{mask:MaskedRange,from:1900,to:9999}});IMask.MaskedDate=MaskedDate;class MaskElement{get selectionStart(){let $;try{$=this._unsafeSelectionStart}catch{}return $??this.value.length}get selectionEnd(){let $;try{$=this._unsafeSelectionEnd}catch{}return $??this.value.length}select($,I){if(!($==null||I==null||$===this.selectionStart&&I===this.selectionEnd))try{this._unsafeSelect($,I)}catch{}}_unsafeSelect($,I){}get isActive(){return!1}bindEvents($){}unbindEvents(){}}IMask.MaskElement=MaskElement;class HTMLMaskElement extends MaskElement{constructor($){super(),this.input=$,this._handlers={}}get rootElement(){var $,I,N;return($=(I=(N=this.input).getRootNode)===null||I===void 0?void 0:I.call(N))!==null&&$!==void 0?$:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect($,I){this.input.setSelectionRange($,I)}get value(){return this.input.value}set value($){this.input.value=$}bindEvents($){Object.keys($).forEach(I=>this._toggleEventHandler(HTMLMaskElement.EVENTS_MAP[I],$[I]))}unbindEvents(){Object.keys(this._handlers).forEach($=>this._toggleEventHandler($))}_toggleEventHandler($,I){this._handlers[$]&&(this.input.removeEventListener($,this._handlers[$]),delete this._handlers[$]),I&&(this.input.addEventListener($,I),this._handlers[$]=I)}}HTMLMaskElement.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};IMask.HTMLMaskElement=HTMLMaskElement;class HTMLContenteditableMaskElement extends HTMLMaskElement{get _unsafeSelectionStart(){const $=this.rootElement,I=$.getSelection&&$.getSelection(),N=I&&I.anchorOffset,B=I&&I.focusOffset;return B==null||N==null||N<B?N:B}get _unsafeSelectionEnd(){const $=this.rootElement,I=$.getSelection&&$.getSelection(),N=I&&I.anchorOffset,B=I&&I.focusOffset;return B==null||N==null||N>B?N:B}_unsafeSelect($,I){if(!this.rootElement.createRange)return;const N=this.rootElement.createRange();N.setStart(this.input.firstChild||this.input,$),N.setEnd(this.input.lastChild||this.input,I);const B=this.rootElement,j=B.getSelection&&B.getSelection();j&&(j.removeAllRanges(),j.addRange(N))}get value(){return this.input.textContent}set value($){this.input.textContent=$}}IMask.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;const _excluded$1=["mask"];class InputMask{constructor($,I){this.el=$ instanceof MaskElement?$:$.isContentEditable&&$.tagName!=="INPUT"&&$.tagName!=="TEXTAREA"?new HTMLContenteditableMaskElement($):new HTMLMaskElement($),this.masked=createMask(I),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals($){var I;return $==null||((I=this.masked)===null||I===void 0?void 0:I.maskEquals($))}set mask($){if(this.maskEquals($))return;if(!($ instanceof IMask.Masked)&&this.masked.constructor===maskedClass($)){this.masked.updateOptions({mask:$});return}const I=createMask({mask:$});I.unmaskedValue=this.masked.unmaskedValue,this.masked=I}get value(){return this._value}set value($){this.value!==$&&(this.masked.value=$,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue($){this.unmaskedValue!==$&&(this.masked.unmaskedValue=$,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue($){this.masked.typedValueEquals($)||(this.masked.typedValue=$,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent($){for(var I=arguments.length,N=new Array(I>1?I-1:0),B=1;B<I;B++)N[B-1]=arguments[B];const j=this._listeners[$];j&&j.forEach(U=>U(...N))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos($){!this.el||!this.el.isActive||(this.el.select($,$),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const $=this.masked.unmaskedValue,I=this.masked.value,N=this.displayValue,B=this.unmaskedValue!==$||this.value!==I;this._unmaskedValue=$,this._value=I,this.el.value!==N&&(this.el.value=N),B&&this._fireChangeEvents()}updateOptions($){const{mask:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$1),B=!this.maskEquals(I),j=!objectIncludes(this.masked,N);B&&(this.mask=I),j&&this.masked.updateOptions(N),(B||j)&&this.updateControl()}updateCursor($){$!=null&&(this.cursorPos=$,this._delayUpdateCursor($))}_delayUpdateCursor($){this._abortUpdateCursor(),this._changingCursorPos=$,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,DIRECTION.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on($,I){return this._listeners[$]||(this._listeners[$]=[]),this._listeners[$].push(I),this}off($,I){if(!this._listeners[$])return this;if(!I)return delete this._listeners[$],this;const N=this._listeners[$].indexOf(I);return N>=0&&this._listeners[$].splice(N,1),this}_onInput($){if(this._inputEvent=$,this._abortUpdateCursor(),!this._selection)return this.updateValue();const I=new ActionDetails(this.el.value,this.cursorPos,this.displayValue,this._selection),N=this.masked.rawInputValue,B=this.masked.splice(I.startChangePos,I.removed.length,I.inserted,I.removeDirection,{input:!0,raw:!0}).offset,j=N===this.masked.rawInputValue?I.removeDirection:DIRECTION.NONE;let U=this.masked.nearestInputPos(I.startChangePos+B,j);j!==DIRECTION.NONE&&(U=this.masked.nearestInputPos(U,DIRECTION.NONE)),this.updateControl(),this.updateCursor(U),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop($){$.preventDefault(),$.stopPropagation()}_onFocus($){this.alignCursorFriendly()}_onClick($){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}IMask.InputMask=InputMask;class MaskedEnum extends MaskedPattern{_update($){$.enum&&($.mask="*".repeat($.enum[0].length)),super._update($)}doValidate(){return this.enum.some($=>$.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}}IMask.MaskedEnum=MaskedEnum;class MaskedNumber extends Masked{constructor($){super(Object.assign({},MaskedNumber.DEFAULTS,$))}_update($){super._update($),this._updateRegExps()}_updateRegExps(){let $="^"+(this.allowNegative?"[+|\\-]?":""),I="\\d*",N=(this.scale?"(".concat(escapeRegExp(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp($+I+N),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(escapeRegExp).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),"g")}_removeThousandsSeparators($){return $.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators($){const I=$.split(this.radix);return I[0]=I[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),I.join(this.radix)}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(I.input&&I.raw||!I.input&&!I.raw)?$.replace(this._mapToRadixRegExp,this.radix):$);const[N,B]=normalizePrepare(super.doPrepare($,I));return $&&!N&&(B.skip=!0),[N,B]}_separatorsCount($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=0;for(let B=0;B<$;++B)this._value.indexOf(this.thousandsSeparator,B)===B&&(++N,I&&($+=this.thousandsSeparator.length));return N}_separatorsCountFromSlice(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators($).length,!0)}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;return[$,I]=this._adjustRangeWithSeparators($,I),this._removeThousandsSeparators(super.extractInput($,I,N))}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw($,I);const N=I.tail&&I._beforeTailState?I._beforeTailState._value:this._value,B=this._separatorsCountFromSlice(N);this._value=this._removeThousandsSeparators(this.value);const j=super._appendCharRaw($,I);this._value=this._insertThousandsSeparators(this._value);const U=I.tail&&I._beforeTailState?I._beforeTailState._value:this._value,q=this._separatorsCountFromSlice(U);return j.tailShift+=(q-B)*this.thousandsSeparator.length,j.skip=!j.rawInserted&&$===this.thousandsSeparator,j}_findSeparatorAround($){if(this.thousandsSeparator){const I=$-this.thousandsSeparator.length+1,N=this.value.indexOf(this.thousandsSeparator,I);if(N<=$)return N}return-1}_adjustRangeWithSeparators($,I){const N=this._findSeparatorAround($);N>=0&&($=N);const B=this._findSeparatorAround(I);return B>=0&&(I=B+this.thousandsSeparator.length),[$,I]}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[$,I]=this._adjustRangeWithSeparators($,I);const N=this.value.slice(0,$),B=this.value.slice(I),j=this._separatorsCount(N.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(N+B));const U=this._separatorsCountFromSlice(N);return new ChangeDetails({tailShift:(U-j)*this.thousandsSeparator.length})}nearestInputPos($,I){if(!this.thousandsSeparator)return $;switch(I){case DIRECTION.NONE:case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:{const N=this._findSeparatorAround($-1);if(N>=0){const B=N+this.thousandsSeparator.length;if($<B||this.value.length<=B||I===DIRECTION.FORCE_LEFT)return N}break}case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:{const N=this._findSeparatorAround($);if(N>=0)return N+this.thousandsSeparator.length}}return $}doValidate($){let I=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(I){const N=this.number;I=I&&!isNaN(N)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return I&&super.doValidate($)}doCommit(){if(this.value){const $=this.number;let I=$;this.min!=null&&(I=Math.max(I,this.min)),this.max!=null&&(I=Math.min(I,this.max)),I!==$&&(this.unmaskedValue=this.doFormat(I));let N=this.value;this.normalizeZeros&&(N=this._normalizeZeros(N)),this.padFractionalZeros&&this.scale>0&&(N=this._padFractionalZeros(N)),this._value=N}super.doCommit()}_normalizeZeros($){const I=this._removeThousandsSeparators($).split(this.radix);return I[0]=I[0].replace(/^(\D*)(0*)(\d*)/,(N,B,j,U)=>B+U),$.length&&!/\d$/.test(I[0])&&(I[0]=I[0]+"0"),I.length>1&&(I[1]=I[1].replace(/0*$/,""),I[1].length||(I.length=1)),this._insertThousandsSeparators(I.join(this.radix))}_padFractionalZeros($){if(!$)return $;const I=$.split(this.radix);return I.length<2&&I.push(""),I[1]=I[1].padEnd(this.scale,"0"),I.join(this.radix)}doSkipInvalid($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2?arguments[2]:void 0;const B=this.scale===0&&$!==this.thousandsSeparator&&($===this.radix||$===MaskedNumber.UNMASKED_RADIX||this.mapToRadix.includes($));return super.doSkipInvalid($,I,N)&&!B}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,MaskedNumber.UNMASKED_RADIX)}set unmaskedValue($){super.unmaskedValue=$}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue($){this.rawInputValue=this.doFormat($).replace(MaskedNumber.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number($){this.typedValue=$}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals($){return(super.typedValueEquals($)||MaskedNumber.EMPTY_VALUES.includes($)&&MaskedNumber.EMPTY_VALUES.includes(this.typedValue))&&!($===0&&this.value==="")}}MaskedNumber.UNMASKED_RADIX=".";MaskedNumber.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[MaskedNumber.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:M=>M.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};MaskedNumber.EMPTY_VALUES=[...Masked.EMPTY_VALUES,0];IMask.MaskedNumber=MaskedNumber;class MaskedFunction extends Masked{_update($){$.mask&&($.validate=$.mask),super._update($)}}IMask.MaskedFunction=MaskedFunction;const _excluded=["compiledMasks","currentMaskRef","currentMask"],_excluded2=["mask"];class MaskedDynamic extends Masked{constructor($){super(Object.assign({},MaskedDynamic.DEFAULTS,$)),this.currentMask=null}_update($){super._update($),"mask"in $&&(this.compiledMasks=Array.isArray($.mask)?$.mask.map(I=>createMask(I)):[])}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=this._applyDispatch($,I);return this.currentMask&&N.aggregate(this.currentMask._appendChar($,this.currentMaskFlags(I))),N}_applyDispatch(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=I.tail&&I._beforeTailState!=null?I._beforeTailState._value:this.value,B=this.rawInputValue,j=I.tail&&I._beforeTailState!=null?I._beforeTailState._rawInputValue:B,U=B.slice(j.length),q=this.currentMask,Y=new ChangeDetails,K=q==null?void 0:q.state;if(this.currentMask=this.doDispatch($,Object.assign({},I)),this.currentMask)if(this.currentMask!==q){if(this.currentMask.reset(),j){const G=this.currentMask.append(j,{raw:!0});Y.tailShift=G.inserted.length-N.length}U&&(Y.tailShift+=this.currentMask.append(U,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=K;return Y}_appendPlaceholder(){const $=this._applyDispatch(...arguments);return this.currentMask&&$.aggregate(this.currentMask._appendPlaceholder()),$}_appendEager(){const $=this._applyDispatch(...arguments);return this.currentMask&&$.aggregate(this.currentMask._appendEager()),$}currentMaskFlags($){var I,N;return Object.assign({},$,{_beforeTailState:((I=$._beforeTailState)===null||I===void 0?void 0:I.currentMaskRef)===this.currentMask&&((N=$._beforeTailState)===null||N===void 0?void 0:N.currentMask)||$._beforeTailState})}doDispatch($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.dispatch($,this,I)}doValidate($){return super.doValidate($)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags($)))}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[N,B]=normalizePrepare(super.doPrepare($,I));if(this.currentMask){let j;[N,j]=normalizePrepare(super.doPrepare(N,this.currentMaskFlags(I))),B=B.aggregate(j)}return[N,B]}reset(){var $;($=this.currentMask)===null||$===void 0||$.reset(),this.compiledMasks.forEach(I=>I.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value($){super.value=$}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue($){super.unmaskedValue=$}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue($){let I=String($);this.currentMask&&(this.currentMask.typedValue=$,I=this.currentMask.unmaskedValue),this.unmaskedValue=I}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var $;return!!(!(($=this.currentMask)===null||$===void 0)&&$.isComplete)}get isFilled(){var $;return!!(!(($=this.currentMask)===null||$===void 0)&&$.isFilled)}remove(){const $=new ChangeDetails;return this.currentMask&&$.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),$}get state(){var $;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(I=>I.state),currentMaskRef:this.currentMask,currentMask:($=this.currentMask)===null||$===void 0?void 0:$.state})}set state($){const{compiledMasks:I,currentMaskRef:N,currentMask:B}=$,j=_objectWithoutPropertiesLoose($,_excluded);this.compiledMasks.forEach((U,q)=>U.state=I[q]),N!=null&&(this.currentMask=N,this.currentMask.state=B),super.state=j}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite($){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager($){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid($){console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals($){return Array.isArray($)&&this.compiledMasks.every((I,N)=>{if(!$[N])return;const B=$[N],{mask:j}=B,U=_objectWithoutPropertiesLoose(B,_excluded2);return objectIncludes(I,U)&&I.maskEquals(j)})}typedValueEquals($){var I;return!!(!((I=this.currentMask)===null||I===void 0)&&I.typedValueEquals($))}}MaskedDynamic.DEFAULTS={dispatch:(M,$,I)=>{if(!$.compiledMasks.length)return;const N=$.rawInputValue,B=$.compiledMasks.map((j,U)=>(j.reset(),j.append(N,{raw:!0}),j.append(M,$.currentMaskFlags(I)),{weight:j.rawInputValue.length,index:U}));return B.sort((j,U)=>U.weight-j.weight),$.compiledMasks[B[0].index]}};IMask.MaskedDynamic=MaskedDynamic;const PIPE_TYPE={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function createPipe(M){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:PIPE_TYPE.MASKED,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:PIPE_TYPE.MASKED;const N=createMask(M);return B=>N.runIsolated(j=>(j[$]=B,j[I]))}function pipe(M){for(var $=arguments.length,I=new Array($>1?$-1:0),N=1;N<$;N++)I[N-1]=arguments[N];return createPipe(...I)(M)}IMask.PIPE_TYPE=PIPE_TYPE;IMask.createPipe=createPipe;IMask.pipe=pipe;try{globalThis.IMask=IMask}catch(M){}const _sfc_main$X={mixins:[Fieldtype],props:{required:{type:Boolean,default:!1},showSeconds:{type:Boolean,default:!1}},inject:["storeName"],data(){return{inputValue:this.value,mask:null}},watch:{inputValue(M){this.mask.value=M},value(M){this.inputValue=M,this.updateActualValue()}},computed:{useSeconds(){return this.showSeconds||this.config.seconds_enabled}},created(){this.$events.$on(`container.${this.storeName}.saving`,this.updateActualValue)},mounted(){this.mask=IMask(this.$refs.time,{mask:this.useSeconds?"0[0]:`0[0]:`00":"0[0]:`00"}),this.mask.value=new String(this.inputValue),this.mask.on("accept",M=>this.inputValue=this.mask.value)},destroyed(){this.$events.$off(`container.${this.storeName}.saving`,this.updateActualValue),this.mask.destroy()},methods:{focused(){this.$refs.time.select(),this.$emit("focus")},focus(){this.$refs.time.focus()},updateActualValue(){if(!this.inputValue){this.update(null);return}let M=this.inputValue.split(":");M.length===1&&M.push("00"),M.length===2&&this.useSeconds&&M.push("00"),M=M.map(I=>I.padStart(2,"0"));let $=M.join(":");this.update($),this.inputValue=$},setToNow(){const M=new Date,$=String(M.getHours()).padStart(2,"0"),I=String(M.getMinutes()).padStart(2,"0"),N=String(M.getSeconds()).padStart(2,"0");this.update(this.useSeconds?`${$}:${I}:${N}`:`${$}:${I}`)},adjustPart(M,$,I){const N=M.target.selectionStart,B=this.inputValue.split(":");let j=0;N>5?j=2:N>2&&(j=1);const q=parseInt(B[j])+($==="increment"?1:-1),Y=I(j,q);Y?B[j]=Y:B[j]=String(q).padStart(2,"0"),this.update(B.join(":")),this.$nextTick(()=>{M.target.selectionStart=N,M.target.selectionEnd=N})}}};var _sfc_render$X=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"time-fieldtype-container"},[I("div",{staticClass:"input-group"},[$.isReadOnly?$._e():I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Set to now"),expression:"__('Set to now')"}],staticClass:"input-group-prepend flex items-center",on:{click:$.setToNow}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/time"}})],1),I("input",{ref:"time",staticClass:"input-text [&::-webkit-calendar-picker-indicator]:hidden",attrs:{type:"time",step:$.useSeconds?"1":null,readonly:$.isReadOnly},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.clear.apply(null,arguments)},focus:$.focused,blur:function(N){return $.$emit("blur")},change:$.updateActualValue}})])])},_sfc_staticRenderFns$X=[],__component__$Y=normalizeComponent$3(_sfc_main$X,_sfc_render$X,_sfc_staticRenderFns$X,!1,null,null,null,null);const TimeFieldtype=__component__$Y.exports,_sfc_main$W={mixins:[Fieldtype],computed:{inlineLabel(){return this.value?this.config.inline_label_when_true||this.config.inline_label:this.config.inline_label},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return(this.value?"✓":"✗")+" "+__(this.config.display)}}};var _sfc_render$W=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"toggle-fieldtype-wrapper"},[I("toggle-input",{attrs:{value:$.value,"read-only":$.isReadOnly,id:$.fieldId},on:{input:$.update}}),$.inlineLabel?I("label",{staticClass:"inline-label",domProps:{innerHTML:$._s($.$options.filters.markdown($.__($.inlineLabel)))}}):$._e()],1)},_sfc_staticRenderFns$W=[],__component__$X=normalizeComponent$3(_sfc_main$W,_sfc_render$W,_sfc_staticRenderFns$W,!1,null,null,null,null);const ToggleFieldtype=__component__$X.exports,_sfc_main$V={mixins:[IndexFieldtype]};var _sfc_render$V=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[this.value?I("svg-icon",{staticClass:"w-3 text-green-600",attrs:{name:"light/check"}}):$._e(),this.value?$._e():I("svg-icon",{staticClass:"w-3 text-gray-500",attrs:{name:"light/close"}})],1)},_sfc_staticRenderFns$V=[],__component__$W=normalizeComponent$3(_sfc_main$V,_sfc_render$V,_sfc_staticRenderFns$V,!1,null,null,null,null);const ToggleIndexFieldtype=__component__$W.exports,_sfc_main$U={mixins:[Fieldtype],components:{WidthSelector},methods:{}};var _sfc_render$U=function M(){var $=this,I=$._self._c;return I("width-selector",{attrs:{name:$.name,value:$.value,"initial-widths":$.config.options},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$U=[],__component__$V=normalizeComponent$3(_sfc_main$U,_sfc_render$U,_sfc_staticRenderFns$U,!1,null,null,null,null);const WidthFieldtype=__component__$V.exports,_sfc_main$T={mixins:[Fieldtype],data(){return{data:this.value||"",canShowIframe:!1}},watch:{data:_.debounce(function(M){this.update(M)},500),value(M){this.data=M}},mounted(){this.canShowIframe=!0},computed:{embedUrl(){let M=this.data;if(M.includes("youtube")&&(M=M.includes("shorts/")?M.replace("shorts/","embed/"):M.replace("watch?v=","embed/")),M.includes("youtu.be")&&(M=M.replace("youtu.be","www.youtube.com/embed")),M.includes("vimeo")&&(M=M.replace("/vimeo.com","/player.vimeo.com/video"),M.split("/").length>5)){let $=M.substr(M.lastIndexOf("/")+1);M=M.substr(0,M.lastIndexOf("/"))+"?h="+$.replace("?","&")}return M.includes("&")&&!M.includes("?")&&(M=M.replace("&","?")),M},isEmbeddable(){return this.isUrl&&this.data.includes("youtube")||this.data.includes("vimeo")||this.data.includes("youtu.be")},isInvalid(){return new RegExp(/<([A-Z][A-Z0-9]*)\b[^>]*>.*?<\/\1>|<([A-Z][A-Z0-9]*)\b[^\/]*\/>/i).test(this.data)},isUrl(){return new RegExp("^(https?|ftp)://[^s/$.?#].*$","i").test(this.data)},isVideo(){return!this.isEmbeddable&&(this.data.includes(".mp4")||this.data.includes(".ogv")||this.data.includes(".mov")||this.data.includes(".webm"))}}};var _sfc_render$T=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"video-fieldtype-container"},[I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend"},[$._v($._s($.__("URL")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.data,expression:"data"}],staticClass:"input-text flex-1",class:{"bg-white":!$.isReadOnly},attrs:{type:"text",id:$.fieldId,readonly:$.isReadOnly,placeholder:$.__($.config.placeholder)||"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},domProps:{value:$.data},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},input:function(N){N.target.composing||($.data=N.target.value)}}})])]),$.isInvalid?I("p",{staticClass:"text-red-500 mt-4"},[$._v($._s($.__("statamic::validation.url")))]):$._e(),!$.isInvalid&&($.isEmbeddable||$.isVideo)?I("div",{staticClass:"video-preview-wrapper"},[$.isEmbeddable&&$.canShowIframe?I("div",{staticClass:"embed-video"},[I("iframe",{attrs:{src:$.embedUrl,frameborder:"0",allow:"fullscreen"}})]):$.isVideo?I("div",{staticClass:"native-video"},[I("video",{attrs:{controls:"",src:$.embedUrl}})]):$._e()]):$._e()])},_sfc_staticRenderFns$T=[],__component__$U=normalizeComponent$3(_sfc_main$T,_sfc_render$T,_sfc_staticRenderFns$T,!1,null,null,null,null);const VideoFieldtype=__component__$U.exports,_sfc_main$S={mixins:[Fieldtype],data(){return{codemirror:null}},computed:{readOnlyOption(){return this.isReadOnly?"nocursor":!1}},mounted(){this.codemirror=CodeMirror(this.$refs.codemirror,{value:this.value||"",mode:"yaml",direction:document.querySelector("html").getAttribute("dir")??"ltr",tabSize:2,indentUnit:2,autoRefresh:!0,indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,readOnly:this.readOnlyOption,theme:this.config.theme||"material",inputStyle:"contenteditable"}),this.codemirror.on("change",M=>{this.updateDebounced(M.doc.getValue())})},watch:{readOnlyOption(M){this.codemirror.setOption("readOnly",M)}},methods:{focus(){this.codemirror.focus()}}};var _sfc_render$S=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"yaml-fieldtype-container relative"},[I("div",{staticClass:"code-mode",domProps:{textContent:$._s("yaml")}}),I("div",{ref:"codemirror"})])},_sfc_staticRenderFns$S=[],__component__$T=normalizeComponent$3(_sfc_main$S,_sfc_render$S,_sfc_staticRenderFns$S,!1,null,null,null,null);const YamlFieldtype=__component__$T.exports;Vue$3.component("select-input",Select);Vue$3.component("text-input",Text$1);Vue$3.component("textarea-input",Textarea);Vue$3.component("toggle-input",Toggle);Vue$3.component("relationship-input",RelationshipInput);Vue$3.component("text-fieldtype",TextFieldtype);Vue$3.component("textarea-fieldtype",TextareaFieldtype);Vue$3.component("slug-fieldtype",SlugFieldtype);Vue$3.component("array-fieldtype",ArrayFieldtype);Vue$3.component("assets-fieldtype",AssetsFieldtype);Vue$3.component("assets-fieldtype-index",AssetsIndexFieldtype);Vue$3.component("asset_folder-fieldtype",AssetFolderFieldtype);Vue$3.component("bard-fieldtype",BardFieldtype);Vue$3.component("bard-fieldtype-set",BardSet);Vue$3.component("bard_buttons_setting-fieldtype",BardButtonsSettingFieldtype);Vue$3.component("button_group-fieldtype",ButtonGroupFieldtype);Vue$3.component("checkboxes-fieldtype",CheckboxesFieldtype);Vue$3.component("code-fieldtype",CodeFieldtype);Vue$3.component("collection_routes-fieldtype",Routes);Vue$3.component("collection_title_formats-fieldtype",TitleFormats);Vue$3.component("color-fieldtype",ColorFieldtype);Vue$3.component("date-fieldtype",DateFieldtype);Vue$3.component("field_display-fieldtype",FieldDisplayFieldtype);Vue$3.component("fields-fieldtype",FieldsFieldtype);Vue$3.component("files-fieldtype",FilesFieldtype);Vue$3.component("float-fieldtype",FloatFieldtype);Vue$3.component("global_set_sites-fieldtype",Sites);Vue$3.component("grid-fieldtype",Grid);Vue$3.component("grid-fieldtype-index",GridIndex);Vue$3.component("group-fieldtype",GroupFieldtype);Vue$3.component("hidden-fieldtype",HiddenFieldtype);Vue$3.component("html-fieldtype",HtmlFieldtype);Vue$3.component("icon-fieldtype",IconFieldtype);Vue$3.component("integer-fieldtype",IntegerFieldtype);Vue$3.component("link-fieldtype",LinkFieldtype);Vue$3.component("list-fieldtype",ListFieldtype);Vue$3.component("markdown-fieldtype",MarkdownFieldtype);Vue$3.component("markdown_buttons_setting-fieldtype",MarkdownButtonsSettingFieldtype);Vue$3.component("radio-fieldtype",RadioFieldtype);Vue$3.component("range-fieldtype",RangeFieldtype);Vue$3.component("relationship-fieldtype",RelationshipFieldtype);Vue$3.component("relationship-fieldtype-index",RelationshipIndexFieldtype);Vue$3.component("replicator-fieldtype",Replicator);Vue$3.component("replicator-fieldtype-set",ReplicatorSet);Vue$3.component("replicator-fieldtype-index",ReplicatorIndex);Vue$3.component("section-fieldtype",SectionFieldtype);Vue$3.component("select-fieldtype",SelectFieldtype);Vue$3.component("sets-fieldtype",SetsFieldtype);Vue$3.component("table-fieldtype",TableFieldtype);Vue$3.component("tags-fieldtype",TagsFieldtype);Vue$3.component("tags-fieldtype-index",TagsIndexFieldtype);Vue$3.component("template_folder-fieldtype",TemplateFolderFieldtype);Vue$3.component("time-fieldtype",TimeFieldtype);Vue$3.component("toggle-fieldtype",ToggleFieldtype);Vue$3.component("toggle-fieldtype-index",ToggleIndexFieldtype);Vue$3.component("width-fieldtype",WidthFieldtype);Vue$3.component("video-fieldtype",VideoFieldtype);Vue$3.component("yaml-fieldtype",YamlFieldtype);Vue$3.component("set-picker",SetPicker);Vue$3.component("set-field",SetField);Vue$3.component("revealer-fieldtype",RevealerFieldtype);Vue$3.component("status-fieldtype",StatusFieldtype);Vue$3.component("template-fieldtype",TemplateFieldtype);const Elastic={inserted:function(M){setTimeout(()=>{autosize(M)})}};Vue$3.directive("elastic",Elastic);Vue$3.directive("focus",{inserted:function(M){M.focus()}});function getBasePlacement(M){return M.split("-")[0]}function getAlignment(M){return M.split("-")[1]}function getMainAxisFromPlacement(M){return["top","bottom"].includes(getBasePlacement(M))?"x":"y"}function getLengthFromAxis(M){return M==="y"?"height":"width"}function computeCoordsFromPlacement(M){let{reference:$,floating:I,placement:N}=M;const B=$.x+$.width/2-I.width/2,j=$.y+$.height/2-I.height/2;let U;switch(getBasePlacement(N)){case"top":U={x:B,y:$.y-I.height};break;case"bottom":U={x:B,y:$.y+$.height};break;case"right":U={x:$.x+$.width,y:j};break;case"left":U={x:$.x-I.width,y:j};break;default:U={x:$.x,y:$.y}}const q=getMainAxisFromPlacement(N),Y=getLengthFromAxis(q);switch(getAlignment(N)){case"start":U[q]=U[q]-($[Y]/2-I[Y]/2);break;case"end":U[q]=U[q]+($[Y]/2-I[Y]/2);break}return U}const computePosition$1=async(M,$,I)=>{const{placement:N="bottom",strategy:B="absolute",middleware:j=[],platform:U}=I;let q=await U.getElementRects({reference:M,floating:$,strategy:B}),{x:Y,y:K}=computeCoordsFromPlacement({...q,placement:N}),G=N,J={};for(let Z=0;Z<j.length;Z++){const{name:ee,fn:te}=j[Z],{x:re,y:se,data:ne,reset:le}=await te({x:Y,y:K,initialPlacement:N,placement:G,strategy:B,middlewareData:J,rects:q,platform:U,elements:{reference:M,floating:$}});if(Y=re??Y,K=se??K,J={...J,[ee]:ne??{}},le){typeof le=="object"&&(le.placement&&(G=le.placement),le.rects&&(q=le.rects===!0?await U.getElementRects({reference:M,floating:$,strategy:B}):le.rects),{x:Y,y:K}=computeCoordsFromPlacement({...q,placement:G})),Z=-1;continue}}return{x:Y,y:K,placement:G,strategy:B,middlewareData:J}};function expandPaddingObject(M){return{top:0,right:0,bottom:0,left:0,...M}}function getSideObjectFromPadding(M){return typeof M!="number"?expandPaddingObject(M):{top:M,right:M,bottom:M,left:M}}function rectToClientRect(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function detectOverflow(M,$){$===void 0&&($={});const{x:I,y:N,platform:B,rects:j,elements:U,strategy:q}=M,{boundary:Y="clippingParents",rootBoundary:K="viewport",elementContext:G="floating",altBoundary:J=!1,padding:Z=0}=$,ee=getSideObjectFromPadding(Z),re=U[J?G==="floating"?"reference":"floating":G],se=await B.getClippingClientRect({element:await B.isElement(re)?re:re.contextElement||await B.getDocumentElement({element:U.floating}),boundary:Y,rootBoundary:K}),ne=rectToClientRect(await B.convertOffsetParentRelativeRectToViewportRelativeRect({rect:G==="floating"?{...j.floating,x:I,y:N}:j.reference,offsetParent:await B.getOffsetParent({element:U.floating}),strategy:q}));return{top:se.top-ne.top+ee.top,bottom:ne.bottom-se.bottom+ee.bottom,left:se.left-ne.left+ee.left,right:ne.right-se.right+ee.right}}const min$2=Math.min,max$2=Math.max;function within(M,$,I){return max$2(M,min$2($,I))}const arrow=M=>({name:"arrow",options:M,async fn($){const{element:I,padding:N=0}=M??{},{x:B,y:j,placement:U,rects:q,platform:Y}=$;if(I==null)return{};const K=getSideObjectFromPadding(N),G={x:B,y:j},J=getBasePlacement(U),Z=getMainAxisFromPlacement(J),ee=getLengthFromAxis(Z),te=await Y.getDimensions({element:I}),re=Z==="y"?"top":"left",se=Z==="y"?"bottom":"right",ne=q.reference[ee]+q.reference[Z]-G[Z]-q.floating[ee],le=G[Z]-q.reference[Z],ge=await Y.getOffsetParent({element:I}),ue=ge?Z==="y"?ge.clientHeight||0:ge.clientWidth||0:0,_e=ne/2-le/2,fe=K[re],me=ue-te[ee]-K[se],ve=ue/2-te[ee]/2+_e,xe=within(fe,ve,me);return{data:{[Z]:xe,centerOffset:ve-xe}}}}),hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(M){return M.replace(/left|right|bottom|top/g,$=>hash$1[$])}function getAlignmentSides(M,$){const I=getAlignment(M)==="start",N=getMainAxisFromPlacement(M),B=getLengthFromAxis(N);let j=N==="x"?I?"right":"left":I?"bottom":"top";return $.reference[B]>$.floating[B]&&(j=getOppositePlacement(j)),{main:j,cross:getOppositePlacement(j)}}const hash={start:"end",end:"start"};function getOppositeAlignmentPlacement(M){return M.replace(/start|end/g,$=>hash[$])}const basePlacements=["top","right","bottom","left"],allPlacements=basePlacements.reduce((M,$)=>M.concat($,$+"-start",$+"-end"),[]);function getPlacementList(M,$,I){return(M?[...I.filter(B=>getAlignment(B)===M),...I.filter(B=>getAlignment(B)!==M)]:I.filter(B=>getBasePlacement(B)===B)).filter(B=>M?getAlignment(B)===M||($?getOppositeAlignmentPlacement(B)!==B:!1):!0)}const autoPlacement=function(M){return M===void 0&&(M={}),{name:"autoPlacement",options:M,async fn($){var I,N,B,j,U,q;const{x:Y,y:K,rects:G,middlewareData:J,placement:Z}=$,{alignment:ee=null,allowedPlacements:te=allPlacements,autoAlignment:re=!0,...se}=M;if((I=J.autoPlacement)!=null&&I.skip)return{};const ne=getPlacementList(ee,re,te),le=await detectOverflow($,se),ge=(N=(B=J.autoPlacement)==null?void 0:B.index)!=null?N:0,ue=ne[ge],{main:_e,cross:fe}=getAlignmentSides(ue,G);if(Z!==ue)return{x:Y,y:K,reset:{placement:ne[0]}};const me=[le[getBasePlacement(ue)],le[_e],le[fe]],ve=[...(j=(U=J.autoPlacement)==null?void 0:U.overflows)!=null?j:[],{placement:ue,overflows:me}],xe=ne[ge+1];if(xe)return{data:{index:ge+1,overflows:ve},reset:{placement:xe}};const oe=ve.slice().sort((be,we)=>be.overflows[0]-we.overflows[0]),ye=(q=oe.find(be=>{let{overflows:we}=be;return we.every(Ae=>Ae<=0)}))==null?void 0:q.placement;return{data:{skip:!0},reset:{placement:ye??oe[0].placement}}}}};function getExpandedPlacements(M){const $=getOppositePlacement(M);return[getOppositeAlignmentPlacement(M),$,getOppositeAlignmentPlacement($)]}const flip=function(M){return M===void 0&&(M={}),{name:"flip",options:M,async fn($){var I,N;const{placement:B,middlewareData:j,rects:U,initialPlacement:q}=$;if((I=j.flip)!=null&&I.skip)return{};const{mainAxis:Y=!0,crossAxis:K=!0,fallbackPlacements:G,fallbackStrategy:J="bestFit",flipAlignment:Z=!0,...ee}=M,te=getBasePlacement(B),se=G||(te===q||!Z?[getOppositePlacement(q)]:getExpandedPlacements(q)),ne=[q,...se],le=await detectOverflow($,ee),ge=[];let ue=((N=j.flip)==null?void 0:N.overflows)||[];if(Y&&ge.push(le[te]),K){const{main:ve,cross:xe}=getAlignmentSides(B,U);ge.push(le[ve],le[xe])}if(ue=[...ue,{placement:B,overflows:ge}],!ge.every(ve=>ve<=0)){var _e,fe;const ve=((_e=(fe=j.flip)==null?void 0:fe.index)!=null?_e:0)+1,xe=ne[ve];if(xe)return{data:{index:ve,overflows:ue},reset:{placement:xe}};let oe="bottom";switch(J){case"bestFit":{var me;const ye=(me=ue.slice().sort((be,we)=>be.overflows.filter(Ae=>Ae>0).reduce((Ae,ke)=>Ae+ke,0)-we.overflows.filter(Ae=>Ae>0).reduce((Ae,ke)=>Ae+ke,0))[0])==null?void 0:me.placement;ye&&(oe=ye);break}case"initialPlacement":oe=q;break}return{data:{skip:!0},reset:{placement:oe}}}return{}}}};function convertValueToCoords(M){let{placement:$,rects:I,value:N}=M;const B=getBasePlacement($),j=["left","top"].includes(B)?-1:1,U=typeof N=="function"?N({...I,placement:$}):N,{mainAxis:q,crossAxis:Y}=typeof U=="number"?{mainAxis:U,crossAxis:0}:{mainAxis:0,crossAxis:0,...U};return getMainAxisFromPlacement(B)==="x"?{x:Y,y:q*j}:{x:q*j,y:Y}}const offset$1=function(M){return M===void 0&&(M=0),{name:"offset",options:M,fn($){const{x:I,y:N,placement:B,rects:j}=$,U=convertValueToCoords({placement:B,rects:j,value:M});return{x:I+U.x,y:N+U.y,data:U}}}};function getCrossAxis(M){return M==="x"?"y":"x"}const shift=function(M){return M===void 0&&(M={}),{name:"shift",options:M,async fn($){const{x:I,y:N,placement:B}=$,{mainAxis:j=!0,crossAxis:U=!1,limiter:q={fn:se=>{let{x:ne,y:le}=se;return{x:ne,y:le}}},...Y}=M,K={x:I,y:N},G=await detectOverflow($,Y),J=getMainAxisFromPlacement(getBasePlacement(B)),Z=getCrossAxis(J);let ee=K[J],te=K[Z];if(j){const se=J==="y"?"top":"left",ne=J==="y"?"bottom":"right",le=ee+G[se],ge=ee-G[ne];ee=within(le,ee,ge)}if(U){const se=Z==="y"?"top":"left",ne=Z==="y"?"bottom":"right",le=te+G[se],ge=te-G[ne];te=within(le,te,ge)}const re=q.fn({...$,[J]:ee,[Z]:te});return{...re,data:{x:re.x-I,y:re.y-N}}}}},size=function(M){return M===void 0&&(M={}),{name:"size",options:M,async fn($){var I;const{placement:N,rects:B,middlewareData:j}=$,{apply:U,...q}=M;if((I=j.size)!=null&&I.skip)return{};const Y=await detectOverflow($,q),K=getBasePlacement(N),G=getAlignment(N)==="end";let J,Z;K==="top"||K==="bottom"?(J=K,Z=G?"left":"right"):(Z=K,J=G?"top":"bottom");const ee=max$2(Y.left,0),te=max$2(Y.right,0),re=max$2(Y.top,0),se=max$2(Y.bottom,0),ne={height:B.floating.height-(["left","right"].includes(N)?2*(re!==0||se!==0?re+se:max$2(Y.top,Y.bottom)):Y[J]),width:B.floating.width-(["top","bottom"].includes(N)?2*(ee!==0||te!==0?ee+te:max$2(Y.left,Y.right)):Y[Z])};return U==null||U({...ne,...B}),{data:{skip:!0},reset:{rects:!0}}}}};function isWindow(M){return(M==null?void 0:M.toString())==="[object Window]"}function getWindow(M){if(M==null)return window;if(!isWindow(M)){const $=M.ownerDocument;return $&&$.defaultView||window}return M}function getComputedStyle$1(M){return getWindow(M).getComputedStyle(M)}function getNodeName(M){return isWindow(M)?"":M?(M.nodeName||"").toLowerCase():""}function isHTMLElement(M){return M instanceof getWindow(M).HTMLElement}function isElement(M){return M instanceof getWindow(M).Element}function isNode(M){return M instanceof getWindow(M).Node}function isShadowRoot(M){const $=getWindow(M).ShadowRoot;return M instanceof $||M instanceof ShadowRoot}function isScrollParent(M){const{overflow:$,overflowX:I,overflowY:N}=getComputedStyle$1(M);return/auto|scroll|overlay|hidden/.test($+N+I)}function isTableElement(M){return["table","td","th"].includes(getNodeName(M))}function isContainingBlock(M){const $=navigator.userAgent.toLowerCase().includes("firefox"),I=getComputedStyle$1(M);return I.transform!=="none"||I.perspective!=="none"||I.contain==="paint"||["transform","perspective"].includes(I.willChange)||$&&I.willChange==="filter"||$&&(I.filter?I.filter!=="none":!1)}const min$1=Math.min,max$1=Math.max,round$1=Math.round;function getBoundingClientRect(M,$){$===void 0&&($=!1);const I=M.getBoundingClientRect();let N=1,B=1;return $&&isHTMLElement(M)&&(N=M.offsetWidth>0&&round$1(I.width)/M.offsetWidth||1,B=M.offsetHeight>0&&round$1(I.height)/M.offsetHeight||1),{width:I.width/N,height:I.height/B,top:I.top/B,right:I.right/N,bottom:I.bottom/B,left:I.left/N,x:I.left/N,y:I.top/B}}function getDocumentElement(M){return((isNode(M)?M.ownerDocument:M.document)||window.document).documentElement}function getNodeScroll(M){return isWindow(M)?{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}:{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function getWindowScrollBarX(M){return getBoundingClientRect(getDocumentElement(M)).left+getNodeScroll(M).scrollLeft}function isScaled(M){const $=getBoundingClientRect(M);return round$1($.width)!==M.offsetWidth||round$1($.height)!==M.offsetHeight}function getRectRelativeToOffsetParent(M,$,I){const N=isHTMLElement($),B=getDocumentElement($),j=getBoundingClientRect(M,N&&isScaled($));let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if(N||!N&&I!=="fixed")if((getNodeName($)!=="body"||isScrollParent(B))&&(U=getNodeScroll($)),isHTMLElement($)){const Y=getBoundingClientRect($,!0);q.x=Y.x+$.clientLeft,q.y=Y.y+$.clientTop}else B&&(q.x=getWindowScrollBarX(B));return{x:j.left+U.scrollLeft-q.x,y:j.top+U.scrollTop-q.y,width:j.width,height:j.height}}function getParentNode(M){return getNodeName(M)==="html"?M:M.assignedSlot||M.parentNode||(isShadowRoot(M)?M.host:null)||getDocumentElement(M)}function getTrueOffsetParent(M){return!isHTMLElement(M)||getComputedStyle(M).position==="fixed"?null:M.offsetParent}function getContainingBlock(M){let $=getParentNode(M);for(;isHTMLElement($)&&!["html","body"].includes(getNodeName($));){if(isContainingBlock($))return $;$=$.parentNode}return null}function getOffsetParent(M){const $=getWindow(M);let I=getTrueOffsetParent(M);for(;I&&isTableElement(I)&&getComputedStyle(I).position==="static";)I=getTrueOffsetParent(I);return I&&(getNodeName(I)==="html"||getNodeName(I)==="body"&&getComputedStyle(I).position==="static"&&!isContainingBlock(I))?$:I||getContainingBlock(M)||$}function getDimensions(M){return{width:M.offsetWidth,height:M.offsetHeight}}function convertOffsetParentRelativeRectToViewportRelativeRect(M){let{rect:$,offsetParent:I,strategy:N}=M;const B=isHTMLElement(I),j=getDocumentElement(I);if(I===j)return $;let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if((B||!B&&N!=="fixed")&&((getNodeName(I)!=="body"||isScrollParent(j))&&(U=getNodeScroll(I)),isHTMLElement(I))){const Y=getBoundingClientRect(I,!0);q.x=Y.x+I.clientLeft,q.y=Y.y+I.clientTop}return{...$,x:$.x-U.scrollLeft+q.x,y:$.y-U.scrollTop+q.y}}function getViewportRect(M){const $=getWindow(M),I=getDocumentElement(M),N=$.visualViewport;let B=I.clientWidth,j=I.clientHeight,U=0,q=0;return N&&(B=N.width,j=N.height,Math.abs($.innerWidth/N.scale-N.width)<.01&&(U=N.offsetLeft,q=N.offsetTop)),{width:B,height:j,x:U,y:q}}function getDocumentRect(M){var $;const I=getDocumentElement(M),N=getNodeScroll(M),B=($=M.ownerDocument)==null?void 0:$.body,j=max$1(I.scrollWidth,I.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),U=max$1(I.scrollHeight,I.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0);let q=-N.scrollLeft+getWindowScrollBarX(M);const Y=-N.scrollTop;return getComputedStyle$1(B||I).direction==="rtl"&&(q+=max$1(I.clientWidth,B?B.clientWidth:0)-j),{width:j,height:U,x:q,y:Y}}function getScrollParent(M){return["html","body","#document"].includes(getNodeName(M))?M.ownerDocument.body:isHTMLElement(M)&&isScrollParent(M)?M:getScrollParent(getParentNode(M))}function getScrollParents(M,$){var I;$===void 0&&($=[]);const N=getScrollParent(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=getWindow(N),U=B?[j].concat(j.visualViewport||[],isScrollParent(N)?N:[]):N,q=$.concat(U);return B?q:q.concat(getScrollParents(getParentNode(U)))}function contains(M,$){const I=$.getRootNode==null?void 0:$.getRootNode();if(M.contains($))return!0;if(I&&isShadowRoot(I)){let N=$;do{if(N&&M===N)return!0;N=N.parentNode||N.host}while(N)}return!1}function getInnerBoundingClientRect(M){const $=getBoundingClientRect(M),I=$.top+M.clientTop,N=$.left+M.clientLeft;return{top:I,left:N,x:N,y:I,right:N+M.clientWidth,bottom:I+M.clientHeight,width:M.clientWidth,height:M.clientHeight}}function getClientRectFromClippingParent(M,$){return $==="viewport"?rectToClientRect(getViewportRect(M)):isElement($)?getInnerBoundingClientRect($):rectToClientRect(getDocumentRect(getDocumentElement(M)))}function getClippingParents(M){const $=getScrollParents(getParentNode(M)),N=["absolute","fixed"].includes(getComputedStyle$1(M).position)&&isHTMLElement(M)?getOffsetParent(M):M;return isElement(N)?$.filter(B=>isElement(B)&&contains(B,N)&&getNodeName(B)!=="body"):[]}function getClippingClientRect(M){let{element:$,boundary:I,rootBoundary:N}=M;const j=[...I==="clippingParents"?getClippingParents($):[].concat(I),N],U=j[0],q=j.reduce((Y,K)=>{const G=getClientRectFromClippingParent($,K);return Y.top=max$1(G.top,Y.top),Y.right=min$1(G.right,Y.right),Y.bottom=min$1(G.bottom,Y.bottom),Y.left=max$1(G.left,Y.left),Y},getClientRectFromClippingParent($,U));return q.width=q.right-q.left,q.height=q.bottom-q.top,q.x=q.left,q.y=q.top,q}const platform$2={getElementRects:M=>{let{reference:$,floating:I,strategy:N}=M;return{reference:getRectRelativeToOffsetParent($,getOffsetParent(I),N),floating:{...getDimensions(I),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:M=>convertOffsetParentRelativeRectToViewportRelativeRect(M),getOffsetParent:M=>{let{element:$}=M;return getOffsetParent($)},isElement:M=>isElement(M),getDocumentElement:M=>{let{element:$}=M;return getDocumentElement($)},getClippingClientRect:M=>getClippingClientRect(M),getDimensions:M=>{let{element:$}=M;return getDimensions($)},getClientRects:M=>{let{element:$}=M;return $.getClientRects()}},computePosition=(M,$,I)=>computePosition$1(M,$,{platform:platform$2,...I});var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(M,$,I)=>$ in M?__defProp(M,$,{enumerable:!0,configurable:!0,writable:!0,value:I}):M[$]=I,__spreadValues=(M,$)=>{for(var I in $||($={}))__hasOwnProp.call($,I)&&__defNormalProp(M,I,$[I]);if(__getOwnPropSymbols)for(var I of __getOwnPropSymbols($))__propIsEnum.call($,I)&&__defNormalProp(M,I,$[I]);return M},__spreadProps=(M,$)=>__defProps(M,__getOwnPropDescs($)),__objRest=(M,$)=>{var I={};for(var N in M)__hasOwnProp.call(M,N)&&$.indexOf(N)<0&&(I[N]=M[N]);if(M!=null&&__getOwnPropSymbols)for(var N of __getOwnPropSymbols(M))$.indexOf(N)<0&&__propIsEnum.call(M,N)&&(I[N]=M[N]);return I};function assign(M,$){for(const I in $)Object.prototype.hasOwnProperty.call($,I)&&(typeof $[I]=="object"&&M[I]?assign(M[I],$[I]):M[I]=$[I])}const config={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:M=>[...M,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function getDefaultConfig(M,$){let I=config.themes[M]||{},N;do N=I[$],typeof N>"u"?I.$extend?I=config.themes[I.$extend]||{}:(I=null,N=config[$]):I=null;while(I);return N}function getThemeClasses(M){const $=[M];let I=config.themes[M]||{};do I.$extend&&!I.$resetCss?($.push(I.$extend),I=config.themes[I.$extend]||{}):I=null;while(I);return $.map(N=>`v-popper--theme-${N}`)}function getAllParentThemes(M){const $=[M];let I=config.themes[M]||{};do I.$extend?($.push(I.$extend),I=config.themes[I.$extend]||{}):I=null;while(I);return $}let supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{const M=Object.defineProperty({},"passive",{get(){supportsPassive=!0}});window.addEventListener("test",null,M)}catch{}}let isIOS=!1;typeof window<"u"&&typeof navigator<"u"&&(isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const placements=["auto","top","bottom","left","right"].reduce((M,$)=>M.concat([$,`${$}-start`,`${$}-end`]),[]),SHOW_EVENT_MAP={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},HIDE_EVENT_MAP={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function removeFromArray(M,$){const I=M.indexOf($);I!==-1&&M.splice(I,1)}function nextFrame(){return new Promise(M=>requestAnimationFrame(()=>{requestAnimationFrame(M)}))}const shownPoppers=[];let hidingPopper=null;const shownPoppersByTheme={};function getShownPoppersByTheme(M){let $=shownPoppersByTheme[M];return $||($=shownPoppersByTheme[M]=[]),$}let Element$1=function(){};typeof window<"u"&&(Element$1=window.Element);function defaultPropFactory(M){return function(){const $=this.$props;return getDefaultConfig($.theme,M)}}const PROVIDE_KEY="__floating-vue__popper";var PrivatePopper=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:defaultPropFactory("disabled")},positioningDisabled:{type:Boolean,default:defaultPropFactory("positioningDisabled")},placement:{type:String,default:defaultPropFactory("placement"),validator:M=>placements.includes(M)},delay:{type:[String,Number,Object],default:defaultPropFactory("delay")},distance:{type:[Number,String],default:defaultPropFactory("distance")},skidding:{type:[Number,String],default:defaultPropFactory("skidding")},triggers:{type:Array,default:defaultPropFactory("triggers")},showTriggers:{type:[Array,Function],default:defaultPropFactory("showTriggers")},hideTriggers:{type:[Array,Function],default:defaultPropFactory("hideTriggers")},popperTriggers:{type:Array,default:defaultPropFactory("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:defaultPropFactory("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:defaultPropFactory("popperHideTriggers")},container:{type:[String,Object,Element$1,Boolean],default:defaultPropFactory("container")},boundary:{type:[String,Element$1],default:defaultPropFactory("boundary")},strategy:{type:String,validator:M=>["absolute","fixed"].includes(M),default:defaultPropFactory("strategy")},autoHide:{type:[Boolean,Function],default:defaultPropFactory("autoHide")},handleResize:{type:Boolean,default:defaultPropFactory("handleResize")},instantMove:{type:Boolean,default:defaultPropFactory("instantMove")},eagerMount:{type:Boolean,default:defaultPropFactory("eagerMount")},popperClass:{type:[String,Array,Object],default:defaultPropFactory("popperClass")},computeTransformOrigin:{type:Boolean,default:defaultPropFactory("computeTransformOrigin")},autoMinSize:{type:Boolean,default:defaultPropFactory("autoMinSize")},autoSize:{type:[Boolean,String],default:defaultPropFactory("autoSize")},autoMaxSize:{type:Boolean,default:defaultPropFactory("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:defaultPropFactory("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:defaultPropFactory("preventOverflow")},overflowPadding:{type:[Number,String],default:defaultPropFactory("overflowPadding")},arrowPadding:{type:[Number,String],default:defaultPropFactory("arrowPadding")},arrowOverflow:{type:Boolean,default:defaultPropFactory("arrowOverflow")},flip:{type:Boolean,default:defaultPropFactory("flip")},shift:{type:Boolean,default:defaultPropFactory("shift")},shiftCrossAxis:{type:Boolean,default:defaultPropFactory("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:defaultPropFactory("noAutoFocus")}},provide(){return{[PROVIDE_KEY]:{parentPopper:this}}},inject:{[PROVIDE_KEY]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:__spreadProps(__spreadValues({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var M;return(M=this[PROVIDE_KEY])==null?void 0:M.parentPopper},hasPopperShowTriggerHover(){var M,$;return((M=this.popperTriggers)==null?void 0:M.includes("hover"))||(($=this.popperShowTriggers)==null?void 0:$.includes("hover"))}},watch:__spreadValues(__spreadValues({shown:"$_autoShowHide",disabled(M){M?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((M,$)=>(M[$]="$_refreshListeners",M),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((M,$)=>(M[$]="$_computePosition",M),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(M=>M.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:M=null,skipDelay:$=!1,force:I=!1}={}){var N,B;(N=this.parentPopper)!=null&&N.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(I||!this.disabled)&&(((B=this.parentPopper)==null?void 0:B.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(M,$),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:M=null,skipDelay:$=!1,skipAiming:I=!1}={}){var N;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!I&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:$}),this.parentPopper.lockedChild=null)},1e3));return}((N=this.parentPopper)==null?void 0:N.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(M,$),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(M=>M.nodeType===M.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var M;if(this.$_isDisposed||this.positioningDisabled)return;const $={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&$.middleware.push(offset$1({mainAxis:this.distance,crossAxis:this.skidding}));const I=this.placement.startsWith("auto");if(I?$.middleware.push(autoPlacement({alignment:(M=this.placement.split("-")[1])!=null?M:""})):$.placement=this.placement,this.preventOverflow&&(this.shift&&$.middleware.push(shift({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!I&&this.flip&&$.middleware.push(flip({padding:this.overflowPadding,boundary:this.boundary}))),$.middleware.push(arrow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&$.middleware.push({name:"arrowOverflow",fn:({placement:B,rects:j,middlewareData:U})=>{let q;const{centerOffset:Y}=U.arrow;return B.startsWith("top")||B.startsWith("bottom")?q=Math.abs(Y)>j.reference.width/2:q=Math.abs(Y)>j.reference.height/2,{data:{overflow:q}}}}),this.autoMinSize||this.autoSize){const B=this.autoSize?this.autoSize:this.autoMinSize?"min":null;$.middleware.push({name:"autoSize",fn:({rects:j,placement:U,middlewareData:q})=>{var Y;if((Y=q.autoSize)!=null&&Y.skip)return{};let K,G;return U.startsWith("top")||U.startsWith("bottom")?K=j.reference.width:G=j.reference.height,this.$_innerNode.style[B==="min"?"minWidth":B==="max"?"maxWidth":"width"]=K!=null?`${K}px`:null,this.$_innerNode.style[B==="min"?"minHeight":B==="max"?"maxHeight":"height"]=G!=null?`${G}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,$.middleware.push(size({boundary:this.boundary,padding:this.overflowPadding,apply:({width:B,height:j})=>{this.$_innerNode.style.maxWidth=B!=null?`${B}px`:null,this.$_innerNode.style.maxHeight=j!=null?`${j}px`:null}})));const N=await computePosition(this.$_referenceNode,this.$_popperNode,$);Object.assign(this.result,{x:N.x,y:N.y,placement:N.placement,strategy:N.strategy,arrow:__spreadValues(__spreadValues({},N.middlewareData.arrow),N.middlewareData.arrowOverflow)})},$_scheduleShow(M=null,$=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),hidingPopper&&this.instantMove&&hidingPopper.instantMove&&hidingPopper!==this.parentPopper){hidingPopper.$_applyHide(!0),this.$_applyShow(!0);return}$?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(M=null,$=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(hidingPopper=this),$?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(M){const $=this.delay;return parseInt($&&$[M]||$||0)},async $_applyShow(M=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=M,!this.isShown&&(this.$_ensureTeleport(),await nextFrame(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...getScrollParents(this.$_referenceNode),...getScrollParents(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const $=this.$_referenceNode.getBoundingClientRect(),I=this.$_popperNode.querySelector(".v-popper__wrapper"),N=I.parentNode.getBoundingClientRect(),B=$.x+$.width/2-(N.left+I.offsetLeft),j=$.y+$.height/2-(N.top+I.offsetTop);this.result.transformOrigin=`${B}px ${j}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const M=this.showGroup;if(M){let $;for(let I=0;I<shownPoppers.length;I++)$=shownPoppers[I],$.showGroup!==M&&($.hide(),$.$emit("close-group"))}shownPoppers.push(this),document.body.classList.add("v-popper--some-open");for(const $ of getAllParentThemes(this.theme))getShownPoppersByTheme($).push(this),document.body.classList.add(`v-popper--some-open--${$}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await nextFrame(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(M=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=M,removeFromArray(shownPoppers,this),shownPoppers.length===0&&document.body.classList.remove("v-popper--some-open");for(const I of getAllParentThemes(this.theme)){const N=getShownPoppersByTheme(I);removeFromArray(N,this),N.length===0&&document.body.classList.remove(`v-popper--some-open--${I}`)}hidingPopper===this&&(hidingPopper=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const $=getDefaultConfig(this.theme,"disposeTimeout");$!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},$)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await nextFrame(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let M=this.container;if(typeof M=="string"?M=window.document.querySelector(M):M===!1&&(M=this.$_targetNodes[0].parentNode),!M)throw new Error("No container for popover: "+this.container);M.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const M=I=>{this.isShown&&!this.$_hideInProgress||(I.usedByTooltip=!0,!this.$_preventShow&&this.show({event:I}))};this.$_registerTriggerListeners(this.$_targetNodes,SHOW_EVENT_MAP,this.triggers,this.showTriggers,M),this.$_registerTriggerListeners([this.$_popperNode],SHOW_EVENT_MAP,this.popperTriggers,this.popperShowTriggers,M);const $=I=>N=>{N.usedByTooltip||this.hide({event:N,skipAiming:I})};this.$_registerTriggerListeners(this.$_targetNodes,HIDE_EVENT_MAP,this.triggers,this.hideTriggers,$(!1)),this.$_registerTriggerListeners([this.$_popperNode],HIDE_EVENT_MAP,this.popperTriggers,this.popperHideTriggers,$(!0))},$_registerEventListeners(M,$,I){this.$_events.push({targetNodes:M,eventType:$,handler:I}),M.forEach(N=>N.addEventListener($,I,supportsPassive?{passive:!0}:void 0))},$_registerTriggerListeners(M,$,I,N,B){let j=I;N!=null&&(j=typeof N=="function"?N(j):N),j.forEach(U=>{const q=$[U];q&&this.$_registerEventListeners(M,q,B)})},$_removeEventListeners(M){const $=[];this.$_events.forEach(I=>{const{targetNodes:N,eventType:B,handler:j}=I;!M||M===B?N.forEach(U=>U.removeEventListener(B,j)):$.push(I)}),this.$_events=$},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(M,$=!1){this.$_showFrameLocked||(this.hide({event:M}),M.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),$&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(M,$){for(const I of this.$_targetNodes){const N=I.getAttribute(M);N&&(I.removeAttribute(M),I.setAttribute($,N))}},$_applyAttrsToTarget(M){for(const $ of this.$_targetNodes)for(const I in M){const N=M[I];N==null?$.removeAttribute(I):$.setAttribute(I,N)}},$_updateParentShownChildren(M){let $=this.parentPopper;for(;$;)M?$.shownChildren.add(this.randomId):($.shownChildren.delete(this.randomId),$.$_pendingHide&&$.hide()),$=$.parentPopper},$_isAimingPopper(){const M=this.$el.getBoundingClientRect();if(mouseX>=M.left&&mouseX<=M.right&&mouseY>=M.top&&mouseY<=M.bottom){const $=this.$_popperNode.getBoundingClientRect(),I=mouseX-mousePreviousX,N=mouseY-mousePreviousY,j=$.left+$.width/2-mousePreviousX+($.top+$.height/2)-mousePreviousY+$.width+$.height,U=mousePreviousX+I*j,q=mousePreviousY+N*j;return lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.top,$.left,$.bottom)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.top,$.right,$.top)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.right,$.top,$.right,$.bottom)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.bottom,$.right,$.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(isIOS?(document.addEventListener("touchstart",handleGlobalMousedown,supportsPassive?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",handleGlobalTouchend,supportsPassive?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",handleGlobalMousedown,!0),window.addEventListener("click",handleGlobalClick,!0)),window.addEventListener("resize",computePositionAllShownPoppers));function handleGlobalMousedown(M){for(let $=0;$<shownPoppers.length;$++){const I=shownPoppers[$];try{const N=I.popperNode();I.$_mouseDownContains=N.contains(M.target)}catch{}}}function handleGlobalClick(M){handleGlobalClose(M)}function handleGlobalTouchend(M){handleGlobalClose(M,!0)}function handleGlobalClose(M,$=!1){const I={};for(let N=shownPoppers.length-1;N>=0;N--){const B=shownPoppers[N];try{const j=B.$_containsGlobalTarget=isContainingEventTarget(B,M);B.$_pendingHide=!1,requestAnimationFrame(()=>{if(B.$_pendingHide=!1,!I[B.randomId]&&shouldAutoHide(B,j,M)){if(B.$_handleGlobalClose(M,$),!M.closeAllPopover&&M.closePopover&&j){let q=B.parentPopper;for(;q;)I[q.randomId]=!0,q=q.parentPopper;return}let U=B.parentPopper;for(;U&&shouldAutoHide(U,U.$_containsGlobalTarget,M);){U.$_handleGlobalClose(M,$);U=U.parentPopper}}})}catch{}}}function isContainingEventTarget(M,$){const I=M.popperNode();return M.$_mouseDownContains||I.contains($.target)}function shouldAutoHide(M,$,I){return I.closeAllPopover||I.closePopover&&$||getAutoHideResult(M,I)&&!$}function getAutoHideResult(M,$){if(typeof M.autoHide=="function"){const I=M.autoHide($);return M.lastAutoHide=I,I}return M.autoHide}function computePositionAllShownPoppers(M){for(let $=0;$<shownPoppers.length;$++)shownPoppers[$].$_computePosition(M)}let mousePreviousX=0,mousePreviousY=0,mouseX=0,mouseY=0;typeof window<"u"&&window.addEventListener("mousemove",M=>{mousePreviousX=mouseX,mousePreviousY=mouseY,mouseX=M.clientX,mouseY=M.clientY},supportsPassive?{passive:!0}:void 0);function lineIntersectsLine(M,$,I,N,B,j,U,q){const Y=((U-B)*($-j)-(q-j)*(M-B))/((q-j)*(I-M)-(U-B)*(N-$)),K=((I-M)*($-j)-(N-$)*(M-B))/((q-j)*(I-M)-(U-B)*(N-$));return Y>=0&&Y<=1&&K>=0&&K<=1}function getInternetExplorerVersion(){var M=window.navigator.userAgent,$=M.indexOf("MSIE ");if($>0)return parseInt(M.substring($+5,M.indexOf(".",$)),10);var I=M.indexOf("Trident/");if(I>0){var N=M.indexOf("rv:");return parseInt(M.substring(N+3,M.indexOf(".",N)),10)}var B=M.indexOf("Edge/");return B>0?parseInt(M.substring(B+5,M.indexOf(".",B)),10):-1}var isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function M(){var $=this;initCompat(),this.$nextTick(function(){$._w=$.$el.offsetWidth,$._h=$.$el.offsetHeight,$.emitOnMount&&$.emitSize()});var I=document.createElement("object");this._resizeObject=I,I.setAttribute("aria-hidden","true"),I.setAttribute("tabindex",-1),I.onload=this.addResizeHandlers,I.type="text/html",isIE&&this.$el.appendChild(I),I.data="about:blank",isIE||this.$el.appendChild(I)},beforeDestroy:function M(){this.removeResizeHandlers()},methods:{compareAndNotify:function M(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function M(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function M(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function M(){this._resizeObject&&this._resizeObject.onload&&(!isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function normalizeComponent$1(M,$,I,N,B,j,U,q,Y,K){typeof U!="boolean"&&(Y=q,q=U,U=!1);var G=typeof I=="function"?I.options:I;M&&M.render&&(G.render=M.render,G.staticRenderFns=M.staticRenderFns,G._compiled=!0,B&&(G.functional=!0)),N&&(G._scopeId=N);var J;if(j?(J=function(re){re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!re&&typeof __VUE_SSR_CONTEXT__<"u"&&(re=__VUE_SSR_CONTEXT__),$&&$.call(this,Y(re)),re&&re._registeredComponents&&re._registeredComponents.add(j)},G._ssrRegister=J):$&&(J=U?function(te){$.call(this,K(te,this.$root.$options.shadowRoot))}:function(te){$.call(this,q(te))}),J)if(G.functional){var Z=G.render;G.render=function(re,se){return J.call(se),Z(re,se)}}else{var ee=G.beforeCreate;G.beforeCreate=ee?[].concat(ee,J):[J]}return I}var __vue_script__=script,__vue_render__=function M(){var $=this,I=$.$createElement,N=$._self._c||I;return N("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;var __vue_inject_styles__=void 0,__vue_scope_id__="data-v-8859cc6c",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent$1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);function install$1(M){M.component("resize-observer",__vue_component__),M.component("ResizeObserver",__vue_component__)}var plugin$1={version:"1.0.1",install:install$1},GlobalVue$1=null;typeof window<"u"?GlobalVue$1=window.Vue:typeof global<"u"&&(GlobalVue$1=global.Vue);GlobalVue$1&&GlobalVue$1.use(plugin$1);var PrivateThemeClass={computed:{themeClass(){return getThemeClasses(this.theme)}}},__vue2_script$5={name:"VPopperContent",components:{ResizeObserver:__vue_component__},mixins:[PrivateThemeClass],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(M){return M!=null&&!isNaN(M)?`${M}px`:null}}},render$2=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("div",{ref:"popover",staticClass:"v-popper__popper",class:[M.themeClass,M.classes.popperClass,{"v-popper__popper--shown":M.shown,"v-popper__popper--hidden":!M.shown,"v-popper__popper--show-from":M.classes.showFrom,"v-popper__popper--show-to":M.classes.showTo,"v-popper__popper--hide-from":M.classes.hideFrom,"v-popper__popper--hide-to":M.classes.hideTo,"v-popper__popper--skip-transition":M.skipTransition,"v-popper__popper--arrow-overflow":M.result&&M.result.arrow.overflow,"v-popper__popper--no-positioning":!M.result}],style:M.result?{position:M.result.strategy,transform:"translate3d("+Math.round(M.result.x)+"px,"+Math.round(M.result.y)+"px,0)"}:void 0,attrs:{id:M.popperId,"aria-hidden":M.shown?"false":"true",tabindex:M.autoHide?0:void 0,"data-popper-placement":M.result?M.result.placement:void 0},on:{keyup:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"]))return null;M.autoHide&&M.$emit("hide")}}},[I("div",{staticClass:"v-popper__backdrop",on:{click:function(N){M.autoHide&&M.$emit("hide")}}}),I("div",{staticClass:"v-popper__wrapper",style:M.result?{transformOrigin:M.result.transformOrigin}:void 0},[I("div",{ref:"inner",staticClass:"v-popper__inner"},[M.mounted?[I("div",[M._t("default")],2),M.handleResize?I("ResizeObserver",{on:{notify:function(N){return M.$emit("resize",N)}}}):M._e()]:M._e()],2),I("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:M.result?{left:M.toPx(M.result.arrow.x),top:M.toPx(M.result.arrow.y)}:void 0},[I("div",{staticClass:"v-popper__arrow-outer"}),I("div",{staticClass:"v-popper__arrow-inner"})])])])},staticRenderFns$2=[];function normalizeComponent(M,$,I,N,B,j,U,q){var Y=typeof M=="function"?M.options:M;$&&(Y.render=$,Y.staticRenderFns=I,Y._compiled=!0),N&&(Y.functional=!0),j&&(Y._scopeId="data-v-"+j);var K;if(U?(K=function(Z){Z=Z||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!Z&&typeof __VUE_SSR_CONTEXT__<"u"&&(Z=__VUE_SSR_CONTEXT__),B&&B.call(this,Z),Z&&Z._registeredComponents&&Z._registeredComponents.add(U)},Y._ssrRegister=K):B&&(K=q?function(){B.call(this,(Y.functional?this.parent:this).$root.$options.shadowRoot)}:B),K)if(Y.functional){Y._injectStyles=K;var G=Y.render;Y.render=function(ee,te){return K.call(te),G(ee,te)}}else{var J=Y.beforeCreate;Y.beforeCreate=J?[].concat(J,K):[K]}return{exports:M,options:Y}}const __cssModules$5={};var __component__$5$1=normalizeComponent(__vue2_script$5,render$2,staticRenderFns$2,!1,__vue2_injectStyles$5,null,null,null);function __vue2_injectStyles$5(M){for(let $ in __cssModules$5)this[$]=__cssModules$5[$]}var PrivatePopperContent=function(){return __component__$5$1.exports}(),PrivatePopperMethods={methods:{show(...M){return this.$refs.popper.show(...M)},hide(...M){return this.$refs.popper.hide(...M)},dispose(...M){return this.$refs.popper.dispose(...M)},onResize(...M){return this.$refs.popper.onResize(...M)}}},__vue2_script$4={name:"VPopperWrapper",components:{Popper:PrivatePopper(),PopperContent:PrivatePopperContent},mixins:[PrivatePopperMethods,PrivateThemeClass],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(M=>M!==this.$refs.popperContent.$el)}}},render$1=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("Popper",M._g(M._b({ref:"popper",attrs:{theme:M.theme,"target-nodes":M.getTargetNodes,"reference-node":function(){return M.$refs.reference},"popper-node":function(){return M.$refs.popperContent.$el}},scopedSlots:M._u([{key:"default",fn:function(N){var B=N.popperId,j=N.isShown,U=N.shouldMountContent,q=N.skipTransition,Y=N.autoHide,K=N.show,G=N.hide,J=N.handleResize,Z=N.onResize,ee=N.classes,te=N.result;return[I("div",{ref:"reference",staticClass:"v-popper",class:[M.themeClass,{"v-popper--shown":j}]},[M._t("default",null,{shown:j,show:K,hide:G}),I("PopperContent",{ref:"popperContent",attrs:{"popper-id":B,theme:M.theme,shown:j,mounted:U,"skip-transition":q,"auto-hide":Y,"handle-resize":J,classes:ee,result:te},on:{hide:G,resize:Z}},[M._t("popper",null,{shown:j,hide:G})],2)],2)]}}],null,!0)},"Popper",M.$attrs,!1),M.$listeners))},staticRenderFns$1=[];const __cssModules$4={};var __component__$4$1=normalizeComponent(__vue2_script$4,render$1,staticRenderFns$1,!1,__vue2_injectStyles$4,null,null,null);function __vue2_injectStyles$4(M){for(let $ in __cssModules$4)this[$]=__cssModules$4[$]}var PrivatePopperWrapper=function(){return __component__$4$1.exports}(),__vue2_script$3=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VDropdown",vPopperTheme:"dropdown"});let __vue2_render$2,__vue2_staticRenderFns$2;const __cssModules$3={};var __component__$3$1=normalizeComponent(__vue2_script$3,__vue2_render$2,__vue2_staticRenderFns$2,!1,__vue2_injectStyles$3,null,null,null);function __vue2_injectStyles$3(M){for(let $ in __cssModules$3)this[$]=__cssModules$3[$]}var PrivateDropdown=function(){return __component__$3$1.exports}(),__vue2_script$2=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VMenu",vPopperTheme:"menu"});let __vue2_render$1,__vue2_staticRenderFns$1;const __cssModules$2={};var __component__$2$1=normalizeComponent(__vue2_script$2,__vue2_render$1,__vue2_staticRenderFns$1,!1,__vue2_injectStyles$2,null,null,null);function __vue2_injectStyles$2(M){for(let $ in __cssModules$2)this[$]=__cssModules$2[$]}var PrivateMenu=function(){return __component__$2$1.exports}(),__vue2_script$1=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VTooltip",vPopperTheme:"tooltip"});let __vue2_render,__vue2_staticRenderFns;const __cssModules$1={};var __component__$1$1=normalizeComponent(__vue2_script$1,__vue2_render,__vue2_staticRenderFns,!1,__vue2_injectStyles$1,null,null,null);function __vue2_injectStyles$1(M){for(let $ in __cssModules$1)this[$]=__cssModules$1[$]}var PrivateTooltip=function(){return __component__$1$1.exports}(),__vue2_script={name:"VTooltipDirective",components:{Popper:PrivatePopper(),PopperContent:PrivatePopperContent},mixins:[PrivatePopperMethods],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return getDefaultConfig(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return getDefaultConfig(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(M){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(M){if(typeof this.content=="function"&&this.$_isShown&&(M||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const $=++this.$_fetchId,I=this.content(this);I.then?I.then(N=>this.onResult($,N)):this.onResult($,I)}},onResult(M,$){M===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=$)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},render=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("Popper",M._g(M._b({ref:"popper",attrs:{theme:M.theme,"popper-node":function(){return M.$refs.popperContent.$el}},on:{"apply-show":M.onShow,"apply-hide":M.onHide},scopedSlots:M._u([{key:"default",fn:function(N){var B=N.popperId,j=N.isShown,U=N.shouldMountContent,q=N.skipTransition,Y=N.autoHide,K=N.hide,G=N.handleResize,J=N.onResize,Z=N.classes,ee=N.result;return[I("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":M.loading},attrs:{"popper-id":B,theme:M.theme,shown:j,mounted:U,"skip-transition":q,"auto-hide":Y,"handle-resize":G,classes:Z,result:ee},on:{hide:K,resize:J}},[M.html?I("div",{domProps:{innerHTML:M._s(M.finalContent)}}):I("div",{domProps:{textContent:M._s(M.finalContent)}})])]}}])},"Popper",M.$attrs,!1),M.$listeners))},staticRenderFns=[];const __cssModules={};var __component__$S=normalizeComponent(__vue2_script,render,staticRenderFns,!1,__vue2_injectStyles,null,null,null);function __vue2_injectStyles(M){for(let $ in __cssModules)this[$]=__cssModules[$]}var PrivateTooltipDirective=function(){return __component__$S.exports}();const TARGET_CLASS="v-popper--has-tooltip";function getPlacement(M,$){let I=M.placement;if(!I&&$)for(const N of placements)$[N]&&(I=N);return I||(I=getDefaultConfig(M.theme||"tooltip","placement")),I}function getOptions(M,$,I){let N;const B=typeof $;return B==="string"?N={content:$}:$&&B==="object"?N=$:N={content:!1},N.placement=getPlacement(N,I),N.targetNodes=()=>[M],N.referenceNode=()=>M,N}function createTooltip(M,$,I){const N=getOptions(M,$,I),B=M.$_popper=new Vue$3({mixins:[PrivatePopperMethods],data(){return{options:N}},render(U){const q=this.options,{theme:Y,html:K,content:G,loadingContent:J}=q,Z=__objRest(q,["theme","html","content","loadingContent"]);return U(PrivateTooltipDirective,{props:{theme:Y,html:K,content:G,loadingContent:J},attrs:Z,ref:"popper"})},devtools:{hide:!0}}),j=document.createElement("div");return document.body.appendChild(j),B.$mount(j),M.classList&&M.classList.add(TARGET_CLASS),B}function destroyTooltip(M){M.$_popper&&(M.$_popper.$destroy(),delete M.$_popper,delete M.$_popperOldShown),M.classList&&M.classList.remove(TARGET_CLASS)}function bind$1(M,{value:$,oldValue:I,modifiers:N}){const B=getOptions(M,$,N);if(!B.content||getDefaultConfig(B.theme||"tooltip","disabled"))destroyTooltip(M);else{let j;M.$_popper?(j=M.$_popper,j.options=B):j=createTooltip(M,$,N),typeof $.shown<"u"&&$.shown!==M.$_popperOldShown&&(M.$_popperOldShown=$.shown,$.shown?j.show():j.hide())}}var PrivateVTooltip={bind:bind$1,update:bind$1,unbind(M){destroyTooltip(M)}};function addListeners(M){M.addEventListener("click",onClick),M.addEventListener("touchstart",onTouchStart,supportsPassive?{passive:!0}:!1)}function removeListeners(M){M.removeEventListener("click",onClick),M.removeEventListener("touchstart",onTouchStart),M.removeEventListener("touchend",onTouchEnd),M.removeEventListener("touchcancel",onTouchCancel)}function onClick(M){const $=M.currentTarget;M.closePopover=!$.$_vclosepopover_touch,M.closeAllPopover=$.$_closePopoverModifiers&&!!$.$_closePopoverModifiers.all}function onTouchStart(M){if(M.changedTouches.length===1){const $=M.currentTarget;$.$_vclosepopover_touch=!0;const I=M.changedTouches[0];$.$_vclosepopover_touchPoint=I,$.addEventListener("touchend",onTouchEnd),$.addEventListener("touchcancel",onTouchCancel)}}function onTouchEnd(M){const $=M.currentTarget;if($.$_vclosepopover_touch=!1,M.changedTouches.length===1){const I=M.changedTouches[0],N=$.$_vclosepopover_touchPoint;M.closePopover=Math.abs(I.screenY-N.screenY)<20&&Math.abs(I.screenX-N.screenX)<20,M.closeAllPopover=$.$_closePopoverModifiers&&!!$.$_closePopoverModifiers.all}}function onTouchCancel(M){const $=M.currentTarget;$.$_vclosepopover_touch=!1}var PrivateVClosePopper={bind(M,{value:$,modifiers:I}){M.$_closePopoverModifiers=I,(typeof $>"u"||$)&&addListeners(M)},update(M,{value:$,oldValue:I,modifiers:N}){M.$_closePopoverModifiers=N,$!==I&&(typeof $>"u"||$?addListeners(M):removeListeners(M))},unbind(M){removeListeners(M)}};function install$2(M,$={}){M.$_vTooltipInstalled||(M.$_vTooltipInstalled=!0,assign(config,$),M.directive("tooltip",PrivateVTooltip),M.directive("close-popper",PrivateVClosePopper),M.component("v-tooltip",PrivateTooltip),M.component("VTooltip",PrivateTooltip),M.component("v-dropdown",PrivateDropdown),M.component("VDropdown",PrivateDropdown),M.component("v-menu",PrivateMenu),M.component("VMenu",PrivateMenu))}const plugin={version:"1.0.0-beta.19",install:install$2,options:config};let GlobalVue=null;typeof window<"u"?GlobalVue=window.Vue:typeof global<"u"&&(GlobalVue=global.Vue);GlobalVue&&GlobalVue.use(plugin);const style="";Vue$3.use(plugin,{disposeTimeout:3e4,distance:10});function bind(M,$){return function(){return M.apply($,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(M=>$=>{const I=toString$1.call($);return M[I]||(M[I]=I.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=M=>(M=M.toLowerCase(),$=>kindOf($)===M),typeOfTest=M=>$=>typeof $===M,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(M){return M!==null&&!isUndefined$1(M)&&M.constructor!==null&&!isUndefined$1(M.constructor)&&isFunction$1(M.constructor.isBuffer)&&M.constructor.isBuffer(M)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(M){let $;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?$=ArrayBuffer.isView(M):$=M&&M.buffer&&isArrayBuffer(M.buffer),$}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$2=M=>M!==null&&typeof M=="object",isBoolean=M=>M===!0||M===!1,isPlainObject=M=>{if(kindOf(M)!=="object")return!1;const $=getPrototypeOf(M);return($===null||$===Object.prototype||Object.getPrototypeOf($)===null)&&!(Symbol.toStringTag in M)&&!(Symbol.iterator in M)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=M=>isObject$2(M)&&isFunction$1(M.pipe),isFormData=M=>{let $;return M&&(typeof FormData=="function"&&M instanceof FormData||isFunction$1(M.append)&&(($=kindOf(M))==="formdata"||$==="object"&&isFunction$1(M.toString)&&M.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=M=>M.trim?M.trim():M.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(M,$,{allOwnKeys:I=!1}={}){if(M===null||typeof M>"u")return;let N,B;if(typeof M!="object"&&(M=[M]),isArray$1(M))for(N=0,B=M.length;N<B;N++)$.call(null,M[N],N,M);else{const j=I?Object.getOwnPropertyNames(M):Object.keys(M),U=j.length;let q;for(N=0;N<U;N++)q=j[N],$.call(null,M[q],q,M)}}function findKey(M,$){$=$.toLowerCase();const I=Object.keys(M);let N=I.length,B;for(;N-- >0;)if(B=I[N],$===B.toLowerCase())return B;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=M=>!isUndefined$1(M)&&M!==_global;function merge$1(){const{caseless:M}=isContextDefined(this)&&this||{},$={},I=(N,B)=>{const j=M&&findKey($,B)||B;isPlainObject($[j])&&isPlainObject(N)?$[j]=merge$1($[j],N):isPlainObject(N)?$[j]=merge$1({},N):isArray$1(N)?$[j]=N.slice():$[j]=N};for(let N=0,B=arguments.length;N<B;N++)arguments[N]&&forEach(arguments[N],I);return $}const extend$1=(M,$,I,{allOwnKeys:N}={})=>(forEach($,(B,j)=>{I&&isFunction$1(B)?M[j]=bind(B,I):M[j]=B},{allOwnKeys:N}),M),stripBOM=M=>(M.charCodeAt(0)===65279&&(M=M.slice(1)),M),inherits=(M,$,I,N)=>{M.prototype=Object.create($.prototype,N),M.prototype.constructor=M,Object.defineProperty(M,"super",{value:$.prototype}),I&&Object.assign(M.prototype,I)},toFlatObject=(M,$,I,N)=>{let B,j,U;const q={};if($=$||{},M==null)return $;do{for(B=Object.getOwnPropertyNames(M),j=B.length;j-- >0;)U=B[j],(!N||N(U,M,$))&&!q[U]&&($[U]=M[U],q[U]=!0);M=I!==!1&&getPrototypeOf(M)}while(M&&(!I||I(M,$))&&M!==Object.prototype);return $},endsWith=(M,$,I)=>{M=String(M),(I===void 0||I>M.length)&&(I=M.length),I-=$.length;const N=M.indexOf($,I);return N!==-1&&N===I},toArray$1=M=>{if(!M)return null;if(isArray$1(M))return M;let $=M.length;if(!isNumber$1($))return null;const I=new Array($);for(;$-- >0;)I[$]=M[$];return I},isTypedArray=(M=>$=>M&&$ instanceof M)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(M,$)=>{const N=(M&&M[Symbol.iterator]).call(M);let B;for(;(B=N.next())&&!B.done;){const j=B.value;$.call(M,j[0],j[1])}},matchAll=(M,$)=>{let I;const N=[];for(;(I=M.exec($))!==null;)N.push(I);return N},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=M=>M.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(I,N,B){return N.toUpperCase()+B}),hasOwnProperty=(({hasOwnProperty:M})=>($,I)=>M.call($,I))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(M,$)=>{const I=Object.getOwnPropertyDescriptors(M),N={};forEach(I,(B,j)=>{let U;(U=$(B,j,M))!==!1&&(N[j]=U||B)}),Object.defineProperties(M,N)},freezeMethods=M=>{reduceDescriptors(M,($,I)=>{if(isFunction$1(M)&&["arguments","caller","callee"].indexOf(I)!==-1)return!1;const N=M[I];if(isFunction$1(N)){if($.enumerable=!1,"writable"in $){$.writable=!1;return}$.set||($.set=()=>{throw Error("Can not rewrite read-only method '"+I+"'")})}})},toObjectSet=(M,$)=>{const I={},N=B=>{B.forEach(j=>{I[j]=!0})};return isArray$1(M)?N(M):N(String(M).split($)),I},noop=()=>{},toFiniteNumber=(M,$)=>(M=+M,Number.isFinite(M)?M:$),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(M=16,$=ALPHABET.ALPHA_DIGIT)=>{let I="";const{length:N}=$;for(;M--;)I+=$[Math.random()*N|0];return I};function isSpecCompliantForm(M){return!!(M&&isFunction$1(M.append)&&M[Symbol.toStringTag]==="FormData"&&M[Symbol.iterator])}const toJSONObject=M=>{const $=new Array(10),I=(N,B)=>{if(isObject$2(N)){if($.indexOf(N)>=0)return;if(!("toJSON"in N)){$[B]=N;const j=isArray$1(N)?[]:{};return forEach(N,(U,q)=>{const Y=I(U,B+1);!isUndefined$1(Y)&&(j[q]=Y)}),$[B]=void 0,j}}return N};return I(M,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=M=>M&&(isObject$2(M)||isFunction$1(M))&&isFunction$1(M.then)&&isFunction$1(M.catch),utils$1={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$2,isPlainObject,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend:extend$1,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(M,$,I,N,B){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=M,this.name="AxiosError",$&&(this.code=$),I&&(this.config=I),N&&(this.request=N),B&&(this.response=B)}utils$1.inherits(AxiosError,Error,{toJSON:function M(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(M=>{descriptors[M]={value:M}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(M,$,I,N,B,j)=>{const U=Object.create(prototype$1);return utils$1.toFlatObject(M,U,function(Y){return Y!==Error.prototype},q=>q!=="isAxiosError"),AxiosError.call(U,M.message,$,I,N,B),U.cause=M,U.name=M.name,j&&Object.assign(U,j),U};const httpAdapter=null;function isVisitable(M){return utils$1.isPlainObject(M)||utils$1.isArray(M)}function removeBrackets(M){return utils$1.endsWith(M,"[]")?M.slice(0,-2):M}function renderKey(M,$,I){return M?M.concat($).map(function(B,j){return B=removeBrackets(B),!I&&j?"["+B+"]":B}).join(I?".":""):$}function isFlatArray(M){return utils$1.isArray(M)&&!M.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function M($){return/^is[A-Z]/.test($)});function toFormData(M,$,I){if(!utils$1.isObject(M))throw new TypeError("target must be an object");$=$||new FormData,I=utils$1.toFlatObject(I,{metaTokens:!0,dots:!1,indexes:!1},!1,function(re,se){return!utils$1.isUndefined(se[re])});const N=I.metaTokens,B=I.visitor||G,j=I.dots,U=I.indexes,Y=(I.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm($);if(!utils$1.isFunction(B))throw new TypeError("visitor must be a function");function K(te){if(te===null)return"";if(utils$1.isDate(te))return te.toISOString();if(!Y&&utils$1.isBlob(te))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(te)||utils$1.isTypedArray(te)?Y&&typeof Blob=="function"?new Blob([te]):Buffer.from(te):te}function G(te,re,se){let ne=te;if(te&&!se&&typeof te=="object"){if(utils$1.endsWith(re,"{}"))re=N?re:re.slice(0,-2),te=JSON.stringify(te);else if(utils$1.isArray(te)&&isFlatArray(te)||(utils$1.isFileList(te)||utils$1.endsWith(re,"[]"))&&(ne=utils$1.toArray(te)))return re=removeBrackets(re),ne.forEach(function(ge,ue){!(utils$1.isUndefined(ge)||ge===null)&&$.append(U===!0?renderKey([re],ue,j):U===null?re:re+"[]",K(ge))}),!1}return isVisitable(te)?!0:($.append(renderKey(se,re,j),K(te)),!1)}const J=[],Z=Object.assign(predicates,{defaultVisitor:G,convertValue:K,isVisitable});function ee(te,re){if(!utils$1.isUndefined(te)){if(J.indexOf(te)!==-1)throw Error("Circular reference detected in "+re.join("."));J.push(te),utils$1.forEach(te,function(ne,le){(!(utils$1.isUndefined(ne)||ne===null)&&B.call($,ne,utils$1.isString(le)?le.trim():le,re,Z))===!0&&ee(ne,re?re.concat(le):[le])}),J.pop()}}if(!utils$1.isObject(M))throw new TypeError("data must be an object");return ee(M),$}function encode$1(M){const $={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(M).replace(/[!'()~]|%20|%00/g,function(N){return $[N]})}function AxiosURLSearchParams(M,$){this._pairs=[],M&&toFormData(M,this,$)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function M($,I){this._pairs.push([$,I])};prototype.toString=function M($){const I=$?function(N){return $.call(this,N,encode$1)}:encode$1;return this._pairs.map(function(B){return I(B[0])+"="+I(B[1])},"").join("&")};function encode(M){return encodeURIComponent(M).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(M,$,I){if(!$)return M;const N=I&&I.encode||encode,B=I&&I.serialize;let j;if(B?j=B($,I):j=utils$1.isURLSearchParams($)?$.toString():new AxiosURLSearchParams($,I).toString(N),j){const U=M.indexOf("#");U!==-1&&(M=M.slice(0,U)),M+=(M.indexOf("?")===-1?"?":"&")+j}return M}class InterceptorManager{constructor(){this.handlers=[]}use($,I,N){return this.handlers.push({fulfilled:$,rejected:I,synchronous:N?N.synchronous:!1,runWhen:N?N.runWhen:null}),this.handlers.length-1}eject($){this.handlers[$]&&(this.handlers[$]=null)}clear(){this.handlers&&(this.handlers=[])}forEach($){utils$1.forEach(this.handlers,function(N){N!==null&&$(N)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(M=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(M)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(M,$){return toFormData(M,new platform.classes.URLSearchParams,Object.assign({visitor:function(I,N,B,j){return platform.isNode&&utils$1.isBuffer(I)?(this.append(N,I.toString("base64")),!1):j.defaultVisitor.apply(this,arguments)}},$))}function parsePropPath(M){return utils$1.matchAll(/\w+|\[(\w*)]/g,M).map($=>$[0]==="[]"?"":$[1]||$[0])}function arrayToObject(M){const $={},I=Object.keys(M);let N;const B=I.length;let j;for(N=0;N<B;N++)j=I[N],$[j]=M[j];return $}function formDataToJSON(M){function $(I,N,B,j){let U=I[j++];if(U==="__proto__")return!0;const q=Number.isFinite(+U),Y=j>=I.length;return U=!U&&utils$1.isArray(B)?B.length:U,Y?(utils$1.hasOwnProp(B,U)?B[U]=[B[U],N]:B[U]=N,!q):((!B[U]||!utils$1.isObject(B[U]))&&(B[U]=[]),$(I,N,B[U],j)&&utils$1.isArray(B[U])&&(B[U]=arrayToObject(B[U])),!q)}if(utils$1.isFormData(M)&&utils$1.isFunction(M.entries)){const I={};return utils$1.forEachEntry(M,(N,B)=>{$(parsePropPath(N),B,I,0)}),I}return null}function stringifySafely(M,$,I){if(utils$1.isString(M))try{return($||JSON.parse)(M),utils$1.trim(M)}catch(N){if(N.name!=="SyntaxError")throw N}return(I||JSON.stringify)(M)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function M($,I){const N=I.getContentType()||"",B=N.indexOf("application/json")>-1,j=utils$1.isObject($);if(j&&utils$1.isHTMLForm($)&&($=new FormData($)),utils$1.isFormData($))return B&&B?JSON.stringify(formDataToJSON($)):$;if(utils$1.isArrayBuffer($)||utils$1.isBuffer($)||utils$1.isStream($)||utils$1.isFile($)||utils$1.isBlob($))return $;if(utils$1.isArrayBufferView($))return $.buffer;if(utils$1.isURLSearchParams($))return I.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),$.toString();let q;if(j){if(N.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm($,this.formSerializer).toString();if((q=utils$1.isFileList($))||N.indexOf("multipart/form-data")>-1){const Y=this.env&&this.env.FormData;return toFormData(q?{"files[]":$}:$,Y&&new Y,this.formSerializer)}}return j||B?(I.setContentType("application/json",!1),stringifySafely($)):$}],transformResponse:[function M($){const I=this.transitional||defaults$1.transitional,N=I&&I.forcedJSONParsing,B=this.responseType==="json";if($&&utils$1.isString($)&&(N&&!this.responseType||B)){const U=!(I&&I.silentJSONParsing)&&B;try{return JSON.parse($)}catch(q){if(U)throw q.name==="SyntaxError"?AxiosError.from(q,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):q}}return $}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function M($){return $>=200&&$<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],M=>{defaults$1.headers[M]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=M=>{const $={};let I,N,B;return M&&M.split(`
- `).forEach(function(U){B=U.indexOf(":"),I=U.substring(0,B).trim().toLowerCase(),N=U.substring(B+1).trim(),!(!I||$[I]&&ignoreDuplicateOf[I])&&(I==="set-cookie"?$[I]?$[I].push(N):$[I]=[N]:$[I]=$[I]?$[I]+", "+N:N)}),$},$internals=Symbol("internals");function normalizeHeader(M){return M&&String(M).trim().toLowerCase()}function normalizeValue(M){return M===!1||M==null?M:utils$1.isArray(M)?M.map(normalizeValue):String(M)}function parseTokens(M){const $=Object.create(null),I=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let N;for(;N=I.exec(M);)$[N[1]]=N[2];return $}const isValidHeaderName=M=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(M.trim());function matchHeaderValue(M,$,I,N,B){if(utils$1.isFunction(N))return N.call(this,$,I);if(B&&($=I),!!utils$1.isString($)){if(utils$1.isString(N))return $.indexOf(N)!==-1;if(utils$1.isRegExp(N))return N.test($)}}function formatHeader(M){return M.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,($,I,N)=>I.toUpperCase()+N)}function buildAccessors(M,$){const I=utils$1.toCamelCase(" "+$);["get","set","has"].forEach(N=>{Object.defineProperty(M,N+I,{value:function(B,j,U){return this[N].call(this,$,B,j,U)},configurable:!0})})}class AxiosHeaders{constructor($){$&&this.set($)}set($,I,N){const B=this;function j(q,Y,K){const G=normalizeHeader(Y);if(!G)throw new Error("header name must be a non-empty string");const J=utils$1.findKey(B,G);(!J||B[J]===void 0||K===!0||K===void 0&&B[J]!==!1)&&(B[J||Y]=normalizeValue(q))}const U=(q,Y)=>utils$1.forEach(q,(K,G)=>j(K,G,Y));return utils$1.isPlainObject($)||$ instanceof this.constructor?U($,I):utils$1.isString($)&&($=$.trim())&&!isValidHeaderName($)?U(parseHeaders($),I):$!=null&&j(I,$,N),this}get($,I){if($=normalizeHeader($),$){const N=utils$1.findKey(this,$);if(N){const B=this[N];if(!I)return B;if(I===!0)return parseTokens(B);if(utils$1.isFunction(I))return I.call(this,B,N);if(utils$1.isRegExp(I))return I.exec(B);throw new TypeError("parser must be boolean|regexp|function")}}}has($,I){if($=normalizeHeader($),$){const N=utils$1.findKey(this,$);return!!(N&&this[N]!==void 0&&(!I||matchHeaderValue(this,this[N],N,I)))}return!1}delete($,I){const N=this;let B=!1;function j(U){if(U=normalizeHeader(U),U){const q=utils$1.findKey(N,U);q&&(!I||matchHeaderValue(N,N[q],q,I))&&(delete N[q],B=!0)}}return utils$1.isArray($)?$.forEach(j):j($),B}clear($){const I=Object.keys(this);let N=I.length,B=!1;for(;N--;){const j=I[N];(!$||matchHeaderValue(this,this[j],j,$,!0))&&(delete this[j],B=!0)}return B}normalize($){const I=this,N={};return utils$1.forEach(this,(B,j)=>{const U=utils$1.findKey(N,j);if(U){I[U]=normalizeValue(B),delete I[j];return}const q=$?formatHeader(j):String(j).trim();q!==j&&delete I[j],I[q]=normalizeValue(B),N[q]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){const I=Object.create(null);return utils$1.forEach(this,(N,B)=>{N!=null&&N!==!1&&(I[B]=$&&utils$1.isArray(N)?N.join(", "):N)}),I}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,I])=>$+": "+I).join(`
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...I){const N=new this($);return I.forEach(B=>N.set(B)),N}static accessor($){const N=(this[$internals]=this[$internals]={accessors:{}}).accessors,B=this.prototype;function j(U){const q=normalizeHeader(U);N[q]||(buildAccessors(B,U),N[q]=!0)}return utils$1.isArray($)?$.forEach(j):j($),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:M},$)=>{let I=$[0].toUpperCase()+$.slice(1);return{get:()=>M,set(N){this[I]=N}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(M,$){const I=this||defaults$2,N=$||I,B=AxiosHeaders$1.from(N.headers);let j=N.data;return utils$1.forEach(M,function(q){j=q.call(I,j,B.normalize(),$?$.status:void 0)}),B.normalize(),j}function isCancel(M){return!!(M&&M.__CANCEL__)}function CanceledError(M,$,I){AxiosError.call(this,M??"canceled",AxiosError.ERR_CANCELED,$,I),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(M,$,I){const N=I.config.validateStatus;!I.status||!N||N(I.status)?M(I):$(new AxiosError("Request failed with status code "+I.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(I.status/100)-4],I.config,I.request,I))}const cookies=platform.hasStandardBrowserEnv?{write(M,$,I,N,B,j){const U=[M+"="+encodeURIComponent($)];utils$1.isNumber(I)&&U.push("expires="+new Date(I).toGMTString()),utils$1.isString(N)&&U.push("path="+N),utils$1.isString(B)&&U.push("domain="+B),j===!0&&U.push("secure"),document.cookie=U.join("; ")},read(M){const $=document.cookie.match(new RegExp("(^|;\\s*)("+M+")=([^;]*)"));return $?decodeURIComponent($[3]):null},remove(M){this.write(M,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(M){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(M)}function combineURLs(M,$){return $?M.replace(/\/?\/$/,"")+"/"+$.replace(/^\/+/,""):M}function buildFullPath(M,$){return M&&!isAbsoluteURL($)?combineURLs(M,$):$}const isURLSameOrigin=platform.hasStandardBrowserEnv?function M(){const $=/(msie|trident)/i.test(navigator.userAgent),I=document.createElement("a");let N;function B(j){let U=j;return $&&(I.setAttribute("href",U),U=I.href),I.setAttribute("href",U),{href:I.href,protocol:I.protocol?I.protocol.replace(/:$/,""):"",host:I.host,search:I.search?I.search.replace(/^\?/,""):"",hash:I.hash?I.hash.replace(/^#/,""):"",hostname:I.hostname,port:I.port,pathname:I.pathname.charAt(0)==="/"?I.pathname:"/"+I.pathname}}return N=B(window.location.href),function(U){const q=utils$1.isString(U)?B(U):U;return q.protocol===N.protocol&&q.host===N.host}}():function M(){return function(){return!0}}();function parseProtocol(M){const $=/^([-+\w]{1,25})(:?\/\/|:)/.exec(M);return $&&$[1]||""}function speedometer(M,$){M=M||10;const I=new Array(M),N=new Array(M);let B=0,j=0,U;return $=$!==void 0?$:1e3,function(Y){const K=Date.now(),G=N[j];U||(U=K),I[B]=Y,N[B]=K;let J=j,Z=0;for(;J!==B;)Z+=I[J++],J=J%M;if(B=(B+1)%M,B===j&&(j=(j+1)%M),K-U<$)return;const ee=G&&K-G;return ee?Math.round(Z*1e3/ee):void 0}}function progressEventReducer(M,$){let I=0;const N=speedometer(50,250);return B=>{const j=B.loaded,U=B.lengthComputable?B.total:void 0,q=j-I,Y=N(q),K=j<=U;I=j;const G={loaded:j,total:U,progress:U?j/U:void 0,bytes:q,rate:Y||void 0,estimated:Y&&U&&K?(U-j)/Y:void 0,event:B};G[$?"download":"upload"]=!0,M(G)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(M){return new Promise(function(I,N){let B=M.data;const j=AxiosHeaders$1.from(M.headers).normalize();let{responseType:U,withXSRFToken:q}=M,Y;function K(){M.cancelToken&&M.cancelToken.unsubscribe(Y),M.signal&&M.signal.removeEventListener("abort",Y)}let G;if(utils$1.isFormData(B)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)j.setContentType(!1);else if((G=j.getContentType())!==!1){const[re,...se]=G?G.split(";").map(ne=>ne.trim()).filter(Boolean):[];j.setContentType([re||"multipart/form-data",...se].join("; "))}}let J=new XMLHttpRequest;if(M.auth){const re=M.auth.username||"",se=M.auth.password?unescape(encodeURIComponent(M.auth.password)):"";j.set("Authorization","Basic "+btoa(re+":"+se))}const Z=buildFullPath(M.baseURL,M.url);J.open(M.method.toUpperCase(),buildURL(Z,M.params,M.paramsSerializer),!0),J.timeout=M.timeout;function ee(){if(!J)return;const re=AxiosHeaders$1.from("getAllResponseHeaders"in J&&J.getAllResponseHeaders()),ne={data:!U||U==="text"||U==="json"?J.responseText:J.response,status:J.status,statusText:J.statusText,headers:re,config:M,request:J};settle(function(ge){I(ge),K()},function(ge){N(ge),K()},ne),J=null}if("onloadend"in J?J.onloadend=ee:J.onreadystatechange=function(){!J||J.readyState!==4||J.status===0&&!(J.responseURL&&J.responseURL.indexOf("file:")===0)||setTimeout(ee)},J.onabort=function(){J&&(N(new AxiosError("Request aborted",AxiosError.ECONNABORTED,M,J)),J=null)},J.onerror=function(){N(new AxiosError("Network Error",AxiosError.ERR_NETWORK,M,J)),J=null},J.ontimeout=function(){let se=M.timeout?"timeout of "+M.timeout+"ms exceeded":"timeout exceeded";const ne=M.transitional||transitionalDefaults;M.timeoutErrorMessage&&(se=M.timeoutErrorMessage),N(new AxiosError(se,ne.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,M,J)),J=null},platform.hasStandardBrowserEnv&&(q&&utils$1.isFunction(q)&&(q=q(M)),q||q!==!1&&isURLSameOrigin(Z))){const re=M.xsrfHeaderName&&M.xsrfCookieName&&cookies.read(M.xsrfCookieName);re&&j.set(M.xsrfHeaderName,re)}B===void 0&&j.setContentType(null),"setRequestHeader"in J&&utils$1.forEach(j.toJSON(),function(se,ne){J.setRequestHeader(ne,se)}),utils$1.isUndefined(M.withCredentials)||(J.withCredentials=!!M.withCredentials),U&&U!=="json"&&(J.responseType=M.responseType),typeof M.onDownloadProgress=="function"&&J.addEventListener("progress",progressEventReducer(M.onDownloadProgress,!0)),typeof M.onUploadProgress=="function"&&J.upload&&J.upload.addEventListener("progress",progressEventReducer(M.onUploadProgress)),(M.cancelToken||M.signal)&&(Y=re=>{J&&(N(!re||re.type?new CanceledError(null,M,J):re),J.abort(),J=null)},M.cancelToken&&M.cancelToken.subscribe(Y),M.signal&&(M.signal.aborted?Y():M.signal.addEventListener("abort",Y)));const te=parseProtocol(Z);if(te&&platform.protocols.indexOf(te)===-1){N(new AxiosError("Unsupported protocol "+te+":",AxiosError.ERR_BAD_REQUEST,M));return}J.send(B||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(M,$)=>{if(M){try{Object.defineProperty(M,"name",{value:$})}catch{}Object.defineProperty(M,"adapterName",{value:$})}});const renderReason=M=>`- ${M}`,isResolvedHandle=M=>utils$1.isFunction(M)||M===null||M===!1,adapters={getAdapter:M=>{M=utils$1.isArray(M)?M:[M];const{length:$}=M;let I,N;const B={};for(let j=0;j<$;j++){I=M[j];let U;if(N=I,!isResolvedHandle(I)&&(N=knownAdapters[(U=String(I)).toLowerCase()],N===void 0))throw new AxiosError(`Unknown adapter '${U}'`);if(N)break;B[U||"#"+j]=N}if(!N){const j=Object.entries(B).map(([q,Y])=>`adapter ${q} `+(Y===!1?"is not supported by the environment":"is not available in the build"));let U=$?j.length>1?`since :
- `+j.map(renderReason).join(`
- `):" "+renderReason(j[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+U,"ERR_NOT_SUPPORT")}return N},adapters:knownAdapters};function throwIfCancellationRequested(M){if(M.cancelToken&&M.cancelToken.throwIfRequested(),M.signal&&M.signal.aborted)throw new CanceledError(null,M)}function dispatchRequest(M){return throwIfCancellationRequested(M),M.headers=AxiosHeaders$1.from(M.headers),M.data=transformData.call(M,M.transformRequest),["post","put","patch"].indexOf(M.method)!==-1&&M.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(M.adapter||defaults$2.adapter)(M).then(function(N){return throwIfCancellationRequested(M),N.data=transformData.call(M,M.transformResponse,N),N.headers=AxiosHeaders$1.from(N.headers),N},function(N){return isCancel(N)||(throwIfCancellationRequested(M),N&&N.response&&(N.response.data=transformData.call(M,M.transformResponse,N.response),N.response.headers=AxiosHeaders$1.from(N.response.headers))),Promise.reject(N)})}const headersToObject=M=>M instanceof AxiosHeaders$1?M.toJSON():M;function mergeConfig(M,$){$=$||{};const I={};function N(K,G,J){return utils$1.isPlainObject(K)&&utils$1.isPlainObject(G)?utils$1.merge.call({caseless:J},K,G):utils$1.isPlainObject(G)?utils$1.merge({},G):utils$1.isArray(G)?G.slice():G}function B(K,G,J){if(utils$1.isUndefined(G)){if(!utils$1.isUndefined(K))return N(void 0,K,J)}else return N(K,G,J)}function j(K,G){if(!utils$1.isUndefined(G))return N(void 0,G)}function U(K,G){if(utils$1.isUndefined(G)){if(!utils$1.isUndefined(K))return N(void 0,K)}else return N(void 0,G)}function q(K,G,J){if(J in $)return N(K,G);if(J in M)return N(void 0,K)}const Y={url:j,method:j,data:j,baseURL:U,transformRequest:U,transformResponse:U,paramsSerializer:U,timeout:U,timeoutMessage:U,withCredentials:U,withXSRFToken:U,adapter:U,responseType:U,xsrfCookieName:U,xsrfHeaderName:U,onUploadProgress:U,onDownloadProgress:U,decompress:U,maxContentLength:U,maxBodyLength:U,beforeRedirect:U,transport:U,httpAgent:U,httpsAgent:U,cancelToken:U,socketPath:U,responseEncoding:U,validateStatus:q,headers:(K,G)=>B(headersToObject(K),headersToObject(G),!0)};return utils$1.forEach(Object.keys(Object.assign({},M,$)),function(G){const J=Y[G]||B,Z=J(M[G],$[G],G);utils$1.isUndefined(Z)&&J!==q||(I[G]=Z)}),I}const VERSION="1.6.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((M,$)=>{validators$1[M]=function(N){return typeof N===M||"a"+($<1?"n ":" ")+M}});const deprecatedWarnings={};validators$1.transitional=function M($,I,N){function B(j,U){return"[Axios v"+VERSION+"] Transitional option '"+j+"'"+U+(N?". "+N:"")}return(j,U,q)=>{if($===!1)throw new AxiosError(B(U," has been removed"+(I?" in "+I:"")),AxiosError.ERR_DEPRECATED);return I&&!deprecatedWarnings[U]&&(deprecatedWarnings[U]=!0,console.warn(B(U," has been deprecated since v"+I+" and will be removed in the near future"))),$?$(j,U,q):!0}};function assertOptions(M,$,I){if(typeof M!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const N=Object.keys(M);let B=N.length;for(;B-- >0;){const j=N[B],U=$[j];if(U){const q=M[j],Y=q===void 0||U(q,j,M);if(Y!==!0)throw new AxiosError("option "+j+" must be "+Y,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(I!==!0)throw new AxiosError("Unknown option "+j,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor($){this.defaults=$,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request($,I){typeof $=="string"?(I=I||{},I.url=$):I=$||{},I=mergeConfig(this.defaults,I);const{transitional:N,paramsSerializer:B,headers:j}=I;N!==void 0&&validator.assertOptions(N,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),B!=null&&(utils$1.isFunction(B)?I.paramsSerializer={serialize:B}:validator.assertOptions(B,{encode:validators.function,serialize:validators.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let U=j&&utils$1.merge(j.common,j[I.method]);j&&utils$1.forEach(["delete","get","head","post","put","patch","common"],te=>{delete j[te]}),I.headers=AxiosHeaders$1.concat(U,j);const q=[];let Y=!0;this.interceptors.request.forEach(function(re){typeof re.runWhen=="function"&&re.runWhen(I)===!1||(Y=Y&&re.synchronous,q.unshift(re.fulfilled,re.rejected))});const K=[];this.interceptors.response.forEach(function(re){K.push(re.fulfilled,re.rejected)});let G,J=0,Z;if(!Y){const te=[dispatchRequest.bind(this),void 0];for(te.unshift.apply(te,q),te.push.apply(te,K),Z=te.length,G=Promise.resolve(I);J<Z;)G=G.then(te[J++],te[J++]);return G}Z=q.length;let ee=I;for(J=0;J<Z;){const te=q[J++],re=q[J++];try{ee=te(ee)}catch(se){re.call(this,se);break}}try{G=dispatchRequest.call(this,ee)}catch(te){return Promise.reject(te)}for(J=0,Z=K.length;J<Z;)G=G.then(K[J++],K[J++]);return G}getUri($){$=mergeConfig(this.defaults,$);const I=buildFullPath($.baseURL,$.url);return buildURL(I,$.params,$.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function M($){Axios.prototype[$]=function(I,N){return this.request(mergeConfig(N||{},{method:$,url:I,data:(N||{}).data}))}});utils$1.forEach(["post","put","patch"],function M($){function I(N){return function(j,U,q){return this.request(mergeConfig(q||{},{method:$,headers:N?{"Content-Type":"multipart/form-data"}:{},url:j,data:U}))}}Axios.prototype[$]=I(),Axios.prototype[$+"Form"]=I(!0)});const Axios$1=Axios;class CancelToken{constructor($){if(typeof $!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(j){I=j});const N=this;this.promise.then(B=>{if(!N._listeners)return;let j=N._listeners.length;for(;j-- >0;)N._listeners[j](B);N._listeners=null}),this.promise.then=B=>{let j;const U=new Promise(q=>{N.subscribe(q),j=q}).then(B);return U.cancel=function(){N.unsubscribe(j)},U},$(function(j,U,q){N.reason||(N.reason=new CanceledError(j,U,q),I(N.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}this._listeners?this._listeners.push($):this._listeners=[$]}unsubscribe($){if(!this._listeners)return;const I=this._listeners.indexOf($);I!==-1&&this._listeners.splice(I,1)}static source(){let $;return{token:new CancelToken(function(B){$=B}),cancel:$}}}const CancelToken$1=CancelToken;function spread(M){return function(I){return M.apply(null,I)}}function isAxiosError(M){return utils$1.isObject(M)&&M.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([M,$])=>{HttpStatusCode[$]=M});const HttpStatusCode$1=HttpStatusCode;function createInstance(M){const $=new Axios$1(M),I=bind(Axios$1.prototype.request,$);return utils$1.extend(I,Axios$1.prototype,$,{allOwnKeys:!0}),utils$1.extend(I,$,null,{allOwnKeys:!0}),I.create=function(B){return createInstance(mergeConfig(M,B))},I}const axios$1=createInstance(defaults$2);axios$1.Axios=Axios$1;axios$1.CanceledError=CanceledError;axios$1.CancelToken=CancelToken$1;axios$1.isCancel=isCancel;axios$1.VERSION=VERSION;axios$1.toFormData=toFormData;axios$1.AxiosError=AxiosError;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function M($){return Promise.all($)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;axios$1.mergeConfig=mergeConfig;axios$1.AxiosHeaders=AxiosHeaders$1;axios$1.formToJSON=M=>formDataToJSON(utils$1.isHTMLForm(M)?new FormData(M):M);axios$1.getAdapter=adapters.getAdapter;axios$1.HttpStatusCode=HttpStatusCode$1;axios$1.default=axios$1;const axios$2=axios$1;var portalVue={exports:{}};(function(M,$){(function(I,N){M.exports=N(require$$0)})(commonjsGlobal,function(I){I=I&&I.hasOwnProperty("default")?I.default:I;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(fe){return typeof fe}:function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},B=Object.assign||function(fe){for(var me=1;me<arguments.length;me++){var ve=arguments[me];for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&(fe[xe]=ve[xe])}return fe},j=function(fe){if(Array.isArray(fe)){for(var me=0,ve=Array(fe.length);me<fe.length;me++)ve[me]=fe[me];return ve}else return Array.from(fe)};function U(fe){for(var me=fe.hasAttributes()?fe.attributes:[],ve={},xe=0;xe<me.length;xe++){var oe=me[xe];oe.value&&(ve[oe.name]=oe.value===""?!0:oe.value)}var ye=void 0,be=void 0;ve.class&&(ye=ve.class,delete ve.class),ve.style&&(be=ve.style,delete ve.style);var we={attrs:ve,class:ye,style:be};return we}function q(fe){return Array.isArray(fe)||(typeof fe>"u"?"undefined":N(fe))==="object"?Object.freeze(fe):fe}function Y(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fe.reduce(function(ve,xe){var oe=xe.passengers[0];return oe=typeof oe=="function"?oe(me):xe.passengers,ve.concat(oe)},[])}function K(fe,me){return fe.map(function(ve,xe){return[xe,ve]}).sort((function(ve,xe){return this(ve[1],xe[1])||ve[0]-xe[0]}).bind(me)).map(function(ve){return ve[1]})}var G={},J=I.extend({data:function(){return{transports:G}},methods:{open:function(me){var ve=me.to,xe=me.from,oe=me.passengers;if(!(!ve||!xe||!oe)){me.passengers=q(oe);var ye=Object.keys(this.transports);ye.indexOf(ve)===-1&&I.set(this.transports,ve,[]);var be=this.getTransportIndex(me),we=this.transports[ve].slice(0);be===-1?we.push(me):we[be]=me,this.transports[ve]=K(we,function(Ae,ke){return Ae.order-ke.order})}},close:function(me){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=me.to,oe=me.from;if(!(!xe||!oe)&&this.transports[xe])if(ve)this.transports[xe]=[];else{var ye=this.getTransportIndex(me);if(ye>=0){var be=this.transports[xe].slice(0);be.splice(ye,1),this.transports[xe]=be}}},hasTarget:function(me){return this.transports.hasOwnProperty(me)},hasContentFor:function(me){return this.transports[me]?this.getContentFor(me).length>0:!1},getSourceFor:function(me){return this.transports[me]&&this.transports[me][0].from},getContentFor:function(me){var ve=this.transports[me];if(ve)return Y(ve)},getTransportIndex:function(me){var ve=me.to,xe=me.from;for(var oe in this.transports[ve])if(this.transports[ve][oe].from===xe)return oe;return-1}}}),Z=new J(G),ee=/^(attrs|props|on|nativeOn|class|style|hook)$/,te=function(me){return me.reduce(function(ve,xe){var oe,ye,be,we,Ae;for(be in xe)if(oe=ve[be],ye=xe[be],oe&&ee.test(be))if(be==="class"&&(typeof oe=="string"&&(Ae=oe,ve[be]=oe={},oe[Ae]=!0),typeof ye=="string"&&(Ae=ye,xe[be]=ye={},ye[Ae]=!0)),be==="on"||be==="nativeOn"||be==="hook")for(we in ye)oe[we]=re(oe[we],ye[we]);else if(Array.isArray(oe))ve[be]=oe.concat(ye);else if(Array.isArray(ye))ve[be]=[oe].concat(ye);else for(we in ye)oe[we]=ye[we];else ve[be]=xe[be];return ve},{})};function re(fe,me){return function(){fe&&fe.apply(this,arguments),me&&me.apply(this,arguments)}}var se={abstract:!1,name:"portalTarget",props:{attributes:{type:Object,default:function(){return{}}},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:[Boolean,String,Object],default:!1},transitionEvents:{type:Object,default:function(){return{}}}},data:function(){return{transports:Z.transports,firstRender:!0}},created:function(){this.transports[this.name]||this.$set(this.transports,this.name,[])},mounted:function(){var me=this;this.unwatch=this.$watch("ownTransports",this.emitChange),this.$nextTick(function(){me.transition&&(me.firstRender=!1)}),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.unwatch()},computed:{ownTransports:function(){var me=this.transports[this.name]||[];return this.multiple?me:me.length===0?[]:[me[me.length-1]]},passengers:function(){return Y(this.ownTransports,this.slotProps)},hasAttributes:function(){return Object.keys(this.attributes).length>0},withTransition:function(){return!!this.transition},transitionData:function(){var me=this.transition,ve={};return this.firstRender&&N(this.transition)==="object"&&!this.transition.appear?(ve.props={name:"__notranstition__portal-vue__"},ve):(typeof me=="string"?ve.props={name:me}:(typeof me>"u"?"undefined":N(me))==="object"&&(ve.props=me),this.renderSlim&&(ve.props.tag=this.tag),ve.on=this.transitionEvents,ve)},transportedClasses:function(){return this.ownTransports.map(function(me){return me.class}).reduce(function(me,ve){return me.concat(ve)},[])}},methods:{emitChange:function(me,ve){if(this.multiple)this.$emit("change",[].concat(j(me)),[].concat(j(ve)));else{var xe=me.length===0?void 0:me[0],oe=ve.length===0?void 0:ve[0];this.$emit("change",B({},xe),B({},oe))}},children:function(){return this.passengers.length!==0?this.passengers:this.$slots.default||[]},noWrapper:function(){var me=!this.hasAttributes&&this.slim;return me&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),me}},render:function(me){this.$options.abstract=!0;var ve=this.noWrapper(),xe=this.children(),oe=ve?"transition":"transition-group",ye=this.tag;return this.withTransition?me(oe,te([this.transitionData,{class:"vue-portal-target"}]),[xe]):ve?xe[0]:me(ye,te([{class:"vue-portal-target "+this.transportedClasses.join(" ")},this.attributes]),[xe])}},ne=typeof window<"u",le=1,ge={abstract:!1,name:"portal",props:{disabled:{type:Boolean,default:!1},name:{type:String,default:function(){return String(le++)}},order:{type:Number,default:0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:[String],default:"DIV"},targetEl:{type:ne?[String,HTMLElement]:String},targetClass:{type:String},to:{type:String,default:function(){return String(Math.round(Math.random()*1e7))}}},mounted:function(){this.targetEl&&this.mountToTarget(),this.disabled||this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.disabled?this.clear():this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.clear(),this.mountedComp&&this.mountedComp.$destroy()},watch:{to:function(me,ve){ve&&ve!==me&&this.clear(ve),this.sendUpdate()},targetEl:function(me,ve){me&&this.mountToTarget()}},methods:{normalizedSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},sendUpdate:function(){var me=this.normalizedSlots();me?Z.open({from:this.name,to:this.to,passengers:[].concat(j(me)),class:this.targetClass&&this.targetClass.split(" "),order:this.order}):this.clear()},clear:function(me){Z.close({from:this.name,to:me||this.to})},mountToTarget:function(){var me=void 0,ve=this.targetEl;if(typeof ve=="string")me=document.querySelector(ve);else if(ve instanceof HTMLElement)me=ve;else{console.warn("[vue-portal]: value of targetEl must be of type String or HTMLElement");return}if(me){var xe=new I(B({},se,{parent:this,propsData:{name:this.to,tag:me.tagName,attributes:U(me)}}));xe.$mount(me),this.mountedComp=xe}else console.warn("[vue-portal]: The specified targetEl "+ve+" was not found")},normalizeChildren:function(me){return typeof me=="function"?me(this.slotProps):me}},render:function(me){var ve=this.$slots.default||this.$scopedSlots.default||[],xe=this.tag;return ve.length&&this.disabled?(this.$options.abstract=!0,ve.length<=1&&this.slim?ve[0]:me(xe,[this.normalizeChildren(ve)])):me(xe,{class:"v-portal",style:"display: none",key:"v-portal-placeholder"})}};function ue(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fe.component(me.portalName||"Portal",ge),fe.component(me.portalTargetName||"PortalTarget",se)}typeof window<"u"&&window.Vue&&window.Vue.use({install:ue});var _e={install:ue,Portal:ge,PortalTarget:se,Wormhole:Z};return _e})})(portalVue);var portalVueExports=portalVue.exports;const PortalVue=getDefaultExportFromCjs(portalVueExports);var dist={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(window,function(){return B={},I.m=N=[function(j,U,q){var Y=q(7);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("d763679c",Y,!1,{})},function(j,U,q){var Y=q(10);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("6b9cc0e0",Y,!1,{})},function(j,U,q){var Y=q(12);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("663c004e",Y,!1,{})},function(j,U){j.exports=function(q){var Y=[];return Y.toString=function(){return this.map(function(K){var G=function(J,Z){var ee=J[1]||"",te=J[3];if(!te)return ee;if(Z&&typeof btoa=="function"){var re=function(ne){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(ne))))+" */"}(te),se=te.sources.map(function(ne){return"/*# sourceURL="+te.sourceRoot+ne+" */"});return[ee].concat(se).concat([re]).join(`
- `)}return[ee].join(`
- `)}(K,q);return K[2]?"@media "+K[2]+"{"+G+"}":G}).join("")},Y.i=function(K,G){typeof K=="string"&&(K=[[null,K,""]]);for(var J={},Z=0;Z<this.length;Z++){var ee=this[Z][0];typeof ee=="number"&&(J[ee]=!0)}for(Z=0;Z<K.length;Z++){var te=K[Z];typeof te[0]=="number"&&J[te[0]]||(G&&!te[2]?te[2]=G:G&&(te[2]="("+te[2]+") and ("+G+")"),Y.push(te))}},Y}},function(j,U,q){function Y(oe,ye){for(var be=[],we={},Ae=0;Ae<ye.length;Ae++){var ke=ye[Ae],Oe=ke[0],Me={id:oe+":"+Ae,css:ke[1],media:ke[2],sourceMap:ke[3]};we[Oe]?we[Oe].parts.push(Me):be.push(we[Oe]={id:Oe,parts:[Me]})}return be}q.r(U),q.d(U,"default",function(){return ge});var K=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!K)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 G={},J=K&&(document.head||document.getElementsByTagName("head")[0]),Z=null,ee=0,te=!1,re=function(){},se=null,ne="data-vue-ssr-id",le=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function ge(oe,ye,be,we){te=be,se=we||{};var Ae=Y(oe,ye);return ue(Ae),function(ke){for(var Oe=[],Me=0;Me<Ae.length;Me++){var ze=Ae[Me];(Fe=G[ze.id]).refs--,Oe.push(Fe)}for(ke?ue(Ae=Y(oe,ke)):Ae=[],Me=0;Me<Oe.length;Me++){var Fe;if((Fe=Oe[Me]).refs===0){for(var Ze=0;Ze<Fe.parts.length;Ze++)Fe.parts[Ze]();delete G[Fe.id]}}}}function ue(oe){for(var ye=0;ye<oe.length;ye++){var be=oe[ye],we=G[be.id];if(we){we.refs++;for(var Ae=0;Ae<we.parts.length;Ae++)we.parts[Ae](be.parts[Ae]);for(;Ae<be.parts.length;Ae++)we.parts.push(fe(be.parts[Ae]));we.parts.length>be.parts.length&&(we.parts.length=be.parts.length)}else{var ke=[];for(Ae=0;Ae<be.parts.length;Ae++)ke.push(fe(be.parts[Ae]));G[be.id]={id:be.id,refs:1,parts:ke}}}}function _e(){var oe=document.createElement("style");return oe.type="text/css",J.appendChild(oe),oe}function fe(oe){var ye,be,we=document.querySelector("style["+ne+'~="'+oe.id+'"]');if(we){if(te)return re;we.parentNode.removeChild(we)}if(le){var Ae=ee++;we=Z=Z||_e(),ye=xe.bind(null,we,Ae,!1),be=xe.bind(null,we,Ae,!0)}else we=_e(),ye=(function(ke,Oe){var Me=Oe.css,ze=Oe.media,Fe=Oe.sourceMap;if(ze&&ke.setAttribute("media",ze),se.ssrId&&ke.setAttribute(ne,Oe.id),Fe&&(Me+=`
- /*# sourceURL=`+Fe.sources[0]+" */",Me+=`
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(Fe))))+" */"),ke.styleSheet)ke.styleSheet.cssText=Me;else{for(;ke.firstChild;)ke.removeChild(ke.firstChild);ke.appendChild(document.createTextNode(Me))}}).bind(null,we),be=function(){we.parentNode.removeChild(we)};return ye(oe),function(ke){if(ke){if(ke.css===oe.css&&ke.media===oe.media&&ke.sourceMap===oe.sourceMap)return;ye(oe=ke)}else be()}}var me,ve=(me=[],function(oe,ye){return me[oe]=ye,me.filter(Boolean).join(`
- `)});function xe(oe,ye,be,we){var Ae=be?"":we.css;if(oe.styleSheet)oe.styleSheet.cssText=ve(ye,Ae);else{var ke=document.createTextNode(Ae),Oe=oe.childNodes;Oe[ye]&&oe.removeChild(Oe[ye]),Oe.length?oe.insertBefore(ke,Oe[ye]):oe.appendChild(ke)}}},function(j,U,q){(function(Y){var K=function(){if(typeof Map<"u")return Map;function Fe(lt,qe){var Ve=-1;return lt.some(function(At,Nt){return At[0]===qe&&(Ve=Nt,!0)}),Ve}return Object.defineProperty(Ze.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ze.prototype.get=function(lt){var qe=Fe(this.__entries__,lt),Ve=this.__entries__[qe];return Ve&&Ve[1]},Ze.prototype.set=function(lt,qe){var Ve=Fe(this.__entries__,lt);~Ve?this.__entries__[Ve][1]=qe:this.__entries__.push([lt,qe])},Ze.prototype.delete=function(lt){var qe=this.__entries__,Ve=Fe(qe,lt);~Ve&&qe.splice(Ve,1)},Ze.prototype.has=function(lt){return!!~Fe(this.__entries__,lt)},Ze.prototype.clear=function(){this.__entries__.splice(0)},Ze.prototype.forEach=function(lt,qe){qe===void 0&&(qe=null);for(var Ve=0,At=this.__entries__;Ve<At.length;Ve++){var Nt=At[Ve];lt.call(qe,Nt[1],Nt[0])}},Ze;function Ze(){this.__entries__=[]}}(),G=typeof window<"u"&&typeof document<"u"&&window.document===document,J=Y!==void 0&&Y.Math===Math?Y:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Z=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(J):function(Fe){return setTimeout(function(){return Fe(Date.now())},1e3/60)},ee=2,te=["top","right","bottom","left","width","height","size","weight"],re=typeof MutationObserver<"u",se=(ne.prototype.addObserver=function(Fe){~this.observers_.indexOf(Fe)||this.observers_.push(Fe),this.connected_||this.connect_()},ne.prototype.removeObserver=function(Fe){var Ze=this.observers_,lt=Ze.indexOf(Fe);~lt&&Ze.splice(lt,1),!Ze.length&&this.connected_&&this.disconnect_()},ne.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},ne.prototype.updateObservers_=function(){var Fe=this.observers_.filter(function(Ze){return Ze.gatherActive(),Ze.hasActive()});return Fe.forEach(function(Ze){return Ze.broadcastActive()}),0<Fe.length},ne.prototype.connect_=function(){G&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),re?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ne.prototype.disconnect_=function(){G&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ne.prototype.onTransitionEnd_=function(Fe){var Ze=Fe.propertyName,lt=Ze===void 0?"":Ze;te.some(function(qe){return!!~lt.indexOf(qe)})&&this.refresh()},ne.getInstance=function(){return this.instance_||(this.instance_=new ne),this.instance_},ne.instance_=null,ne);function ne(){function Fe(){At&&(At=!1,qe()),Nt&<()}function Ze(){Z(Fe)}function lt(){var Ht=Date.now();if(At){if(Ht-zt<ee)return;Nt=!0}else Nt=!(At=!0),setTimeout(Ze,Ve);zt=Ht}var qe,Ve,At,Nt,zt;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(qe=this.refresh.bind(this),Nt=At=!(Ve=20),zt=0,lt)}var le=function(Fe,Ze){for(var lt=0,qe=Object.keys(Ze);lt<qe.length;lt++){var Ve=qe[lt];Object.defineProperty(Fe,Ve,{value:Ze[Ve],enumerable:!1,writable:!1,configurable:!0})}return Fe},ge=function(Fe){return Fe&&Fe.ownerDocument&&Fe.ownerDocument.defaultView||J},ue=oe(0,0,0,0);function _e(Fe){return parseFloat(Fe)||0}function fe(Fe){for(var Ze=[],lt=1;lt<arguments.length;lt++)Ze[lt-1]=arguments[lt];return Ze.reduce(function(qe,Ve){return qe+_e(Fe["border-"+Ve+"-width"])},0)}function me(Fe){var Ze=Fe.clientWidth,lt=Fe.clientHeight;if(!Ze&&!lt)return ue;var qe,Ve=ge(Fe).getComputedStyle(Fe),At=function(yn){for(var _n={},Hn=0,On=["top","right","bottom","left"];Hn<On.length;Hn++){var Fn=On[Hn],In=yn["padding-"+Fn];_n[Fn]=_e(In)}return _n}(Ve),Nt=At.left+At.right,zt=At.top+At.bottom,Ht=_e(Ve.width),qt=_e(Ve.height);if(Ve.boxSizing==="border-box"&&(Math.round(Ht+Nt)!==Ze&&(Ht-=fe(Ve,"left","right")+Nt),Math.round(qt+zt)!==lt&&(qt-=fe(Ve,"top","bottom")+zt)),(qe=Fe)!==ge(qe).document.documentElement){var Qt=Math.round(Ht+Nt)-Ze,Jt=Math.round(qt+zt)-lt;Math.abs(Qt)!==1&&(Ht-=Qt),Math.abs(Jt)!==1&&(qt-=Jt)}return oe(At.left,At.top,Ht,qt)}var ve=typeof SVGGraphicsElement<"u"?function(Fe){return Fe instanceof ge(Fe).SVGGraphicsElement}:function(Fe){return Fe instanceof ge(Fe).SVGElement&&typeof Fe.getBBox=="function"};function xe(Fe){return G?ve(Fe)?oe(0,0,(Ze=Fe.getBBox()).width,Ze.height):me(Fe):ue;var Ze}function oe(Fe,Ze,lt,qe){return{x:Fe,y:Ze,width:lt,height:qe}}var ye=(be.prototype.isActive=function(){var Fe=xe(this.target);return(this.contentRect_=Fe).width!==this.broadcastWidth||Fe.height!==this.broadcastHeight},be.prototype.broadcastRect=function(){var Fe=this.contentRect_;return this.broadcastWidth=Fe.width,this.broadcastHeight=Fe.height,Fe},be);function be(Fe){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oe(0,0,0,0),this.target=Fe}var we=function(Fe,Ze){var lt,qe,Ve,At,Nt,zt,Ht,qt=(qe=(lt=Ze).x,Ve=lt.y,At=lt.width,Nt=lt.height,zt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Ht=Object.create(zt.prototype),le(Ht,{x:qe,y:Ve,width:At,height:Nt,top:Ve,right:qe+At,bottom:Nt+Ve,left:qe}),Ht);le(this,{target:Fe,contentRect:qt})},Ae=(ke.prototype.observe=function(Fe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(Fe instanceof ge(Fe).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ze=this.observations_;Ze.has(Fe)||(Ze.set(Fe,new ye(Fe)),this.controller_.addObserver(this),this.controller_.refresh())}},ke.prototype.unobserve=function(Fe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(Fe instanceof ge(Fe).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ze=this.observations_;Ze.has(Fe)&&(Ze.delete(Fe),Ze.size||this.controller_.removeObserver(this))}},ke.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ke.prototype.gatherActive=function(){var Fe=this;this.clearActive(),this.observations_.forEach(function(Ze){Ze.isActive()&&Fe.activeObservations_.push(Ze)})},ke.prototype.broadcastActive=function(){if(this.hasActive()){var Fe=this.callbackCtx_,Ze=this.activeObservations_.map(function(lt){return new we(lt.target,lt.broadcastRect())});this.callback_.call(Fe,Ze,Fe),this.clearActive()}},ke.prototype.clearActive=function(){this.activeObservations_.splice(0)},ke.prototype.hasActive=function(){return 0<this.activeObservations_.length},ke);function ke(Fe,Ze,lt){if(this.activeObservations_=[],this.observations_=new K,typeof Fe!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Fe,this.controller_=Ze,this.callbackCtx_=lt}var Oe=new(typeof WeakMap<"u"?WeakMap:K),Me=function Fe(Ze){if(!(this instanceof Fe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var lt=se.getInstance(),qe=new Ae(Ze,lt,this);Oe.set(this,qe)};["observe","unobserve","disconnect"].forEach(function(Fe){Me.prototype[Fe]=function(){var Ze;return(Ze=Oe.get(this))[Fe].apply(Ze,arguments)}});var ze=J.ResizeObserver!==void 0?J.ResizeObserver:Me;U.a=ze}).call(this,q(8))},function(j,U,q){var Y=q(0);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,`
- .vue-modal-top,
- .vue-modal-bottom,
- .vue-modal-left,
- .vue-modal-right,
- .vue-modal-topRight,
- .vue-modal-topLeft,
- .vue-modal-bottomLeft,
- .vue-modal-bottomRight {
- display: block;
- overflow: hidden;
- position: absolute;
- background: transparent;
- z-index: 9999999;
- }
- .vue-modal-topRight,
- .vue-modal-topLeft,
- .vue-modal-bottomLeft,
- .vue-modal-bottomRight {
- width: 12px;
- height: 12px;
- }
- .vue-modal-top {
- right: 12;
- top: 0;
- width: 100%;
- height: 12px;
- cursor: n-resize;
- }
- .vue-modal-bottom {
- left: 0;
- bottom: 0;
- width: 100%;
- height: 12px;
- cursor: s-resize;
- }
- .vue-modal-left {
- left: 0;
- top: 0;
- width: 12px;
- height: 100%;
- cursor: w-resize;
- }
- .vue-modal-right {
- right: 0;
- top: 0;
- width: 12px;
- height: 100%;
- cursor: e-resize;
- }
- .vue-modal-topRight {
- right: 0;
- top: 0;
- background: transparent;
- cursor: ne-resize;
- }
- .vue-modal-topLeft {
- left: 0;
- top: 0;
- cursor: nw-resize;
- }
- .vue-modal-bottomLeft {
- left: 0;
- bottom: 0;
- cursor: sw-resize;
- }
- .vue-modal-bottomRight {
- right: 0;
- bottom: 0;
- cursor: se-resize;
- }
- #vue-modal-triangle::after {
- display: block;
- position: absolute;
- content: '';
- background: transparent;
- left: 0;
- top: 0;
- width: 0;
- height: 0;
- border-bottom: 10px solid #ddd;
- border-left: 10px solid transparent;
- }
- #vue-modal-triangle.clicked::after {
- border-bottom: 10px solid #369be9;
- }
- `,""])},function(j,U){var q;q=function(){return this}();try{q=q||new Function("return this")()}catch{typeof window=="object"&&(q=window)}j.exports=q},function(j,U,q){var Y=q(1);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,`
- .vm--block-scroll {
- overflow: hidden;
- width: 100vw;
- }
- .vm--container {
- position: fixed;
- box-sizing: border-box;
- left: 0;
- top: 0;
- width: 100%;
- height: 100vh;
- z-index: 999;
- }
- .vm--overlay {
- position: fixed;
- box-sizing: border-box;
- left: 0;
- top: 0;
- width: 100%;
- height: 100vh;
- background: rgba(0, 0, 0, 0.2);
- /* z-index: 999; */
- opacity: 1;
- }
- .vm--container.scrollable {
- height: 100%;
- min-height: 100vh;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
- .vm--modal {
- position: relative;
- overflow: hidden;
- box-sizing: border-box;
-
- background-color: white;
- border-radius: 3px;
- box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);
- }
- .vm--container.scrollable .vm--modal {
- margin-bottom: 2px;
- }
- .vm--top-right-slot {
- display: block;
- position: absolute;
- right: 0;
- top: 0;
- }
- .vm-transition--overlay-enter-active,
- .vm-transition--overlay-leave-active {
- transition: all 50ms;
- }
- .vm-transition--overlay-enter,
- .vm-transition--overlay-leave-active {
- opacity: 0;
- }
- .vm-transition--modal-enter-active,
- .vm-transition--modal-leave-active {
- transition: all 400ms;
- }
- .vm-transition--modal-enter,
- .vm-transition--modal-leave-active {
- opacity: 0;
- transform: translateY(-20px);
- }
- .vm-transition--default-enter-active,
- .vm-transition--default-leave-active {
- transition: all 2ms;
- }
- .vm-transition--default-enter,
- .vm-transition--default-leave-active {
- opacity: 0;
- }
- `,""])},function(j,U,q){var Y=q(2);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,`
- .vue-dialog {
- font-size: 14px;
- }
- .vue-dialog div {
- box-sizing: border-box;
- }
- .vue-dialog-content {
- flex: 1 0 auto;
- width: 100%;
- padding: 14px;
- }
- .vue-dialog-content-title {
- font-weight: 600;
- padding-bottom: 14px;
- }
- .vue-dialog-buttons {
- display: flex;
- flex: 0 1 auto;
- width: 100%;
- border-top: 1px solid #eee;
- }
- .vue-dialog-buttons-none {
- width: 100%;
- padding-bottom: 14px;
- }
- .vue-dialog-button {
- font-size: inherit;
- background: transparent;
- padding: 0;
- margin: 0;
- border: 0;
- cursor: pointer;
- box-sizing: border-box;
- line-height: 40px;
- height: 40px;
- color: inherit;
- font: inherit;
- outline: none;
- }
- .vue-dialog-button:hover {
- background: #f9f9f9;
- }
- .vue-dialog-button:active {
- background: #f3f3f3;
- }
- .vue-dialog-button:not(:first-of-type) {
- border-left: 1px solid #eee;
- }
- `,""])},function(j,U,q){q.r(U),q.d(U,"Modal",function(){return qt}),q.d(U,"Dialog",function(){return _n}),q.d(U,"version",function(){return _t});function Y(){var We=this,Pe=We.$createElement,Se=We._self._c||Pe;return We.visible?Se("div",{class:We.containerClass},[Se("transition",{attrs:{name:We.guaranteedOverlayTransition},on:{"before-enter":We.beforeOverlayTransitionEnter,"after-enter":We.afterOverlayTransitionEnter,"before-leave":We.beforeOverlayTransitionLeave,"after-leave":We.afterOverlayTransitionLeave}},[We.visibility.overlay?Se("div",{staticClass:"vm--overlay",attrs:{"data-modal":We.name,"aria-expanded":We.visibility.overlay.toString()},on:{click:function($e){return $e.target!==$e.currentTarget?null:($e.stopPropagation(),We.onOverlayClick($e))}}},[Se("div",{staticClass:"vm--top-right-slot"},[We._t("top-right")],2)]):We._e()]),We._v(" "),Se("transition",{attrs:{name:We.guaranteedModalTransition},on:{"before-enter":We.beforeModalTransitionEnter,"after-enter":We.afterModalTransitionEnter,"before-leave":We.beforeModalTransitionLeave,"after-leave":We.afterModalTransitionLeave}},[We.visibility.modal?Se("div",{ref:"modal",class:We.modalClass,style:We.modalStyle,attrs:{"aria-expanded":We.visibility.modal.toString(),role:"dialog","aria-modal":"true"}},[We._t("default"),We._v(" "),We.resizable&&!We.isAutoHeight?Se("resizer",{attrs:{"min-width":We.minWidth,"min-height":We.minHeight,"max-width":We.maxWidth,"max-height":We.maxHeight,"viewport-height":We.viewportHeight,"viewport-width":We.viewportWidth,"resize-indicator":We.resizeIndicator,"resize-edges":We.resizeEdges},on:{resize:We.onModalResize}}):We._e()],2):We._e()])],1):We._e()}function K(){var We=this,Pe=We.$createElement,Se=We._self._c||Pe;return Se("div",[this.resizeEdges.includes("t")?Se("div",{staticClass:"vue-modal-top"}):We._e(),We._v(" "),this.resizeEdges.includes("b")?Se("div",{staticClass:"vue-modal-bottom"}):We._e(),We._v(" "),this.resizeEdges.includes("l")?Se("div",{staticClass:"vue-modal-left"}):We._e(),We._v(" "),this.resizeEdges.includes("r")?Se("div",{staticClass:"vue-modal-right"}):We._e(),We._v(" "),this.resizeEdges.includes("tr")?Se("div",{staticClass:"vue-modal-topRight"}):We._e(),We._v(" "),this.resizeEdges.includes("tl")?Se("div",{staticClass:"vue-modal-topLeft"}):We._e(),We._v(" "),this.resizeEdges.includes("br")?Se("div",{class:We.className,attrs:{id:We.getID}}):We._e(),We._v(" "),this.resizeEdges.includes("bl")?Se("div",{staticClass:"vue-modal-bottomLeft"}):We._e()])}K._withStripped=Y._withStripped=!0;function G(We,Pe,Se){return Se<We?We:Pe<Se?Pe:Se}function J(We,Pe,Se){return Pe in We?Object.defineProperty(We,Pe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):We[Pe]=Se,We}function Z(We,Pe){return function(Se){if(Array.isArray(Se))return Se}(We)||function(Se,$e){var Ue=[],Qe=!0,mt=!1,ht=void 0;try{for(var at,ut=Se[Symbol.iterator]();!(Qe=(at=ut.next()).done)&&(Ue.push(at.value),!$e||Ue.length!==$e);Qe=!0);}catch(Rt){mt=!0,ht=Rt}finally{try{Qe||ut.return==null||ut.return()}finally{if(mt)throw ht}}return Ue}(We,Pe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ee(){var We=window.innerWidth,Pe=document.documentElement.clientWidth;return We&&Pe?Math.min(We,Pe):Pe||We}function te(We){return We.split(";").map(function(Pe){return Pe.trim()}).filter(Boolean).map(function(Pe){return Pe.split(":")}).reduce(function(Pe,Se){var $e=Z(Se,2);return function(Ue){for(var Qe=1;Qe<arguments.length;Qe++){var mt=arguments[Qe]!=null?arguments[Qe]:{},ht=Object.keys(mt);typeof Object.getOwnPropertySymbols=="function"&&(ht=ht.concat(Object.getOwnPropertySymbols(mt).filter(function(at){return Object.getOwnPropertyDescriptor(mt,at).enumerable}))),ht.forEach(function(at){J(Ue,at,mt[at])})}return Ue}({},Pe,J({},$e[0],$e[1]))},{})}function re(We){return We.touches&&0<We.touches.length?We.touches[0]:We}var se=["INPUT","TEXTAREA","SELECT"],ne=function(We){var Pe=0<arguments.length&&We!==void 0?We:0;return function(){return(Pe++).toString()}}(),le={name:"VueJsModalResizer",props:{minHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},viewportWidth:{type:Number,required:!0},viewportHeight:{type:Number,required:!0},resizeIndicator:{type:Boolean,default:!0},resizeEdges:{type:Array,required:!0}},data:function(){return{clicked:!1,targetClass:"",size:{},initialX:0,initialY:0}},mounted:function(){this.$el.addEventListener("mousedown",this.start,!1)},computed:{className:function(){return["vue-modal-bottomRight",{clicked:this.clicked}]},getID:function(){return this.resizeIndicator?"vue-modal-triangle":""}},methods:{start:function(We){this.targetClass=We.target.className,this.clicked=!0,this.initialX=We.clientX,this.initialY=We.clientY,window.addEventListener("mousemove",this.mousemove,!1),window.addEventListener("mouseup",this.stop,!1),We.stopPropagation(),We.preventDefault()},stop:function(){this.clicked=!1,this.clicked=!1,this.targetClass="",this.initialX=0,this.initialY=0,window.removeEventListener("mousemove",this.mousemove,!1),window.removeEventListener("mouseup",this.stop,!1),this.$emit("resize-stop",{element:this.$el.parentElement,size:this.size})},mousemove:function(We){this.resize(We)},resize:function(We){var Pe=this.$el.parentElement,Se=We.clientX,$e=We.clientY,Ue=parseInt(Pe.style.width.replace("px","")),Qe=parseInt(Pe.style.height.replace("px",""));if(!(We.clientX>this.viewportWidth||We.clientX<0)&&!(We.clientY>this.viewportHeight||We.clientY<0)&&Pe){switch(this.targetClass){case"vue-modal-right":Se-=Pe.offsetLeft,$e=Qe;break;case"vue-modal-left":$e=Qe,Se=Ue+(this.initialX-We.clientX);break;case"vue-modal-top":Se=Ue,$e=Qe+(this.initialY-We.clientY);break;case"vue-modal-bottom":Se=Ue,$e-=Pe.offsetTop;break;case"vue-modal-bottomRight":Se-=Pe.offsetLeft,$e-=Pe.offsetTop;break;case"vue-modal-topRight":Se-=Pe.offsetLeft,$e=Qe+(this.initialY-We.clientY);break;case"vue-modal-bottomLeft":Se=Ue+(this.initialX-We.clientX),$e-=Pe.offsetTop;break;case"vue-modal-topLeft":Se=Ue+(this.initialX-We.clientX),$e=Qe+(this.initialY-We.clientY);break;default:console.error("Incorrrect/no resize direction.")}var mt=Math.min(ee(),this.maxWidth),ht=Math.min(window.innerHeight,this.maxHeight);Se=G(this.minWidth,mt,Se),$e=G(this.minHeight,ht,$e),this.initialX=We.clientX,this.initialY=We.clientY,this.size={width:Se,height:$e};var at={width:Se-Ue,height:$e-Qe};Pe.style.width=Se+"px",Pe.style.height=$e+"px",this.$emit("resize",{element:Pe,size:this.size,direction:this.targetClass,dimGrowth:at})}}}};q(6);function ge(We,Pe,Se,$e,Ue,Qe,mt,ht){var at,ut=typeof We=="function"?We.options:We;if(Pe&&(ut.render=Pe,ut.staticRenderFns=Se,ut._compiled=!0),$e&&(ut.functional=!0),Qe&&(ut._scopeId="data-v-"+Qe),mt?(at=function(Bn){(Bn=Bn||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(Bn=__VUE_SSR_CONTEXT__),Ue&&Ue.call(this,Bn),Bn&&Bn._registeredComponents&&Bn._registeredComponents.add(mt)},ut._ssrRegister=at):Ue&&(at=ht?function(){Ue.call(this,this.$root.$options.shadowRoot)}:Ue),at)if(ut.functional){ut._injectStyles=at;var Rt=ut.render;ut.render=function(Bn,en){return at.call(en),Rt(Bn,en)}}else{var fn=ut.beforeCreate;ut.beforeCreate=fn?[].concat(fn,at):[at]}return{exports:We,options:ut}}var ue=ge(le,K,[],!1,null,null,null);ue.options.__file="src/components/Resizer.vue";var _e=ue.exports;function fe(We){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe})(We)}function me(We){switch(fe(We)){case"number":return{type:"px",value:We};case"string":return function(Pe){if(Pe==="auto")return{type:Pe,value:0};var Se=oe.find(function($e){return $e.regexp.test(Pe)});return Se?{type:Se.name,value:parseFloat(Pe)}:{type:"",value:Pe}}(We);default:return{type:"",value:We}}}function ve(We){if(typeof We!="string")return 0<=We;var Pe=me(We);return(Pe.type==="%"||Pe.type==="px")&&0<Pe.value}var xe="[-+]?[0-9]*.?[0-9]+",oe=[{name:"px",regexp:new RegExp("^".concat(xe,"px$"))},{name:"%",regexp:new RegExp("^".concat(xe,"%$"))},{name:"px",regexp:new RegExp("^".concat(xe,"$"))}],ye=q(5),be=typeof window<"u"&&window.ResizeObserver?ResizeObserver:ye.a;function we(We,Pe){for(var Se=0;Se<Pe.length;Se++){var $e=Pe[Se];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(We,$e.key,$e)}}function Ae(We){return function(Pe){if(Array.isArray(Pe)){for(var Se=0,$e=new Array(Pe.length);Se<Pe.length;Se++)$e[Se]=Pe[Se];return $e}}(We)||function(Pe){if(Symbol.iterator in Object(Pe)||Object.prototype.toString.call(Pe)==="[object Arguments]")return Array.from(Pe)}(We)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ke(We){return Pe='button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=""]:not([disabled]), [contentEditable="true"]:not([disabled]), [contentEditable="TRUE"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex="-1"])',Ae(We.querySelectorAll(Pe)||[]);var Pe}function Oe(We){return We==document.activeElement}var Me=function(){function We(){(function($e,Ue){if(!($e instanceof Ue))throw new TypeError("Cannot call a class as a function")})(this,We),this.root=null,this.elements=[],this.onKeyDown=this.onKeyDown.bind(this),this.enable=this.enable.bind(this),this.disable=this.disable.bind(this),this.firstElement=this.firstElement.bind(this),this.lastElement=this.lastElement.bind(this)}var Pe,Se;return Pe=We,(Se=[{key:"lastElement",value:function(){return this.elements[this.elements.length-1]||null}},{key:"firstElement",value:function(){return this.elements[0]||null}},{key:"onKeyDown",value:function($e){var Ue;if((Ue=$e).key==="Tab"||Ue.keyCode===9)return $e.shiftKey&&Oe(this.firstElement())?(this.lastElement().focus(),void $e.preventDefault()):!document.activeElement||Oe(this.lastElement())?(this.firstElement().focus(),void $e.preventDefault()):void 0}},{key:"enabled",value:function(){return!!this.root}},{key:"enable",value:function($e){if($e){this.root=$e,this.elements=ke(this.root);var Ue=this.firstElement();Ue&&Ue.focus(),this.root.addEventListener("keydown",this.onKeyDown)}}},{key:"disable",value:function(){this.root.removeEventListener("keydown",this.onKeyDown),this.root=null}}])&&we(Pe.prototype,Se),We}();function ze(We,Pe,Se){return Pe in We?Object.defineProperty(We,Pe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):We[Pe]=Se,We}function Fe(We,Pe){return function(Se){if(Array.isArray(Se))return Se}(We)||function(Se,$e){var Ue=[],Qe=!0,mt=!1,ht=void 0;try{for(var at,ut=Se[Symbol.iterator]();!(Qe=(at=ut.next()).done)&&(Ue.push(at.value),!$e||Ue.length!==$e);Qe=!0);}catch(Rt){mt=!0,ht=Rt}finally{try{Qe||ut.return==null||ut.return()}finally{if(mt)throw ht}}return Ue}(We,Pe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ze="vm-transition--default",lt="enter",qe="entering",Ve="leave",At="leavng",Nt={name:"VueJsModal",props:{name:{required:!0,type:String},resizable:{type:Boolean,default:!1},resizeEdges:{default:function(){return["r","br","b","bl","l","tl","t","tr"]},validator:function(We){return["r","br","b","bl","l","tl","t","tr"].filter(function(Pe){return We.indexOf(Pe)!==-1}).length===We.length},type:Array},centerResize:{type:Boolean,default:!0},resizeIndicator:{type:Boolean,default:!0},adaptive:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1},scrollable:{type:Boolean,default:!1},focusTrap:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},overlayTransition:{type:String,default:"vm-transition--overlay"},transition:{type:String,default:"vm-transition--modal"},clickToClose:{type:Boolean,default:!0},classes:{type:[String,Array],default:function(){return[]}},styles:{type:[String,Array,Object]},minWidth:{type:Number,default:0,validator:function(We){return 0<=We}},minHeight:{type:Number,default:0,validator:function(We){return 0<=We}},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},width:{type:[Number,String],default:600,validator:function(We){return We==="auto"||ve(We)}},height:{type:[Number,String],default:300,validator:function(We){return We==="auto"||ve(We)}},shiftX:{type:Number,default:.5,validator:function(We){return 0<=We&&We<=1}},shiftY:{type:Number,default:.5,validator:function(We){return 0<=We&&We<=1}}},components:{Resizer:_e},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},overlayTransitionState:null,modalTransitionState:null,shiftLeft:0,shiftTop:0,modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},viewportHeight:0,viewportWidth:0}},created:function(){this.setInitialSize()},beforeMount:function(){this.$modal.subscription.$on("toggle",this.onToggle),window.addEventListener("resize",this.onWindowResize),window.addEventListener("orientationchange",this.onWindowResize),this.onWindowResize(),this.scrollable&&!this.isAutoHeight&&console.warn('Modal "'.concat(this.name,'" has scrollable flag set to true ')+'but height is not "auto" ('.concat(this.height,")")),this.clickToClose&&window.addEventListener("keyup",this.onEscapeKeyUp)},mounted:function(){var We=this;this.resizeObserver=new be(function(Pe){if(0<Pe.length){var Se=Fe(Pe,1)[0];We.modal.renderedHeight=Se.contentRect.height}}),this.$focusTrap=new Me},beforeDestroy:function(){this.$modal.subscription.$off("toggle",this.onToggle),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("orientationchange",this.onWindowResize),this.clickToClose&&window.removeEventListener("keyup",this.onEscapeKeyUp),document.body.classList.remove("vm--block-scroll")},computed:{guaranteedOverlayTransition:function(){return this.overlayTransition||Ze},guaranteedModalTransition:function(){return this.transition||Ze},isAutoHeight:function(){return this.modal.heightType==="auto"},position:function(){var We=this.viewportHeight,Pe=this.viewportWidth,Se=this.shiftLeft,$e=this.shiftTop,Ue=this.shiftX,Qe=this.shiftY,mt=this.trueModalWidth,ht=this.trueModalHeight,at=Pe-mt,ut=Math.max(We-ht,0),Rt=$e+Qe*ut;return{left:parseInt(G(0,at,Se+Ue*at)),top:!ht&&this.isAutoHeight?void 0:parseInt(G(0,ut,Rt))}},trueModalWidth:function(){var We=this.viewportWidth,Pe=this.modal,Se=this.adaptive,$e=this.minWidth,Ue=this.maxWidth,Qe=Pe.widthType==="%"?We/100*Pe.width:Pe.width;if(Se){var mt=Math.max($e,Math.min(We,Ue));return G($e,mt,Qe)}return Qe},trueModalHeight:function(){var We=this.viewportHeight,Pe=this.modal,Se=this.isAutoHeight,$e=this.adaptive,Ue=this.minHeight,Qe=this.maxHeight,mt=Pe.heightType==="%"?We/100*Pe.height:Pe.height;if(Se)return this.modal.renderedHeight;if($e){var ht=Math.max(Ue,Math.min(We,Qe));return G(Ue,ht,mt)}return mt},autoHeight:function(){return this.adaptive&&this.modal.renderedHeight>=this.viewportHeight?Math.max(this.minHeight,this.viewportHeight)+"px":"auto"},containerClass:function(){return["vm--container",this.scrollable&&this.isAutoHeight&&"scrollable"]},modalClass:function(){return["vm--modal",this.classes]},stylesProp:function(){return typeof this.styles=="string"?te(this.styles):this.styles},modalStyle:function(){return[this.stylesProp,{top:this.position.top+"px",left:this.position.left+"px",width:this.trueModalWidth+"px",height:this.isAutoHeight?this.autoHeight:this.trueModalHeight+"px"}]},isComponentReadyToBeDestroyed:function(){return this.overlayTransitionState===Ve&&this.modalTransitionState===Ve}},watch:{isComponentReadyToBeDestroyed:function(We){We&&(this.visible=!1)}},methods:{startTransitionEnter:function(){this.visibility.overlay=!0,this.visibility.modal=!0},startTransitionLeave:function(){this.visibility.overlay=!1,this.visibility.modal=!1},beforeOverlayTransitionEnter:function(){this.overlayTransitionState=qe},afterOverlayTransitionEnter:function(){this.overlayTransitionState=lt},beforeOverlayTransitionLeave:function(){this.overlayTransitionState=At},afterOverlayTransitionLeave:function(){this.overlayTransitionState=Ve},beforeModalTransitionEnter:function(){var We=this;this.modalTransitionState=qe,this.$nextTick(function(){We.resizeObserver.observe(We.$refs.modal)})},afterModalTransitionEnter:function(){this.modalTransitionState=lt,this.draggable&&this.addDraggableListeners(),this.focusTrap&&this.$focusTrap.enable(this.$refs.modal);var We=this.createModalEvent({state:"opened"});this.$emit("opened",We)},beforeModalTransitionLeave:function(){this.modalTransitionState=At,this.resizeObserver.unobserve(this.$refs.modal),this.$focusTrap.enabled()&&this.$focusTrap.disable()},afterModalTransitionLeave:function(){this.modalTransitionState=Ve;var We=this.createModalEvent({state:"closed"});this.$emit("closed",We)},onToggle:function(We,Pe,Se){if(this.name===We){var $e=Pe===void 0?!this.visible:Pe;this.toggle($e,Se)}},setInitialSize:function(){var We=me(this.width),Pe=me(this.height);this.modal.width=We.value,this.modal.widthType=We.type,this.modal.height=Pe.value,this.modal.heightType=Pe.type},onEscapeKeyUp:function(We){We.which===27&&this.visible&&this.$modal.hide(this.name)},onWindowResize:function(){this.viewportWidth=ee(),this.viewportHeight=window.innerHeight,this.ensureShiftInWindowBounds()},createModalEvent:function(We){var Pe=0<arguments.length&&We!==void 0?We:{};return function(Se){for(var $e=1;$e<arguments.length;$e++){var Ue=arguments[$e]!=null?arguments[$e]:{},Qe=Object.keys(Ue);typeof Object.getOwnPropertySymbols=="function"&&(Qe=Qe.concat(Object.getOwnPropertySymbols(Ue).filter(function(mt){return Object.getOwnPropertyDescriptor(Ue,mt).enumerable}))),Qe.forEach(function(mt){ze(Se,mt,Ue[mt])})}return Se}({name:this.name,ref:this.$refs.modal||null},Pe)},onModalResize:function(We){this.modal.widthType="px",this.modal.width=We.size.width,this.modal.heightType="px",this.modal.height=We.size.height,this.centerResize||(this.shiftLeft=this.getResizedShiftLeft(We),this.shiftTop=this.getResizedShiftTop(We));var Pe=this.modal.size;this.$emit("resize",this.createModalEvent({size:Pe}))},getResizedShiftLeft:function(We){this.viewportHeight,this.viewportWidth,this.trueModalWidth,this.trueModalHeight;var Pe=this.shiftLeft;switch(We.direction){case"vue-modal-topRight":case"vue-modal-bottomRight":case"vue-modal-right":Pe+=.5*We.dimGrowth.width;break;case"vue-modal-bottomLeft":case"vue-modal-topLeft":case"vue-modal-left":Pe-=.5*We.dimGrowth.width;break;case"vue-modal-top":case"vue-modal-bottom":break;default:console.error("Could not Find Resize Direction In ShiftLeft")}return Pe},getResizedShiftTop:function(We){this.viewportHeight,this.viewportWidth,this.trueModalWidth,this.trueModalHeight;var Pe=this.shiftTop;switch(We.direction){case"vue-modal-bottom":case"vue-modal-bottomRight":case"vue-modal-bottomLeft":Pe+=.5*We.dimGrowth.height;break;case"vue-modal-top":case"vue-modal-topRight":case"vue-modal-topLeft":Pe-=.5*We.dimGrowth.height;break;case"vue-modal-left":case"vue-modal-right":break;default:console.error("Could not Find Resize Direction In ShiftTop")}return Pe},open:function(We){var Pe=this;this.reset&&(this.setInitialSize(),this.shiftLeft=0,this.shiftTop=0),this.scrollable&&document.body.classList.add("vm--block-scroll");var Se=!1,$e=this.createModalEvent({cancel:function(){Se=!0},state:"before-open",params:We});this.$emit("before-open",$e),Se?this.scrollable&&document.body.classList.remove("vm--block-scroll"):(typeof document<"u"&&document.activeElement&&document.activeElement.tagName!=="BODY"&&document.activeElement.blur&&document.activeElement.blur(),this.visible=!0,this.$nextTick(function(){Pe.startTransitionEnter()}))},close:function(We){this.scrollable&&document.body.classList.remove("vm--block-scroll");var Pe=!1,Se=this.createModalEvent({cancel:function(){Pe=!0},state:"before-close",params:We});this.$emit("before-close",Se),Pe||this.startTransitionLeave()},toggle:function(We,Pe){this.visible!==We&&(We?this.open(Pe):this.close(Pe))},getDraggableElement:function(){return this.draggable===!0?this.$refs.modal:typeof this.draggable=="string"?this.$refs.modal.querySelector(this.draggable):null},onOverlayClick:function(){this.clickToClose&&this.toggle(!1)},addDraggableListeners:function(){var We=this,Pe=this.getDraggableElement();if(Pe){var Se=0,$e=0,Ue=0,Qe=0,mt=function(ut){var Rt=ut.target;if(!(fn=Rt)||se.indexOf(fn.nodeName)===-1){var fn,Bn=re(ut),en=Bn.clientX,xn=Bn.clientY;document.addEventListener("mousemove",ht),document.addEventListener("touchmove",ht),document.addEventListener("mouseup",at),document.addEventListener("touchend",at),Se=en,$e=xn,Ue=We.shiftLeft,Qe=We.shiftTop}},ht=function(ut){var Rt=re(ut),fn=Rt.clientX,Bn=Rt.clientY;We.shiftLeft=Ue+fn-Se,We.shiftTop=Qe+Bn-$e,ut.preventDefault()},at=function ut(Rt){We.ensureShiftInWindowBounds(),document.removeEventListener("mousemove",ht),document.removeEventListener("touchmove",ht),document.removeEventListener("mouseup",ut),document.removeEventListener("touchend",ut),Rt.preventDefault()};Pe.addEventListener("mousedown",mt),Pe.addEventListener("touchstart",mt)}},ensureShiftInWindowBounds:function(){var We=this.viewportHeight,Pe=this.viewportWidth,Se=this.shiftLeft,$e=this.shiftTop,Ue=this.shiftX,Qe=this.shiftY,mt=this.trueModalWidth,ht=this.trueModalHeight,at=Pe-mt,ut=Math.max(We-ht,0),Rt=Se+Ue*at,fn=$e+Qe*ut;this.shiftLeft-=Rt-G(0,at,Rt),this.shiftTop-=fn-G(0,ut,fn)}}},zt=(q(9),ge(Nt,Y,[],!1,null,null,null));zt.options.__file="src/components/Modal.vue";function Ht(){var We=this,Pe=We.$createElement,Se=We._self._c||Pe;return Se(We.$modal.context.componentName,{tag:"component",attrs:{name:"dialog",height:"auto",classes:["vue-dialog",this.params.class],width:We.width,"shift-y":.3,adaptive:!0,"focus-trap":!0,clickToClose:We.clickToClose,transition:We.transition},on:{"before-open":We.beforeOpened,"before-close":We.beforeClosed,opened:function($e){return We.$emit("opened",$e)},closed:function($e){return We.$emit("closed",$e)}}},[Se("div",{staticClass:"vue-dialog-content"},[We.params.title?Se("div",{staticClass:"vue-dialog-content-title",domProps:{innerHTML:We._s(We.params.title||"")}}):We._e(),We._v(" "),We.params.component?Se(We.params.component,We._b({tag:"component"},"component",We.params.props,!1)):Se("div",{domProps:{innerHTML:We._s(We.params.text||"")}})],1),We._v(" "),We.buttons?Se("div",{staticClass:"vue-dialog-buttons"},We._l(We.buttons,function($e,Ue){return Se("button",{key:Ue,class:$e.class||"vue-dialog-button",style:We.buttonStyle,attrs:{type:"button",tabindex:"0"},domProps:{innerHTML:We._s($e.title)},on:{click:function(Qe){return Qe.stopPropagation(),We.click(Ue,Qe)}}},[We._v(We._s($e.title))])}),0):Se("div",{staticClass:"vue-dialog-buttons-none"})])}var qt=zt.exports;Ht._withStripped=!0;var Qt={name:"VueJsDialog",props:{width:{type:[Number,String],default:400},clickToClose:{type:Boolean,default:!0},transition:{type:String}},data:function(){return{params:{}}},computed:{buttons:function(){return this.params.buttons||[]},buttonStyle:function(){return{flex:"1 1 ".concat(100/this.buttons.length,"%")}}},methods:{beforeOpened:function(We){this.params=We.params||{},this.$emit("before-opened",We)},beforeClosed:function(We){this.params={},this.$emit("before-closed",We)},click:function(We,Pe,Se){var $e=2<arguments.length&&Se!==void 0?Se:"click",Ue=this.buttons[We],Qe=Ue==null?void 0:Ue.handler;typeof Qe=="function"&&Qe(We,Pe,{source:$e})}}},Jt=(q(11),ge(Qt,Ht,[],!1,null,null,null));Jt.options.__file="src/components/Dialog.vue";function yn(){var We=this,Pe=We.$createElement,Se=We._self._c||Pe;return Se("div",{attrs:{id:"modals-container"}},We._l(We.modals,function($e){return Se("modal",We._g(We._b({key:$e.id,on:{closed:function(Ue){return We.remove($e.id)}}},"modal",$e.modalAttrs,!1),$e.modalListeners),[Se($e.component,We._g(We._b({tag:"component",on:{close:function(Ue){return We.$modal.hide($e.modalAttrs.name,Ue)}}},"component",$e.componentAttrs,!1),We.$listeners))],1)}),1)}var _n=Jt.exports;function Hn(We,Pe,Se){return Pe in We?Object.defineProperty(We,Pe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):We[Pe]=Se,We}yn._withStripped=!0;var On=ge({data:function(){return{modals:[]}},created:function(){this.$root.__modalContainer=this},mounted:function(){var We=this;this.$modal.subscription.$on("hide-all",function(){We.modals=[]})},methods:{add:function(We,Pe,Se,$e){var Ue=this,Qe=1<arguments.length&&Pe!==void 0?Pe:{},mt=2<arguments.length&&Se!==void 0?Se:{},ht=3<arguments.length&&$e!==void 0?$e:{},at=ne(),ut=mt.name||"dynamic_modal_"+at;this.modals.push({id:at,modalAttrs:function(Rt){for(var fn=1;fn<arguments.length;fn++){var Bn=arguments[fn]!=null?arguments[fn]:{},en=Object.keys(Bn);typeof Object.getOwnPropertySymbols=="function"&&(en=en.concat(Object.getOwnPropertySymbols(Bn).filter(function(xn){return Object.getOwnPropertyDescriptor(Bn,xn).enumerable}))),en.forEach(function(xn){Hn(Rt,xn,Bn[xn])})}return Rt}({},mt,{name:ut}),modalListeners:ht,component:We,componentAttrs:Qe}),this.$nextTick(function(){Ue.$modal.show(ut)})},remove:function(We){var Pe=this.modals.findIndex(function(Se){return Se.id===We});Pe!==-1&&this.modals.splice(Pe,1)}}},yn,[],!1,null,null,null);On.options.__file="src/components/ModalsContainer.vue";var Fn=On.exports;function In(We){return(In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe})(We)}function dn(We,Pe,Se){return Pe in We?Object.defineProperty(We,Pe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):We[Pe]=Se,We}var kt=function(We,Pe){function Se(mt,ht,at,ut){var Rt,fn=2<arguments.length&&at!==void 0?at:{},Bn=3<arguments.length?ut:void 0,en=(Rt=Qe.root)===null||Rt===void 0?void 0:Rt.__modalContainer,xn=$e.dynamicDefaults||{};en!=null&&en.add(mt,ht,function(ot){for(var dt=1;dt<arguments.length;dt++){var Ot=arguments[dt]!=null?arguments[dt]:{},Yt=Object.keys(Ot);typeof Object.getOwnPropertySymbols=="function"&&(Yt=Yt.concat(Object.getOwnPropertySymbols(Ot).filter(function(Wt){return Object.getOwnPropertyDescriptor(Ot,Wt).enumerable}))),Yt.forEach(function(Wt){dn(ot,Wt,Ot[Wt])})}return ot}({},xn,fn),Bn)}var $e=1<arguments.length&&Pe!==void 0?Pe:{},Ue=new We,Qe={root:null,componentName:$e.componentName||"Modal"};return{context:Qe,subscription:Ue,show:function(){for(var mt=arguments.length,ht=new Array(mt),at=0;at<mt;at++)ht[at]=arguments[at];var ut=ht[0];switch(In(ut)){case"string":(function(Rt,fn){Ue.$emit("toggle",Rt,!0,fn)}).apply(void 0,ht);break;case"object":case"function":Se.apply(void 0,ht);break;default:console.warn("[vue-js-modal] $modal() received an unsupported argument as a first argument.",ut)}},hide:function(mt,ht){Ue.$emit("toggle",mt,!1,ht)},hideAll:function(){Ue.$emit("hide-all")},toggle:function(mt,ht){Ue.$emit("toggle",mt,void 0,ht)},setDynamicModalContainer:function(mt){Qe.root=mt;var ht,at=(ht=document.createElement("div"),document.body.appendChild(ht),ht);new We({parent:mt,render:function(ut){return ut(Fn)}}).$mount(at)}}},Ye={install:function(We,Pe){var Se=1<arguments.length&&Pe!==void 0?Pe:{};if(!We.prototype.$modal){var $e=new kt(We,Se);if(Object.defineProperty(We.prototype,"$modal",{get:function(){if(this instanceof We){var Qe=this.$root;$e.context.root||$e.setDynamicModalContainer(Qe)}return $e}}),We.component($e.context.componentName,qt),Se.dialog){var Ue=Se.dialogComponentName||"VDialog";We.component(Ue,_n)}}}},_t="__VERSION__";U.default=Ye}],I.c=B,I.d=function(j,U,q){I.o(j,U)||Object.defineProperty(j,U,{enumerable:!0,get:q})},I.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},I.t=function(j,U){if(1&U&&(j=I(j)),8&U||4&U&&typeof j=="object"&&j&&j.__esModule)return j;var q=Object.create(null);if(I.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:j}),2&U&&typeof j!="string")for(var Y in j)I.d(q,Y,(function(K){return j[K]}).bind(null,Y));return q},I.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return I.d(U,"a",U),U},I.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},I.p="/dist/",I(I.s=13);function I(j){if(B[j])return B[j].exports;var U=B[j]={i:j,l:!1,exports:{}};return N[j].call(U.exports,U,U.exports,I),U.l=!0,U.exports}var N,B})})(dist);var distExports=dist.exports;const VModal=getDefaultExportFromCjs(distExports);/*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */function applyMixin(M){var $=Number(M.version.split(".")[0]);if($>=2)M.mixin({beforeCreate:N});else{var I=M.prototype._init;M.prototype._init=function(B){B===void 0&&(B={}),B.init=B.init?[N].concat(B.init):N,I.call(this,B)}}function N(){var B=this.$options;B.store?this.$store=typeof B.store=="function"?B.store():B.store:B.parent&&B.parent.$store&&(this.$store=B.parent.$store)}}var target=typeof window<"u"?window:typeof global<"u"?global:{},devtoolHook=target.__VUE_DEVTOOLS_GLOBAL_HOOK__;function devtoolPlugin(M){devtoolHook&&(M._devtoolHook=devtoolHook,devtoolHook.emit("vuex:init",M),devtoolHook.on("vuex:travel-to-state",function($){M.replaceState($)}),M.subscribe(function($,I){devtoolHook.emit("vuex:mutation",$,I)},{prepend:!0}),M.subscribeAction(function($,I){devtoolHook.emit("vuex:action",$,I)},{prepend:!0}))}function find(M,$){return M.filter($)[0]}function deepCopy(M,$){if($===void 0&&($=[]),M===null||typeof M!="object")return M;var I=find($,function(B){return B.original===M});if(I)return I.copy;var N=Array.isArray(M)?[]:{};return $.push({original:M,copy:N}),Object.keys(M).forEach(function(B){N[B]=deepCopy(M[B],$)}),N}function forEachValue(M,$){Object.keys(M).forEach(function(I){return $(M[I],I)})}function isObject$1(M){return M!==null&&typeof M=="object"}function isPromise(M){return M&&typeof M.then=="function"}function partial(M,$){return function(){return M($)}}var Module=function M($,I){this.runtime=I,this._children=Object.create(null),this._rawModule=$;var N=$.state;this.state=(typeof N=="function"?N():N)||{}},prototypeAccessors={namespaced:{configurable:!0}};prototypeAccessors.namespaced.get=function(){return!!this._rawModule.namespaced};Module.prototype.addChild=function M($,I){this._children[$]=I};Module.prototype.removeChild=function M($){delete this._children[$]};Module.prototype.getChild=function M($){return this._children[$]};Module.prototype.hasChild=function M($){return $ in this._children};Module.prototype.update=function M($){this._rawModule.namespaced=$.namespaced,$.actions&&(this._rawModule.actions=$.actions),$.mutations&&(this._rawModule.mutations=$.mutations),$.getters&&(this._rawModule.getters=$.getters)};Module.prototype.forEachChild=function M($){forEachValue(this._children,$)};Module.prototype.forEachGetter=function M($){this._rawModule.getters&&forEachValue(this._rawModule.getters,$)};Module.prototype.forEachAction=function M($){this._rawModule.actions&&forEachValue(this._rawModule.actions,$)};Module.prototype.forEachMutation=function M($){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,$)};Object.defineProperties(Module.prototype,prototypeAccessors);var ModuleCollection=function M($){this.register([],$,!1)};ModuleCollection.prototype.get=function M($){return $.reduce(function(I,N){return I.getChild(N)},this.root)};ModuleCollection.prototype.getNamespace=function M($){var I=this.root;return $.reduce(function(N,B){return I=I.getChild(B),N+(I.namespaced?B+"/":"")},"")};ModuleCollection.prototype.update=function M($){update([],this.root,$)};ModuleCollection.prototype.register=function M($,I,N){var B=this;N===void 0&&(N=!0);var j=new Module(I,N);if($.length===0)this.root=j;else{var U=this.get($.slice(0,-1));U.addChild($[$.length-1],j)}I.modules&&forEachValue(I.modules,function(q,Y){B.register($.concat(Y),q,N)})};ModuleCollection.prototype.unregister=function M($){var I=this.get($.slice(0,-1)),N=$[$.length-1],B=I.getChild(N);B&&B.runtime&&I.removeChild(N)};ModuleCollection.prototype.isRegistered=function M($){var I=this.get($.slice(0,-1)),N=$[$.length-1];return I?I.hasChild(N):!1};function update(M,$,I){if($.update(I),I.modules)for(var N in I.modules){if(!$.getChild(N))return;update(M.concat(N),$.getChild(N),I.modules[N])}}var Vue$1,Store=function M($){var I=this;$===void 0&&($={}),!Vue$1&&typeof window<"u"&&window.Vue&&install(window.Vue);var N=$.plugins;N===void 0&&(N=[]);var B=$.strict;B===void 0&&(B=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection($),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Vue$1,this._makeLocalGettersCache=Object.create(null);var j=this,U=this,q=U.dispatch,Y=U.commit;this.dispatch=function(Z,ee){return q.call(j,Z,ee)},this.commit=function(Z,ee,te){return Y.call(j,Z,ee,te)},this.strict=B;var K=this._modules.root.state;installModule(this,K,[],this._modules.root),resetStoreVM(this,K),N.forEach(function(J){return J(I)});var G=$.devtools!==void 0?$.devtools:Vue$1.config.devtools;G&&devtoolPlugin(this)},prototypeAccessors$1={state:{configurable:!0}};prototypeAccessors$1.state.get=function(){return this._vm._data.$$state};prototypeAccessors$1.state.set=function(M){};Store.prototype.commit=function M($,I,N){var B=this,j=unifyObjectStyle($,I,N),U=j.type,q=j.payload,Y={type:U,payload:q},K=this._mutations[U];K&&(this._withCommit(function(){K.forEach(function(J){J(q)})}),this._subscribers.slice().forEach(function(G){return G(Y,B.state)}))};Store.prototype.dispatch=function M($,I){var N=this,B=unifyObjectStyle($,I),j=B.type,U=B.payload,q={type:j,payload:U},Y=this._actions[j];if(Y){try{this._actionSubscribers.slice().filter(function(G){return G.before}).forEach(function(G){return G.before(q,N.state)})}catch{}var K=Y.length>1?Promise.all(Y.map(function(G){return G(U)})):Y[0](U);return new Promise(function(G,J){K.then(function(Z){try{N._actionSubscribers.filter(function(ee){return ee.after}).forEach(function(ee){return ee.after(q,N.state)})}catch{}G(Z)},function(Z){try{N._actionSubscribers.filter(function(ee){return ee.error}).forEach(function(ee){return ee.error(q,N.state,Z)})}catch{}J(Z)})})}};Store.prototype.subscribe=function M($,I){return genericSubscribe($,this._subscribers,I)};Store.prototype.subscribeAction=function M($,I){var N=typeof $=="function"?{before:$}:$;return genericSubscribe(N,this._actionSubscribers,I)};Store.prototype.watch=function M($,I,N){var B=this;return this._watcherVM.$watch(function(){return $(B.state,B.getters)},I,N)};Store.prototype.replaceState=function M($){var I=this;this._withCommit(function(){I._vm._data.$$state=$})};Store.prototype.registerModule=function M($,I,N){N===void 0&&(N={}),typeof $=="string"&&($=[$]),this._modules.register($,I),installModule(this,this.state,$,this._modules.get($),N.preserveState),resetStoreVM(this,this.state)};Store.prototype.unregisterModule=function M($){var I=this;typeof $=="string"&&($=[$]),this._modules.unregister($),this._withCommit(function(){var N=getNestedState(I.state,$.slice(0,-1));Vue$1.delete(N,$[$.length-1])}),resetStore(this)};Store.prototype.hasModule=function M($){return typeof $=="string"&&($=[$]),this._modules.isRegistered($)};Store.prototype.hotUpdate=function M($){this._modules.update($),resetStore(this,!0)};Store.prototype._withCommit=function M($){var I=this._committing;this._committing=!0,$(),this._committing=I};Object.defineProperties(Store.prototype,prototypeAccessors$1);function genericSubscribe(M,$,I){return $.indexOf(M)<0&&(I&&I.prepend?$.unshift(M):$.push(M)),function(){var N=$.indexOf(M);N>-1&&$.splice(N,1)}}function resetStore(M,$){M._actions=Object.create(null),M._mutations=Object.create(null),M._wrappedGetters=Object.create(null),M._modulesNamespaceMap=Object.create(null);var I=M.state;installModule(M,I,[],M._modules.root,!0),resetStoreVM(M,I,$)}function resetStoreVM(M,$,I){var N=M._vm;M.getters={},M._makeLocalGettersCache=Object.create(null);var B=M._wrappedGetters,j={};forEachValue(B,function(q,Y){j[Y]=partial(q,M),Object.defineProperty(M.getters,Y,{get:function(){return M._vm[Y]},enumerable:!0})});var U=Vue$1.config.silent;Vue$1.config.silent=!0,M._vm=new Vue$1({data:{$$state:$},computed:j}),Vue$1.config.silent=U,M.strict&&enableStrictMode(M),N&&(I&&M._withCommit(function(){N._data.$$state=null}),Vue$1.nextTick(function(){return N.$destroy()}))}function installModule(M,$,I,N,B){var j=!I.length,U=M._modules.getNamespace(I);if(N.namespaced&&(M._modulesNamespaceMap[U],M._modulesNamespaceMap[U]=N),!j&&!B){var q=getNestedState($,I.slice(0,-1)),Y=I[I.length-1];M._withCommit(function(){Vue$1.set(q,Y,N.state)})}var K=N.context=makeLocalContext(M,U,I);N.forEachMutation(function(G,J){var Z=U+J;registerMutation(M,Z,G,K)}),N.forEachAction(function(G,J){var Z=G.root?J:U+J,ee=G.handler||G;registerAction(M,Z,ee,K)}),N.forEachGetter(function(G,J){var Z=U+J;registerGetter(M,Z,G,K)}),N.forEachChild(function(G,J){installModule(M,$,I.concat(J),G,B)})}function makeLocalContext(M,$,I){var N=$==="",B={dispatch:N?M.dispatch:function(j,U,q){var Y=unifyObjectStyle(j,U,q),K=Y.payload,G=Y.options,J=Y.type;return(!G||!G.root)&&(J=$+J),M.dispatch(J,K)},commit:N?M.commit:function(j,U,q){var Y=unifyObjectStyle(j,U,q),K=Y.payload,G=Y.options,J=Y.type;(!G||!G.root)&&(J=$+J),M.commit(J,K,G)}};return Object.defineProperties(B,{getters:{get:N?function(){return M.getters}:function(){return makeLocalGetters(M,$)}},state:{get:function(){return getNestedState(M.state,I)}}}),B}function makeLocalGetters(M,$){if(!M._makeLocalGettersCache[$]){var I={},N=$.length;Object.keys(M.getters).forEach(function(B){if(B.slice(0,N)===$){var j=B.slice(N);Object.defineProperty(I,j,{get:function(){return M.getters[B]},enumerable:!0})}}),M._makeLocalGettersCache[$]=I}return M._makeLocalGettersCache[$]}function registerMutation(M,$,I,N){var B=M._mutations[$]||(M._mutations[$]=[]);B.push(function(U){I.call(M,N.state,U)})}function registerAction(M,$,I,N){var B=M._actions[$]||(M._actions[$]=[]);B.push(function(U){var q=I.call(M,{dispatch:N.dispatch,commit:N.commit,getters:N.getters,state:N.state,rootGetters:M.getters,rootState:M.state},U);return isPromise(q)||(q=Promise.resolve(q)),M._devtoolHook?q.catch(function(Y){throw M._devtoolHook.emit("vuex:error",Y),Y}):q})}function registerGetter(M,$,I,N){M._wrappedGetters[$]||(M._wrappedGetters[$]=function(j){return I(N.state,N.getters,j.state,j.getters)})}function enableStrictMode(M){M._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function getNestedState(M,$){return $.reduce(function(I,N){return I[N]},M)}function unifyObjectStyle(M,$,I){return isObject$1(M)&&M.type&&(I=$,$=M,M=M.type),{type:M,payload:$,options:I}}function install(M){Vue$1&&M===Vue$1||(Vue$1=M,applyMixin(Vue$1))}var mapState=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){var q=this.$store.state,Y=this.$store.getters;if(M){var K=getModuleByNamespace(this.$store,"mapState",M);if(!K)return;q=K.context.state,Y=K.context.getters}return typeof j=="function"?j.call(this,q,Y):q[j]},I[B].vuex=!0}),I}),mapMutations=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){for(var q=[],Y=arguments.length;Y--;)q[Y]=arguments[Y];var K=this.$store.commit;if(M){var G=getModuleByNamespace(this.$store,"mapMutations",M);if(!G)return;K=G.context.commit}return typeof j=="function"?j.apply(this,[K].concat(q)):K.apply(this.$store,[j].concat(q))}}),I}),mapGetters=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;j=M+j,I[B]=function(){if(!(M&&!getModuleByNamespace(this.$store,"mapGetters",M)))return this.$store.getters[j]},I[B].vuex=!0}),I}),mapActions=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){for(var q=[],Y=arguments.length;Y--;)q[Y]=arguments[Y];var K=this.$store.dispatch;if(M){var G=getModuleByNamespace(this.$store,"mapActions",M);if(!G)return;K=G.context.dispatch}return typeof j=="function"?j.apply(this,[K].concat(q)):K.apply(this.$store,[j].concat(q))}}),I}),createNamespacedHelpers=function(M){return{mapState:mapState.bind(null,M),mapGetters:mapGetters.bind(null,M),mapMutations:mapMutations.bind(null,M),mapActions:mapActions.bind(null,M)}};function normalizeMap(M){return isValidMap(M)?Array.isArray(M)?M.map(function($){return{key:$,val:$}}):Object.keys(M).map(function($){return{key:$,val:M[$]}}):[]}function isValidMap(M){return Array.isArray(M)||isObject$1(M)}function normalizeNamespace(M){return function($,I){return typeof $!="string"?(I=$,$=""):$.charAt($.length-1)!=="/"&&($+="/"),M($,I)}}function getModuleByNamespace(M,$,I){var N=M._modulesNamespaceMap[I];return N}function createLogger(M){M===void 0&&(M={});var $=M.collapsed;$===void 0&&($=!0);var I=M.filter;I===void 0&&(I=function(G,J,Z){return!0});var N=M.transformer;N===void 0&&(N=function(G){return G});var B=M.mutationTransformer;B===void 0&&(B=function(G){return G});var j=M.actionFilter;j===void 0&&(j=function(G,J){return!0});var U=M.actionTransformer;U===void 0&&(U=function(G){return G});var q=M.logMutations;q===void 0&&(q=!0);var Y=M.logActions;Y===void 0&&(Y=!0);var K=M.logger;return K===void 0&&(K=console),function(G){var J=deepCopy(G.state);typeof K>"u"||(q&&G.subscribe(function(Z,ee){var te=deepCopy(ee);if(I(Z,J,te)){var re=getFormattedTime(),se=B(Z),ne="mutation "+Z.type+re;startMessage(K,ne,$),K.log("%c prev state","color: #9E9E9E; font-weight: bold",N(J)),K.log("%c mutation","color: #03A9F4; font-weight: bold",se),K.log("%c next state","color: #4CAF50; font-weight: bold",N(te)),endMessage(K)}J=te}),Y&&G.subscribeAction(function(Z,ee){if(j(Z,ee)){var te=getFormattedTime(),re=U(Z),se="action "+Z.type+te;startMessage(K,se,$),K.log("%c action","color: #03A9F4; font-weight: bold",re),endMessage(K)}}))}}function startMessage(M,$,I){var N=I?M.groupCollapsed:M.group;try{N.call(M,$)}catch{M.log($)}}function endMessage(M){try{M.groupEnd()}catch{M.log("—— log end ——")}}function getFormattedTime(){var M=new Date;return" @ "+pad(M.getHours(),2)+":"+pad(M.getMinutes(),2)+":"+pad(M.getSeconds(),2)+"."+pad(M.getMilliseconds(),3)}function repeat(M,$){return new Array($+1).join(M)}function pad(M,$){return repeat("0",$-M.toString().length)+M}var index={Store,install,version:"3.6.2",mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger};const Vuex=index,StatamicStore={namespaced:!0,state:{windowWidth:null,fieldtypes:null,composer:{},config:{},conditions:{}},mutations:{windowWidth(M,$){M.windowWidth=$},fieldtypes(M,$){M.fieldtypes=$},composer(M,$){M.composer=$},config(M,$){M.config=$},configValue(M,$){M.config[$.key]=$.value},preferences(M,$){M.config.user.preferences=$},condition(M,$){M.conditions[$.name]=$.condition}}};var vCalendar_umd_min={exports:{}};(function(M,$){(function(I,N){M.exports=N(require$$0)})(typeof self<"u"?self:commonjsGlobal,function(I){return function(N){var B={};function j(U){if(B[U])return B[U].exports;var q=B[U]={i:U,l:!1,exports:{}};return N[U].call(q.exports,q,q.exports,j),q.l=!0,q.exports}return j.m=N,j.c=B,j.d=function(U,q,Y){j.o(U,q)||Object.defineProperty(U,q,{enumerable:!0,get:Y})},j.r=function(U){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},j.t=function(U,q){if(1&q&&(U=j(U)),8&q||4&q&&typeof U=="object"&&U&&U.__esModule)return U;var Y=Object.create(null);if(j.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:U}),2&q&&typeof U!="string")for(var K in U)j.d(Y,K,(function(G){return U[G]}).bind(null,K));return Y},j.n=function(U){var q=U&&U.__esModule?function(){return U.default}:function(){return U};return j.d(q,"a",q),q},j.o=function(U,q){return Object.prototype.hasOwnProperty.call(U,q)},j.p="",j(j.s="fb15")}({"00fd":function(N,B,j){var U=j("9e69"),q=Object.prototype,Y=q.hasOwnProperty,K=q.toString,G=U?U.toStringTag:void 0;function J(Z){var ee=Y.call(Z,G),te=Z[G];try{Z[G]=void 0;var re=!0}catch{}var se=K.call(Z);return re&&(ee?Z[G]=te:delete Z[G]),se}N.exports=J},"03dd":function(N,B,j){var U=j("eac5"),q=j("57a5"),Y=Object.prototype,K=Y.hasOwnProperty;function G(J){if(!U(J))return q(J);var Z=[];for(var ee in Object(J))K.call(J,ee)&&ee!="constructor"&&Z.push(ee);return Z}N.exports=G},"0621":function(N,B,j){var U=j("9e69"),q=j("d370"),Y=j("6747"),K=U?U.isConcatSpreadable:void 0;function G(J){return Y(J)||q(J)||!!(K&&J&&J[K])}N.exports=G},"06cf":function(N,B,j){var U=j("83ab"),q=j("d1e7"),Y=j("5c6c"),K=j("fc6a"),G=j("c04e"),J=j("5135"),Z=j("0cfb"),ee=Object.getOwnPropertyDescriptor;B.f=U?ee:function(te,re){if(te=K(te),re=G(re,!0),Z)try{return ee(te,re)}catch{}if(J(te,re))return Y(!q.f.call(te,re),te[re])}},"0733":function(N,B,j){j.d(B,"a",function(){return Y});var U=j("2fa3"),q=j("9404");const Y=function(K,G,{maxSwipeTime:J,minHorizontalSwipeDistance:Z,maxVerticalSwipeDistance:ee}){if(!K||!K.addEventListener||!Object(q.k)(G))return null;let te=0,re=0,se=null,ne=!1;function le(ue){const _e=ue.changedTouches[0];te=_e.screenX,re=_e.screenY,se=new Date().getTime(),ne=!0}function ge(ue){if(!ne)return;ne=!1;const _e=ue.changedTouches[0],fe=_e.screenX-te,me=_e.screenY-re;if(new Date().getTime()-se<J&&Math.abs(fe)>=Z&&Math.abs(me)<=ee){const xe={toLeft:!1,toRight:!1};fe<0?xe.toLeft=!0:xe.toRight=!0,G(xe)}}return Object(U.k)(K,"touchstart",le,{passive:!0}),Object(U.k)(K,"touchend",ge,{passive:!0}),function(){Object(U.j)(K,"touchstart",le),Object(U.j)(K,"touchend",ge)}}},"07c7":function(N,B){function j(){return!1}N.exports=j},"087d":function(N,B){function j(U,q){for(var Y=-1,K=q.length,G=U.length;++Y<K;)U[G+Y]=q[Y];return U}N.exports=j},"08cc":function(N,B,j){var U=j("1a8c");function q(Y){return Y===Y&&!U(Y)}N.exports=q},"0b07":function(N,B,j){var U=j("34ac"),q=j("3698");function Y(K,G){var J=q(K,G);return U(J)?J:void 0}N.exports=Y},"0cb2":function(N,B,j){var U=j("7b0b"),q=Math.floor,Y="".replace,K=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,G=/\$([$&'`]|\d{1,2})/g;N.exports=function(J,Z,ee,te,re,se){var ne=ee+J.length,le=te.length,ge=G;return re!==void 0&&(re=U(re),ge=K),Y.call(se,ge,function(ue,_e){var fe;switch(_e.charAt(0)){case"$":return"$";case"&":return J;case"`":return Z.slice(0,ee);case"'":return Z.slice(ne);case"<":fe=re[_e.slice(1,-1)];break;default:var me=+_e;if(me===0)return ue;if(me>le){var ve=q(me/10);return ve===0?ue:ve<=le?te[ve-1]===void 0?_e.charAt(1):te[ve-1]+_e.charAt(1):ue}fe=te[me-1]}return fe===void 0?"":fe})}},"0cfb":function(N,B,j){var U=j("83ab"),q=j("d039"),Y=j("cc12");N.exports=!U&&!q(function(){return Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a!=7})},"0d24":function(N,B,j){(function(U){var q=j("2b3e"),Y=j("07c7"),K=B&&!B.nodeType&&B,G=K&&typeof U=="object"&&U&&!U.nodeType&&U,J=G&&G.exports===K,Z=J?q.Buffer:void 0,ee=Z?Z.isBuffer:void 0,te=ee||Y;U.exports=te}).call(this,j("62e4")(N))},"0da5":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-nav-header{display:flex;justify-content:space-between}.vc-nav-arrow{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:var(--leading-snug);border-width:2px;border-style:solid;border-color:transparent;border-radius:var(--rounded)}.vc-nav-arrow.is-left{margin-right:auto}.vc-nav-arrow.is-right{margin-left:auto}.vc-nav-arrow.is-disabled{opacity:.25;pointer-events:none;cursor:not-allowed}.vc-nav-arrow:hover{background-color:var(--gray-900)}.vc-nav-arrow:focus{border-color:var(--accent-600)}.vc-nav-title{color:var(--accent-100);font-weight:var(--font-bold);line-height:var(--leading-snug);padding:4px 8px;border-radius:var(--rounded);border-width:2px;border-style:solid;border-color:transparent;-webkit-user-select:none;user-select:none}.vc-nav-title:hover{background-color:var(--gray-900)}.vc-nav-title:focus{border-color:var(--accent-600)}.vc-nav-items{display:grid;grid-template-columns:repeat(3,1fr);grid-row-gap:2px;grid-column-gap:5px}.vc-nav-item{width:48px;text-align:center;line-height:var(--leading-snug);font-weight:var(--font-semibold);padding:4px 0;cursor:pointer;border-color:transparent;border-width:2px;border-style:solid;border-radius:var(--rounded);-webkit-user-select:none;user-select:none}.vc-nav-item:hover{color:var(--white);background-color:var(--gray-900);box-shadow:var(--shadow-inner)}.vc-nav-item.is-active{color:var(--accent-900);background:var(--accent-100);font-weight:var(--font-bold);box-shadow:var(--shadow)}.vc-nav-item.is-current{color:var(--accent-100);font-weight:var(--bold);border-color:var(--accent-100)}.vc-nav-item:focus{border-color:var(--accent-600)}.vc-nav-item.is-disabled{opacity:.25;pointer-events:none}.vc-is-dark .vc-nav-title{color:var(--gray-900)}.vc-is-dark .vc-nav-title:hover{background-color:var(--gray-200)}.vc-is-dark .vc-nav-title:focus{border-color:var(--accent-400)}.vc-is-dark .vc-nav-arrow:hover{background-color:var(--gray-200)}.vc-is-dark .vc-nav-arrow:focus{border-color:var(--accent-400)}.vc-is-dark .vc-nav-item:hover{color:var(--gray-900);background-color:var(--gray-200);box-shadow:none}.vc-is-dark .vc-nav-item.is-active{color:var(--white);background:var(--accent-500)}.vc-is-dark .vc-nav-item.is-current{color:var(--accent-600);border-color:var(--accent-500)}.vc-is-dark .vc-nav-item:focus{border-color:var(--accent-400)}",""]),N.exports=B},"0f0f":function(N,B,j){var U=j("8eeb"),q=j("9934");function Y(K,G){return K&&U(G,q(G),K)}N.exports=Y},"0f5c":function(N,B,j){var U=j("159a");function q(Y,K,G){return Y==null?Y:U(Y,K,G)}N.exports=q},"0fb2":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,'.vc-popover-content-wrapper[data-v-39b30300]{--popover-horizontal-content-offset:8px;--popover-vertical-content-offset:10px;--popover-slide-translation:15px;--popover-transition-time:0.14s ease-in-out;--popover-caret-horizontal-offset:18px;--popover-caret-vertical-offset:8px;position:absolute;display:block;outline:none;z-index:10}.vc-popover-content-wrapper[data-v-39b30300]:not(.is-interactive){pointer-events:none}.vc-popover-content[data-v-39b30300]{position:relative;outline:none;z-index:10;box-shadow:var(--shadow-lg)}.vc-popover-content.direction-bottom[data-v-39b30300]{margin-top:var(--popover-vertical-content-offset)}.vc-popover-content.direction-top[data-v-39b30300]{margin-bottom:var(--popover-vertical-content-offset)}.vc-popover-content.direction-left[data-v-39b30300]{margin-right:var(--popover-horizontal-content-offset)}.vc-popover-content.direction-right[data-v-39b30300]{margin-left:var(--popover-horizontal-content-offset)}.vc-popover-caret[data-v-39b30300]{content:"";position:absolute;display:block;width:12px;height:12px;border-top:inherit;border-left:inherit;background-color:inherit;-webkit-user-select:none;user-select:none;z-index:-1}.vc-popover-caret.direction-bottom[data-v-39b30300]{top:0}.vc-popover-caret.direction-bottom.align-left[data-v-39b30300]{transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-center[data-v-39b30300]{transform:translateX(-50%) translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-right[data-v-39b30300]{transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-top[data-v-39b30300]{top:100%}.vc-popover-caret.direction-top.align-left[data-v-39b30300]{transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-center[data-v-39b30300]{transform:translateX(-50%) translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-right[data-v-39b30300]{transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-left[data-v-39b30300]{left:100%}.vc-popover-caret.direction-left.align-top[data-v-39b30300]{transform:translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-middle[data-v-39b30300]{transform:translateY(-50%) translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-bottom[data-v-39b30300]{transform:translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-right[data-v-39b30300]{left:0}.vc-popover-caret.direction-right.align-top[data-v-39b30300]{transform:translateX(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-middle[data-v-39b30300]{transform:translateY(-50%) translateX(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-bottom[data-v-39b30300]{transform:translateX(-50%) rotate(-45deg)}.vc-popover-caret.align-left[data-v-39b30300]{left:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-center[data-v-39b30300]{left:50%}.vc-popover-caret.align-right[data-v-39b30300]{right:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-top[data-v-39b30300]{top:var(--popover-caret-vertical-offset)}.vc-popover-caret.align-middle[data-v-39b30300]{top:50%}.vc-popover-caret.align-bottom[data-v-39b30300]{bottom:var(--popover-caret-vertical-offset)}.fade-enter-active[data-v-39b30300],.fade-leave-active[data-v-39b30300],.slide-fade-enter-active[data-v-39b30300],.slide-fade-leave-active[data-v-39b30300]{transition:all var(--popover-transition-time);pointer-events:none}.fade-enter[data-v-39b30300],.fade-leave-to[data-v-39b30300],.slide-fade-enter[data-v-39b30300],.slide-fade-leave-to[data-v-39b30300]{opacity:0}.slide-fade-enter.direction-bottom[data-v-39b30300],.slide-fade-leave-to.direction-bottom[data-v-39b30300]{transform:translateY(calc(var(--popover-slide-translation)*-1))}.slide-fade-enter.direction-top[data-v-39b30300],.slide-fade-leave-to.direction-top[data-v-39b30300]{transform:translateY(var(--popover-slide-translation))}.slide-fade-enter.direction-left[data-v-39b30300],.slide-fade-leave-to.direction-left[data-v-39b30300]{transform:translateX(var(--popover-slide-translation))}.slide-fade-enter.direction-right[data-v-39b30300],.slide-fade-leave-to.direction-right[data-v-39b30300]{transform:translateX(calc(var(--popover-slide-translation)*-1))}',""]),N.exports=B},"100e":function(N,B,j){var U=j("cd9d"),q=j("2286"),Y=j("c1c9");function K(G,J){return Y(q(G,J,U),G+"")}N.exports=K},1041:function(N,B,j){var U=j("8eeb"),q=j("a029");function Y(K,G){return U(K,q(K),G)}N.exports=Y},"107c":function(N,B,j){var U=j("d039");N.exports=U(function(){var q=RegExp("(?<a>b)","string".charAt(5));return q.exec("b").groups.a!=="b"||"b".replace(q,"$<a>c")!=="bc"})},1290:function(N,B){function j(U){var q=typeof U;return q=="string"||q=="number"||q=="symbol"||q=="boolean"?U!=="__proto__":U===null}N.exports=j},1310:function(N,B){function j(U){return U!=null&&typeof U=="object"}N.exports=j},1315:function(N,B,j){j.d(B,"a",function(){return te});var U=j("8bbf"),q=j.n(U),Y=j("9404");function K(re){return Object(Y.n)(re)&&(re={min:re}),Object(Y.h)(re)||(re=[re]),re.map(function(se){return Object(Y.e)(se,"raw")?se.raw:Object(Y.q)(se,function(ne,le){return le=Object(Y.d)({min:"min-width",max:"max-width"},le,le),`(${le}: ${ne})`}).join(" and ")}).join(", ")}var G=j("85a9");let J=!1,Z=!1,ee=null;function te(re=G,se){ee&&!se||J||(J=!0,Z=!0,ee=new q.a({data(){return{matches:[],queries:[]}},methods:{refreshQueries(){var ne=this;window&&window.matchMedia&&(this.queries=Object(Y.r)(re,function(le){const ge=window.matchMedia(K(le));return Object(Y.k)(ge.addEventListener)?ge.addEventListener("change",ne.refreshMatches):ge.addListener(ne.refreshMatches),ge}),this.refreshMatches())},refreshMatches(){this.matches=Object(Y.w)(this.queries).filter(function(ne){return ne[1].matches}).map(function(ne){return ne[0]})}}}),J=!1)}q.a.mixin({beforeCreate(){J||te()},mounted(){Z&&ee&&(ee.refreshQueries(),Z=!1)},computed:{$screens(){return function(re,se){return ee.matches.reduce(function(ne,le){return Object(Y.e)(re,le)?re[le]:ne},Object(Y.o)(se)?re.default:se)}}}})},1368:function(N,B,j){var U=j("da03"),q=function(){var K=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}();function Y(K){return!!q&&q in K}N.exports=Y},"14c3":function(N,B,j){var U=j("c6b6"),q=j("9263");N.exports=function(Y,K){var G=Y.exec;if(typeof G=="function"){var J=G.call(Y,K);if(typeof J!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return J}if(U(Y)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return q.call(Y,K)}},"159a":function(N,B,j){var U=j("32b3"),q=j("e2e4"),Y=j("c098"),K=j("1a8c"),G=j("f4d6");function J(Z,ee,te,re){if(!K(Z))return Z;ee=q(ee,Z);for(var se=-1,ne=ee.length,le=ne-1,ge=Z;ge!=null&&++se<ne;){var ue=G(ee[se]),_e=te;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return Z;if(se!=le){var fe=ge[ue];_e=re?re(fe,ue,ge):void 0,_e===void 0&&(_e=K(fe)?fe:Y(ee[se+1])?[]:{})}U(ge,ue,_e),ge=ge[ue]}return Z}N.exports=J},"15f3":function(N,B,j){var U=j("89d9"),q=j("8604");function Y(K,G){return U(K,G,function(J,Z){return q(K,Z)})}N.exports=Y},1838:function(N,B,j){var U=j("c05f"),q=j("9b02"),Y=j("8604"),K=j("f608"),G=j("08cc"),J=j("20ec"),Z=j("f4d6"),ee=1,te=2;function re(se,ne){return K(se)&&G(ne)?J(Z(se),ne):function(le){var ge=q(le,se);return ge===void 0&&ge===ne?Y(le,se):U(ne,ge,ee|te)}}N.exports=re},"18d8":function(N,B,j){var U=j("234d"),q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/\\(\\)?/g,K=U(function(G){var J=[];return G.charCodeAt(0)===46&&J.push(""),G.replace(q,function(Z,ee,te,re){J.push(te?re.replace(Y,"$1"):ee||Z)}),J});N.exports=K},"1a2d":function(N,B,j){var U=j("42a2"),q=j("1310"),Y="[object Map]";function K(G){return q(G)&&U(G)==Y}N.exports=K},"1a8c":function(N,B){function j(U){var q=typeof U;return U!=null&&(q=="object"||q=="function")}N.exports=j},"1bac":function(N,B,j){var U=j("7d1f"),q=j("a029"),Y=j("9934");function K(G){return U(G,Y,q)}N.exports=K},"1be4":function(N,B,j){var U=j("d066");N.exports=U("document","documentElement")},"1c3c":function(N,B,j){var U=j("9e69"),q=j("2474"),Y=j("9638"),K=j("a2be"),G=j("edfa"),J=j("ac41"),Z=1,ee=2,te="[object Boolean]",re="[object Date]",se="[object Error]",ne="[object Map]",le="[object Number]",ge="[object RegExp]",ue="[object Set]",_e="[object String]",fe="[object Symbol]",me="[object ArrayBuffer]",ve="[object DataView]",xe=U?U.prototype:void 0,oe=xe?xe.valueOf:void 0;function ye(be,we,Ae,ke,Oe,Me,ze){switch(Ae){case ve:if(be.byteLength!=we.byteLength||be.byteOffset!=we.byteOffset)return!1;be=be.buffer,we=we.buffer;case me:return!(be.byteLength!=we.byteLength||!Me(new q(be),new q(we)));case te:case re:case le:return Y(+be,+we);case se:return be.name==we.name&&be.message==we.message;case ge:case _e:return be==we+"";case ne:var Fe=G;case ue:var Ze=ke&Z;if(Fe||(Fe=J),be.size!=we.size&&!Ze)return!1;var lt=ze.get(be);if(lt)return lt==we;ke|=ee,ze.set(be,we);var qe=K(Fe(be),Fe(we),ke,Oe,Me,ze);return ze.delete(be),qe;case fe:if(oe)return oe.call(be)==oe.call(we)}return!1}N.exports=ye},"1cec":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Promise");N.exports=Y},"1d80":function(N,B){N.exports=function(j){if(j==null)throw TypeError("Can't call method on "+j);return j}},"1efc":function(N,B){function j(U){var q=this.has(U)&&delete this.__data__[U];return this.size-=q?1:0,q}N.exports=j},"1f64":function(N,B,j){var U=j("6a43"),q=j.n(U);q.a},"1fc8":function(N,B,j){var U=j("4245");function q(Y,K){var G=U(this,Y),J=G.size;return G.set(Y,K),this.size+=G.size==J?0:1,this}N.exports=q},"20ec":function(N,B){function j(U,q){return function(Y){return Y!=null&&Y[U]===q&&(q!==void 0||U in Object(Y))}}N.exports=j},2202:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-select[data-v-7b2eaf0a]{position:relative}.vc-select select[data-v-7b2eaf0a]{flex-grow:1;display:block;-webkit-appearance:none;appearance:none;width:52px;height:30px;font-size:var(--text-base);font-weight:var(--font-medium);text-align:left;background-color:var(--gray-200);border:2px solid;border-color:var(--gray-200);color:var(--gray-900);padding:0 20px 0 8px;border-radius:var(--rounded);line-height:var(--leading-tight);text-indent:0;cursor:pointer;-moz-padding-start:3px;background-image:none}.vc-select select[data-v-7b2eaf0a]:hover{color:var(--gray-600)}.vc-select select[data-v-7b2eaf0a]:focus{outline:0;border-color:var(--accent-400);background-color:var(--white)}.vc-select-arrow[data-v-7b2eaf0a]{display:flex;align-items:center;pointer-events:none;position:absolute;top:0;bottom:0;right:0;padding:0 4px 0 0;color:var(--gray-500)}.vc-select-arrow svg[data-v-7b2eaf0a]{width:16px;height:16px;fill:currentColor}.vc-is-dark select[data-v-7b2eaf0a]{background:var(--gray-700);color:var(--gray-100);border-color:var(--gray-700)}.vc-is-dark select[data-v-7b2eaf0a]:hover{color:var(--gray-400)}.vc-is-dark select[data-v-7b2eaf0a]:focus{border-color:var(--accent-500);background-color:var(--gray-800)}",""]),N.exports=B},2285:function(N,B,j){var U=j("2a4d"),q=j.n(U);q.a},2286:function(N,B,j){var U=j("85e3"),q=Math.max;function Y(K,G,J){return G=q(G===void 0?K.length-1:G,0),function(){for(var Z=arguments,ee=-1,te=q(Z.length-G,0),re=Array(te);++ee<te;)re[ee]=Z[G+ee];ee=-1;for(var se=Array(G+1);++ee<G;)se[ee]=Z[ee];return se[G]=J(re),U(K,this,se)}}N.exports=Y},"22f3":function(N,B,j){j.d(B,"a",function(){return K});var U=j("cfe5"),q=j("2fa3"),Y=j("9404");class K{constructor({key:J,hashcode:Z,highlight:ee,content:te,dot:re,bar:se,popover:ne,dates:le,excludeDates:ge,excludeMode:ue,customData:_e,order:fe,pinPage:me},ve,xe){this.key=Object(Y.o)(J)?Object(q.c)():J,this.hashcode=Z,this.customData=_e,this.order=fe||0,this.dateOpts={order:fe,locale:xe},this.pinPage=me,ee&&(this.highlight=ve.normalizeHighlight(ee)),te&&(this.content=ve.normalizeContent(te)),re&&(this.dot=ve.normalizeDot(re)),se&&(this.bar=ve.normalizeBar(se)),ne&&(this.popover=ne),this.dates=xe.normalizeDates(le,this.dateOpts),this.hasDates=!!Object(q.b)(this.dates),this.excludeDates=xe.normalizeDates(ge,this.dateOpts),this.hasExcludeDates=!!Object(q.b)(this.excludeDates),this.excludeMode=ue||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new U.a({},this.dateOpts)),this.hasDates=!0),this.isComplex=Object(Y.v)(this.dates,function(oe){return oe.isComplex})}intersectsDate(J){return J=J instanceof U.a?J:new U.a(J,this.dateOpts),!this.excludesDate(J)&&(this.dates.find(function(Z){return Z.intersectsDate(J)})||!1)}includesDate(J){return J=J instanceof U.a?J:new U.a(J,this.dateOpts),!this.excludesDate(J)&&(this.dates.find(function(Z){return Z.includesDate(J)})||!1)}excludesDate(J){var Z=this;return J=J instanceof U.a?J:new U.a(J,this.dateOpts),this.hasExcludeDates&&this.excludeDates.find(function(ee){return Z.excludeMode==="intersects"&&ee.intersectsDate(J)||Z.excludeMode==="includes"&&ee.includesDate(J)})}intersectsDay(J){return!this.excludesDay(J)&&(this.dates.find(function(Z){return Z.intersectsDay(J)})||!1)}excludesDay(J){return this.hasExcludeDates&&this.excludeDates.find(function(Z){return Z.intersectsDay(J)})}}},"234d":function(N,B,j){var U=j("e380"),q=500;function Y(K){var G=U(K,function(Z){return J.size===q&&J.clear(),Z}),J=G.cache;return G}N.exports=Y},"23a5":function(N){N.exports=JSON.parse('{"maxSwipeTime":300,"minHorizontalSwipeDistance":60,"maxVerticalSwipeDistance":80}')},"23cb":function(N,B,j){var U=j("a691"),q=Math.max,Y=Math.min;N.exports=function(K,G){var J=U(K);return J<0?q(J+G,0):Y(J,G)}},"23e7":function(N,B,j){var U=j("da84"),q=j("06cf").f,Y=j("9112"),K=j("6eeb"),G=j("ce4e"),J=j("e893"),Z=j("94ca");N.exports=function(ee,te){var re,se,ne,le,ge,ue,_e=ee.target,fe=ee.global,me=ee.stat;if(se=fe?U:me?U[_e]||G(_e,{}):(U[_e]||{}).prototype,se)for(ne in te){if(ge=te[ne],ee.noTargetGet?(ue=q(se,ne),le=ue&&ue.value):le=se[ne],re=Z(fe?ne:_e+(me?".":"#")+ne,ee.forced),!re&&le!==void 0){if(typeof ge==typeof le)continue;J(ge,le)}(ee.sham||le&&le.sham)&&Y(ge,"sham",!0),K(se,ne,ge,ee)}}},2411:function(N,B,j){var U=j("f909"),q=j("2ec1"),Y=q(function(K,G,J,Z){U(K,G,J,Z)});N.exports=Y},"241c":function(N,B,j){var U=j("ca84"),q=j("7839"),Y=q.concat("length","prototype");B.f=Object.getOwnPropertyNames||function(K){return U(K,Y)}},"242e":function(N,B,j){var U=j("72af"),q=j("ec69");function Y(K,G){return K&&U(K,G,q)}N.exports=Y},2474:function(N,B,j){var U=j("2b3e"),q=U.Uint8Array;N.exports=q},2478:function(N,B,j){var U=j("4245");function q(Y){return U(this,Y).get(Y)}N.exports=q},"24fb":function(N,B,j){function U(Y,K){var G=Y[1]||"",J=Y[3];if(!J)return G;if(K&&typeof btoa=="function"){var Z=q(J),ee=J.sources.map(function(te){return"/*# sourceURL=".concat(J.sourceRoot||"").concat(te," */")});return[G].concat(ee).concat([Z]).join(`
- `)}return[G].join(`
- `)}function q(Y){var K=btoa(unescape(encodeURIComponent(JSON.stringify(Y)))),G="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(K);return"/*# ".concat(G," */")}N.exports=function(Y){var K=[];return K.toString=function(){return this.map(function(G){var J=U(G,Y);return G[2]?"@media ".concat(G[2]," {").concat(J,"}"):J}).join("")},K.i=function(G,J,Z){typeof G=="string"&&(G=[[null,G,""]]);var ee={};if(Z)for(var te=0;te<this.length;te++){var re=this[te][0];re!=null&&(ee[re]=!0)}for(var se=0;se<G.length;se++){var ne=[].concat(G[se]);Z&&ee[ne[0]]||(J&&(ne[2]?ne[2]="".concat(J," and ").concat(ne[2]):ne[2]=J),K.push(ne))}},K}},2524:function(N,B,j){var U=j("6044"),q="__lodash_hash_undefined__";function Y(K,G){var J=this.__data__;return this.size+=this.has(K)?0:1,J[K]=U&&G===void 0?q:G,this}N.exports=Y},"253c":function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Arguments]";function K(G){return q(G)&&U(G)==Y}N.exports=K},2593:function(N,B,j){var U=j("15f3"),q=j("c6cf"),Y=q(function(K,G){return K==null?{}:U(K,G)});N.exports=Y},"26e8":function(N,B){function j(U,q){return U!=null&&q in Object(U)}N.exports=j},"27e3":function(N,B,j){var U=j("8a64"),q=j.n(U);q.a},"28c9":function(N,B){function j(){this.__data__=[],this.size=0}N.exports=j},"29ae":function(N,B,j){j.d(B,"a",function(){return Ue}),j.d(B,"b",function(){return Kn}),j("5319");var U=j("fe1f");function q(Ct){var ft=new Date(Date.UTC(Ct.getFullYear(),Ct.getMonth(),Ct.getDate(),Ct.getHours(),Ct.getMinutes(),Ct.getSeconds(),Ct.getMilliseconds()));return ft.setUTCFullYear(Ct.getFullYear()),Ct.getTime()-ft.getTime()}function Y(Ct,ft){var Tt=ee(ft);return Tt.formatToParts?G(Tt,Ct):J(Tt,Ct)}var K={year:0,month:1,day:2,hour:3,minute:4,second:5};function G(Ct,ft){for(var Tt=Ct.formatToParts(ft),Lt=[],pn=0;pn<Tt.length;pn++){var mn=K[Tt[pn].type];mn>=0&&(Lt[mn]=parseInt(Tt[pn].value,10))}return Lt}function J(Ct,ft){var Tt=Ct.format(ft).replace(/\u200E/g,""),Lt=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(Tt);return[Lt[3],Lt[1],Lt[2],Lt[4],Lt[5],Lt[6]]}var Z={};function ee(Ct){if(!Z[Ct]){var ft=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Tt=ft==="06/25/2014, 00:00:00"||ft==="06/25/2014 00:00:00";Z[Ct]=Tt?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Ct,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:Ct,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Z[Ct]}var te=36e5,re=6e4,se={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_-]+(?:\/[a-zA-Z_]+)?))$/};function ne(Ct,ft,Tt){var Lt,pn,mn;if(Lt=se.timezoneZ.exec(Ct),Lt)return 0;if(Lt=se.timezoneHH.exec(Ct),Lt)return mn=parseInt(Lt[2],10),_e()?(pn=mn*te,Lt[1]==="+"?-pn:pn):NaN;if(Lt=se.timezoneHHMM.exec(Ct),Lt){mn=parseInt(Lt[2],10);var En=parseInt(Lt[3],10);return _e(mn,En)?(pn=mn*te+En*re,Lt[1]==="+"?-pn:pn):NaN}if(Lt=se.timezoneIANA.exec(Ct),Lt){ft=new Date(ft||Date.now());var cr=Tt?ft:le(ft),jn=ge(cr,Ct),ir=Tt?jn:ue(ft,jn,Ct);return-ir}return 0}function le(Ct){return new Date(Date.UTC(Ct.getFullYear(),Ct.getMonth(),Ct.getDate(),Ct.getHours(),Ct.getMinutes(),Ct.getSeconds(),Ct.getMilliseconds()))}function ge(Ct,ft){var Tt=Y(Ct,ft),Lt=Date.UTC(Tt[0],Tt[1]-1,Tt[2],Tt[3]%24,Tt[4],Tt[5]),pn=Ct.getTime(),mn=pn%1e3;return pn-=mn>=0?mn:1e3+mn,Lt-pn}function ue(Ct,ft,Tt){var Lt=Ct.getTime(),pn=Lt-ft,mn=ge(new Date(pn),Tt);if(ft===mn)return ft;pn-=mn-ft;var En=ge(new Date(pn),Tt);return mn===En?mn:Math.max(mn,En)}function _e(Ct,ft){return ft==null||!(ft<0||ft>59)}var fe=36e5,me=6e4,ve=2,xe={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function oe(Ct,ft){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(Ct===null)return new Date(NaN);var Tt=ft||{},Lt=Tt.additionalDigits==null?ve:Object(U.a)(Tt.additionalDigits);if(Lt!==2&&Lt!==1&&Lt!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(Ct instanceof Date||typeof Ct=="object"&&Object.prototype.toString.call(Ct)==="[object Date]")return new Date(Ct.getTime());if(typeof Ct=="number"||Object.prototype.toString.call(Ct)==="[object Number]")return new Date(Ct);if(typeof Ct!="string"&&Object.prototype.toString.call(Ct)!=="[object String]")return new Date(NaN);var pn=ye(Ct),mn=be(pn.date,Lt),En=mn.year,cr=mn.restDateString,jn=we(cr,En);if(isNaN(jn))return new Date(NaN);if(jn){var ir,Ir=jn.getTime(),Er=0;if(pn.time&&(Er=Ae(pn.time),isNaN(Er)))return new Date(NaN);if(pn.timezone||Tt.timeZone){if(ir=ne(pn.timezone||Tt.timeZone,new Date(Ir+Er)),isNaN(ir))return new Date(NaN)}else ir=q(new Date(Ir+Er)),ir=q(new Date(Ir+Er+ir));return new Date(Ir+Er+ir)}return new Date(NaN)}function ye(Ct){var ft,Tt={},Lt=Ct.split(xe.dateTimeDelimeter);if(xe.plainTime.test(Lt[0])?(Tt.date=null,ft=Lt[0]):(Tt.date=Lt[0],ft=Lt[1],Tt.timezone=Lt[2],xe.timeZoneDelimeter.test(Tt.date)&&(Tt.date=Ct.split(xe.timeZoneDelimeter)[0],ft=Ct.substr(Tt.date.length,Ct.length))),ft){var pn=xe.timezone.exec(ft);pn?(Tt.time=ft.replace(pn[1],""),Tt.timezone=pn[1]):Tt.time=ft}return Tt}function be(Ct,ft){var Tt,Lt=xe.YYY[ft],pn=xe.YYYYY[ft];if(Tt=xe.YYYY.exec(Ct)||pn.exec(Ct),Tt){var mn=Tt[1];return{year:parseInt(mn,10),restDateString:Ct.slice(mn.length)}}if(Tt=xe.YY.exec(Ct)||Lt.exec(Ct),Tt){var En=Tt[1];return{year:100*parseInt(En,10),restDateString:Ct.slice(En.length)}}return{year:null}}function we(Ct,ft){if(ft===null)return null;var Tt,Lt,pn,mn;if(Ct.length===0)return Lt=new Date(0),Lt.setUTCFullYear(ft),Lt;if(Tt=xe.MM.exec(Ct),Tt)return Lt=new Date(0),pn=parseInt(Tt[1],10)-1,Fe(ft,pn)?(Lt.setUTCFullYear(ft,pn),Lt):new Date(NaN);if(Tt=xe.DDD.exec(Ct),Tt){Lt=new Date(0);var En=parseInt(Tt[1],10);return Ze(ft,En)?(Lt.setUTCFullYear(ft,0,En),Lt):new Date(NaN)}if(Tt=xe.MMDD.exec(Ct),Tt){Lt=new Date(0),pn=parseInt(Tt[1],10)-1;var cr=parseInt(Tt[2],10);return Fe(ft,pn,cr)?(Lt.setUTCFullYear(ft,pn,cr),Lt):new Date(NaN)}if(Tt=xe.Www.exec(Ct),Tt)return mn=parseInt(Tt[1],10)-1,lt(ft,mn)?ke(ft,mn):new Date(NaN);if(Tt=xe.WwwD.exec(Ct),Tt){mn=parseInt(Tt[1],10)-1;var jn=parseInt(Tt[2],10)-1;return lt(ft,mn,jn)?ke(ft,mn,jn):new Date(NaN)}return null}function Ae(Ct){var ft,Tt,Lt;if(ft=xe.HH.exec(Ct),ft)return Tt=parseFloat(ft[1].replace(",",".")),qe(Tt)?Tt%24*fe:NaN;if(ft=xe.HHMM.exec(Ct),ft)return Tt=parseInt(ft[1],10),Lt=parseFloat(ft[2].replace(",",".")),qe(Tt,Lt)?Tt%24*fe+Lt*me:NaN;if(ft=xe.HHMMSS.exec(Ct),ft){Tt=parseInt(ft[1],10),Lt=parseInt(ft[2],10);var pn=parseFloat(ft[3].replace(",","."));return qe(Tt,Lt,pn)?Tt%24*fe+Lt*me+1e3*pn:NaN}return null}function ke(Ct,ft,Tt){ft=ft||0,Tt=Tt||0;var Lt=new Date(0);Lt.setUTCFullYear(Ct,0,4);var pn=Lt.getUTCDay()||7,mn=7*ft+Tt+1-pn;return Lt.setUTCDate(Lt.getUTCDate()+mn),Lt}var Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Me=[31,29,31,30,31,30,31,31,30,31,30,31];function ze(Ct){return Ct%400===0||Ct%4===0&&Ct%100!==0}function Fe(Ct,ft,Tt){if(ft<0||ft>11)return!1;if(Tt!=null){if(Tt<1)return!1;var Lt=ze(Ct);if(Lt&&Tt>Me[ft]||!Lt&&Tt>Oe[ft])return!1}return!0}function Ze(Ct,ft){if(ft<1)return!1;var Tt=ze(Ct);return!(Tt&&ft>366)&&!(!Tt&&ft>365)}function lt(Ct,ft,Tt){return!(ft<0||ft>52)&&(Tt==null||!(Tt<0||Tt>6))}function qe(Ct,ft,Tt){return(Ct==null||!(Ct<0||Ct>=25))&&(ft==null||!(ft<0||ft>=60))&&(Tt==null||!(Tt<0||Tt>=60))}var Ve=j("fd3a"),At=j("8c86");function Nt(Ct,ft){Object(At.a)(1,arguments);var Tt=ft||{},Lt=Tt.locale,pn=Lt&&Lt.options&&Lt.options.weekStartsOn,mn=pn==null?0:Object(U.a)(pn),En=Tt.weekStartsOn==null?mn:Object(U.a)(Tt.weekStartsOn);if(!(En>=0&&En<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var cr=Object(Ve.a)(Ct),jn=cr.getDay(),ir=(jn<En?7:0)+jn-En;return cr.setDate(cr.getDate()-ir),cr.setHours(0,0,0,0),cr}function zt(Ct){return Object(At.a)(1,arguments),Nt(Ct,{weekStartsOn:1})}function Ht(Ct){Object(At.a)(1,arguments);var ft=Object(Ve.a)(Ct),Tt=ft.getFullYear(),Lt=new Date(0);Lt.setFullYear(Tt+1,0,4),Lt.setHours(0,0,0,0);var pn=zt(Lt),mn=new Date(0);mn.setFullYear(Tt,0,4),mn.setHours(0,0,0,0);var En=zt(mn);return ft.getTime()>=pn.getTime()?Tt+1:ft.getTime()>=En.getTime()?Tt:Tt-1}function qt(Ct){Object(At.a)(1,arguments);var ft=Ht(Ct),Tt=new Date(0);Tt.setFullYear(ft,0,4),Tt.setHours(0,0,0,0);var Lt=zt(Tt);return Lt}var Qt=6048e5;function Jt(Ct){Object(At.a)(1,arguments);var ft=Object(Ve.a)(Ct),Tt=zt(ft).getTime()-qt(ft).getTime();return Math.round(Tt/Qt)+1}function yn(Ct,ft){var Tt,Lt;Object(At.a)(1,arguments);var pn=Object(Ve.a)(Ct),mn=pn.getFullYear(),En=ft==null||(Tt=ft.locale)===null||Tt===void 0||(Lt=Tt.options)===null||Lt===void 0?void 0:Lt.firstWeekContainsDate,cr=En==null?1:Object(U.a)(En),jn=(ft==null?void 0:ft.firstWeekContainsDate)==null?cr:Object(U.a)(ft.firstWeekContainsDate);if(!(jn>=1&&jn<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ir=new Date(0);ir.setFullYear(mn+1,0,jn),ir.setHours(0,0,0,0);var Ir=Nt(ir,ft),Er=new Date(0);Er.setFullYear(mn,0,jn),Er.setHours(0,0,0,0);var Dr=Nt(Er,ft);return pn.getTime()>=Ir.getTime()?mn+1:pn.getTime()>=Dr.getTime()?mn:mn-1}function _n(Ct,ft){Object(At.a)(1,arguments);var Tt=ft||{},Lt=Tt.locale,pn=Lt&&Lt.options&&Lt.options.firstWeekContainsDate,mn=pn==null?1:Object(U.a)(pn),En=Tt.firstWeekContainsDate==null?mn:Object(U.a)(Tt.firstWeekContainsDate),cr=yn(Ct,ft),jn=new Date(0);jn.setFullYear(cr,0,En),jn.setHours(0,0,0,0);var ir=Nt(jn,ft);return ir}var Hn=6048e5;function On(Ct,ft){Object(At.a)(1,arguments);var Tt=Object(Ve.a)(Ct),Lt=Nt(Tt,ft).getTime()-_n(Tt,ft).getTime();return Math.round(Lt/Hn)+1}var Fn=6048e5;function In(Ct,ft,Tt){Object(At.a)(2,arguments);var Lt=Nt(Ct,Tt),pn=Nt(ft,Tt),mn=Lt.getTime()-q(Lt),En=pn.getTime()-q(pn);return Math.round((mn-En)/Fn)}function dn(Ct){Object(At.a)(1,arguments);var ft=Object(Ve.a)(Ct),Tt=ft.getMonth();return ft.setFullYear(ft.getFullYear(),Tt+1,0),ft.setHours(0,0,0,0),ft}function kt(Ct){Object(At.a)(1,arguments);var ft=Object(Ve.a)(Ct);return ft.setDate(1),ft.setHours(0,0,0,0),ft}function Ye(Ct,ft){return Object(At.a)(1,arguments),In(dn(Ct),kt(Ct),ft)+1}var _t=j("f7f1"),We=j("cfe5"),Pe=j("f15d"),Se=j("2fa3"),$e=j("9404");const Ue={DATE_TIME:1,DATE:2,TIME:3},Qe={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},mt=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ht=/\d\d?/,at=/\d{3}/,ut=/\d{4}/,Rt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,fn=/\[([^]*?)\]/gm,Bn=function(){},en=function(Ct){return function(ft,Tt,Lt){const pn=Lt[Ct].indexOf(Tt.charAt(0).toUpperCase()+Tt.substr(1).toLowerCase());~pn&&(ft.month=pn)}},xn=["L","iso"],ot=7,dt=[31,28,31,30,31,30,31,31,30,31,30,31],Ot=[{value:0,label:"00"},{value:1,label:"01"},{value:2,label:"02"},{value:3,label:"03"},{value:4,label:"04"},{value:5,label:"05"},{value:6,label:"06"},{value:7,label:"07"},{value:8,label:"08"},{value:9,label:"09"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"},{value:13,label:"13"},{value:14,label:"14"},{value:15,label:"15"},{value:16,label:"16"},{value:17,label:"17"},{value:18,label:"18"},{value:19,label:"19"},{value:20,label:"20"},{value:21,label:"21"},{value:22,label:"22"},{value:23,label:"23"}],Yt={D(Ct){return Ct.day},DD(Ct){return Object(Se.m)(Ct.day)},Do(Ct,ft){return ft.DoFn(Ct.day)},d(Ct){return Ct.weekday-1},dd(Ct){return Object(Se.m)(Ct.weekday-1)},W(Ct,ft){return ft.dayNamesNarrow[Ct.weekday-1]},WW(Ct,ft){return ft.dayNamesShorter[Ct.weekday-1]},WWW(Ct,ft){return ft.dayNamesShort[Ct.weekday-1]},WWWW(Ct,ft){return ft.dayNames[Ct.weekday-1]},M(Ct){return Ct.month},MM(Ct){return Object(Se.m)(Ct.month)},MMM(Ct,ft){return ft.monthNamesShort[Ct.month-1]},MMMM(Ct,ft){return ft.monthNames[Ct.month-1]},YY(Ct){return String(Ct.year).substr(2)},YYYY(Ct){return Object(Se.m)(Ct.year,4)},h(Ct){return Ct.hours%12||12},hh(Ct){return Object(Se.m)(Ct.hours%12||12)},H(Ct){return Ct.hours},HH(Ct){return Object(Se.m)(Ct.hours)},m(Ct){return Ct.minutes},mm(Ct){return Object(Se.m)(Ct.minutes)},s(Ct){return Ct.seconds},ss(Ct){return Object(Se.m)(Ct.seconds)},S(Ct){return Math.round(Ct.milliseconds/100)},SS(Ct){return Object(Se.m)(Math.round(Ct.milliseconds/10),2)},SSS(Ct){return Object(Se.m)(Ct.milliseconds,3)},a(Ct,ft){return Ct.hours<12?ft.amPm[0]:ft.amPm[1]},A(Ct,ft){return Ct.hours<12?ft.amPm[0].toUpperCase():ft.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(Ct){const ft=Ct.timezoneOffset;return`${ft>0?"-":"+"}${Object(Se.m)(Math.floor(Math.abs(ft)/60),2)}`},ZZZ(Ct){const ft=Ct.timezoneOffset;return`${ft>0?"-":"+"}${Object(Se.m)(100*Math.floor(Math.abs(ft)/60)+Math.abs(ft)%60,4)}`},ZZZZ(Ct){const ft=Ct.timezoneOffset;return`${ft>0?"-":"+"}${Object(Se.m)(Math.floor(Math.abs(ft)/60),2)}:${Object(Se.m)(Math.abs(ft)%60,2)}`}},Wt={D:[ht,function(Ct,ft){Ct.day=ft}],Do:[new RegExp(ht.source+Rt.source),function(Ct,ft){Ct.day=parseInt(ft,10)}],d:[ht,Bn],W:[Rt,Bn],M:[ht,function(Ct,ft){Ct.month=ft-1}],MMM:[Rt,en("monthNamesShort")],MMMM:[Rt,en("monthNames")],YY:[ht,function(Ct,ft){const Tt=new Date,Lt=+Tt.getFullYear().toString().substr(0,2);Ct.year=`${ft>68?Lt-1:Lt}${ft}`}],YYYY:[ut,function(Ct,ft){Ct.year=ft}],S:[/\d/,function(Ct,ft){Ct.millisecond=100*ft}],SS:[/\d{2}/,function(Ct,ft){Ct.millisecond=10*ft}],SSS:[at,function(Ct,ft){Ct.millisecond=ft}],h:[ht,function(Ct,ft){Ct.hour=ft}],m:[ht,function(Ct,ft){Ct.minute=ft}],s:[ht,function(Ct,ft){Ct.second=ft}],a:[Rt,function(Ct,ft,Tt){const Lt=ft.toLowerCase();Lt===Tt.amPm[0]?Ct.isPm=!1:Lt===Tt.amPm[1]&&(Ct.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,function(Ct,ft){ft==="Z"&&(ft="+00:00");const Tt=(""+ft).match(/([+-]|\d\d)/gi);if(Tt){const Lt=60*Tt[1]+parseInt(Tt[2],10);Ct.timezoneOffset=Tt[0]==="+"?Lt:-Lt}}]};function gn(Ct,ft){const Tt=new Intl.DateTimeFormat().resolvedOptions().locale;let Lt;Object($e.n)(Ct)?Lt=Ct:Object($e.e)(Ct,"id")&&(Lt=Ct.id),Lt=(Lt||Tt).toLowerCase();const pn=Object.keys(ft),mn=function(cr){return pn.find(function(jn){return jn.toLowerCase()===cr})};Lt=mn(Lt)||mn(Lt.substring(0,2))||Tt;const En={...ft["en-IE"],...ft[Lt],id:Lt};return Ct=Object($e.m)(Ct)?Object($e.c)(Ct,En):En,Ct}Wt.DD=Wt.D,Wt.dd=Wt.d,Wt.WWWW=Wt.WWW=Wt.WW=Wt.W,Wt.MM=Wt.M,Wt.mm=Wt.m,Wt.hh=Wt.H=Wt.HH=Wt.h,Wt.ss=Wt.s,Wt.A=Wt.a,Wt.ZZZZ=Wt.ZZZ=Wt.ZZ=Wt.Z;class Kn{constructor(ft,{locales:Tt=Pe.a,timezone:Lt}={}){const{id:pn,firstDayOfWeek:mn,masks:En}=gn(ft,Tt);this.id=pn,this.daysInWeek=ot,this.firstDayOfWeek=Object($e.a)(mn,1,ot),this.masks=En,this.timezone=Lt||void 0,this.dayNames=this.getDayNames("long"),this.dayNamesShort=this.getDayNames("short"),this.dayNamesShorter=this.dayNamesShort.map(function(cr){return cr.substring(0,2)}),this.dayNamesNarrow=this.getDayNames("narrow"),this.monthNames=this.getMonthNames("long"),this.monthNamesShort=this.getMonthNames("short"),this.amPm=["am","pm"],this.monthData={},this.getMonthComps=this.getMonthComps.bind(this),this.parse=this.parse.bind(this),this.format=this.format.bind(this),this.toPage=this.toPage.bind(this)}format(ft,Tt){var Lt=this;if(ft=this.normalizeDate(ft),!ft)return"";Tt=this.normalizeMasks(Tt)[0];const pn=[];Tt=Tt.replace(fn,function(cr,jn){return pn.push(jn),"??"});const mn=/Z$/.test(Tt)?"utc":this.timezone,En=this.getDateParts(ft,mn);return Tt=Tt.replace(mt,function(cr){return cr in Yt?Yt[cr](En,Lt):cr.slice(1,cr.length-1)}),Tt.replace(/\?\?/g,function(){return pn.shift()})}parse(ft,Tt){var Lt=this;return this.normalizeMasks(Tt).map(function(mn){if(typeof mn!="string")throw new Error("Invalid mask in fecha.parse");let En=ft;if(En.length>1e3)return!1;let cr=!0;const jn={};if(mn.replace(mt,function(Er){if(Wt[Er]){const Dr=Wt[Er],Vr=En.search(Dr[0]);~Vr?En.replace(Dr[0],function(Ge){return Dr[1](jn,Ge,Lt),En=En.substr(Vr+Ge.length),Ge}):cr=!1}return Wt[Er]?"":Er.slice(1,Er.length-1)}),!cr)return!1;const ir=new Date;let Ir;return jn.isPm===!0&&jn.hour!=null&&+jn.hour!=12?jn.hour=+jn.hour+12:jn.isPm===!1&&+jn.hour==12&&(jn.hour=0),jn.timezoneOffset!=null?(jn.minute=+(jn.minute||0)-+jn.timezoneOffset,Ir=new Date(Date.UTC(jn.year||ir.getFullYear(),jn.month||0,jn.day||1,jn.hour||0,jn.minute||0,jn.second||0,jn.millisecond||0))):Ir=Lt.getDateFromParts({year:jn.year||ir.getFullYear(),month:(jn.month||0)+1,day:jn.day||1,hours:jn.hour||0,minutes:jn.minute||0,seconds:jn.second||0,milliseconds:jn.millisecond||0}),Ir}).find(function(mn){return mn})||new Date(ft)}normalizeMasks(ft){var Tt=this;return(Object(Se.b)(ft)&&ft||[Object($e.n)(ft)&&ft||"YYYY-MM-DD"]).map(function(Lt){return xn.reduce(function(pn,mn){return pn.replace(mn,Tt.masks[mn]||"")},Lt)})}normalizeDate(ft,Tt={}){let Lt=null,{type:pn,fillDate:mn}=Tt;const{mask:En,patch:cr,time:jn}=Tt,ir=pn==="auto"||!pn;if(Object($e.l)(ft)?(pn="number",Lt=new Date(+ft)):Object($e.n)(ft)?(pn="string",Lt=ft?this.parse(ft,En||"iso"):null):Object($e.m)(ft)?(pn="object",Lt=this.getDateFromParts(ft)):(pn="date",Lt=Object($e.j)(ft)?new Date(ft.getTime()):null),Lt&&cr){mn=mn==null?new Date:this.normalizeDate(mn);const Ir={...this.getDateParts(mn),...Object($e.t)(this.getDateParts(Lt),Qe[cr])};Lt=this.getDateFromParts(Ir)}return ir&&(Tt.type=pn),Lt&&!isNaN(Lt.getTime())?(jn&&(Lt=this.adjustTimeForDate(Lt,{timeAdjust:jn})),Lt):null}denormalizeDate(ft,{type:Tt,mask:Lt}={}){switch(Tt){case"number":return ft?ft.getTime():NaN;case"string":return ft?this.format(ft,Lt||"iso"):"";default:return ft?new Date(ft):null}}hourIsValid(ft,Tt,Lt){if(!Tt)return!0;if(Object($e.h)(Tt))return Tt.includes(ft);if(Object($e.m)(Tt)){const pn=Tt.min||0,mn=Tt.max||24;return pn<=ft&&mn>=ft}return Tt(ft,Lt)}getHourOptions(ft,Tt){var Lt=this;return Ot.filter(function(pn){return Lt.hourIsValid(pn.value,ft,Tt)})}getMinuteOptions(ft){const Tt=[];ft=ft>0?ft:1;for(let Lt=0;Lt<=59;Lt+=ft)Tt.push({value:Lt,label:Object(Se.m)(Lt,2)});return Tt}nearestOptionValue(ft,Tt){if(ft==null)return ft;const Lt=Tt.reduce(function(pn,mn){if(mn.disabled)return pn;if(isNaN(pn))return mn.value;const En=Math.abs(pn-ft);return Math.abs(mn.value-ft)<En?mn.value:pn},NaN);return isNaN(Lt)?ft:Lt}adjustTimeForDate(ft,{timeAdjust:Tt,validHours:Lt,minuteIncrement:pn}){if(!Tt&&!Lt&&!pn)return ft;const mn=this.getDateParts(ft);if(Tt)if(Tt==="now"){const En=this.getDateParts(new Date);mn.hours=En.hours,mn.minutes=En.minutes,mn.seconds=En.seconds,mn.milliseconds=En.milliseconds}else{const En=new Date(`2000-01-01T${Tt}Z`);mn.hours=En.getUTCHours(),mn.minutes=En.getUTCMinutes(),mn.seconds=En.getUTCSeconds(),mn.milliseconds=En.getUTCMilliseconds()}if(Lt){const En=this.getHourOptions(Lt,mn);mn.hours=this.nearestOptionValue(mn.hours,En)}if(pn){const En=this.getMinuteOptions(pn);mn.minutes=this.nearestOptionValue(mn.minutes,En)}return ft=this.getDateFromParts(mn),ft}normalizeDates(ft,Tt){return Tt=Tt||{},Tt.locale=this,(Object($e.h)(ft)?ft:[ft]).map(function(Lt){return Lt&&(Lt instanceof We.a?Lt:new We.a(Lt,Tt))}).filter(function(Lt){return Lt})}getDateParts(ft,Tt=this.timezone){if(!ft)return null;let Lt=ft;if(Tt){const Xt=new Date(ft.toLocaleString("en-US",{timeZone:Tt}));Xt.setMilliseconds(ft.getMilliseconds());const sn=Xt.getTime()-ft.getTime();Lt=new Date(ft.getTime()+sn)}const pn=Lt.getMilliseconds(),mn=Lt.getSeconds(),En=Lt.getMinutes(),cr=Lt.getHours(),jn=Lt.getMonth()+1,ir=Lt.getFullYear(),Ir=this.getMonthComps(jn,ir),Er=Lt.getDate(),Dr=Ir.days-Er+1,Vr=Lt.getDay()+1,Ge=Math.floor((Er-1)/7+1),pt=Math.floor((Ir.days-Er)/7+1),ct=Math.ceil((Er+Math.abs(Ir.firstWeekday-Ir.firstDayOfWeek))/7),Ne=Ir.weeks-ct+1,vt={milliseconds:pn,seconds:mn,minutes:En,hours:cr,day:Er,dayFromEnd:Dr,weekday:Vr,weekdayOrdinal:Ge,weekdayOrdinalFromEnd:pt,week:ct,weekFromEnd:Ne,month:jn,year:ir,date:ft,isValid:!0};return vt.timezoneOffset=this.getTimezoneOffset(vt),vt}getDateFromParts(ft){if(!ft)return null;const Tt=new Date,{year:Lt=Tt.getFullYear(),month:pn=Tt.getMonth()+1,day:mn=Tt.getDate(),hours:En=0,minutes:cr=0,seconds:jn=0,milliseconds:ir=0}=ft;if(this.timezone){const Ir=`${Object(Se.m)(Lt,4)}-${Object(Se.m)(pn,2)}-${Object(Se.m)(mn,2)}T${Object(Se.m)(En,2)}:${Object(Se.m)(cr,2)}:${Object(Se.m)(jn,2)}.${Object(Se.m)(ir,3)}`;return oe(Ir,{timeZone:this.timezone})}return new Date(Lt,pn-1,mn,En,cr,jn,ir)}getTimezoneOffset(ft){const{year:Tt,month:Lt,day:pn,hours:mn=0,minutes:En=0,seconds:cr=0,milliseconds:jn=0}=ft;let ir;const Ir=new Date(Date.UTC(Tt,Lt-1,pn,mn,En,cr,jn));if(this.timezone){const Er=`${Object(Se.m)(Tt,4)}-${Object(Se.m)(Lt,2)}-${Object(Se.m)(pn,2)}T${Object(Se.m)(mn,2)}:${Object(Se.m)(En,2)}:${Object(Se.m)(cr,2)}.${Object(Se.m)(jn,3)}`;ir=oe(Er,{timeZone:this.timezone})}else ir=new Date(Tt,Lt-1,pn,mn,En,cr,jn);return(ir-Ir)/6e4}toPage(ft,Tt){return Object($e.l)(ft)?Object(Se.a)(Tt,ft):Object($e.n)(ft)?this.getDateParts(this.normalizeDate(ft)):Object($e.j)(ft)?this.getDateParts(ft):Object($e.m)(ft)?ft:null}getMonthDates(ft=2e3){const Tt=[];for(let Lt=0;Lt<12;Lt++)Tt.push(new Date(ft,Lt,15));return Tt}getMonthNames(ft){const Tt=new Intl.DateTimeFormat(this.id,{month:ft,timezome:"UTC"});return this.getMonthDates().map(function(Lt){return Tt.format(Lt)})}getWeekdayDates(ft=this.firstDayOfWeek){const Tt=[],mn=5+ft-1;for(let En=0;En<ot;En++)Tt.push(this.getDateFromParts({year:2020,month:1,day:mn+En,hours:12}));return Tt}getDayNames(ft){const Tt=new Intl.DateTimeFormat(this.id,{weekday:ft,timeZone:this.timezone});return this.getWeekdayDates(1).map(function(Lt){return Tt.format(Lt)})}getMonthComps(ft,Tt){const Lt=`${ft}-${Tt}`;let pn=this.monthData[Lt];if(!pn){const mn=Tt%4===0&&Tt%100!==0||Tt%400===0,En=new Date(Tt,ft-1,1),cr=En.getDay()+1,jn=ft===2&&mn?29:dt[ft-1],ir=this.firstDayOfWeek-1,Ir=Ye(En,{weekStartsOn:ir}),Er=[],Dr=[];for(let Vr=0;Vr<Ir;Vr++){const Ge=Object(_t.a)(En,7*Vr);Er.push(On(Ge,{weekStartsOn:ir})),Dr.push(Jt(Ge))}pn={firstDayOfWeek:this.firstDayOfWeek,inLeapYear:mn,firstWeekday:cr,days:jn,weeks:Ir,month:ft,year:Tt,weeknumbers:Er,isoWeeknumbers:Dr},this.monthData[Lt]=pn}return pn}getThisMonthComps(){const{month:ft,year:Tt}=this.getDateParts(new Date);return this.getMonthComps(ft,Tt)}getPrevMonthComps(ft,Tt){return ft===1?this.getMonthComps(12,Tt-1):this.getMonthComps(ft-1,Tt)}getNextMonthComps(ft,Tt){return ft===12?this.getMonthComps(1,Tt+1):this.getMonthComps(ft+1,Tt)}getDayId(ft){return this.format(ft,"YYYY-MM-DD")}getCalendarDays({weeks:ft,monthComps:Tt,prevMonthComps:Lt,nextMonthComps:pn}){var mn=this;const En=[],{firstDayOfWeek:cr,firstWeekday:jn,isoWeeknumbers:ir,weeknumbers:Ir}=Tt,Er=jn+(jn<cr?ot:0)-cr;let Dr=!0,Vr=!1,Ge=!1;const pt=new Intl.DateTimeFormat(this.id,{weekday:"long",year:"numeric",month:"long",day:"numeric"});let ct=Lt.days-Er+1,Ne=Lt.days-ct+1,vt=Math.floor((ct-1)/ot+1),Xt=1,sn=Lt.weeks,Pn=1,Nn=Lt.month,Qn=Lt.year;const Xn=new Date,Rr=Xn.getDate(),tr=Xn.getMonth()+1,fr=Xn.getFullYear(),Sr=function(sr,Rn,mr){return function(br,hr,zn,er){return mn.normalizeDate({year:sr,month:Rn,day:mr,hours:br,minutes:hr,seconds:zn,milliseconds:er})}};for(let sr=1;sr<=ft;sr++){for(let Rn=1,mr=cr;Rn<=ot;Rn++,mr+=mr===ot?1-ot:1){Dr&&mr===jn&&(ct=1,Ne=Tt.days,vt=Math.floor((ct-1)/ot+1),Xt=Math.floor((Tt.days-ct)/ot+1),sn=1,Pn=Tt.weeks,Nn=Tt.month,Qn=Tt.year,Dr=!1,Vr=!0);const br=Sr(Qn,Nn,ct),hr={start:br(0,0,0),end:br(23,59,59,999)},zn=hr.start,er=`${Object(Se.m)(Qn,4)}-${Object(Se.m)(Nn,2)}-${Object(Se.m)(ct,2)}`,et=Rn,yt=ot-Rn,wt=Ir[sr-1],Bt=ir[sr-1],Kt=ct===Rr&&Nn===tr&&Qn===fr,Mt=Vr&&ct===1,tn=Vr&&ct===Tt.days,hn=sr===1,Cn=sr===ft,cn=Rn===1,ur=Rn===ot;En.push({id:er,label:ct.toString(),ariaLabel:pt.format(new Date(Qn,Nn-1,ct)),day:ct,dayFromEnd:Ne,weekday:mr,weekdayPosition:et,weekdayPositionFromEnd:yt,weekdayOrdinal:vt,weekdayOrdinalFromEnd:Xt,week:sn,weekFromEnd:Pn,weeknumber:wt,isoWeeknumber:Bt,month:Nn,year:Qn,dateFromTime:br,date:zn,range:hr,isToday:Kt,isFirstDay:Mt,isLastDay:tn,inMonth:Vr,inPrevMonth:Dr,inNextMonth:Ge,onTop:hn,onBottom:Cn,onLeft:cn,onRight:ur,classes:["id-"+er,"day-"+ct,"day-from-end-"+Ne,"weekday-"+mr,"weekday-position-"+et,"weekday-ordinal-"+vt,"weekday-ordinal-from-end-"+Xt,"week-"+sn,"week-from-end-"+Pn,{"is-today":Kt,"is-first-day":Mt,"is-last-day":tn,"in-month":Vr,"in-prev-month":Dr,"in-next-month":Ge,"on-top":hn,"on-bottom":Cn,"on-left":cn,"on-right":ur}]}),Vr&&tn?(Vr=!1,Ge=!0,ct=1,Ne=pn.days,vt=1,Xt=Math.floor((pn.days-ct)/ot+1),sn=1,Pn=pn.weeks,Nn=pn.month,Qn=pn.year):(ct++,Ne--,vt=Math.floor((ct-1)/ot+1),Xt=Math.floor((Tt.days-ct)/ot+1))}sn++,Pn--}return En}}},"29f3":function(N,B){var j=Object.prototype,U=j.toString;function q(Y){return U.call(Y)}N.exports=q},"2a4d":function(N,B,j){var U=j("7dfe");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("99a6e87a",U,!0,{sourceMap:!1,shadowMode:!1})},"2af9":function(N,B,j){j.r(B),j.d(B,"Calendar",function(){return Ls}),j.d(B,"CalendarNav",function(){return Te}),j.d(B,"DatePicker",function(){return Go}),j.d(B,"Popover",function(){return or}),j("ddb0");var U=j("f7f1"),q=j("fe1f"),Y=j("fd3a"),K=j("8c86");function G(Ce,Be){Object(K.a)(2,arguments);var it=Object(Y.a)(Ce),St=Object(q.a)(Be);if(isNaN(St))return new Date(NaN);if(!St)return it;var Ft=it.getDate(),Gt=new Date(it.getTime());Gt.setMonth(it.getMonth()+St+1,0);var ln=Gt.getDate();return Ft>=ln?Gt:(it.setFullYear(Gt.getFullYear(),Gt.getMonth(),Ft),it)}function J(Ce,Be){Object(K.a)(2,arguments);var it=Object(q.a)(Be);return G(Ce,12*it)}function Z(Ce){var Be=Ce.getBoundingClientRect();return{width:Be.width,height:Be.height,top:Be.top,right:Be.right,bottom:Be.bottom,left:Be.left,x:Be.left,y:Be.top}}function ee(Ce){if(Ce.toString()!=="[object Window]"){var Be=Ce.ownerDocument;return Be&&Be.defaultView||window}return Ce}function te(Ce){var Be=ee(Ce),it=Be.pageXOffset,St=Be.pageYOffset;return{scrollLeft:it,scrollTop:St}}function re(Ce){var Be=ee(Ce).Element;return Ce instanceof Be||Ce instanceof Element}function se(Ce){var Be=ee(Ce).HTMLElement;return Ce instanceof Be||Ce instanceof HTMLElement}function ne(Ce){var Be=ee(Ce).ShadowRoot;return Ce instanceof Be||Ce instanceof ShadowRoot}function le(Ce){return{scrollLeft:Ce.scrollLeft,scrollTop:Ce.scrollTop}}function ge(Ce){return Ce!==ee(Ce)&&se(Ce)?le(Ce):te(Ce)}function ue(Ce){return Ce?(Ce.nodeName||"").toLowerCase():null}function _e(Ce){return((re(Ce)?Ce.ownerDocument:Ce.document)||window.document).documentElement}function fe(Ce){return Z(_e(Ce)).left+te(Ce).scrollLeft}function me(Ce){return ee(Ce).getComputedStyle(Ce)}function ve(Ce){var Be=me(Ce),it=Be.overflow,St=Be.overflowX,Ft=Be.overflowY;return/auto|scroll|overlay|hidden/.test(it+Ft+St)}function xe(Ce,Be,it){it===void 0&&(it=!1);var St=_e(Be),Ft=Z(Ce),Gt=se(Be),ln={scrollLeft:0,scrollTop:0},un={x:0,y:0};return(Gt||!Gt&&!it)&&((ue(Be)!=="body"||ve(St))&&(ln=ge(Be)),se(Be)?(un=Z(Be),un.x+=Be.clientLeft,un.y+=Be.clientTop):St&&(un.x=fe(St))),{x:Ft.left+ln.scrollLeft-un.x,y:Ft.top+ln.scrollTop-un.y,width:Ft.width,height:Ft.height}}function oe(Ce){return{x:Ce.offsetLeft,y:Ce.offsetTop,width:Ce.offsetWidth,height:Ce.offsetHeight}}function ye(Ce){return ue(Ce)==="html"?Ce:Ce.assignedSlot||Ce.parentNode||Ce.host||_e(Ce)}function be(Ce){return["html","body","#document"].indexOf(ue(Ce))>=0?Ce.ownerDocument.body:se(Ce)&&ve(Ce)?Ce:be(ye(Ce))}function we(Ce,Be){Be===void 0&&(Be=[]);var it=be(Ce),St=ue(it)==="body",Ft=ee(it),Gt=St?[Ft].concat(Ft.visualViewport||[],ve(it)?it:[]):it,ln=Be.concat(Gt);return St?ln:ln.concat(we(ye(Gt)))}function Ae(Ce){return["table","td","th"].indexOf(ue(Ce))>=0}function ke(Ce){if(!se(Ce)||me(Ce).position==="fixed")return null;var Be=Ce.offsetParent;if(Be){var it=_e(Be);if(ue(Be)==="body"&&me(Be).position==="static"&&me(it).position!=="static")return it}return Be}function Oe(Ce){for(var Be=ye(Ce);se(Be)&&["html","body"].indexOf(ue(Be))<0;){var it=me(Be);if(it.transform!=="none"||it.perspective!=="none"||it.willChange&&it.willChange!=="auto")return Be;Be=Be.parentNode}return null}function Me(Ce){for(var Be=ee(Ce),it=ke(Ce);it&&Ae(it)&&me(it).position==="static";)it=ke(it);return it&&ue(it)==="body"&&me(it).position==="static"?Be:it||Oe(Ce)||Be}var ze="top",Fe="bottom",Ze="right",lt="left",qe="auto",Ve=[ze,Fe,Ze,lt],At="start",Nt="end",zt="clippingParents",Ht="viewport",qt="popper",Qt="reference",Jt=Ve.reduce(function(Ce,Be){return Ce.concat([Be+"-"+At,Be+"-"+Nt])},[]),yn=[].concat(Ve,[qe]).reduce(function(Ce,Be){return Ce.concat([Be,Be+"-"+At,Be+"-"+Nt])},[]),_n="beforeRead",Hn="read",On="afterRead",Fn="beforeMain",In="main",dn="afterMain",kt="beforeWrite",Ye="write",_t="afterWrite",We=[_n,Hn,On,Fn,In,dn,kt,Ye,_t];function Pe(Ce){var Be=new Map,it=new Set,St=[];function Ft(Gt){it.add(Gt.name);var ln=[].concat(Gt.requires||[],Gt.requiresIfExists||[]);ln.forEach(function(un){if(!it.has(un)){var Dn=Be.get(un);Dn&&Ft(Dn)}}),St.push(Gt)}return Ce.forEach(function(Gt){Be.set(Gt.name,Gt)}),Ce.forEach(function(Gt){it.has(Gt.name)||Ft(Gt)}),St}function Se(Ce){var Be=Pe(Ce);return We.reduce(function(it,St){return it.concat(Be.filter(function(Ft){return Ft.phase===St}))},[])}function $e(Ce){var Be;return function(){return Be||(Be=new Promise(function(it){Promise.resolve().then(function(){Be=void 0,it(Ce())})})),Be}}function Ue(Ce){var Be=Ce.reduce(function(it,St){var Ft=it[St.name];return it[St.name]=Ft?Object.assign(Object.assign(Object.assign({},Ft),St),{},{options:Object.assign(Object.assign({},Ft.options),St.options),data:Object.assign(Object.assign({},Ft.data),St.data)}):St,it},{});return Object.keys(Be).map(function(it){return Be[it]})}var Qe={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var Ce=arguments.length,Be=new Array(Ce),it=0;it<Ce;it++)Be[it]=arguments[it];return!Be.some(function(St){return!(St&&typeof St.getBoundingClientRect=="function")})}function ht(Ce){Ce===void 0&&(Ce={});var Be=Ce,it=Be.defaultModifiers,St=it===void 0?[]:it,Ft=Be.defaultOptions,Gt=Ft===void 0?Qe:Ft;return function(ln,un,Dn){Dn===void 0&&(Dn=Gt);var wn={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Qe),Gt),modifiersData:{},elements:{reference:ln,popper:un},attributes:{},styles:{}},qn=[],yr=!1,wr={state:wn,setOptions:function(Br){Jr(),wn.options=Object.assign(Object.assign(Object.assign({},Gt),wn.options),Br),wn.scrollParents={reference:re(ln)?we(ln):ln.contextElement?we(ln.contextElement):[],popper:we(un)};var ri=Se(Ue([].concat(St,wn.options.modifiers)));return wn.orderedModifiers=ri.filter(function(di){return di.enabled}),Hr(),wr.update()},forceUpdate:function(){if(!yr){var Br=wn.elements,ri=Br.reference,di=Br.popper;if(mt(ri,di)){wn.rects={reference:xe(ri,Me(di),wn.options.strategy==="fixed"),popper:oe(di)},wn.reset=!1,wn.placement=wn.options.placement,wn.orderedModifiers.forEach(function(Ni){return wn.modifiersData[Ni.name]=Object.assign({},Ni.data)});for(var ii=0;ii<wn.orderedModifiers.length;ii++)if(wn.reset!==!0){var Qr=wn.orderedModifiers[ii],Gr=Qr.fn,ki=Qr.options,_i=ki===void 0?{}:ki,Ei=Qr.name;typeof Gr=="function"&&(wn=Gr({state:wn,options:_i,name:Ei,instance:wr})||wn)}else wn.reset=!1,ii=-1}}},update:$e(function(){return new Promise(function(Br){wr.forceUpdate(),Br(wn)})}),destroy:function(){Jr(),yr=!0}};if(!mt(ln,un))return wr;function Hr(){wn.orderedModifiers.forEach(function(Br){var ri=Br.name,di=Br.options,ii=di===void 0?{}:di,Qr=Br.effect;if(typeof Qr=="function"){var Gr=Qr({state:wn,name:ri,instance:wr,options:ii}),ki=function(){};qn.push(Gr||ki)}})}function Jr(){qn.forEach(function(Br){return Br()}),qn=[]}return wr.setOptions(Dn).then(function(Br){!yr&&Dn.onFirstUpdate&&Dn.onFirstUpdate(Br)}),wr}}var at={passive:!0};function ut(Ce){var Be=Ce.state,it=Ce.instance,St=Ce.options,Ft=St.scroll,Gt=Ft===void 0||Ft,ln=St.resize,un=ln===void 0||ln,Dn=ee(Be.elements.popper),wn=[].concat(Be.scrollParents.reference,Be.scrollParents.popper);return Gt&&wn.forEach(function(qn){qn.addEventListener("scroll",it.update,at)}),un&&Dn.addEventListener("resize",it.update,at),function(){Gt&&wn.forEach(function(qn){qn.removeEventListener("scroll",it.update,at)}),un&&Dn.removeEventListener("resize",it.update,at)}}var Rt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ut,data:{}};function fn(Ce){return Ce.split("-")[0]}function Bn(Ce){return Ce.split("-")[1]}function en(Ce){return["top","bottom"].indexOf(Ce)>=0?"x":"y"}function xn(Ce){var Be,it=Ce.reference,St=Ce.element,Ft=Ce.placement,Gt=Ft?fn(Ft):null,ln=Ft?Bn(Ft):null,un=it.x+it.width/2-St.width/2,Dn=it.y+it.height/2-St.height/2;switch(Gt){case ze:Be={x:un,y:it.y-St.height};break;case Fe:Be={x:un,y:it.y+it.height};break;case Ze:Be={x:it.x+it.width,y:Dn};break;case lt:Be={x:it.x-St.width,y:Dn};break;default:Be={x:it.x,y:it.y}}var wn=Gt?en(Gt):null;if(wn!=null){var qn=wn==="y"?"height":"width";switch(ln){case At:Be[wn]=Math.floor(Be[wn])-Math.floor(it[qn]/2-St[qn]/2);break;case Nt:Be[wn]=Math.floor(Be[wn])+Math.ceil(it[qn]/2-St[qn]/2);break}}return Be}function ot(Ce){var Be=Ce.state,it=Ce.name;Be.modifiersData[it]=xn({reference:Be.rects.reference,element:Be.rects.popper,strategy:"absolute",placement:Be.placement})}var dt={name:"popperOffsets",enabled:!0,phase:"read",fn:ot,data:{}},Ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yt(Ce){var Be=Ce.x,it=Ce.y,St=window,Ft=St.devicePixelRatio||1;return{x:Math.round(Be*Ft)/Ft||0,y:Math.round(it*Ft)/Ft||0}}function Wt(Ce){var Be,it=Ce.popper,St=Ce.popperRect,Ft=Ce.placement,Gt=Ce.offsets,ln=Ce.position,un=Ce.gpuAcceleration,Dn=Ce.adaptive,wn=Yt(Gt),qn=wn.x,yr=wn.y,wr=Gt.hasOwnProperty("x"),Hr=Gt.hasOwnProperty("y"),Jr=lt,Br=ze,ri=window;if(Dn){var di=Me(it);di===ee(it)&&(di=_e(it)),Ft===ze&&(Br=Fe,yr-=di.clientHeight-St.height,yr*=un?1:-1),Ft===lt&&(Jr=Ze,qn-=di.clientWidth-St.width,qn*=un?1:-1)}var ii,Qr=Object.assign({position:ln},Dn&&Ot);return un?Object.assign(Object.assign({},Qr),{},(ii={},ii[Br]=Hr?"0":"",ii[Jr]=wr?"0":"",ii.transform=(ri.devicePixelRatio||1)<2?"translate("+qn+"px, "+yr+"px)":"translate3d("+qn+"px, "+yr+"px, 0)",ii)):Object.assign(Object.assign({},Qr),{},(Be={},Be[Br]=Hr?yr+"px":"",Be[Jr]=wr?qn+"px":"",Be.transform="",Be))}function gn(Ce){var Be=Ce.state,it=Ce.options,St=it.gpuAcceleration,Ft=St===void 0||St,Gt=it.adaptive,ln=Gt===void 0||Gt,un={placement:fn(Be.placement),popper:Be.elements.popper,popperRect:Be.rects.popper,gpuAcceleration:Ft};Be.modifiersData.popperOffsets!=null&&(Be.styles.popper=Object.assign(Object.assign({},Be.styles.popper),Wt(Object.assign(Object.assign({},un),{},{offsets:Be.modifiersData.popperOffsets,position:Be.options.strategy,adaptive:ln})))),Be.modifiersData.arrow!=null&&(Be.styles.arrow=Object.assign(Object.assign({},Be.styles.arrow),Wt(Object.assign(Object.assign({},un),{},{offsets:Be.modifiersData.arrow,position:"absolute",adaptive:!1})))),Be.attributes.popper=Object.assign(Object.assign({},Be.attributes.popper),{},{"data-popper-placement":Be.placement})}var Kn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gn,data:{}};function Ct(Ce){var Be=Ce.state;Object.keys(Be.elements).forEach(function(it){var St=Be.styles[it]||{},Ft=Be.attributes[it]||{},Gt=Be.elements[it];se(Gt)&&ue(Gt)&&(Object.assign(Gt.style,St),Object.keys(Ft).forEach(function(ln){var un=Ft[ln];un===!1?Gt.removeAttribute(ln):Gt.setAttribute(ln,un===!0?"":un)}))})}function ft(Ce){var Be=Ce.state,it={popper:{position:Be.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Be.elements.popper.style,it.popper),Be.elements.arrow&&Object.assign(Be.elements.arrow.style,it.arrow),function(){Object.keys(Be.elements).forEach(function(St){var Ft=Be.elements[St],Gt=Be.attributes[St]||{},ln=Object.keys(Be.styles.hasOwnProperty(St)?Be.styles[St]:it[St]),un=ln.reduce(function(Dn,wn){return Dn[wn]="",Dn},{});se(Ft)&&ue(Ft)&&(Object.assign(Ft.style,un),Object.keys(Gt).forEach(function(Dn){Ft.removeAttribute(Dn)}))})}}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:Ct,effect:ft,requires:["computeStyles"]};function Lt(Ce,Be,it){var St=fn(Ce),Ft=[lt,ze].indexOf(St)>=0?-1:1,Gt=typeof it=="function"?it(Object.assign(Object.assign({},Be),{},{placement:Ce})):it,ln=Gt[0],un=Gt[1];return ln=ln||0,un=(un||0)*Ft,[lt,Ze].indexOf(St)>=0?{x:un,y:ln}:{x:ln,y:un}}function pn(Ce){var Be=Ce.state,it=Ce.options,St=Ce.name,Ft=it.offset,Gt=Ft===void 0?[0,0]:Ft,ln=yn.reduce(function(qn,yr){return qn[yr]=Lt(yr,Be.rects,Gt),qn},{}),un=ln[Be.placement],Dn=un.x,wn=un.y;Be.modifiersData.popperOffsets!=null&&(Be.modifiersData.popperOffsets.x+=Dn,Be.modifiersData.popperOffsets.y+=wn),Be.modifiersData[St]=ln}var mn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pn},En={left:"right",right:"left",bottom:"top",top:"bottom"};function cr(Ce){return Ce.replace(/left|right|bottom|top/g,function(Be){return En[Be]})}var jn={start:"end",end:"start"};function ir(Ce){return Ce.replace(/start|end/g,function(Be){return jn[Be]})}function Ir(Ce){var Be=ee(Ce),it=_e(Ce),St=Be.visualViewport,Ft=it.clientWidth,Gt=it.clientHeight,ln=0,un=0;return St&&(Ft=St.width,Gt=St.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(ln=St.offsetLeft,un=St.offsetTop)),{width:Ft,height:Gt,x:ln+fe(Ce),y:un}}function Er(Ce){var Be=_e(Ce),it=te(Ce),St=Ce.ownerDocument.body,Ft=Math.max(Be.scrollWidth,Be.clientWidth,St?St.scrollWidth:0,St?St.clientWidth:0),Gt=Math.max(Be.scrollHeight,Be.clientHeight,St?St.scrollHeight:0,St?St.clientHeight:0),ln=-it.scrollLeft+fe(Ce),un=-it.scrollTop;return me(St||Be).direction==="rtl"&&(ln+=Math.max(Be.clientWidth,St?St.clientWidth:0)-Ft),{width:Ft,height:Gt,x:ln,y:un}}function Dr(Ce,Be){var it=Be.getRootNode&&Be.getRootNode();if(Ce.contains(Be))return!0;if(ne(it)){var St=Be;do{if(St&&Ce.isSameNode(St))return!0;St=St.parentNode||St.host}while(St)}return!1}function Vr(Ce){return Object.assign(Object.assign({},Ce),{},{left:Ce.x,top:Ce.y,right:Ce.x+Ce.width,bottom:Ce.y+Ce.height})}function Ge(Ce){var Be=Z(Ce);return Be.top=Be.top+Ce.clientTop,Be.left=Be.left+Ce.clientLeft,Be.bottom=Be.top+Ce.clientHeight,Be.right=Be.left+Ce.clientWidth,Be.width=Ce.clientWidth,Be.height=Ce.clientHeight,Be.x=Be.left,Be.y=Be.top,Be}function pt(Ce,Be){return Be===Ht?Vr(Ir(Ce)):se(Be)?Ge(Be):Vr(Er(_e(Ce)))}function ct(Ce){var Be=we(ye(Ce)),it=["absolute","fixed"].indexOf(me(Ce).position)>=0,St=it&&se(Ce)?Me(Ce):Ce;return re(St)?Be.filter(function(Ft){return re(Ft)&&Dr(Ft,St)&&ue(Ft)!=="body"}):[]}function Ne(Ce,Be,it){var St=Be==="clippingParents"?ct(Ce):[].concat(Be),Ft=[].concat(St,[it]),Gt=Ft[0],ln=Ft.reduce(function(un,Dn){var wn=pt(Ce,Dn);return un.top=Math.max(wn.top,un.top),un.right=Math.min(wn.right,un.right),un.bottom=Math.min(wn.bottom,un.bottom),un.left=Math.max(wn.left,un.left),un},pt(Ce,Gt));return ln.width=ln.right-ln.left,ln.height=ln.bottom-ln.top,ln.x=ln.left,ln.y=ln.top,ln}function vt(){return{top:0,right:0,bottom:0,left:0}}function Xt(Ce){return Object.assign(Object.assign({},vt()),Ce)}function sn(Ce,Be){return Be.reduce(function(it,St){return it[St]=Ce,it},{})}function Pn(Ce,Be){Be===void 0&&(Be={});var it=Be,St=it.placement,Ft=St===void 0?Ce.placement:St,Gt=it.boundary,ln=Gt===void 0?zt:Gt,un=it.rootBoundary,Dn=un===void 0?Ht:un,wn=it.elementContext,qn=wn===void 0?qt:wn,yr=it.altBoundary,wr=yr!==void 0&&yr,Hr=it.padding,Jr=Hr===void 0?0:Hr,Br=Xt(typeof Jr!="number"?Jr:sn(Jr,Ve)),ri=qn===qt?Qt:qt,di=Ce.elements.reference,ii=Ce.rects.popper,Qr=Ce.elements[wr?ri:qn],Gr=Ne(re(Qr)?Qr:Qr.contextElement||_e(Ce.elements.popper),ln,Dn),ki=Z(di),_i=xn({reference:ki,element:ii,strategy:"absolute",placement:Ft}),Ei=Vr(Object.assign(Object.assign({},ii),_i)),Ni=qn===qt?Ei:ki,Ri={top:Gr.top-Ni.top+Br.top,bottom:Ni.bottom-Gr.bottom+Br.bottom,left:Gr.left-Ni.left+Br.left,right:Ni.right-Gr.right+Br.right},Vi=Ce.modifiersData.offset;if(qn===qt&&Vi){var Yi=Vi[Ft];Object.keys(Ri).forEach(function(Zi){var vi=[Ze,Fe].indexOf(Zi)>=0?1:-1,zi=[ze,Fe].indexOf(Zi)>=0?"y":"x";Ri[Zi]+=Yi[zi]*vi})}return Ri}function Nn(Ce,Be){Be===void 0&&(Be={});var it=Be,St=it.placement,Ft=it.boundary,Gt=it.rootBoundary,ln=it.padding,un=it.flipVariations,Dn=it.allowedAutoPlacements,wn=Dn===void 0?yn:Dn,qn=Bn(St),yr=qn?un?Jt:Jt.filter(function(Jr){return Bn(Jr)===qn}):Ve,wr=yr.filter(function(Jr){return wn.indexOf(Jr)>=0});wr.length===0&&(wr=yr);var Hr=wr.reduce(function(Jr,Br){return Jr[Br]=Pn(Ce,{placement:Br,boundary:Ft,rootBoundary:Gt,padding:ln})[fn(Br)],Jr},{});return Object.keys(Hr).sort(function(Jr,Br){return Hr[Jr]-Hr[Br]})}function Qn(Ce){if(fn(Ce)===qe)return[];var Be=cr(Ce);return[ir(Ce),Be,ir(Be)]}function Xn(Ce){var Be=Ce.state,it=Ce.options,St=Ce.name;if(!Be.modifiersData[St]._skip){for(var Ft=it.mainAxis,Gt=Ft===void 0||Ft,ln=it.altAxis,un=ln===void 0||ln,Dn=it.fallbackPlacements,wn=it.padding,qn=it.boundary,yr=it.rootBoundary,wr=it.altBoundary,Hr=it.flipVariations,Jr=Hr===void 0||Hr,Br=it.allowedAutoPlacements,ri=Be.options.placement,di=fn(ri),ii=di===ri,Qr=Dn||(ii||!Jr?[cr(ri)]:Qn(ri)),Gr=[ri].concat(Qr).reduce(function(Li,Ti){return Li.concat(fn(Ti)===qe?Nn(Be,{placement:Ti,boundary:qn,rootBoundary:yr,padding:wn,flipVariations:Jr,allowedAutoPlacements:Br}):Ti)},[]),ki=Be.rects.reference,_i=Be.rects.popper,Ei=new Map,Ni=!0,Ri=Gr[0],Vi=0;Vi<Gr.length;Vi++){var Yi=Gr[Vi],Zi=fn(Yi),vi=Bn(Yi)===At,zi=[ze,Fe].indexOf(Zi)>=0,ls=zi?"width":"height",Ss=Pn(Be,{placement:Yi,boundary:qn,rootBoundary:yr,altBoundary:wr,padding:wn}),vs=zi?vi?Ze:lt:vi?Fe:ze;ki[ls]>_i[ls]&&(vs=cr(vs));var fo=cr(vs),ks=[];if(Gt&&ks.push(Ss[Zi]<=0),un&&ks.push(Ss[vs]<=0,Ss[fo]<=0),ks.every(function(Li){return Li})){Ri=Yi,Ni=!1;break}Ei.set(Yi,ks)}if(Ni)for(var cs=Jr?3:1,bs=function(Li){var Ti=Gr.find(function(Es){var Js=Ei.get(Es);if(Js)return Js.slice(0,Li).every(function(ys){return ys})});if(Ti)return Ri=Ti,"break"},bi=cs;bi>0;bi--){var Qi=bs(bi);if(Qi==="break")break}Be.placement!==Ri&&(Be.modifiersData[St]._skip=!0,Be.placement=Ri,Be.reset=!0)}}var Rr={name:"flip",enabled:!0,phase:"main",fn:Xn,requiresIfExists:["offset"],data:{_skip:!1}};function tr(Ce){return Ce==="x"?"y":"x"}function fr(Ce,Be,it){return Math.max(Ce,Math.min(Be,it))}function Sr(Ce){var Be=Ce.state,it=Ce.options,St=Ce.name,Ft=it.mainAxis,Gt=Ft===void 0||Ft,ln=it.altAxis,un=ln!==void 0&&ln,Dn=it.boundary,wn=it.rootBoundary,qn=it.altBoundary,yr=it.padding,wr=it.tether,Hr=wr===void 0||wr,Jr=it.tetherOffset,Br=Jr===void 0?0:Jr,ri=Pn(Be,{boundary:Dn,rootBoundary:wn,padding:yr,altBoundary:qn}),di=fn(Be.placement),ii=Bn(Be.placement),Qr=!ii,Gr=en(di),ki=tr(Gr),_i=Be.modifiersData.popperOffsets,Ei=Be.rects.reference,Ni=Be.rects.popper,Ri=typeof Br=="function"?Br(Object.assign(Object.assign({},Be.rects),{},{placement:Be.placement})):Br,Vi={x:0,y:0};if(_i){if(Gt){var Yi=Gr==="y"?ze:lt,Zi=Gr==="y"?Fe:Ze,vi=Gr==="y"?"height":"width",zi=_i[Gr],ls=_i[Gr]+ri[Yi],Ss=_i[Gr]-ri[Zi],vs=Hr?-Ni[vi]/2:0,fo=ii===At?Ei[vi]:Ni[vi],ks=ii===At?-Ni[vi]:-Ei[vi],cs=Be.elements.arrow,bs=Hr&&cs?oe(cs):{width:0,height:0},bi=Be.modifiersData["arrow#persistent"]?Be.modifiersData["arrow#persistent"].padding:vt(),Qi=bi[Yi],Li=bi[Zi],Ti=fr(0,Ei[vi],bs[vi]),Es=Qr?Ei[vi]/2-vs-Ti-Qi-Ri:fo-Ti-Qi-Ri,Js=Qr?-Ei[vi]/2+vs+Ti+Li+Ri:ks+Ti+Li+Ri,ys=Be.elements.arrow&&Me(Be.elements.arrow),Xo=ys?Gr==="y"?ys.clientTop||0:ys.clientLeft||0:0,Bs=Be.modifiersData.offset?Be.modifiersData.offset[Be.placement][Gr]:0,po=_i[Gr]+Es-Bs-Xo,Jo=_i[Gr]+Js-Bs,ho=fr(Hr?Math.min(ls,po):ls,zi,Hr?Math.max(Ss,Jo):Ss);_i[Gr]=ho,Vi[Gr]=ho-zi}if(un){var Do=Gr==="x"?ze:lt,Mo=Gr==="x"?Fe:Ze,As=_i[ki],zs=As+ri[Do],mo=As-ri[Mo],Io=fr(zs,As,mo);_i[ki]=Io,Vi[ki]=Io-As}Be.modifiersData[St]=Vi}}var sr={name:"preventOverflow",enabled:!0,phase:"main",fn:Sr,requiresIfExists:["offset"]};function Rn(Ce){var Be,it=Ce.state,St=Ce.name,Ft=it.elements.arrow,Gt=it.modifiersData.popperOffsets,ln=fn(it.placement),un=en(ln),Dn=[lt,Ze].indexOf(ln)>=0,wn=Dn?"height":"width";if(Ft&&Gt){var qn=it.modifiersData[St+"#persistent"].padding,yr=oe(Ft),wr=un==="y"?ze:lt,Hr=un==="y"?Fe:Ze,Jr=it.rects.reference[wn]+it.rects.reference[un]-Gt[un]-it.rects.popper[wn],Br=Gt[un]-it.rects.reference[un],ri=Me(Ft),di=ri?un==="y"?ri.clientHeight||0:ri.clientWidth||0:0,ii=Jr/2-Br/2,Qr=qn[wr],Gr=di-yr[wn]-qn[Hr],ki=di/2-yr[wn]/2+ii,_i=fr(Qr,ki,Gr),Ei=un;it.modifiersData[St]=(Be={},Be[Ei]=_i,Be.centerOffset=_i-ki,Be)}}function mr(Ce){var Be=Ce.state,it=Ce.options,St=Ce.name,Ft=it.element,Gt=Ft===void 0?"[data-popper-arrow]":Ft,ln=it.padding,un=ln===void 0?0:ln;Gt!=null&&(typeof Gt!="string"||(Gt=Be.elements.popper.querySelector(Gt),Gt))&&Dr(Be.elements.popper,Gt)&&(Be.elements.arrow=Gt,Be.modifiersData[St+"#persistent"]={padding:Xt(typeof un!="number"?un:sn(un,Ve))})}var br={name:"arrow",enabled:!0,phase:"main",fn:Rn,effect:mr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hr(Ce,Be,it){return it===void 0&&(it={x:0,y:0}),{top:Ce.top-Be.height-it.y,right:Ce.right-Be.width+it.x,bottom:Ce.bottom-Be.height+it.y,left:Ce.left-Be.width-it.x}}function zn(Ce){return[ze,Ze,Fe,lt].some(function(Be){return Ce[Be]>=0})}function er(Ce){var Be=Ce.state,it=Ce.name,St=Be.rects.reference,Ft=Be.rects.popper,Gt=Be.modifiersData.preventOverflow,ln=Pn(Be,{elementContext:"reference"}),un=Pn(Be,{altBoundary:!0}),Dn=hr(ln,St),wn=hr(un,Ft,Gt),qn=zn(Dn),yr=zn(wn);Be.modifiersData[it]={referenceClippingOffsets:Dn,popperEscapeOffsets:wn,isReferenceHidden:qn,hasPopperEscaped:yr},Be.attributes.popper=Object.assign(Object.assign({},Be.attributes.popper),{},{"data-popper-reference-hidden":qn,"data-popper-escaped":yr})}var et,yt,wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:er},Bt=[Rt,dt,Kn,Tt,mn,Rr,sr,br,wt],Kt=ht({defaultModifiers:Bt}),Mt=j("2fa3"),tn=j("9404"),hn={name:"Popover",render(Ce){return Ce("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[Ce("transition",{props:{name:this.transition,appear:!0},on:{beforeEnter:this.beforeEnter,afterEnter:this.afterEnter,beforeLeave:this.beforeLeave,afterLeave:this.afterLeave}},[this.isVisible&&Ce("div",{attrs:{tabindex:-1},class:["vc-popover-content","direction-"+this.direction,this.contentClass]},[this.content,Ce("span",{class:["vc-popover-caret","direction-"+this.direction,"align-"+this.alignment]})])])])},props:{id:{type:String,required:!0},contentClass:String},data(){return{ref:null,opts:null,data:null,transition:"slide-fade",placement:"bottom",positionFixed:!1,modifiers:[],isInteractive:!1,isHovered:!1,isFocused:!1,showDelay:0,hideDelay:110,autoHide:!1,popperEl:null}},computed:{content(){var Ce=this;return Object(tn.k)(this.$scopedSlots.default)&&this.$scopedSlots.default({direction:this.direction,alignment:this.alignment,data:this.data,updateLayout:this.setupPopper,hide:function(Be){return Ce.hide(Be)}})||this.$slots.default},popperOptions(){return{placement:this.placement,strategy:this.positionFixed?"fixed":"absolute",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:this.onPopperUpdate},...this.modifiers||[]],onFirstUpdate:this.onPopperUpdate}},isVisible(){return!(!this.ref||!this.content)},direction(){return this.placement&&this.placement.split("-")[0]||"bottom"},alignment(){const Ce=this.direction==="left"||this.direction==="right";let Be=this.placement.split("-");return Be=Be.length>1?Be[1]:"",["start","top","left"].includes(Be)?Ce?"top":"left":["end","bottom","right"].includes(Be)?Ce?"bottom":"right":Ce?"middle":"center"},state(){return this.$popovers[this.id]}},watch:{opts(Ce,Be){Be&&Be.callback&&Be.callback({...Be,completed:!Ce,reason:Ce?"Overridden by action":null})}},mounted(){this.popoverEl=this.$refs.popover,this.addEvents()},beforeDestroy(){this.destroyPopper(),this.removeEvents(),this.popoverEl=null},methods:{addEvents(){Object(Mt.k)(this.popoverEl,"click",this.onClick),Object(Mt.k)(this.popoverEl,"mouseover",this.onMouseOver),Object(Mt.k)(this.popoverEl,"mouseleave",this.onMouseLeave),Object(Mt.k)(this.popoverEl,"focusin",this.onFocusIn),Object(Mt.k)(this.popoverEl,"focusout",this.onFocusOut),Object(Mt.k)(document,"keydown",this.onDocumentKeydown),Object(Mt.k)(document,"click",this.onDocumentClick),Object(Mt.k)(document,"show-popover",this.onDocumentShowPopover),Object(Mt.k)(document,"hide-popover",this.onDocumentHidePopover),Object(Mt.k)(document,"toggle-popover",this.onDocumentTogglePopover),Object(Mt.k)(document,"update-popover",this.onDocumentUpdatePopover)},removeEvents(){Object(Mt.j)(this.popoverEl,"click",this.onClick),Object(Mt.j)(this.popoverEl,"mouseover",this.onMouseOver),Object(Mt.j)(this.popoverEl,"mouseleave",this.onMouseLeave),Object(Mt.j)(this.popoverEl,"focusin",this.onFocusIn),Object(Mt.j)(this.popoverEl,"focusout",this.onFocusOut),Object(Mt.j)(document,"keydown",this.onDocumentKeydown),Object(Mt.j)(document,"click",this.onDocumentClick),Object(Mt.j)(document,"show-popover",this.onDocumentShowPopover),Object(Mt.j)(document,"hide-popover",this.onDocumentHidePopover),Object(Mt.j)(document,"toggle-popover",this.onDocumentTogglePopover),Object(Mt.j)(document,"update-popover",this.onDocumentUpdatePopover)},onClick(Ce){Ce.stopPropagation()},onMouseOver(){this.isHovered=!0,this.isInteractive&&this.show()},onMouseLeave(){this.isHovered=!1,!this.autoHide||this.isFocused||this.ref&&this.ref===document.activeElement||this.hide()},onFocusIn(){this.isFocused=!0,this.isInteractive&&this.show()},onFocusOut(Ce){Ce.relatedTarget&&Object(Mt.e)(this.popoverEl,Ce.relatedTarget)||(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(Ce){this.$refs.popover&&this.ref&&(Object(Mt.e)(this.popoverEl,Ce.target)||Object(Mt.e)(this.ref,Ce.target)||this.hide())},onDocumentKeydown(Ce){Ce.key!=="Esc"&&Ce.key!=="Escape"||this.hide()},onDocumentShowPopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.show(Ce)},onDocumentHidePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.hide(Ce)},onDocumentTogglePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.toggle(Ce)},onDocumentUpdatePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.update(Ce)},show(Ce={}){var Be=this;Ce.action="show";const it=Ce.ref||this.ref,St=Ce.showDelay>=0?Ce.showDelay:this.showDelay;if(!it)return void(Ce.callback&&Ce.callback({completed:!1,reason:"Invalid reference element provided"}));clearTimeout(this.timeout),this.opts=Ce;const Ft=function(){Object.assign(Be,Ce),Be.setupPopper(),Be.opts=null};St>0?this.timeout=setTimeout(function(){return Ft()},St):Ft()},hide(Ce={}){var Be=this;Ce.action="hide";const it=Ce.ref||this.ref,St=Ce.hideDelay>=0?Ce.hideDelay:this.hideDelay;if(!this.ref||it!==this.ref)return void(Ce.callback&&Ce.callback({...Ce,completed:!1,reason:this.ref?"Invalid reference element provided":"Popover already hidden"}));const Ft=function(){Be.ref=null,Be.opts=null};clearTimeout(this.timeout),this.opts=Ce,St>0?this.timeout=setTimeout(Ft,St):Ft()},toggle(Ce={}){this.isVisible&&Ce.ref===this.ref?this.hide(Ce):this.show(Ce)},update(Ce={}){Object.assign(this,Ce),this.setupPopper()},setupPopper(){var Ce=this;this.$nextTick(function(){Ce.ref&&Ce.$refs.popover&&(Ce.popper&&Ce.popper.reference!==Ce.ref&&Ce.destroyPopper(),Ce.popper?Ce.popper.update():Ce.popper=Kt(Ce.ref,Ce.popoverEl,Ce.popperOptions))})},onPopperUpdate(Ce){Ce.placement?this.placement=Ce.placement:Ce.state&&(this.placement=Ce.state.placement)},beforeEnter(Ce){this.$emit("beforeShow",Ce)},afterEnter(Ce){this.$emit("afterShow",Ce)},beforeLeave(Ce){this.$emit("beforeHide",Ce)},afterLeave(Ce){this.destroyPopper(),this.$emit("afterHide",Ce)},destroyPopper(){this.popper&&(this.popper.destroy(),this.popper=null)}}},Cn=hn;j("bdb3");function cn(Ce,Be,it,St,Ft,Gt,ln,un){var Dn,wn=typeof Ce=="function"?Ce.options:Ce;if(Be&&(wn.render=Be,wn.staticRenderFns=it,wn._compiled=!0),St&&(wn.functional=!0),Gt&&(wn._scopeId="data-v-"+Gt),ln?(Dn=function(wr){wr=wr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,wr||typeof __VUE_SSR_CONTEXT__>"u"||(wr=__VUE_SSR_CONTEXT__),Ft&&Ft.call(this,wr),wr&&wr._registeredComponents&&wr._registeredComponents.add(ln)},wn._ssrRegister=Dn):Ft&&(Dn=un?function(){Ft.call(this,(wn.functional?this.parent:this).$root.$options.shadowRoot)}:Ft),Dn)if(wn.functional){wn._injectStyles=Dn;var qn=wn.render;wn.render=function(wr,Hr){return Dn.call(Hr),qn(wr,Hr)}}else{var yr=wn.beforeCreate;wn.beforeCreate=yr?[].concat(yr,Dn):[Dn]}return{exports:Ce,options:wn}}var ur=cn(Cn,et,yt,!1,null,"39b30300",null),or=ur.exports,rt=function(){var Ce=this,Be=Ce.$createElement,it=Ce._self._c||Be;return it("div",{staticClass:"vc-day-popover-row"},[Ce.indicator?it("div",{staticClass:"vc-day-popover-row-indicator"},[it("span",{class:Ce.indicator.class,style:Ce.indicator.style})]):Ce._e(),it("div",{staticClass:"vc-day-popover-row-content"},[Ce._t("default",[Ce._v(Ce._s(Ce.attribute.popover?Ce.attribute.popover.label:"No content provided"))])],2)])},gt=[],tt=j("51ec");const nn={inject:["sharedState"],mixins:[tt.a],computed:{masks(){return this.sharedState.masks},theme(){return this.sharedState.theme},locale(){return this.sharedState.locale},dayPopoverId(){return this.sharedState.dayPopoverId}},methods:{format(Ce,Be){return this.locale.format(Ce,Be)},pageForDate(Ce){return this.locale.getDateParts(this.locale.normalizeDate(Ce))}}},kn=["base","start","end","startEnd"],Un=["class","contentClass","style","contentStyle","color","fillMode"],Jn={color:"blue",isDark:!1,highlight:{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}},dot:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},bar:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},content:{base:{},start:{},end:{}}};class _r{constructor(Be){Object.assign(this,Jn,Be)}normalizeAttr({config:Be,type:it}){let St=this.color,Ft={};const Gt=this[it];if(Be===!0||Object(tn.n)(Be))St=Object(tn.n)(Be)?Be:St,Ft={...Gt};else{if(!Object(tn.m)(Be))return null;Ft=Object(tn.f)(Be,kn)?{...Be}:{base:{...Be},start:{...Be},end:{...Be}}}return Object(tn.b)(Ft,{start:Ft.startEnd,end:Ft.startEnd},Gt),Object(tn.w)(Ft).forEach(function([ln,un]){let Dn=St;un===!0||Object(tn.n)(un)?(Dn=Object(tn.n)(un)?un:Dn,Ft[ln]={color:Dn}):Object(tn.m)(un)&&(Object(tn.f)(un,Un)?Ft[ln]={...un}:Ft[ln]={}),Object(tn.e)(Ft,ln+".color")||Object(tn.u)(Ft,ln+".color",Dn)}),Ft}normalizeHighlight(Be){var it=this;const St=this.normalizeAttr({config:Be,type:"highlight"});return Object(tn.w)(St).forEach(function([Ft,Gt]){const ln=Object(tn.b)(Gt,{isDark:it.isDark,color:it.color});Gt.style={...it.getHighlightBgStyle(ln),...Gt.style},Gt.contentStyle={...it.getHighlightContentStyle(ln),...Gt.contentStyle}}),St}getHighlightBgStyle({fillMode:Be,color:it,isDark:St}){switch(Be){case"outline":case"none":return{backgroundColor:St?"var(--gray-900)":"var(--white)",border:"2px solid",borderColor:St?`var(--${it}-200)`:`var(--${it}-700)`,borderRadius:"var(--rounded-full)"};case"light":return{backgroundColor:St?`var(--${it}-800)`:`var(--${it}-200)`,opacity:St?.75:1,borderRadius:"var(--rounded-full)"};case"solid":return{backgroundColor:St?`var(--${it}-500)`:`var(--${it}-600)`,borderRadius:"var(--rounded-full)"};default:return{borderRadius:"var(--rounded-full)"}}}getHighlightContentStyle({fillMode:Be,color:it,isDark:St}){switch(Be){case"outline":case"none":return{fontWeight:"var(--font-bold)",color:St?`var(--${it}-100)`:`var(--${it}-900)`};case"light":return{fontWeight:"var(--font-bold)",color:St?`var(--${it}-100)`:`var(--${it}-900)`};case"solid":return{fontWeight:"var(--font-bold)",color:"var(--white)"};default:return""}}bgAccentHigh({color:Be,isDark:it}){return{backgroundColor:it?`var(--${Be}-500)`:`var(--${Be}-600)`}}contentAccent({color:Be,isDark:it}){return Be?{fontWeight:"var(--font-bold)",color:it?`var(--${Be}-100)`:`var(--${Be}-900)`}:null}normalizeDot(Be){return this.normalizeNonHighlight("dot",Be,this.bgAccentHigh)}normalizeBar(Be){return this.normalizeNonHighlight("bar",Be,this.bgAccentHigh)}normalizeContent(Be){return this.normalizeNonHighlight("content",Be,this.contentAccent)}normalizeNonHighlight(Be,it,St){var Ft=this;const Gt=this.normalizeAttr({type:Be,config:it});return Object(tn.w)(Gt).forEach(function([ln,un]){Object(tn.b)(un,{isDark:Ft.isDark,color:Ft.color}),un.style={...St(un),...un.style}}),Gt}}var xr=j("29ae"),Nr=j("1315"),Mr=j("22f3");const Zr={mixins:[tt.a],props:{color:String,isDark:Boolean,firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,minDateExact:null,maxDateExact:null,disabledDates:null,availableDates:null,theme:null},computed:{$theme(){return this.theme instanceof _r?this.theme:new _r({color:this.passedProp("color","blue"),isDark:this.passedProp("isDark",!1)})},$locale(){if(this.locale instanceof xr.b)return this.locale;const Ce=Object(tn.m)(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new xr.b(Ce,{locales:this.$locales,timezone:this.timezone})},disabledDates_(){const Ce=this.normalizeDates(this.disabledDates),{minDate:Be,minDateExact:it,maxDate:St,maxDateExact:Ft}=this;if(it||Be){const Gt=it?this.normalizeDate(it):this.normalizeDate(Be,{time:"00:00:00"});Ce.push({start:null,end:new Date(Gt.getTime()-1e3)})}if(Ft||St){const Gt=Ft?this.normalizeDate(Ft):this.normalizeDate(St,{time:"23:59:59"});Ce.push({start:new Date(Gt.getTime()+1e3),end:null})}return Ce},availableDates_(){return this.normalizeDates(this.availableDates)},disabledAttribute(){return new Mr.a({key:"disabled",dates:this.disabledDates_,excludeDates:this.availableDates_,excludeMode:"includes",order:100},this.$theme,this.$locale)}},created(){Object(Nr.a)(this.$defaults.screens)},methods:{formatDate(Ce,Be){return this.$locale?this.$locale.format(Ce,Be):""},parseDate(Ce,Be){if(!this.$locale)return null;const it=this.$locale.parse(Ce,Be);return Object(tn.j)(it)?it:null},normalizeDate(Ce,Be){return this.$locale?this.$locale.normalizeDate(Ce,Be):Ce},normalizeDates(Ce){return this.$locale.normalizeDates(Ce,{isFullDay:!0})},pageForDate(Ce){return this.$locale.getDateParts(this.normalizeDate(Ce))},pageForThisMonth(){return this.pageForDate(new Date)}}},ti={methods:{safeScopedSlot(Ce,Be,it=null){return Object(tn.k)(this.$scopedSlots[Ce])?this.$scopedSlots[Ce](Be):it}}},Xr=nn,ni=Zr,qr=ti;var ei={name:"PopoverRow",mixins:[Xr],props:{attribute:Object},computed:{indicator(){const{highlight:Ce,dot:Be,bar:it,popover:St}=this.attribute;if(St&&St.hideIndicator)return null;if(Ce){const{color:Ft,isDark:Gt}=Ce.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Gt}),width:"10px",height:"5px",borderRadius:"3px"}}}if(Be){const{color:Ft,isDark:Gt}=Be.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Gt}),width:"5px",height:"5px",borderRadius:"50%"}}}if(it){const{color:Ft,isDark:Gt}=it.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Gt}),width:"10px",height:"3px"}}}return null}}},mi=ei,Ai=(j("d438"),cn(mi,rt,gt,!1,null,"eb5afd1a",null)),Gi=Ai.exports,Co=function(){var Ce=this,Be=Ce.$createElement,it=Ce._self._c||Be;return it("div",{staticClass:"vc-nav-container"},[it("div",{staticClass:"vc-nav-header"},[it("span",{staticClass:"vc-nav-arrow is-left",class:{"is-disabled":!Ce.prevItemsEnabled},attrs:{role:"button",tabindex:Ce.prevItemsEnabled?0:void 0},on:{click:Ce.movePrev,keydown:function(St){return Ce.onSpaceOrEnter(St,Ce.movePrev)}}},[Ce._t("nav-left-button",[it("svg-icon",{attrs:{name:"left-arrow",width:"20px",height:"24px"}})])],2),it("span",{staticClass:"vc-nav-title vc-grid-focus",style:{whiteSpace:"nowrap"},attrs:{role:"button",tabindex:"0"},on:{click:Ce.toggleMode,keydown:function(St){return Ce.onSpaceOrEnter(St,Ce.toggleMode)}}},[Ce._v(" "+Ce._s(Ce.title)+" ")]),it("span",{staticClass:"vc-nav-arrow is-right",class:{"is-disabled":!Ce.nextItemsEnabled},attrs:{role:"button",tabindex:Ce.nextItemsEnabled?0:void 0},on:{click:Ce.moveNext,keydown:function(St){return Ce.onSpaceOrEnter(St,Ce.moveNext)}}},[Ce._t("nav-right-button",[it("svg-icon",{attrs:{name:"right-arrow",width:"20px",height:"24px"}})])],2)]),it("div",{staticClass:"vc-nav-items"},Ce._l(Ce.activeItems,function(St){return it("span",{key:St.label,class:Ce.getItemClasses(St),attrs:{role:"button","data-id":St.id,"aria-label":St.ariaLabel,tabindex:St.isDisabled?void 0:0},on:{click:St.click,keydown:function(Ft){return Ce.onSpaceOrEnter(Ft,St.click)}}},[Ce._v(" "+Ce._s(St.label)+" ")])}),0)])},$o=[],To=function(){var Ce=this,Be=Ce.$createElement,it=Ce._self._c||Be;return it("svg",Ce._g({staticClass:"vc-svg-icon",attrs:{width:Ce.width,height:Ce.height,viewBox:Ce.viewBox}},Ce.$listeners),[it("path",{attrs:{d:Ce.path}})])},Oo=[];const Xi="26px",Ys="0 0 32 32",ao={"left-arrow":{viewBox:"0 -1 16 34",path:"M11.196 10c0 0.143-0.071 0.304-0.179 0.411l-7.018 7.018 7.018 7.018c0.107 0.107 0.179 0.268 0.179 0.411s-0.071 0.304-0.179 0.411l-0.893 0.893c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-8.321-8.321c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l8.321-8.321c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l0.893 0.893c0.107 0.107 0.179 0.25 0.179 0.411z"},"right-arrow":{viewBox:"-5 -1 16 34",path:"M10.625 17.429c0 0.143-0.071 0.304-0.179 0.411l-8.321 8.321c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-0.893-0.893c-0.107-0.107-0.179-0.25-0.179-0.411 0-0.143 0.071-0.304 0.179-0.411l7.018-7.018-7.018-7.018c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l0.893-0.893c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l8.321 8.321c0.107 0.107 0.179 0.268 0.179 0.411z"}};var Ks={props:["name"],data(){return{width:Xi,height:Xi,viewBox:Ys,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const Ce=ao[this.name];Ce&&(this.width=Ce.width||Xi,this.height=Ce.height||Xi,this.viewBox=Ce.viewBox,this.path=Ce.path)}}},Ns=Ks,$s=(j("9010"),cn(Ns,To,Oo,!1,null,"63f7b5ec",null)),ps=$s.exports;const ws=12;var Ts={name:"CalendarNav",components:{SvgIcon:ps},mixins:[Xr],props:{value:{type:Object,default:function(){return{month:0,year:0}}},validator:{type:Function,default:function(){return function(){return!0}}}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:Mt.l}},computed:{month(){return this.value&&this.value.month||0},year(){return this.value&&this.value.year||0},title(){return this.monthMode?this.yearIndex:`${this.firstYear} - ${this.lastYear}`},monthItems(){return this.getMonthItems(this.yearIndex)},yearItems(){return this.getYearItems(this.yearGroupIndex)},prevItemsEnabled(){return this.monthMode?this.prevMonthItemsEnabled:this.prevYearItemsEnabled},nextItemsEnabled(){return this.monthMode?this.nextMonthItemsEnabled:this.nextYearItemsEnabled},prevMonthItemsEnabled(){return this.getMonthItems(this.yearIndex-1).some(function(Ce){return!Ce.isDisabled})},nextMonthItemsEnabled(){return this.getMonthItems(this.yearIndex+1).some(function(Ce){return!Ce.isDisabled})},prevYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex-1).some(function(Ce){return!Ce.isDisabled})},nextYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex+1).some(function(Ce){return!Ce.isDisabled})},activeItems(){return this.monthMode?this.monthItems:this.yearItems},firstYear(){return Object(tn.g)(this.yearItems.map(function(Ce){return Ce.year}))},lastYear(){return Object(tn.p)(this.yearItems.map(function(Ce){return Ce.year}))}},watch:{year(){this.yearIndex=this.year},yearIndex(Ce){this.yearGroupIndex=this.getYearGroupIndex(Ce)},value(){this.focusFirstItem()}},created(){this.yearIndex=this.year},mounted(){this.focusFirstItem()},methods:{focusFirstItem(){var Ce=this;this.$nextTick(function(){const Be=Ce.$el.querySelector(".vc-nav-item:not(.is-disabled)");Be&&Be.focus()})},getItemClasses({isActive:Ce,isCurrent:Be,isDisabled:it}){const St=["vc-nav-item"];return Ce?St.push("is-active"):Be&&St.push("is-current"),it&&St.push("is-disabled"),St},getYearGroupIndex(Ce){return Math.floor(Ce/ws)},getMonthItems(Ce){var Be=this;const{month:it,year:St}=this.pageForDate(new Date);return this.locale.getMonthDates().map(function(Ft,Gt){const ln=Gt+1;return{month:ln,year:Ce,id:`${Ce}.${Object(Mt.m)(ln,2)}`,label:Be.locale.format(Ft,Be.masks.navMonths),ariaLabel:Be.locale.format(Ft,"MMMM YYYY"),isActive:ln===Be.month&&Ce===Be.year,isCurrent:ln===it&&Ce===St,isDisabled:!Be.validator({month:ln,year:Ce}),click:function(){return Be.monthClick(ln,Ce)}}})},getYearItems(Ce){var Be=this;const{_:it,year:St}=this.pageForDate(new Date),Ft=Ce*ws,Gt=Ft+ws,ln=[];for(let un=Ft;un<Gt;un+=1){let Dn=!1;for(let wn=1;wn<12&&(Dn=this.validator({month:wn,year:un}),!Dn);wn++);ln.push({year:un,id:un,label:un,ariaLabel:un,isActive:un===this.year,isCurrent:un===St,isDisabled:!Dn,click:function(){return Be.yearClick(un)}})}return ln},monthClick(Ce,Be){this.validator({month:Ce,year:Be})&&this.$emit("input",{month:Ce,year:Be})},yearClick(Ce){this.yearIndex=Ce,this.monthMode=!0,this.focusFirstItem()},toggleMode(){this.monthMode=!this.monthMode},movePrev(){this.prevItemsEnabled&&(this.monthMode&&this.movePrevYear(),this.movePrevYearGroup())},moveNext(){this.nextItemsEnabled&&(this.monthMode&&this.moveNextYear(),this.moveNextYearGroup())},movePrevYear(){this.yearIndex--},moveNextYear(){this.yearIndex++},movePrevYearGroup(){this.yearGroupIndex--},moveNextYearGroup(){this.yearGroupIndex++}}},Gs=Ts,pe=(j("3c55"),cn(Gs,Co,$o,!1,null,null,null)),Te=pe.exports;function Re(Ce){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:Ce}))}function je(Ce){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:Ce}))}function Ke(Ce){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:Ce}))}function Je(Ce){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:Ce}))}function bt(Ce){const{visibility:Be}=Ce,it=Be==="click",St=Be==="hover",Ft=Be==="hover-focus",Gt=Be==="focus";Ce.autoHide=!it;let ln=!1,un=!1;return{click(Dn){it&&(Ce.ref=Dn.target,Ke(Ce),Dn.stopPropagation())},mousemove(Dn){Ce.ref=Dn.currentTarget,ln||(ln=!0,(St||Ft)&&Re(Ce))},mouseleave(Dn){Ce.ref=Dn.target,ln&&(ln=!1,(St||Ft&&!un)&&je(Ce))},focusin(Dn){Ce.ref=Dn.currentTarget,un||(un=!0,(Gt||Ft)&&Re(Ce))},focusout(Dn){Ce.ref=Dn.currentTarget,un&&!Object(Mt.e)(Ce.ref,Dn.relatedTarget)&&(un=!1,(Gt||Ft&&!ln)&&je(Ce))}}}var Dt,Et,jt,Vt,Sn,Mn,bn,vn,ar={name:"CalendarDay",mixins:[Xr,qr],render(Ce){var Be=this;const it=function(){return Be.hasBackgrounds&&Ce("div",{class:"vc-highlights vc-day-layer"},Be.backgrounds.map(function({key:ln,wrapperClass:un,class:Dn,style:wn}){return Ce("div",{key:ln,class:un},[Ce("div",{class:Dn,style:wn})])}))},St=function(){return Be.safeScopedSlot("day-content",{day:Be.day,attributes:Be.day.attributes,attributesMap:Be.day.attributesMap,dayProps:Be.dayContentProps,dayEvents:Be.dayContentEvents})||Ce("span",{class:Be.dayContentClass,style:Be.dayContentStyle,attrs:{...Be.dayContentProps},on:Be.dayContentEvents,ref:"content"},[Be.day.label])},Ft=function(){return Be.hasDots&&Ce("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Ce("div",{class:"vc-dots"},Be.dots.map(function({key:ln,class:un,style:Dn}){return Ce("span",{key:ln,class:un,style:Dn})}))])},Gt=function(){return Be.hasBars&&Ce("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Ce("div",{class:"vc-bars"},Be.bars.map(function({key:ln,class:un,style:Dn}){return Ce("span",{key:ln,class:un,style:Dn})}))])};return Ce("div",{class:["vc-day",...this.day.classes,{"vc-day-box-center-center":!this.$scopedSlots["day-content"]},{"is-not-in-month":!this.inMonth}]},[it(),St(),Ft(),Gt()])},inject:["sharedState"],props:{day:{type:Object,required:!0}},data(){return{glyphs:{},dayContentEvents:{}}},computed:{label(){return this.day.label},startTime(){return this.day.range.start.getTime()},endTime(){return this.day.range.end.getTime()},inMonth(){return this.day.inMonth},isDisabled(){return this.day.isDisabled},backgrounds(){return this.glyphs.backgrounds},hasBackgrounds(){return!!Object(Mt.b)(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!Object(Mt.b)(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!Object(Mt.b)(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!Object(Mt.b)(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},Object(tn.d)(Object(tn.p)(this.content),"class")||""]},dayContentStyle(){return Object(tn.d)(Object(tn.p)(this.content),"style")},dayContentProps(){let Ce;return this.day.isFocusable?Ce="0":this.day.inMonth&&(Ce="-1"),{tabindex:Ce,"aria-label":this.day.ariaLabel,"aria-disabled":this.day.isDisabled?"true":"false",role:"button"}},dayEvent(){return{...this.day,el:this.$refs.content,popovers:this.popovers}}},watch:{theme(){this.refresh()},popovers(){this.refreshPopovers()}},mounted(){this.refreshPopovers()},methods:{getDayEvent(Ce){return{...this.dayEvent,event:Ce}},click(Ce){this.$emit("dayclick",this.getDayEvent(Ce))},mouseenter(Ce){this.$emit("daymouseenter",this.getDayEvent(Ce))},mouseleave(Ce){this.$emit("daymouseleave",this.getDayEvent(Ce))},focusin(Ce){this.$emit("dayfocusin",this.getDayEvent(Ce))},focusout(Ce){this.$emit("dayfocusout",this.getDayEvent(Ce))},keydown(Ce){this.$emit("daykeydown",this.getDayEvent(Ce))},refresh(){var Ce=this;if(!this.day.refresh)return;this.day.refresh=!1;const Be={backgrounds:[],dots:[],bars:[],popovers:[],content:[]};this.$set(this.day,"attributes",Object.values(this.day.attributesMap||{}).sort(function(it,St){return it.order-St.order})),this.day.attributes.forEach(function(it){const{targetDate:St}=it,{isDate:Ft,isComplex:Gt,startTime:ln,endTime:un}=St,Dn=Ce.startTime<=ln,wn=Ce.endTime>=un,qn=Dn&&wn,yr=Dn||wn,wr={isDate:Ft,isComplex:Gt,onStart:Dn,onEnd:wn,onStartAndEnd:qn,onStartOrEnd:yr};Ce.processHighlight(it,wr,Be),Ce.processNonHighlight(it,"content",wr,Be.content),Ce.processNonHighlight(it,"dot",wr,Be.dots),Ce.processNonHighlight(it,"bar",wr,Be.bars),Ce.processPopover(it,Be)}),this.glyphs=Be},processHighlight({key:Ce,highlight:Be},{isDate:it,isComplex:St,onStart:Ft,onEnd:Gt,onStartAndEnd:ln},{backgrounds:un,content:Dn}){if(!Be)return;const{base:wn,start:qn,end:yr}=Be;it||St||ln?(un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",qn.class],style:qn.style}),Dn.push({key:Ce+"-content",class:qn.contentClass,style:qn.contentStyle})):Ft?(un.push({key:Ce+"-base",wrapperClass:"vc-day-layer vc-day-box-right-center",class:["vc-highlight vc-highlight-base-start",wn.class],style:wn.style}),un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",qn.class],style:qn.style}),Dn.push({key:Ce+"-content",class:qn.contentClass,style:qn.contentStyle})):Gt?(un.push({key:Ce+"-base",wrapperClass:"vc-day-layer vc-day-box-left-center",class:["vc-highlight vc-highlight-base-end",wn.class],style:wn.style}),un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",yr.class],style:yr.style}),Dn.push({key:Ce+"-content",class:yr.contentClass,style:yr.contentStyle})):(un.push({key:Ce+"-middle",wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight vc-highlight-base-middle",wn.class],style:wn.style}),Dn.push({key:Ce+"-content",class:wn.contentClass,style:wn.contentStyle}))},processNonHighlight(Ce,Be,{isDate:it,onStart:St,onEnd:Ft},Gt){if(!Ce[Be])return;const{key:ln}=Ce,un="vc-"+Be,{base:Dn,start:wn,end:qn}=Ce[Be];it||St?Gt.push({key:ln,class:[un,wn.class],style:wn.style}):Ft?Gt.push({key:ln,class:[un,qn.class],style:qn.style}):Gt.push({key:ln,class:[un,Dn.class],style:Dn.style})},processPopover(Ce,{popovers:Be}){const{key:it,customData:St,popover:Ft}=Ce;if(!Ft)return;const Gt=Object(tn.b)({key:it,customData:St,attribute:Ce},{...Ft},{visibility:Ft.label?"hover":"click",placement:"bottom",isInteractive:!Ft.label});Be.splice(0,0,Gt)},refreshPopovers(){let Ce={};Object(Mt.b)(this.popovers)&&(Ce=bt(Object(tn.b)({id:this.dayPopoverId,data:this.day},...this.popovers))),this.dayContentEvents=Object(Mt.h)({click:this.click,mouseenter:this.mouseenter,mouseleave:this.mouseleave,focusin:this.focusin,focusout:this.focusout,keydown:this.keydown},Ce),Je({id:this.dayPopoverId,data:this.day})}}},Wn=ar,Cr=(j("1f64"),cn(Wn,Dt,Et,!1,null,"4420d078",null)),Pr=Cr.exports,vr={name:"CalendarPane",mixins:[Xr,qr],render(Ce){var Be=this;const it=this.safeScopedSlot("header",this.page)||Ce("div",{class:"vc-header align-"+this.titlePosition},[Ce("div",{class:"vc-title",on:this.navPopoverEvents},[this.safeScopedSlot("header-title",this.page,this.page.title)])]),St=this.weekdayLabels.map(function(qn,yr){return Ce("div",{key:yr+1,class:"vc-weekday"},[qn])}),Ft=this.showWeeknumbers_.startsWith("left"),Gt=this.showWeeknumbers_.startsWith("right");Ft?St.unshift(Ce("div",{class:"vc-weekday"})):Gt&&St.push(Ce("div",{class:"vc-weekday"}));const ln=function(qn){return Ce("div",{class:["vc-weeknumber"]},[Ce("span",{class:["vc-weeknumber-content","is-"+Be.showWeeknumbers_],on:{click:function(yr){Be.$emit("weeknumberclick",{weeknumber:qn,days:Be.page.days.filter(function(wr){return wr[Be.weeknumberKey]===qn}),event:yr})}}},[qn])])},un=[],{daysInWeek:Dn}=this.locale;this.page.days.forEach(function(qn,yr){const wr=yr%Dn;(Ft&&wr===0||Gt&&wr===Dn)&&un.push(ln(qn[Be.weeknumberKey])),un.push(Ce(Pr,{attrs:{day:qn},on:{...Be.$listeners},scopedSlots:Be.$scopedSlots,key:qn.id,ref:"days",refInFor:!0})),Gt&&wr===Dn-1&&un.push(ln(qn[Be.weeknumberKey]))});const wn=Ce("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":Ft,"is-right":Gt}},[St,un]);return Ce("div",{class:["vc-pane","row-from-end-"+this.rowFromEnd,"column-from-end-"+this.columnFromEnd],ref:"pane"},[it,wn])},inheritAttrs:!1,props:{page:Object,position:Number,row:Number,rowFromEnd:Number,column:Number,columnFromEnd:Number,titlePosition:String,navVisibility:String,showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String]},computed:{weeknumberKey(){return this.showWeeknumbers?"weeknumber":"isoWeeknumber"},showWeeknumbers_(){const Ce=this.showWeeknumbers||this.showIsoWeeknumbers;return Ce==null?"":Object(tn.i)(Ce)?Ce?"left":"":Ce.startsWith("right")?this.columnFromEnd>1?"right":Ce:this.column>1?"left":Ce},navVisibility_(){return this.propOrDefault("navVisibility","navVisibility")},navPlacement(){switch(this.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}},navPopoverEvents(){const{sharedState:Ce,navVisibility_:Be,navPlacement:it,page:St,position:Ft}=this;return bt({id:Ce.navPopoverId,visibility:Be,placement:it,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:St,position:Ft},isInteractive:!0})},weekdayLabels(){var Ce=this;return this.locale.getWeekdayDates().map(function(Be){return Ce.format(Be,Ce.masks.weekdays)})}},methods:{refresh(){this.$refs.days.forEach(function(Ce){return Ce.refresh()})}}},Ur=vr,ui=(j("fccf"),j("4889"),cn(Ur,jt,Vt,!1,null,"74ad501d",null)),oi=ui.exports,xi={name:"CustomTransition",render(Ce){return Ce("transition",{props:{name:this.name_,appear:this.appear},on:{beforeEnter:this.beforeEnter,afterEnter:this.afterEnter}},[this.$slots.default])},props:{name:String,appear:Boolean},computed:{name_(){return this.name||"none"}},methods:{beforeEnter(Ce){this.$emit("beforeEnter",Ce),this.$emit("beforeTransition",Ce)},afterEnter(Ce){this.$emit("afterEnter",Ce),this.$emit("afterTransition",Ce)}}},Kr=xi,Fr=(j("2285"),cn(Kr,Sn,Mn,!1,null,"5be4b00c",null)),fi=Fr.exports,pi=j("9349"),ai=j("0733"),hs=(j("3ee2"),{name:"Calendar",render(Ce){var Be=this;const it=this.pages.map(function(ln,un){const Dn=un+1,wn=Math.ceil((un+1)/Be.columns),qn=Be.rows-wn+1,yr=Dn%Be.columns||Be.columns,wr=Be.columns-yr+1;return Ce(oi,{attrs:{...Be.$attrs,attributes:Be.store},props:{page:ln,position:Dn,row:wn,rowFromEnd:qn,column:yr,columnFromEnd:wr,titlePosition:Be.titlePosition_},on:{...Be.$listeners,dayfocusin:function(Hr){Be.lastFocusedDay=Hr,Be.$emit("dayfocusin",Hr)},dayfocusout:function(Hr){Be.lastFocusedDay=null,Be.$emit("dayfocusout",Hr)}},scopedSlots:Be.$scopedSlots,key:ln.key,ref:"pages",refInFor:!0})}),St=function(ln){const un=function(){return Be.move(ln?-Be.step_:Be.step_)},Dn=function(qn){return Object(Mt.l)(qn,un)},wn=ln?!Be.canMovePrev:!Be.canMoveNext;return Ce("div",{class:["vc-arrow","is-"+(ln?"left":"right"),{"is-disabled":wn}],attrs:{role:"button"},on:{click:un,keydown:Dn}},[(ln?Be.safeScopedSlot("header-left-button",{click:un}):Be.safeScopedSlot("header-right-button",{click:un}))||Ce(ps,{props:{name:ln?"left-arrow":"right-arrow"}})])},Ft=function(){return Ce(or,{props:{id:Be.sharedState.navPopoverId,contentClass:"vc-nav-popover-container"},ref:"navPopover",scopedSlots:{default:function({data:ln}){const{position:un,page:Dn}=ln;return Ce(Te,{props:{value:Dn,position:un,validator:function(wn){return Be.canMove(wn,{position:un})}},on:{input:function(wn){return Be.move(wn,{position:un})}},scopedSlots:Be.$scopedSlots})}}})},Gt=function(){return Ce(or,{props:{id:Be.sharedState.dayPopoverId,contentClass:"vc-day-popover-container"},scopedSlots:{default:function({data:ln,updateLayout:un,hide:Dn}){const wn=Object.values(ln.attributes).filter(function(Hr){return Hr.popover}),qn=Be.$locale.masks,yr=Be.formatDate,wr=yr(ln.date,qn.dayPopover);return Be.safeScopedSlot("day-popover",{day:ln,attributes:wn,masks:qn,format:yr,dayTitle:wr,updateLayout:un,hide:Dn})||Ce("div",[qn.dayPopover&&Ce("div",{class:["vc-day-popover-header"]},[wr]),wn.map(function(Hr){return Ce(Gi,{key:Hr.key,props:{attribute:Hr}})})])}}})};return Ce("div",{attrs:{"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},class:["vc-container","vc-"+this.$theme.color,{"vc-is-expanded":this.isExpanded,"vc-is-dark":this.$theme.isDark}],on:{keydown:this.handleKeydown,mouseup:function(ln){return ln.preventDefault()}},ref:"container"},[Ft(),Ce("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[Ce(fi,{props:{name:this.transitionName},on:{beforeEnter:function(){Be.inTransition=!0},afterEnter:function(){Be.inTransition=!1}}},[Ce("div",{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},attrs:{...this.$attrs},key:Object(Mt.b)(this.pages)?this.pages[0].key:""},it)]),Ce("div",{class:["vc-arrows-container title-"+this.titlePosition_]},[St(!0),St(!1)]),this.$scopedSlots.footer&&this.$scopedSlots.footer()]),Gt()])},mixins:[ni,qr],provide(){return{sharedState:this.sharedState}},props:{rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:String,isExpanded:Boolean,fromDate:Date,toDate:Date,fromPage:Object,toPage:Object,minPage:Object,maxPage:Object,transition:String,attributes:[Object,Array],trimWeeks:Boolean,disablePageSwipe:Boolean},data(){return{pages:[],store:null,lastFocusedDay:null,focusableDay:new Date().getDate(),transitionName:"",inTransition:!1,sharedState:{navPopoverId:Object(Mt.c)(),dayPopoverId:Object(Mt.c)(),theme:{},masks:{},locale:{}}}},computed:{titlePosition_(){return this.propOrDefault("titlePosition","titlePosition")},firstPage(){return Object(tn.g)(this.pages)},lastPage(){return Object(tn.p)(this.pages)},minPage_(){return this.minPage||this.pageForDate(this.minDate)},maxPage_(){return this.maxPage||this.pageForDate(this.maxDate)},count(){return this.rows*this.columns},step_(){return this.step||this.count},canMovePrev(){return this.canMove(-this.step_)},canMoveNext(){return this.canMove(this.step_)}},watch:{$locale(){this.refreshLocale(),this.refreshPages({page:this.firstPage,ignoreCache:!0}),this.initStore()},$theme(){this.refreshTheme(),this.initStore()},fromDate(){this.refreshPages()},fromPage(Ce){const Be=this.pages&&this.pages[0];Object(Mt.q)(Ce,Be)||this.refreshPages()},toPage(Ce){const Be=this.pages&&this.pages[this.pages.length-1];Object(Mt.q)(Ce,Be)||this.refreshPages()},count(){this.refreshPages()},attributes:{handler(Ce){const{adds:Be,deletes:it}=this.store.refresh(Ce);this.refreshAttrs(this.pages,Be,it)},deep:!0},pages(Ce){this.refreshAttrs(Ce,this.store.list,null,!0)},disabledAttribute(){this.refreshDisabledDays()},lastFocusedDay(Ce){Ce&&(this.focusableDay=Ce.day,this.refreshFocusableDays())},inTransition(Ce){Ce?this.$emit("transition-start"):(this.$emit("transition-end"),this.transitionPromise&&(this.transitionPromise.resolve(!0),this.transitionPromise=null))}},created(){this.refreshLocale(),this.refreshTheme(),this.initStore(),this.refreshPages()},mounted(){var Ce=this;this.disablePageSwipe||(this.removeHandlers=Object(ai.a)(this.$refs.container,function({toLeft:Be,toRight:it}){Be?Ce.moveNext():it&&Ce.movePrev()},this.$defaults.touch))},destroyed(){this.pages=[],this.store.destroy(),this.store=null,this.sharedState=null,this.removeHandlers&&this.removeHandlers()},methods:{refreshLocale(){this.sharedState.locale=this.$locale,this.sharedState.masks=this.$locale.masks},refreshTheme(){this.sharedState.theme=this.$theme},canMove(Ce,Be={}){var it=this;const St=this.$locale.toPage(Ce,this.firstPage);let{position:Ft}=Be;if(Object(tn.l)(Ce)&&(Ft=1),!St)return Promise.reject(new Error("Invalid argument provided: "+Ce));if(!Ft)if(Object(Mt.o)(St,this.firstPage))Ft=-1;else{if(!Object(Mt.n)(St,this.lastPage))return Promise.resolve(!0);Ft=1}return Object.assign(Be,this.getTargetPageRange(St,{position:Ft,force:!0})),Object(Mt.s)(Be.fromPage,Be.toPage).some(function(Gt){return Object(Mt.p)(Gt,it.minPage_,it.maxPage_)})},movePrev(Ce){return this.move(-this.step_,Ce)},moveNext(Ce){return this.move(this.step_,Ce)},move(Ce,Be={}){const it=this.canMove(Ce,Be);return Be.force||it?(this.$refs.navPopover.hide({hideDelay:0}),Be.fromPage&&!Object(Mt.q)(Be.fromPage,this.firstPage)?this.refreshPages({...Be,page:Be.fromPage,position:1,force:!0}):Promise.resolve(!0)):Promise.reject(new Error("Move target is disabled: "+JSON.stringify(Be)))},focusDate(Ce,Be={}){var it=this;return this.move(Ce,Be).then(function(){const St=it.$el.querySelector(`.id-${it.$locale.getDayId(Ce)}.in-month .vc-focusable`);return St?(St.focus(),Promise.resolve(!0)):Promise.resolve(!1)})},showPageRange(Ce,Be){let it,St;if(Object(tn.j)(Ce))it=this.pageForDate(Ce);else{if(!Object(tn.m)(Ce))return Promise.reject(new Error("Invalid page range provided."));{const{month:ln,year:un}=Ce,{from:Dn,to:wn}=Ce;Object(tn.l)(ln)&&Object(tn.l)(un)?it=Ce:(Dn||wn)&&(it=Object(tn.j)(Dn)?this.pageForDate(Dn):Dn,St=Object(tn.j)(wn)?this.pageForDate(wn):wn)}}const Ft=this.lastPage;let Gt=it;return Object(Mt.n)(St,Ft)&&(Gt=Object(Mt.a)(St,-(this.pages.length-1))),Object(Mt.o)(Gt,it)&&(Gt=it),this.refreshPages({...Be,page:Gt})},getTargetPageRange(Ce,{position:Be,force:it}={}){let St=null,Ft=null;if(Object(Mt.r)(Ce)){let Gt=0;Be=+Be,isNaN(Be)||(Gt=Be>0?1-Be:-(this.count+Be)),St=Object(Mt.a)(Ce,Gt)}else St=this.getDefaultInitialPage();return Ft=Object(Mt.a)(St,this.count-1),it||(Object(Mt.o)(St,this.minPage_)?St=this.minPage_:Object(Mt.n)(Ft,this.maxPage_)&&(St=Object(Mt.a)(this.maxPage_,1-this.count)),Ft=Object(Mt.a)(St,this.count-1)),{fromPage:St,toPage:Ft}},getDefaultInitialPage(){let Ce=this.fromPage||this.pageForDate(this.fromDate);if(!Object(Mt.r)(Ce)){const Be=this.toPage||this.pageForDate(this.toPage);Object(Mt.r)(Be)&&(Ce=Object(Mt.a)(Be,1-this.count))}return Object(Mt.r)(Ce)||(Ce=this.getPageForAttributes()),Object(Mt.r)(Ce)||(Ce=this.pageForThisMonth()),Ce},refreshPages({page:Ce,position:Be=1,force:it,transition:St,ignoreCache:Ft}={}){var Gt=this;return new Promise(function(ln,un){const{fromPage:Dn,toPage:wn}=Gt.getTargetPageRange(Ce,{position:Be,force:it}),qn=[];for(let yr=0;yr<Gt.count;yr++)qn.push(Gt.buildPage(Object(Mt.a)(Dn,yr),Ft));Gt.refreshDisabledDays(qn),Gt.refreshFocusableDays(qn),Gt.transitionName=Gt.getPageTransition(Gt.pages[0],qn[0],St),Gt.pages=qn,Gt.$emit("update:from-page",Dn),Gt.$emit("update:to-page",wn),Gt.transitionName&&Gt.transitionName!=="none"?Gt.transitionPromise={resolve:ln,reject:un}:ln(!0)})},refreshDisabledDays(Ce){var Be=this;this.getPageDays(Ce).forEach(function(it){it.isDisabled=!!Be.disabledAttribute&&Be.disabledAttribute.intersectsDay(it)})},refreshFocusableDays(Ce){var Be=this;this.getPageDays(Ce).forEach(function(it){it.isFocusable=it.inMonth&&it.day===Be.focusableDay})},getPageDays(Ce=this.pages){return Ce.reduce(function(Be,it){return Be.concat(it.days)},[])},getPageTransition(Ce,Be,it=this.transition){if(it==="none")return it;if(it==="fade"||!it&&this.count>1||!Object(Mt.r)(Ce)||!Object(Mt.r)(Be))return"fade";const St=Object(Mt.o)(Be,Ce);return it==="slide-v"?St?"slide-down":"slide-up":St?"slide-right":"slide-left"},getPageForAttributes(){let Ce=null;const Be=this.store.pinAttr;if(Be&&Be.hasDates){let[it]=Be.dates;it=it.start||it.date,Ce=this.pageForDate(it)}return Ce},buildPage({month:Ce,year:Be},it){var St=this;const Ft=`${Be.toString()}-${Ce.toString()}`;let Gt=this.pages.find(function(ln){return ln.key===Ft});if(!Gt||it){const ln=new Date(Be,Ce-1,15),un=this.$locale.getMonthComps(Ce,Be),Dn=this.$locale.getPrevMonthComps(Ce,Be),wn=this.$locale.getNextMonthComps(Ce,Be);Gt={key:Ft,month:Ce,year:Be,weeks:this.trimWeeks?un.weeks:6,title:this.$locale.format(ln,this.$locale.masks.title),shortMonthLabel:this.$locale.format(ln,"MMM"),monthLabel:this.$locale.format(ln,"MMMM"),shortYearLabel:Be.toString().substring(2),yearLabel:Be.toString(),monthComps:un,prevMonthComps:Dn,nextMonthComps:wn,canMove:function(qn){return St.canMove(qn)},move:function(qn){return St.move(qn)},moveThisMonth:function(){return St.moveThisMonth()},movePrevMonth:function(){return St.move(Dn)},moveNextMonth:function(){return St.move(wn)},refresh:!0},Gt.days=this.$locale.getCalendarDays(Gt)}return Gt},initStore(){this.store=new pi.a(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(Ce=[],Be=[],it=[],St){var Ft=this;Object(Mt.b)(Ce)&&(Ce.forEach(function(Gt){Gt.days.forEach(function(ln){let un={};St?ln.refresh=!0:Object(tn.f)(ln.attributesMap,it)?(un=Object(tn.s)(ln.attributesMap,it),ln.refresh=!0):un=ln.attributesMap||{},Be.forEach(function(Dn){const wn=Dn.intersectsDay(ln);if(wn){const qn={...Dn,targetDate:wn};un[Dn.key]=qn,ln.refresh=!0}}),ln.refresh&&(ln.attributesMap=un)})}),this.$nextTick(function(){Ft.$refs.pages.forEach(function(Gt){return Gt.refresh()})}))},handleKeydown(Ce){const Be=this.lastFocusedDay;Be!=null&&(Be.event=Ce,this.handleDayKeydown(Be))},handleDayKeydown(Ce){const{dateFromTime:Be,event:it}=Ce,St=Be(12);let Ft=null;switch(it.key){case"ArrowLeft":Ft=Object(U.a)(St,-1);break;case"ArrowRight":Ft=Object(U.a)(St,1);break;case"ArrowUp":Ft=Object(U.a)(St,-7);break;case"ArrowDown":Ft=Object(U.a)(St,7);break;case"Home":Ft=Object(U.a)(St,1-Ce.weekdayPosition);break;case"End":Ft=Object(U.a)(St,Ce.weekdayPositionFromEnd);break;case"PageUp":Ft=it.altKey?J(St,-1):G(St,-1);break;case"PageDown":Ft=it.altKey?J(St,1):G(St,1);break}Ft&&(it.preventDefault(),this.focusDate(Ft).catch(function(){}))}}}),Os=hs,Ji=(j("de5e"),cn(Os,bn,vn,!1,null,null,null)),Ls=Ji.exports,hi=function(){var Ce=this,Be=Ce.$createElement,it=Ce._self._c||Be;return it("div",{staticClass:"vc-time-picker",class:[{"vc-disabled":Ce.isDisabled,"vc-bordered":Ce.showBorder}]},[it("div",[it("svg",{staticClass:"vc-time-icon",attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"}},[it("path",{attrs:{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}})])]),it("div",{staticClass:"vc-date-time"},[Ce.date?it("div",{staticClass:"vc-date"},[it("span",{staticClass:"vc-weekday"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"WWW"))+" ")]),it("span",{staticClass:"vc-month"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"MMM"))+" ")]),it("span",{staticClass:"vc-day"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"D"))+" ")]),it("span",{staticClass:"vc-year"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"YYYY"))+" ")])]):Ce._e(),it("div",{staticClass:"vc-time"},[it("time-select",{attrs:{options:Ce.hourOptions_},model:{value:Ce.hours,callback:function(St){Ce.hours=Ce._n(St)},expression:"hours"}}),it("span",{staticStyle:{margin:"0 4px"}},[Ce._v(":")]),it("time-select",{attrs:{options:Ce.minuteOptions},model:{value:Ce.minutes,callback:function(St){Ce.minutes=Ce._n(St)},expression:"minutes"}}),Ce.is24hr?Ce._e():it("div",{staticClass:"vc-am-pm",class:{"vc-disabled":!(Ce.hours>=0)}},[it("button",{class:{active:Ce.isAM,"vc-disabled":Ce.amDisabled},attrs:{type:"button"},on:{click:function(St){St.preventDefault(),Ce.isAM=!0}}},[Ce._v(" AM ")]),it("button",{class:{active:!Ce.isAM,"vc-disabled":Ce.pmDisabled},attrs:{type:"button"},on:{click:function(St){St.preventDefault(),Ce.isAM=!1}}},[Ce._v(" PM ")])])],1)])])},pa=[],Wo=function(){var Ce=this,Be=Ce.$createElement,it=Ce._self._c||Be;return it("div",{staticClass:"vc-select"},[it("select",Ce._b({directives:[{name:"model",rawName:"v-model",value:Ce.model,expression:"model"}],on:{change:function(St){var Ft=Array.prototype.filter.call(St.target.options,function(Gt){return Gt.selected}).map(function(Gt){var ln="_value"in Gt?Gt._value:Gt.value;return ln});Ce.model=St.target.multiple?Ft:Ft[0]}}},"select",Ce.$attrs,!1),Ce._l(Ce.options,function(St){return it("option",{key:St.value,attrs:{disabled:St.disabled},domProps:{value:St.value}},[Ce._v(" "+Ce._s(St.label)+" ")])}),0),it("div",{staticClass:"vc-select-arrow"},[it("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[it("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})])])])},Fs=[],qo={inheritAttrs:!1,props:{options:Array,value:Number},computed:{model:{get(){return this.value},set(Ce){this.$emit("input",Ce)}}}},Xs=qo,ha=(j("87a9"),cn(Xs,Wo,Fs,!1,null,"7b2eaf0a",null)),Po=ha.exports;const lo=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],Ao=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];var ma={name:"TimePicker",components:{TimeSelect:Po},props:{value:{type:Object,required:!0},locale:{type:Object,required:!0},theme:{type:Object,required:!0},is24hr:{type:Boolean,default:!0},showBorder:Boolean,isDisabled:Boolean,hourOptions:Array,minuteOptions:Array},computed:{date(){let Ce=this.locale.normalizeDate(this.value);return this.value.hours===24&&(Ce=new Date(Ce.getTime()-1)),Ce},hours:{get(){return this.value.hours},set(Ce){this.updateValue(Ce,this.minutes)}},minutes:{get(){return this.value.minutes},set(Ce){this.updateValue(this.hours,Ce)}},isAM:{get(){return this.value.hours<12},set(Ce){let Be=this.hours;Ce&&Be>=12?Be-=12:!Ce&&Be<12&&(Be+=12),this.updateValue(Be,this.minutes)}},amHourOptions(){var Ce=this;return lo.filter(function(Be){return Ce.hourOptions.some(function(it){return it.value===Be.value})})},pmHourOptions(){var Ce=this;return Ao.filter(function(Be){return Ce.hourOptions.some(function(it){return it.value===Be.value})})},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!Object(Mt.b)(this.amHourOptions)},pmDisabled(){return!Object(Mt.b)(this.pmHourOptions)}},methods:{updateValue(Ce,Be){Ce===this.hours&&Be===this.minutes||this.$emit("input",{...this.value,hours:Ce,minutes:Be,seconds:0,milliseconds:0})}}},Yo=ma,Ko=(j("27e3"),cn(Yo,hi,pa,!1,null,"f4e11af8",null)),co=Ko.exports;const ms={type:"auto",mask:"iso",timeAdjust:""},gs=[ms,ms],_s={DATE:"date",DATE_TIME:"datetime",TIME:"time"},Ii={NONE:0,START:1,END:2,BOTH:3};var uo,ss,Ps={name:"DatePicker",render(Ce){var Be=this;const it=function(){if(!Be.dateParts)return null;const Gt=Be.isRange?Be.dateParts:[Be.dateParts[0]];return Ce("div",[...Gt.map(function(ln,un){const Dn=Be.$locale.getHourOptions(Be.modelConfig_[un].validHours,ln),wn=Be.$locale.getMinuteOptions(Be.modelConfig_[un].minuteIncrement,ln);return Ce(co,{props:{value:ln,locale:Be.$locale,theme:Be.$theme,is24hr:Be.is24hr,minuteIncrement:Be.minuteIncrement,showBorder:!Be.isTime,isDisabled:Be.isDateTime&&!ln.isValid||Be.isDragging,hourOptions:Dn,minuteOptions:wn},on:{input:function(qn){return Be.onTimeInput(qn,un===0)}}})}),Be.$scopedSlots.footer&&Be.$scopedSlots.footer()])},St=function(){return Ce(Ls,{attrs:{...Be.$attrs,attributes:Be.attributes_,theme:Be.$theme,locale:Be.$locale},props:{minDate:Be.minDateExact||Be.minDate,maxDate:Be.maxDateExact||Be.maxDate,disabledDates:Be.disabledDates,availableDates:Be.availableDates},on:{...Be.$listeners,dayclick:Be.onDayClick,daykeydown:Be.onDayKeydown,daymouseenter:Be.onDayMouseEnter},scopedSlots:{...Be.$scopedSlots,footer:Be.isDateTime?it:Be.$scopedSlots.footer},ref:"calendar"})},Ft=function(){return Be.isTime?Ce("div",{class:["vc-container","vc-"+Be.$theme.color,{"vc-is-dark":Be.$theme.isDark}]},[it()]):St()};return this.$scopedSlots.default&&Ce("span",[this.$scopedSlots.default(this.slotArgs),Ce(or,{props:{id:this.datePickerPopoverId,placement:"bottom-start",contentClass:"vc-container"+(this.isDark?" vc-is-dark":"")},on:{beforeShow:function(Gt){return Be.$emit("popoverWillShow",Gt)},afterShow:function(Gt){return Be.$emit("popoverDidShow",Gt)},beforeHide:function(Gt){return Be.$emit("popoverWillHide",Gt)},afterHide:function(Gt){return Be.$emit("popoverDidHide",Gt)}},scopedSlots:{default(){return Ft()}},ref:"popover"})])||Ft()},mixins:[ni],props:{mode:{type:String,default:_s.DATE},value:{type:null,required:!0},modelConfig:{type:Object,default:function(){return{}}},is24hr:Boolean,minuteIncrement:Number,isRequired:Boolean,isRange:Boolean,updateOnInput:Boolean,inputDebounce:Number,popover:{type:Object,default:function(){return{}}},dragAttribute:Object,selectAttribute:Object,attributes:Array,validHours:[Object,Array,Function]},data(){return{value_:null,dateParts:null,activeDate:"",dragValue:null,inputValues:["",""],updateTimeout:null,watchValue:!0,datePickerPopoverId:Object(Mt.c)()}},computed:{updateOnInput_(){return this.propOrDefault("updateOnInput","datePicker.updateOnInput")},inputDebounce_(){return this.propOrDefault("inputDebounce","datePicker.inputDebounce")},isDate(){return this.mode.toLowerCase()===_s.DATE},isDateTime(){return this.mode.toLowerCase()===_s.DATE_TIME},isTime(){return this.mode.toLowerCase()===_s.TIME},isDragging(){return!!this.dragValue&&this.isRange},modelConfig_(){return this.normalizeConfig(this.modelConfig,gs)},inputMask(){const Ce=this.$locale.masks;return this.isTime?this.is24hr?Ce.inputTime24hr:Ce.inputTime:this.isDateTime?this.is24hr?Ce.inputDateTime24hr:Ce.inputDateTime:this.$locale.masks.input},inputMaskHasTime(){return/[Hh]/g.test(this.inputMask)},inputMaskHasDate(){return/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(this.inputMask)},inputMaskPatch(){return this.inputMaskHasTime&&this.inputMaskHasDate?xr.a.DATE_TIME:this.inputMaskHasDate?xr.a.DATE:this.inputMaskHasTime?xr.a.TIME:void 0},slotArgs(){var Ce=this;const{isRange:Be,isDragging:it,updateValue:St,showPopover:Ft,hidePopover:Gt,togglePopover:ln}=this,un=Be?{start:this.inputValues[0],end:this.inputValues[1]}:this.inputValues[0],Dn=[!0,!1].map(function(qn){return{input:Ce.onInputInput(qn),change:Ce.onInputChange(qn),keyup:Ce.onInputKeyup,...bt({...Ce.popover_,id:Ce.datePickerPopoverId,callback:function(yr){yr.action==="show"&&yr.completed&&Ce.onInputShow(qn)}})}}),wn=Be?{start:Dn[0],end:Dn[1]}:Dn[0];return{inputValue:un,inputEvents:wn,isDragging:it,updateValue:St,showPopover:Ft,hidePopover:Gt,togglePopover:ln,getPopoverTriggerEvents:bt}},popover_(){return this.propOrDefault("popover","datePicker.popover","merge")},selectAttribute_(){if(!this.hasValue(this.value_))return null;const Ce={key:"select-drag",...this.selectAttribute,dates:this.value_,pinPage:!0},{dot:Be,bar:it,highlight:St,content:Ft}=Ce;return Be||it||St||Ft||(Ce.highlight=!0),Ce},dragAttribute_(){if(!this.isRange||!this.hasValue(this.dragValue))return null;const Ce={key:"select-drag",...this.dragAttribute,dates:this.dragValue},{dot:Be,bar:it,highlight:St,content:Ft}=Ce;return Be||it||St||Ft||(Ce.highlight={startEnd:{fillMode:"outline"}}),Ce},attributes_(){const Ce=Object(tn.h)(this.attributes)?[...this.attributes]:[];return this.dragAttribute_?Ce.push(this.dragAttribute_):this.selectAttribute_&&Ce.push(this.selectAttribute_),Ce}},watch:{inputMask(){this.formatInput()},value(Ce){this.watchValue&&this.forceUpdateValue(Ce,{config:this.modelConfig_,notify:!1,formatInput:!0,hidePopover:!1})},value_(){this.refreshDateParts()},dragValue(){this.refreshDateParts()},timezone(){this.refreshDateParts(),this.forceUpdateValue(this.value_,{formatInput:!0})}},created(){this.value_=this.normalizeValue(this.value,this.modelConfig_,xr.a.DATE_TIME,Ii.BOTH),this.forceUpdateValue(this.value,{config:this.modelConfig_,formatInput:!0,hidePopover:!1}),this.refreshDateParts()},mounted(){Object(Mt.k)(document,"keydown",this.onDocumentKeyDown),Object(Mt.k)(document,"click",this.onDocumentClick)},destroyed(){Object(Mt.j)(document,"keydown",this.onDocumentKeyDown),Object(Mt.j)(document,"click",this.onDocumentClick)},methods:{getDateParts(Ce){return this.$locale.getDateParts(Ce)},getDateFromParts(Ce){return this.$locale.getDateFromParts(Ce)},refreshDateParts(){var Ce=this;const Be=this.dragValue||this.value_,it=[];this.isRange?(Be&&Be.start?it.push(this.getDateParts(Be.start)):it.push({}),Be&&Be.end?it.push(this.getDateParts(Be.end)):it.push({})):Be?Be&&Be.start?it.push(this.getDateParts(Be.start)):it.push(this.getDateParts(Be)):it.push({}),this.$nextTick(function(){return Ce.dateParts=it})},onDocumentKeyDown(Ce){this.dragValue&&Ce.key==="Escape"&&(this.dragValue=null)},onDocumentClick(Ce){document.body.contains(Ce.target)&&!Object(Mt.e)(this.$el,Ce.target)&&(this.dragValue=null,this.formatInput())},onDayClick(Ce){this.handleDayClick(Ce),this.$emit("dayclick",Ce)},onDayKeydown(Ce){switch(Ce.event.key){case" ":case"Enter":this.handleDayClick(Ce),Ce.event.preventDefault();break;case"Escape":this.hidePopover()}this.$emit("daykeydown",Ce)},handleDayClick(Ce){const{keepVisibleOnInput:Be,visibility:it}=this.popover_,St={patch:xr.a.DATE,adjustTime:!0,formatInput:!0,hidePopover:this.isDate&&!Be&&it!=="visible"};this.isRange?(this.isDragging?this.dragTrackingValue.end=Ce.date:this.dragTrackingValue={...Ce.range},St.isDragging=!this.isDragging,St.rangePriority=St.isDragging?Ii.NONE:Ii.BOTH,St.hidePopover=St.hidePopover&&!St.isDragging,this.updateValue(this.dragTrackingValue,St)):(St.clearIfEqual=!this.isRequired,this.updateValue(Ce.date,St))},onDayMouseEnter(Ce){this.isDragging&&(this.dragTrackingValue.end=Ce.date,this.updateValue(this.dragTrackingValue,{patch:xr.a.DATE,adjustTime:!0,formatInput:!0,hidePopover:!1,rangePriority:Ii.NONE}))},onTimeInput(Ce,Be){var it=this;let St=null;if(this.isRange){const Ft=Be?Ce:this.dateParts[0],Gt=Be?this.dateParts[1]:Ce;St={start:Ft,end:Gt}}else St=Ce;this.updateValue(St,{patch:xr.a.TIME,rangePriority:Be?Ii.START:Ii.END}).then(function(){return it.adjustPageRange(Be)})},onInputInput(Ce){var Be=this;return function(it){Be.updateOnInput_&&Be.onInputUpdate(it.target.value,Ce,{formatInput:!1,hidePopover:!1,debounce:Be.inputDebounce_})}},onInputChange(Ce){var Be=this;return function(it){Be.onInputUpdate(it.target.value,Ce,{formatInput:!0,hidePopover:!1})}},onInputUpdate(Ce,Be,it){var St=this;this.inputValues.splice(Be?0:1,1,Ce);const Ft=this.isRange?{start:this.inputValues[0],end:this.inputValues[1]||this.inputValues[0]}:Ce,Gt={type:"string",mask:this.inputMask};this.updateValue(Ft,{...it,config:Gt,patch:this.inputMaskPatch,rangePriority:Be?Ii.START:Ii.END}).then(function(){return St.adjustPageRange(Be)})},onInputShow(Ce){this.adjustPageRange(Ce)},onInputKeyup(Ce){Ce.key==="Escape"&&this.updateValue(this.value_,{formatInput:!0,hidePopover:!0})},normalizeConfig(Ce,Be=this.modelConfig_){var it=this;return Ce=Object(tn.h)(Ce)?Ce:[Ce.start||Ce,Ce.end||Ce],Be.map(function(St,Ft){return{validHours:it.validHours,minuteIncrement:it.minuteIncrement,...St,...Ce[Ft]}})},updateValue(Ce,Be={}){var it=this;return clearTimeout(this.updateTimeout),new Promise(function(St){const{debounce:Ft,...Gt}=Be;Ft>0?it.updateTimeout=setTimeout(function(){it.forceUpdateValue(Ce,Gt),St(it.value_)},Ft):(it.forceUpdateValue(Ce,Gt),St(it.value_))})},forceUpdateValue(Ce,{config:Be=this.modelConfig_,patch:it=xr.a.DATE_TIME,clearIfEqual:St=!1,formatInput:Ft=!0,hidePopover:Gt=!1,isDragging:ln=this.isDragging,rangePriority:un=Ii.BOTH}={}){var Dn=this;Be=this.normalizeConfig(Be);let wn=this.normalizeValue(Ce,Be,it,un);!wn&&this.isRequired&&(wn=this.value_),wn=this.adjustTimeForValue(wn,Be);const qn=this.valueIsDisabled(wn);if(qn){if(ln)return;wn=this.value_,Gt=!1}const yr=ln?"dragValue":"value_";let wr=!this.valuesAreEqual(this[yr],wn);if(qn||wr||!St||(wn=null,wr=!0),wr){this.$set(this,yr,wn),ln||(this.dragValue=null);const Hr=this.denormalizeValue(wn),Jr=this.isDragging?"drag":"input";this.watchValue=!1,this.$emit(Jr,Hr),this.$nextTick(function(){return Dn.watchValue=!0})}Gt&&this.hidePopover(),Ft&&this.formatInput()},hasValue(Ce){return this.isRange?Object(tn.m)(Ce)&&!!Ce.start&&!!Ce.end:!!Ce},normalizeValue(Ce,Be,it,St){if(!this.hasValue(Ce))return null;if(this.isRange){const Ft={},Gt=Ce.start>Ce.end?Ce.end:Ce.start;Ft.start=this.normalizeDate(Gt,{...Be[0],fillDate:this.value_&&this.value_.start||Be[0].fillDate,patch:it});const ln=Ce.start>Ce.end?Ce.start:Ce.end;return Ft.end=this.normalizeDate(ln,{...Be[1],fillDate:this.value_&&this.value_.end||Be[1].fillDate,patch:it}),this.sortRange(Ft,St)}return this.normalizeDate(Ce,{...Be[0],fillDate:this.value_||Be[0].fillDate,patch:it})},adjustTimeForValue(Ce,Be){return this.hasValue(Ce)?this.isRange?{start:this.$locale.adjustTimeForDate(Ce.start,Be[0]),end:this.$locale.adjustTimeForDate(Ce.end,Be[1])}:this.$locale.adjustTimeForDate(Ce,Be[0]):null},sortRange(Ce,Be=Ii.NONE){const{start:it,end:St}=Ce;if(it>St)switch(Be){case Ii.START:return{start:it,end:it};case Ii.END:return{start:St,end:St};case Ii.BOTH:return{start:St,end:it}}return{start:it,end:St}},denormalizeValue(Ce,Be=this.modelConfig_){return this.isRange?this.hasValue(Ce)?{start:this.$locale.denormalizeDate(Ce.start,Be[0]),end:this.$locale.denormalizeDate(Ce.end,Be[1])}:null:this.$locale.denormalizeDate(Ce,Be[0])},valuesAreEqual(Ce,Be){if(this.isRange){const it=this.hasValue(Ce),St=this.hasValue(Be);return!it&&!St||it===St&&Object(Mt.d)(Ce.start,Be.start)&&Object(Mt.d)(Ce.end,Be.end)}return Object(Mt.d)(Ce,Be)},valueIsDisabled(Ce){return this.hasValue(Ce)&&this.disabledAttribute&&this.disabledAttribute.intersectsDate(Ce)},formatInput(){var Ce=this;this.$nextTick(function(){const Be=Ce.normalizeConfig({type:"string",mask:Ce.inputMask}),it=Ce.denormalizeValue(Ce.dragValue||Ce.value_,Be);Ce.isRange?Ce.inputValues=[it&&it.start,it&&it.end]:Ce.inputValues=[it,""]})},showPopover(Ce={}){Re({ref:this.$el,...this.popover_,...Ce,isInteractive:!0,id:this.datePickerPopoverId})},hidePopover(Ce={}){je({hideDelay:10,...this.popover_,...Ce,id:this.datePickerPopoverId})},togglePopover(Ce){Ke({ref:this.$el,...this.popover_,...Ce,isInteractive:!0,id:this.datePickerPopoverId})},adjustPageRange(Ce){var Be=this;this.$nextTick(function(){const it=Be.$refs.calendar,St=Be.getPageForValue(Ce),Ft=Ce?1:-1;St&&it&&!Object(Mt.p)(St,it.firstPage,it.lastPage)&&it.move(St,{position:Ft,transition:"fade"})})},getPageForValue(Ce){return this.hasValue(this.value_)?this.pageForDate(this.isRange?this.value_[Ce?"start":"end"]:this.value_):null},move(Ce,Be){return this.$refs.calendar?this.$refs.calendar.move(Ce,Be):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))},focusDate(Ce,Be){return this.$refs.calendar?this.$refs.calendar.focusDate(Ce,Be):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))}}},Ro=Ps,ga=cn(Ro,uo,ss,!1,null,null,null),Go=ga.exports},"2b10":function(N,B){function j(U,q,Y){var K=-1,G=U.length;q<0&&(q=-q>G?0:G+q),Y=Y>G?G:Y,Y<0&&(Y+=G),G=q>Y?0:Y-q>>>0,q>>>=0;for(var J=Array(G);++K<G;)J[K]=U[K+q];return J}N.exports=j},"2b3e":function(N,B,j){var U=j("585a"),q=typeof self=="object"&&self&&self.Object===Object&&self,Y=U||q||Function("return this")();N.exports=Y},"2d00":function(N,B,j){var U,q,Y=j("da84"),K=j("342f"),G=Y.process,J=G&&G.versions,Z=J&&J.v8;Z?(U=Z.split("."),q=U[0]<4?1:U[0]+U[1]):K&&(U=K.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=K.match(/Chrome\/(\d+)/),U&&(q=U[1]))),N.exports=q&&+q},"2d7c":function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length,G=0,J=[];++Y<K;){var Z=U[Y];q(Z,Y,U)&&(J[G++]=Z)}return J}N.exports=j},"2dcb":function(N,B,j){var U=j("91e9"),q=U(Object.getPrototypeOf,Object);N.exports=q},"2ec1":function(N,B,j){var U=j("100e"),q=j("9aff");function Y(K){return U(function(G,J){var Z=-1,ee=J.length,te=ee>1?J[ee-1]:void 0,re=ee>2?J[2]:void 0;for(te=K.length>3&&typeof te=="function"?(ee--,te):void 0,re&&q(J[0],J[1],re)&&(te=ee<3?void 0:te,ee=1),G=Object(G);++Z<ee;){var se=J[Z];se&&K(G,se,Z,te)}return G})}N.exports=Y},"2fa3":function(N,B,j){j.d(B,"m",function(){return q}),j.d(B,"f",function(){return Y}),j.d(B,"h",function(){return K}),j.d(B,"r",function(){return G}),j.d(B,"o",function(){return J}),j.d(B,"n",function(){return Z}),j.d(B,"p",function(){return ee}),j.d(B,"q",function(){return te}),j.d(B,"a",function(){return re}),j.d(B,"s",function(){return se}),j.d(B,"d",function(){return ne}),j.d(B,"b",function(){return le}),j.d(B,"i",function(){return ge}),j.d(B,"k",function(){return ue}),j.d(B,"j",function(){return _e}),j.d(B,"e",function(){return fe}),j.d(B,"l",function(){return me}),j.d(B,"c",function(){return ve}),j.d(B,"g",function(){return xe}),j("ddb0");var U=j("9404");const q=function(oe,ye,be="0"){for(oe=oe!=null?String(oe):"",ye=ye||2;oe.length<ye;)oe=`${be}${oe}`;return oe},Y=function(oe,ye){return Object(U.k)(oe)?oe(ye):oe},K=function(...oe){const ye={};return oe.forEach(function(be){return Object.entries(be).forEach(function([we,Ae]){ye[we]?Object(U.h)(ye[we])?ye[we].push(Ae):ye[we]=[ye[we],Ae]:ye[we]=Ae})}),ye},G=function(oe){return!!(oe&&oe.month&&oe.year)},J=function(oe,ye){return!(!G(oe)||!G(ye))&&(oe.year===ye.year?oe.month<ye.month:oe.year<ye.year)},Z=function(oe,ye){return!(!G(oe)||!G(ye))&&(oe.year===ye.year?oe.month>ye.month:oe.year>ye.year)},ee=function(oe,ye,be){return!!oe&&!J(oe,ye)&&!Z(oe,be)},te=function(oe,ye){return!(!oe&&ye)&&!(oe&&!ye)&&(!oe&&!ye||oe.month===ye.month&&oe.year===ye.year)},re=function({month:oe,year:ye},be){const we=be>0?1:-1;for(let Ae=0;Ae<Math.abs(be);Ae++)oe+=we,oe>12?(oe=1,ye++):oe<1&&(oe=12,ye--);return{month:oe,year:ye}},se=function(oe,ye){if(!G(oe)||!G(ye))return[];const be=[];for(;!Z(oe,ye);)be.push(oe),oe=re(oe,1);return be};function ne(oe,ye){const be=Object(U.j)(oe),we=Object(U.j)(ye);return!be&&!we||be===we&&oe.getTime()===ye.getTime()}const le=function(oe){return Object(U.h)(oe)&&oe.length},ge=function(oe,ye,be){const we=[];return be.forEach(function(Ae){const ke=Ae.name||Ae.toString(),Oe=Ae.mixin,Me=Ae.validate;if(Object.prototype.hasOwnProperty.call(oe,ke)){const ze=Me?Me(oe[ke]):oe[ke];ye[ke]=Oe&&Object(U.m)(ze)?{...Oe,...ze}:ze,we.push(ke)}}),{target:ye,assigned:we.length?we:null}},ue=function(oe,ye,be,we){oe&&ye&&be&&oe.addEventListener(ye,be,we)},_e=function(oe,ye,be,we){oe&&ye&&oe.removeEventListener(ye,be,we)},fe=function(oe,ye){return!!oe&&!!ye&&(oe===ye||oe.contains(ye))},me=function(oe,ye){oe.key!==" "&&oe.key!=="Enter"||(ye(oe),oe.preventDefault())},ve=function(){function oe(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return`${oe()+oe()}-${oe()}-${oe()}-${oe()}-${oe()}${oe()}${oe()}`};function xe(oe){let ye,be=0,we=0;if(oe.length===0)return be;for(we=0;we<oe.length;we++)ye=oe.charCodeAt(we),be=(be<<5)-be+ye,be|=0;return be}},"2fcc":function(N,B){function j(U){var q=this.__data__,Y=q.delete(U);return this.size=q.size,Y}N.exports=j},3092:function(N,B,j){var U=j("4284"),q=j("badf"),Y=j("361d"),K=j("6747"),G=j("9aff");function J(Z,ee,te){var re=K(Z)?U:Y;return te&&G(Z,ee,te)&&(ee=void 0),re(Z,q(ee,3))}N.exports=J},"30c9":function(N,B,j){var U=j("9520"),q=j("b218");function Y(K){return K!=null&&q(K.length)&&!U(K)}N.exports=Y},"32b3":function(N,B,j){var U=j("872a"),q=j("9638"),Y=Object.prototype,K=Y.hasOwnProperty;function G(J,Z,ee){var te=J[Z];K.call(J,Z)&&q(te,ee)&&(ee!==void 0||Z in J)||U(J,Z,ee)}N.exports=G},"32f4":function(N,B,j){var U=j("2d7c"),q=j("d327"),Y=Object.prototype,K=Y.propertyIsEnumerable,G=Object.getOwnPropertySymbols,J=G?function(Z){return Z==null?[]:(Z=Object(Z),U(G(Z),function(ee){return K.call(Z,ee)}))}:q;N.exports=J},"342f":function(N,B,j){var U=j("d066");N.exports=U("navigator","userAgent")||""},"34ac":function(N,B,j){var U=j("9520"),q=j("1368"),Y=j("1a8c"),K=j("dc57"),G=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,Z=Function.prototype,ee=Object.prototype,te=Z.toString,re=ee.hasOwnProperty,se=RegExp("^"+te.call(re).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ne(le){if(!Y(le)||q(le))return!1;var ge=U(le)?se:J;return ge.test(K(le))}N.exports=ne},"34e9":function(N,B,j){(function(U){j("ddb0");var q=j("2af9"),Y=j("ed08");function K(Z,ee){if(K.installed)return;K.installed=!0;const te=Y.setupCalendar(ee);Object.entries(q).forEach(function([re,se]){Z.component(`${te.componentPrefix}${re}`,se)})}j.d(B,"c",function(){return q.Calendar}),j.d(B,"d",function(){return q.CalendarNav}),j.d(B,"f",function(){return q.DatePicker}),j.d(B,"h",function(){return q.Popover}),j.d(B,"a",function(){return Y.Attribute}),j.d(B,"b",function(){return Y.AttributeStore}),j.d(B,"e",function(){return Y.DateInfo}),j.d(B,"g",function(){return Y.Locale}),j.d(B,"i",function(){return Y.addHorizontalSwipeHandler}),j.d(B,"j",function(){return Y.addPages}),j.d(B,"k",function(){return Y.arrayHasItems}),j.d(B,"l",function(){return Y.createGuid}),j.d(B,"m",function(){return Y.datesAreEqual}),j.d(B,"o",function(){return Y.elementContains}),j.d(B,"p",function(){return Y.evalFn}),j.d(B,"q",function(){return Y.hash}),j.d(B,"r",function(){return Y.mergeEvents}),j.d(B,"s",function(){return Y.mixinOptionalProps}),j.d(B,"t",function(){return Y.off}),j.d(B,"u",function(){return Y.on}),j.d(B,"v",function(){return Y.onSpaceOrEnter}),j.d(B,"w",function(){return Y.pad}),j.d(B,"x",function(){return Y.pageIsAfterPage}),j.d(B,"y",function(){return Y.pageIsBeforePage}),j.d(B,"z",function(){return Y.pageIsBetweenPages}),j.d(B,"A",function(){return Y.pageIsEqualToPage}),j.d(B,"B",function(){return Y.pageIsValid}),j.d(B,"C",function(){return Y.pageRangeToArray}),j.d(B,"D",function(){return Y.setupCalendar});const G={install:K,...q,...Y};let J=null;typeof window<"u"?J=window.Vue:typeof U<"u"&&(J=U.Vue),J&&J.use(G),B.n=G}).call(this,j("c8ba"))},"361d":function(N,B,j){var U=j("48a0");function q(Y,K){var G;return U(Y,function(J,Z,ee){return G=K(J,Z,ee),!G}),!!G}N.exports=q},3698:function(N,B){function j(U,q){return U==null?void 0:U[q]}N.exports=j},3729:function(N,B,j){var U=j("9e69"),q=j("00fd"),Y=j("29f3"),K="[object Null]",G="[object Undefined]",J=U?U.toStringTag:void 0;function Z(ee){return ee==null?ee===void 0?G:K:J&&J in Object(ee)?q(ee):Y(ee)}N.exports=Z},"37e8":function(N,B,j){var U=j("83ab"),q=j("9bf2"),Y=j("825a"),K=j("df75");N.exports=U?Object.defineProperties:function(G,J){Y(G);for(var Z,ee=K(J),te=ee.length,re=0;te>re;)q.f(G,Z=ee[re++],J[Z]);return G}},3818:function(N,B,j){var U=j("7e64"),q=j("8057"),Y=j("32b3"),K=j("5b01"),G=j("0f0f"),J=j("e538"),Z=j("4359"),ee=j("54eb"),te=j("1041"),re=j("a994"),se=j("1bac"),ne=j("42a2"),le=j("c87c"),ge=j("c2b6"),ue=j("fa21"),_e=j("6747"),fe=j("0d24"),me=j("cc45"),ve=j("1a8c"),xe=j("d7ee"),oe=j("ec69"),ye=j("9934"),be=1,we=2,Ae=4,ke="[object Arguments]",Oe="[object Array]",Me="[object Boolean]",ze="[object Date]",Fe="[object Error]",Ze="[object Function]",lt="[object GeneratorFunction]",qe="[object Map]",Ve="[object Number]",At="[object Object]",Nt="[object RegExp]",zt="[object Set]",Ht="[object String]",qt="[object Symbol]",Qt="[object WeakMap]",Jt="[object ArrayBuffer]",yn="[object DataView]",_n="[object Float32Array]",Hn="[object Float64Array]",On="[object Int8Array]",Fn="[object Int16Array]",In="[object Int32Array]",dn="[object Uint8Array]",kt="[object Uint8ClampedArray]",Ye="[object Uint16Array]",_t="[object Uint32Array]",We={};function Pe(Se,$e,Ue,Qe,mt,ht){var at,ut=$e&be,Rt=$e&we,fn=$e&Ae;if(Ue&&(at=mt?Ue(Se,Qe,mt,ht):Ue(Se)),at!==void 0)return at;if(!ve(Se))return Se;var Bn=_e(Se);if(Bn){if(at=le(Se),!ut)return Z(Se,at)}else{var en=ne(Se),xn=en==Ze||en==lt;if(fe(Se))return J(Se,ut);if(en==At||en==ke||xn&&!mt){if(at=Rt||xn?{}:ue(Se),!ut)return Rt?te(Se,G(at,Se)):ee(Se,K(at,Se))}else{if(!We[en])return mt?Se:{};at=ge(Se,en,ut)}}ht||(ht=new U);var ot=ht.get(Se);if(ot)return ot;ht.set(Se,at),xe(Se)?Se.forEach(function(Yt){at.add(Pe(Yt,$e,Ue,Yt,Se,ht))}):me(Se)&&Se.forEach(function(Yt,Wt){at.set(Wt,Pe(Yt,$e,Ue,Wt,Se,ht))});var dt=fn?Rt?se:re:Rt?ye:oe,Ot=Bn?void 0:dt(Se);return q(Ot||Se,function(Yt,Wt){Ot&&(Wt=Yt,Yt=Se[Wt]),Y(at,Wt,Pe(Yt,$e,Ue,Wt,Se,ht))}),at}We[ke]=We[Oe]=We[Jt]=We[yn]=We[Me]=We[ze]=We[_n]=We[Hn]=We[On]=We[Fn]=We[In]=We[qe]=We[Ve]=We[At]=We[Nt]=We[zt]=We[Ht]=We[qt]=We[dn]=We[kt]=We[Ye]=We[_t]=!0,We[Fe]=We[Ze]=We[Qt]=!1,N.exports=Pe},3852:function(N,B,j){var U=j("96f3"),q=j("e2c0");function Y(K,G){return K!=null&&q(K,G,U)}N.exports=Y},"39ff":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"WeakMap");N.exports=Y},"3b4a":function(N,B,j){var U=j("0b07"),q=function(){try{var Y=U(Object,"defineProperty");return Y({},"",{}),Y}catch{}}();N.exports=q},"3bb4":function(N,B,j){var U=j("08cc"),q=j("ec69");function Y(K){for(var G=q(K),J=G.length;J--;){var Z=G[J],ee=K[Z];G[J]=[Z,ee,U(ee)]}return G}N.exports=Y},"3bbe":function(N,B,j){var U=j("861d");N.exports=function(q){if(!U(q)&&q!==null)throw TypeError("Can't set "+String(q)+" as a prototype");return q}},"3c55":function(N,B,j){var U=j("e969"),q=j.n(U);q.a},"3db9":function(N,B,j){var U=j("adc8");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2b7f9a9d",U,!0,{sourceMap:!1,shadowMode:!1})},"3ee2":function(N,B,j){var U=j("dc8c");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("13d41af5",U,!0,{sourceMap:!1,shadowMode:!1})},"3eea":function(N,B,j){var U=j("7948"),q=j("3818"),Y=j("4bb5"),K=j("e2e4"),G=j("8eeb"),J=j("e0e7"),Z=j("c6cf"),ee=j("1bac"),te=1,re=2,se=4,ne=Z(function(le,ge){var ue={};if(le==null)return ue;var _e=!1;ge=U(ge,function(me){return me=K(me,le),_e||(_e=me.length>1),me}),G(le,ee(le),ue),_e&&(ue=q(ue,te|re|se,J));for(var fe=ge.length;fe--;)Y(ue,ge[fe]);return ue});N.exports=ne},"3f84":function(N,B,j){var U=j("85e3"),q=j("100e"),Y=j("e031"),K=j("2411"),G=q(function(J){return J.push(void 0,Y),U(K,void 0,J)});N.exports=G},"3f8c":function(N,B){N.exports={}},"41c3":function(N,B,j){var U=j("1a8c"),q=j("eac5"),Y=j("ec8c"),K=Object.prototype,G=K.hasOwnProperty;function J(Z){if(!U(Z))return Y(Z);var ee=q(Z),te=[];for(var re in Z)(re!="constructor"||!ee&&G.call(Z,re))&&te.push(re);return te}N.exports=J},4245:function(N,B,j){var U=j("1290");function q(Y,K){var G=Y.__data__;return U(K)?G[typeof K=="string"?"string":"hash"]:G.map}N.exports=q},4284:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length;++Y<K;)if(q(U[Y],Y,U))return!0;return!1}N.exports=j},"428f":function(N,B,j){var U=j("da84");N.exports=U},"42a2":function(N,B,j){var U=j("b5a7"),q=j("79bc"),Y=j("1cec"),K=j("c869"),G=j("39ff"),J=j("3729"),Z=j("dc57"),ee="[object Map]",te="[object Object]",re="[object Promise]",se="[object Set]",ne="[object WeakMap]",le="[object DataView]",ge=Z(U),ue=Z(q),_e=Z(Y),fe=Z(K),me=Z(G),ve=J;(U&&ve(new U(new ArrayBuffer(1)))!=le||q&&ve(new q)!=ee||Y&&ve(Y.resolve())!=re||K&&ve(new K)!=se||G&&ve(new G)!=ne)&&(ve=function(xe){var oe=J(xe),ye=oe==te?xe.constructor:void 0,be=ye?Z(ye):"";if(be)switch(be){case ge:return le;case ue:return ee;case _e:return re;case fe:return se;case me:return ne}return oe}),N.exports=ve},4359:function(N,B){function j(U,q){var Y=-1,K=U.length;for(q||(q=Array(K));++Y<K;)q[Y]=U[Y];return q}N.exports=j},4416:function(N,B){function j(U){var q=U==null?0:U.length;return q?U[q-1]:void 0}N.exports=j},"44ad":function(N,B,j){var U=j("d039"),q=j("c6b6"),Y="".split;N.exports=U(function(){return!Object("z").propertyIsEnumerable(0)})?function(K){return q(K)=="String"?Y.call(K,""):Object(K)}:Object},"44d2":function(N,B,j){var U=j("b622"),q=j("7c73"),Y=j("9bf2"),K=U("unscopables"),G=Array.prototype;G[K]==null&&Y.f(G,K,{configurable:!0,value:q(null)}),N.exports=function(J){G[K][J]=!0}},4889:function(N,B,j){var U=j("df9e"),q=j.n(U);q.a},"48a0":function(N,B,j){var U=j("242e"),q=j("950a"),Y=q(U);N.exports=Y},4930:function(N,B,j){var U=j("2d00"),q=j("d039");N.exports=!!Object.getOwnPropertySymbols&&!q(function(){var Y=Symbol();return!String(Y)||!(Object(Y)instanceof Symbol)||!Symbol.sham&&U&&U<41})},"495a":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-pane[data-v-74ad501d]{min-width:250px}.vc-header[data-v-74ad501d]{display:flex;justify-content:center;align-items:center;padding:10px 18px 0 18px}.vc-header.align-left[data-v-74ad501d]{justify-content:flex-start}.vc-header.align-right[data-v-74ad501d]{justify-content:flex-end}.vc-title[data-v-74ad501d]{font-size:var(--text-lg);color:var(--gray-800);font-weight:var(--font-semibold);line-height:28px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.vc-title[data-v-74ad501d]:hover{opacity:.75}.vc-weeknumber[data-v-74ad501d]{position:relative}.vc-weeknumber[data-v-74ad501d],.vc-weeknumber-content[data-v-74ad501d]{display:flex;justify-content:center;align-items:center}.vc-weeknumber-content[data-v-74ad501d]{font-size:var(--text-xs);font-weight:var(--font-medium);font-style:italic;width:28px;height:28px;margin-top:2px;color:var(--gray-500);-webkit-user-select:none;user-select:none}.vc-weeknumber-content.is-left-outside[data-v-74ad501d]{position:absolute;left:var(--weeknumber-offset)}.vc-weeknumber-content.is-right-outside[data-v-74ad501d]{position:absolute;right:var(--weeknumber-offset)}.vc-weeks[data-v-74ad501d]{display:grid;grid-template-columns:repeat(7,1fr);position:relative;-webkit-overflow-scrolling:touch;padding:5px;min-width:250px}.vc-weeks.vc-show-weeknumbers[data-v-74ad501d]{grid-template-columns:auto repeat(7,1fr)}.vc-weeks.vc-show-weeknumbers.is-right[data-v-74ad501d]{grid-template-columns:repeat(7,1fr) auto}.vc-weekday[data-v-74ad501d]{text-align:center;color:var(--gray-500);font-size:var(--text-sm);font-weight:var(--font-bold);line-height:14px;padding-top:4px;padding-bottom:8px;cursor:default;-webkit-user-select:none;user-select:none}.vc-is-dark .vc-header[data-v-74ad501d]{color:var(--gray-200)}.vc-is-dark .vc-title[data-v-74ad501d]{color:var(--gray-100)}.vc-is-dark .vc-weekday[data-v-74ad501d]{color:var(--accent-200)}",""]),N.exports=B},"499e":function(N,B,j){function U(ve,xe){for(var oe=[],ye={},be=0;be<xe.length;be++){var we=xe[be],Ae=we[0],ke=we[1],Oe=we[2],Me=we[3],ze={id:ve+":"+be,css:ke,media:Oe,sourceMap:Me};ye[Ae]?ye[Ae].parts.push(ze):oe.push(ye[Ae]={id:Ae,parts:[ze]})}return oe}j.r(B),j.d(B,"default",function(){return ne});var q=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!q)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 Y={},K=q&&(document.head||document.getElementsByTagName("head")[0]),G=null,J=0,Z=!1,ee=function(){},te=null,re="data-vue-ssr-id",se=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function ne(ve,xe,oe,ye){Z=oe,te=ye||{};var be=U(ve,xe);return le(be),function(we){for(var Ae=[],ke=0;ke<be.length;ke++){var Oe=be[ke],Me=Y[Oe.id];Me.refs--,Ae.push(Me)}for(we?(be=U(ve,we),le(be)):be=[],ke=0;ke<Ae.length;ke++)if(Me=Ae[ke],Me.refs===0){for(var ze=0;ze<Me.parts.length;ze++)Me.parts[ze]();delete Y[Me.id]}}}function le(ve){for(var xe=0;xe<ve.length;xe++){var oe=ve[xe],ye=Y[oe.id];if(ye){ye.refs++;for(var be=0;be<ye.parts.length;be++)ye.parts[be](oe.parts[be]);for(;be<oe.parts.length;be++)ye.parts.push(ue(oe.parts[be]));ye.parts.length>oe.parts.length&&(ye.parts.length=oe.parts.length)}else{var we=[];for(be=0;be<oe.parts.length;be++)we.push(ue(oe.parts[be]));Y[oe.id]={id:oe.id,refs:1,parts:we}}}}function ge(){var ve=document.createElement("style");return ve.type="text/css",K.appendChild(ve),ve}function ue(ve){var xe,oe,ye=document.querySelector("style["+re+'~="'+ve.id+'"]');if(ye){if(Z)return ee;ye.parentNode.removeChild(ye)}if(se){var be=J++;ye=G||(G=ge()),xe=fe.bind(null,ye,be,!1),oe=fe.bind(null,ye,be,!0)}else ye=ge(),xe=me.bind(null,ye),oe=function(){ye.parentNode.removeChild(ye)};return xe(ve),function(we){if(we){if(we.css===ve.css&&we.media===ve.media&&we.sourceMap===ve.sourceMap)return;xe(ve=we)}else oe()}}var _e=function(){var ve=[];return function(xe,oe){return ve[xe]=oe,ve.filter(Boolean).join(`
- `)}}();function fe(ve,xe,oe,ye){var be=oe?"":ye.css;if(ve.styleSheet)ve.styleSheet.cssText=_e(xe,be);else{var we=document.createTextNode(be),Ae=ve.childNodes;Ae[xe]&&ve.removeChild(Ae[xe]),Ae.length?ve.insertBefore(we,Ae[xe]):ve.appendChild(we)}}function me(ve,xe){var oe=xe.css,ye=xe.media,be=xe.sourceMap;if(ye&&ve.setAttribute("media",ye),te.ssrId&&ve.setAttribute(re,xe.id),be&&(oe+=`
- /*# sourceURL=`+be.sources[0]+" */",oe+=`
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(be))))+" */"),ve.styleSheet)ve.styleSheet.cssText=oe;else{for(;ve.firstChild;)ve.removeChild(ve.firstChild);ve.appendChild(document.createTextNode(oe))}}},"49f4":function(N,B,j){var U=j("6044");function q(){this.__data__=U?U(null):{},this.size=0}N.exports=q},"4bb5":function(N,B,j){var U=j("e2e4"),q=j("4416"),Y=j("8296"),K=j("f4d6");function G(J,Z){return Z=U(Z,J),J=Y(J,Z),J==null||delete J[K(q(Z))]}N.exports=G},"4cef":function(N,B){var j=/\s/;function U(q){for(var Y=q.length;Y--&&j.test(q.charAt(Y)););return Y}N.exports=U},"4cfe":function(N,B){function j(U){return U===void 0}N.exports=j},"4d64":function(N,B,j){var U=j("fc6a"),q=j("50c4"),Y=j("23cb"),K=function(G){return function(J,Z,ee){var te,re=U(J),se=q(re.length),ne=Y(ee,se);if(G&&Z!=Z){for(;se>ne;)if(te=re[ne++],te!=te)return!0}else for(;se>ne;ne++)if((G||ne in re)&&re[ne]===Z)return G||ne||0;return!G&&-1}};N.exports={includes:K(!0),indexOf:K(!1)}},"4d8c":function(N,B,j){var U=j("5c69");function q(Y){var K=Y==null?0:Y.length;return K?U(Y,1):[]}N.exports=q},"4f50":function(N,B,j){var U=j("b760"),q=j("e538"),Y=j("c8fe"),K=j("4359"),G=j("fa21"),J=j("d370"),Z=j("6747"),ee=j("dcbe"),te=j("0d24"),re=j("9520"),se=j("1a8c"),ne=j("60ed"),le=j("73ac"),ge=j("8adb"),ue=j("8de2");function _e(fe,me,ve,xe,oe,ye,be){var we=ge(fe,ve),Ae=ge(me,ve),ke=be.get(Ae);if(ke)U(fe,ve,ke);else{var Oe=ye?ye(we,Ae,ve+"",fe,me,be):void 0,Me=Oe===void 0;if(Me){var ze=Z(Ae),Fe=!ze&&te(Ae),Ze=!ze&&!Fe&&le(Ae);Oe=Ae,ze||Fe||Ze?Z(we)?Oe=we:ee(we)?Oe=K(we):Fe?(Me=!1,Oe=q(Ae,!0)):Ze?(Me=!1,Oe=Y(Ae,!0)):Oe=[]:ne(Ae)||J(Ae)?(Oe=we,J(we)?Oe=ue(we):se(we)&&!re(we)||(Oe=G(Ae))):Me=!1}Me&&(be.set(Ae,Oe),oe(Oe,Ae,xe,ye,be),be.delete(Ae)),U(fe,ve,Oe)}}N.exports=_e},"501e":function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Number]";function K(G){return typeof G=="number"||q(G)&&U(G)==Y}N.exports=K},"50c4":function(N,B,j){var U=j("a691"),q=Math.min;N.exports=function(Y){return Y>0?q(U(Y),9007199254740991):0}},"50d8":function(N,B){function j(U,q){for(var Y=-1,K=Array(U);++Y<U;)K[Y]=q(Y);return K}N.exports=j},5135:function(N,B,j){var U=j("7b0b"),q={}.hasOwnProperty;N.exports=Object.hasOwn||function(Y,K){return q.call(U(Y),K)}},"51ec":function(N,B,j){j.d(B,"b",function(){return re}),j.d(B,"a",function(){return se});var U=j("8bbf"),q=j.n(U),Y=j("9404"),K=j("23a5"),G=j("7efe"),J=j("85a9"),Z=j("f15d");const ee={componentPrefix:"v",navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:K,masks:G,screens:J,locales:Z.a,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}};let te=null;const re=function(ne){return te||(te=new q.a({data(){return{defaults:Object(Y.c)(ne,ee)}},computed:{locales(){var le=this;return Object(Y.r)(this.defaults.locales,function(ge){return ge.masks=Object(Y.c)(ge.masks,le.defaults.masks),ge})}}})),te.defaults},se={beforeCreate(){re()},computed:{$defaults(){return te.defaults},$locales(){return te.locales}},methods:{propOrDefault(ne,le,ge){return this.passedProp(ne,Object(Y.d)(this.$defaults,le),ge)},passedProp(ne,le,ge){if(Object(Y.e)(this.$options.propsData,ne)){const ue=this[ne];return Object(Y.m)(ue)&&ge==="merge"?Object(Y.c)(ue,le):ue}return le}}}},5319:function(N,B,j){var U=j("d784"),q=j("d039"),Y=j("825a"),K=j("50c4"),G=j("a691"),J=j("1d80"),Z=j("8aa5"),ee=j("0cb2"),te=j("14c3"),re=j("b622"),se=re("replace"),ne=Math.max,le=Math.min,ge=function(me){return me===void 0?me:String(me)},ue=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return!!/./[se]&&/./[se]("a","$0")===""}(),fe=!q(function(){var me=/./;return me.exec=function(){var ve=[];return ve.groups={a:"7"},ve},"".replace(me,"$<a>")!=="7"});U("replace",function(me,ve,xe){var oe=_e?"$":"$0";return[function(ye,be){var we=J(this),Ae=ye==null?void 0:ye[se];return Ae!==void 0?Ae.call(ye,we,be):ve.call(String(we),ye,be)},function(ye,be){if(typeof be=="string"&&be.indexOf(oe)===-1&&be.indexOf("$<")===-1){var we=xe(ve,this,ye,be);if(we.done)return we.value}var Ae=Y(this),ke=String(ye),Oe=typeof be=="function";Oe||(be=String(be));var Me=Ae.global;if(Me){var ze=Ae.unicode;Ae.lastIndex=0}for(var Fe=[];;){var Ze=te(Ae,ke);if(Ze===null||(Fe.push(Ze),!Me))break;var lt=String(Ze[0]);lt===""&&(Ae.lastIndex=Z(ke,K(Ae.lastIndex),ze))}for(var qe="",Ve=0,At=0;At<Fe.length;At++){Ze=Fe[At];for(var Nt=String(Ze[0]),zt=ne(le(G(Ze.index),ke.length),0),Ht=[],qt=1;qt<Ze.length;qt++)Ht.push(ge(Ze[qt]));var Qt=Ze.groups;if(Oe){var Jt=[Nt].concat(Ht,zt,ke);Qt!==void 0&&Jt.push(Qt);var yn=String(be.apply(void 0,Jt))}else yn=ee(Nt,ke,zt,Ht,Qt,be);zt>=Ve&&(qe+=ke.slice(Ve,zt)+yn,Ve=zt+Nt.length)}return qe+ke.slice(Ve)}]},!fe||!ue||_e)},"53b1":function(N,B,j){var U=j("495a");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2a6e04f4",U,!0,{sourceMap:!1,shadowMode:!1})},"54eb":function(N,B,j){var U=j("8eeb"),q=j("32f4");function Y(K,G){return U(K,q(K),G)}N.exports=Y},"55a3":function(N,B){function j(U){return this.__data__.has(U)}N.exports=j},5692:function(N,B,j){var U=j("c430"),q=j("c6cd");(N.exports=function(Y,K){return q[Y]||(q[Y]=K!==void 0?K:{})})("versions",[]).push({version:"3.15.2",mode:U?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(N,B,j){var U=j("d066"),q=j("241c"),Y=j("7418"),K=j("825a");N.exports=U("Reflect","ownKeys")||function(G){var J=q.f(K(G)),Z=Y.f;return Z?J.concat(Z(G)):J}},"57a5":function(N,B,j){var U=j("91e9"),q=U(Object.keys,Object);N.exports=q},"585a":function(N,B,j){(function(U){var q=typeof U=="object"&&U&&U.Object===Object&&U;N.exports=q}).call(this,j("c8ba"))},"5b01":function(N,B,j){var U=j("8eeb"),q=j("ec69");function Y(K,G){return K&&U(G,q(G),K)}N.exports=Y},"5c69":function(N,B,j){var U=j("087d"),q=j("0621");function Y(K,G,J,Z,ee){var te=-1,re=K.length;for(J||(J=q),ee||(ee=[]);++te<re;){var se=K[te];G>0&&J(se)?G>1?Y(se,G-1,J,Z,ee):U(ee,se):Z||(ee[ee.length]=se)}return ee}N.exports=Y},"5c6c":function(N,B){N.exports=function(j,U){return{enumerable:!(1&j),configurable:!(2&j),writable:!(4&j),value:U}}},"5d89":function(N,B,j){var U=j("f8af");function q(Y,K){var G=K?U(Y.buffer):Y.buffer;return new Y.constructor(G,Y.byteOffset,Y.byteLength)}N.exports=q},"5e2e":function(N,B,j){var U=j("28c9"),q=j("69d5"),Y=j("b4c0"),K=j("fba5"),G=j("67ca");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var re=Z[ee];this.set(re[0],re[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},6044:function(N,B,j){var U=j("0b07"),q=U(Object,"create");N.exports=q},"60ed":function(N,B,j){var U=j("3729"),q=j("2dcb"),Y=j("1310"),K="[object Object]",G=Function.prototype,J=Object.prototype,Z=G.toString,ee=J.hasOwnProperty,te=Z.call(Object);function re(se){if(!Y(se)||U(se)!=K)return!1;var ne=q(se);if(ne===null)return!0;var le=ee.call(ne,"constructor")&&ne.constructor;return typeof le=="function"&&le instanceof le&&Z.call(le)==te}N.exports=re},6220:function(N,B,j){var U=j("b1d2"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isDate,G=K?q(K):U;N.exports=G},"62e4":function(N,B){N.exports=function(j){return j.webpackPolyfill||(j.deprecate=function(){},j.paths=[],j.children||(j.children=[]),Object.defineProperty(j,"loaded",{enumerable:!0,get:function(){return j.l}}),Object.defineProperty(j,"id",{enumerable:!0,get:function(){return j.i}}),j.webpackPolyfill=1),j}},"642a":function(N,B,j){var U=j("966f"),q=j("3bb4"),Y=j("20ec");function K(G){var J=q(G);return J.length==1&&J[0][2]?Y(J[0][0],J[0][1]):function(Z){return Z===G||U(Z,G,J)}}N.exports=K},6547:function(N,B,j){var U=j("a691"),q=j("1d80"),Y=function(K){return function(G,J){var Z,ee,te=String(q(G)),re=U(J),se=te.length;return re<0||re>=se?K?"":void 0:(Z=te.charCodeAt(re),Z<55296||Z>56319||re+1===se||(ee=te.charCodeAt(re+1))<56320||ee>57343?K?te.charAt(re):Z:K?te.slice(re,re+2):ee-56320+(Z-55296<<10)+65536)}};N.exports={codeAt:Y(!1),charAt:Y(!0)}},"656b":function(N,B,j){var U=j("e2e4"),q=j("f4d6");function Y(K,G){G=U(G,K);for(var J=0,Z=G.length;K!=null&&J<Z;)K=K[q(G[J++])];return J&&J==Z?K:void 0}N.exports=Y},6679:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Boolean]";function K(G){return G===!0||G===!1||q(G)&&U(G)==Y}N.exports=K},6747:function(N,B){var j=Array.isArray;N.exports=j},"67ca":function(N,B,j){var U=j("cb5a");function q(Y,K){var G=this.__data__,J=U(G,Y);return J<0?(++this.size,G.push([Y,K])):G[J][1]=K,this}N.exports=q},"69d5":function(N,B,j){var U=j("cb5a"),q=Array.prototype,Y=q.splice;function K(G){var J=this.__data__,Z=U(J,G);if(Z<0)return!1;var ee=J.length-1;return Z==ee?J.pop():Y.call(J,Z,1),--this.size,!0}N.exports=K},"69f3":function(N,B,j){var U,q,Y,K=j("7f9a"),G=j("da84"),J=j("861d"),Z=j("9112"),ee=j("5135"),te=j("c6cd"),re=j("f772"),se=j("d012"),ne="Object already initialized",le=G.WeakMap,ge=function(oe){return Y(oe)?q(oe):U(oe,{})},ue=function(oe){return function(ye){var be;if(!J(ye)||(be=q(ye)).type!==oe)throw TypeError("Incompatible receiver, "+oe+" required");return be}};if(K||te.state){var _e=te.state||(te.state=new le),fe=_e.get,me=_e.has,ve=_e.set;U=function(oe,ye){if(me.call(_e,oe))throw new TypeError(ne);return ye.facade=oe,ve.call(_e,oe,ye),ye},q=function(oe){return fe.call(_e,oe)||{}},Y=function(oe){return me.call(_e,oe)}}else{var xe=re("state");se[xe]=!0,U=function(oe,ye){if(ee(oe,xe))throw new TypeError(ne);return ye.facade=oe,Z(oe,xe,ye),ye},q=function(oe){return ee(oe,xe)?oe[xe]:{}},Y=function(oe){return ee(oe,xe)}}N.exports={set:U,get:q,has:Y,enforce:ge,getterFor:ue}},"6a43":function(N,B,j){var U=j("a10d");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("79e769b1",U,!0,{sourceMap:!1,shadowMode:!1})},"6eeb":function(N,B,j){var U=j("da84"),q=j("9112"),Y=j("5135"),K=j("ce4e"),G=j("8925"),J=j("69f3"),Z=J.get,ee=J.enforce,te=String(String).split("String");(N.exports=function(re,se,ne,le){var ge,ue=!!le&&!!le.unsafe,_e=!!le&&!!le.enumerable,fe=!!le&&!!le.noTargetGet;typeof ne=="function"&&(typeof se!="string"||Y(ne,"name")||q(ne,"name",se),ge=ee(ne),ge.source||(ge.source=te.join(typeof se=="string"?se:""))),re!==U?(ue?!fe&&re[se]&&(_e=!0):delete re[se],_e?re[se]=ne:q(re,se,ne)):_e?re[se]=ne:K(se,ne)})(Function.prototype,"toString",function(){return typeof this=="function"&&Z(this).source||G(this)})},"6f6c":function(N,B){var j=/\w*$/;function U(q){var Y=new q.constructor(q.source,j.exec(q));return Y.lastIndex=q.lastIndex,Y}N.exports=U},"6fcd":function(N,B,j){var U=j("50d8"),q=j("d370"),Y=j("6747"),K=j("0d24"),G=j("c098"),J=j("73ac"),Z=Object.prototype,ee=Z.hasOwnProperty;function te(re,se){var ne=Y(re),le=!ne&&q(re),ge=!ne&&!le&&K(re),ue=!ne&&!le&&!ge&&J(re),_e=ne||le||ge||ue,fe=_e?U(re.length,String):[],me=fe.length;for(var ve in re)!se&&!ee.call(re,ve)||_e&&(ve=="length"||ge&&(ve=="offset"||ve=="parent")||ue&&(ve=="buffer"||ve=="byteLength"||ve=="byteOffset")||G(ve,me))||fe.push(ve);return fe}N.exports=te},"70b8":function(N,B,j){var U=j("fcff");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("407d10db",U,!0,{sourceMap:!1,shadowMode:!1})},"72af":function(N,B,j){var U=j("99cd"),q=U();N.exports=q},"72f0":function(N,B){function j(U){return function(){return U}}N.exports=j},"72f5":function(N,B,j){var U=j("9e2e");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2997fbdf",U,!0,{sourceMap:!1,shadowMode:!1})},"73ac":function(N,B,j){var U=j("743f"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isTypedArray,G=K?q(K):U;N.exports=G},7418:function(N,B){B.f=Object.getOwnPropertySymbols},"743f":function(N,B,j){var U=j("3729"),q=j("b218"),Y=j("1310"),K="[object Arguments]",G="[object Array]",J="[object Boolean]",Z="[object Date]",ee="[object Error]",te="[object Function]",re="[object Map]",se="[object Number]",ne="[object Object]",le="[object RegExp]",ge="[object Set]",ue="[object String]",_e="[object WeakMap]",fe="[object ArrayBuffer]",me="[object DataView]",ve="[object Float32Array]",xe="[object Float64Array]",oe="[object Int8Array]",ye="[object Int16Array]",be="[object Int32Array]",we="[object Uint8Array]",Ae="[object Uint8ClampedArray]",ke="[object Uint16Array]",Oe="[object Uint32Array]",Me={};function ze(Fe){return Y(Fe)&&q(Fe.length)&&!!Me[U(Fe)]}Me[ve]=Me[xe]=Me[oe]=Me[ye]=Me[be]=Me[we]=Me[Ae]=Me[ke]=Me[Oe]=!0,Me[K]=Me[G]=Me[fe]=Me[J]=Me[me]=Me[Z]=Me[ee]=Me[te]=Me[re]=Me[se]=Me[ne]=Me[le]=Me[ge]=Me[ue]=Me[_e]=!1,N.exports=ze},7530:function(N,B,j){var U=j("1a8c"),q=Object.create,Y=function(){function K(){}return function(G){if(!U(G))return{};if(q)return q(G);K.prototype=G;var J=new K;return K.prototype=void 0,J}}();N.exports=Y},"76dd":function(N,B,j){var U=j("ce86");function q(Y){return Y==null?"":U(Y)}N.exports=q},7839:function(N,B){N.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7948:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length,G=Array(K);++Y<K;)G[Y]=q(U[Y],Y,U);return G}N.exports=j},"79bc":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Map");N.exports=Y},"7a48":function(N,B,j){var U=j("6044"),q=Object.prototype,Y=q.hasOwnProperty;function K(G){var J=this.__data__;return U?J[G]!==void 0:Y.call(J,G)}N.exports=K},"7b0b":function(N,B,j){var U=j("1d80");N.exports=function(q){return Object(U(q))}},"7b83":function(N,B,j){var U=j("7c64"),q=j("93ed"),Y=j("2478"),K=j("a524"),G=j("1fc8");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var re=Z[ee];this.set(re[0],re[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},"7b97":function(N,B,j){var U=j("7e64"),q=j("a2be"),Y=j("1c3c"),K=j("b1e5"),G=j("42a2"),J=j("6747"),Z=j("0d24"),ee=j("73ac"),te=1,re="[object Arguments]",se="[object Array]",ne="[object Object]",le=Object.prototype,ge=le.hasOwnProperty;function ue(_e,fe,me,ve,xe,oe){var ye=J(_e),be=J(fe),we=ye?se:G(_e),Ae=be?se:G(fe);we=we==re?ne:we,Ae=Ae==re?ne:Ae;var ke=we==ne,Oe=Ae==ne,Me=we==Ae;if(Me&&Z(_e)){if(!Z(fe))return!1;ye=!0,ke=!1}if(Me&&!ke)return oe||(oe=new U),ye||ee(_e)?q(_e,fe,me,ve,xe,oe):Y(_e,fe,we,me,ve,xe,oe);if(!(me&te)){var ze=ke&&ge.call(_e,"__wrapped__"),Fe=Oe&&ge.call(fe,"__wrapped__");if(ze||Fe){var Ze=ze?_e.value():_e,lt=Fe?fe.value():fe;return oe||(oe=new U),xe(Ze,lt,me,ve,oe)}}return!!Me&&(oe||(oe=new U),K(_e,fe,me,ve,xe,oe))}N.exports=ue},"7c64":function(N,B,j){var U=j("e24b"),q=j("5e2e"),Y=j("79bc");function K(){this.size=0,this.__data__={hash:new U,map:new(Y||q),string:new U}}N.exports=K},"7c73":function(N,B,j){var U,q=j("825a"),Y=j("37e8"),K=j("7839"),G=j("d012"),J=j("1be4"),Z=j("cc12"),ee=j("f772"),te=">",re="<",se="prototype",ne="script",le=ee("IE_PROTO"),ge=function(){},ue=function(ve){return re+ne+te+ve+re+"/"+ne+te},_e=function(ve){ve.write(ue("")),ve.close();var xe=ve.parentWindow.Object;return ve=null,xe},fe=function(){var ve,xe=Z("iframe"),oe="java"+ne+":";return xe.style.display="none",J.appendChild(xe),xe.src=String(oe),ve=xe.contentWindow.document,ve.open(),ve.write(ue("document.F=Object")),ve.close(),ve.F},me=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}me=U?_e(U):fe();for(var ve=K.length;ve--;)delete me[se][K[ve]];return me()};G[le]=!0,N.exports=Object.create||function(ve,xe){var oe;return ve!==null?(ge[se]=q(ve),oe=new ge,ge[se]=null,oe[le]=ve):oe=me(),xe===void 0?oe:Y(oe,xe)}},"7d1f":function(N,B,j){var U=j("087d"),q=j("6747");function Y(K,G,J){var Z=G(K);return q(K)?Z:U(Z,J(K))}N.exports=Y},"7dd0":function(N,B,j){var U=j("23e7"),q=j("9ed3"),Y=j("e163"),K=j("d2bb"),G=j("d44e"),J=j("9112"),Z=j("6eeb"),ee=j("b622"),te=j("c430"),re=j("3f8c"),se=j("ae93"),ne=se.IteratorPrototype,le=se.BUGGY_SAFARI_ITERATORS,ge=ee("iterator"),ue="keys",_e="values",fe="entries",me=function(){return this};N.exports=function(ve,xe,oe,ye,be,we,Ae){q(oe,xe,ye);var ke,Oe,Me,ze=function(Nt){if(Nt===be&&Ve)return Ve;if(!le&&Nt in lt)return lt[Nt];switch(Nt){case ue:return function(){return new oe(this,Nt)};case _e:return function(){return new oe(this,Nt)};case fe:return function(){return new oe(this,Nt)}}return function(){return new oe(this)}},Fe=xe+" Iterator",Ze=!1,lt=ve.prototype,qe=lt[ge]||lt["@@iterator"]||be&<[be],Ve=!le&&qe||ze(be),At=xe=="Array"&<.entries||qe;if(At&&(ke=Y(At.call(new ve)),ne!==Object.prototype&&ke.next&&(te||Y(ke)===ne||(K?K(ke,ne):typeof ke[ge]!="function"&&J(ke,ge,me)),G(ke,Fe,!0,!0),te&&(re[Fe]=me))),be==_e&&qe&&qe.name!==_e&&(Ze=!0,Ve=function(){return qe.call(this)}),te&&!Ae||lt[ge]===Ve||J(lt,ge,Ve),re[xe]=Ve,be)if(Oe={values:ze(_e),keys:we?Ve:ze(ue),entries:ze(fe)},Ae)for(Me in Oe)(le||Ze||!(Me in lt))&&Z(lt,Me,Oe[Me]);else U({target:xe,proto:!0,forced:le||Ze},Oe);return Oe}},"7dfe":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".none-enter-active[data-v-5be4b00c],.none-leave-active[data-v-5be4b00c]{transition-duration:0s}.fade-enter-active[data-v-5be4b00c],.fade-leave-active[data-v-5be4b00c],.slide-down-enter-active[data-v-5be4b00c],.slide-down-leave-active[data-v-5be4b00c],.slide-left-enter-active[data-v-5be4b00c],.slide-left-leave-active[data-v-5be4b00c],.slide-right-enter-active[data-v-5be4b00c],.slide-right-leave-active[data-v-5be4b00c],.slide-up-enter-active[data-v-5be4b00c],.slide-up-leave-active[data-v-5be4b00c]{transition:transform var(--slide-duration) var(--slide-timing),opacity var(--slide-duration) var(--slide-timing);-webkit-backface-visibility:hidden;backface-visibility:hidden}.fade-leave-active[data-v-5be4b00c],.none-leave-active[data-v-5be4b00c],.slide-down-leave-active[data-v-5be4b00c],.slide-left-leave-active[data-v-5be4b00c],.slide-right-leave-active[data-v-5be4b00c],.slide-up-leave-active[data-v-5be4b00c]{position:absolute;width:100%}.fade-enter[data-v-5be4b00c],.fade-leave-to[data-v-5be4b00c],.none-enter[data-v-5be4b00c],.none-leave-to[data-v-5be4b00c],.slide-down-enter[data-v-5be4b00c],.slide-down-leave-to[data-v-5be4b00c],.slide-left-enter[data-v-5be4b00c],.slide-left-leave-to[data-v-5be4b00c],.slide-right-enter[data-v-5be4b00c],.slide-right-leave-to[data-v-5be4b00c],.slide-up-enter[data-v-5be4b00c],.slide-up-leave-to[data-v-5be4b00c]{opacity:0}.slide-left-enter[data-v-5be4b00c],.slide-right-leave-to[data-v-5be4b00c]{transform:translateX(var(--slide-translate))}.slide-left-leave-to[data-v-5be4b00c],.slide-right-enter[data-v-5be4b00c]{transform:translateX(calc(var(--slide-translate)*-1))}.slide-down-leave-to[data-v-5be4b00c],.slide-up-enter[data-v-5be4b00c]{transform:translateY(var(--slide-translate))}.slide-down-enter[data-v-5be4b00c],.slide-up-leave-to[data-v-5be4b00c]{transform:translateY(calc(var(--slide-translate)*-1))}",""]),N.exports=B},"7e64":function(N,B,j){var U=j("5e2e"),q=j("efb6"),Y=j("2fcc"),K=j("802a"),G=j("55a3"),J=j("d02c");function Z(ee){var te=this.__data__=new U(ee);this.size=te.size}Z.prototype.clear=q,Z.prototype.delete=Y,Z.prototype.get=K,Z.prototype.has=G,Z.prototype.set=J,N.exports=Z},"7ed2":function(N,B){var j="__lodash_hash_undefined__";function U(q){return this.__data__.set(q,j),this}N.exports=U},"7efe":function(N){N.exports=JSON.parse('{"title":"MMMM YYYY","weekdays":"W","navMonths":"MMM","input":["L","YYYY-MM-DD","YYYY/MM/DD"],"inputDateTime":["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],"inputDateTime24hr":["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],"inputTime":["h:mm A"],"inputTime24hr":["HH:mm"],"dayPopover":"WWW, MMM D, YYYY","data":["L","YYYY-MM-DD","YYYY/MM/DD"],"iso":"YYYY-MM-DDTHH:mm:ss.SSSZ"}')},"7f9a":function(N,B,j){var U=j("da84"),q=j("8925"),Y=U.WeakMap;N.exports=typeof Y=="function"&&/native code/.test(q(Y))},"802a":function(N,B){function j(U){return this.__data__.get(U)}N.exports=j},8057:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length;++Y<K&&q(U[Y],Y,U)!==!1;);return U}N.exports=j},"825a":function(N,B,j){var U=j("861d");N.exports=function(q){if(!U(q))throw TypeError(String(q)+" is not an object");return q}},8296:function(N,B,j){var U=j("656b"),q=j("2b10");function Y(K,G){return G.length<2?K:U(K,q(G,0,-1))}N.exports=Y},8384:function(N,B){function j(U,q,Y){return U===U&&(Y!==void 0&&(U=U<=Y?U:Y),q!==void 0&&(U=U>=q?U:q)),U}N.exports=j},"83ab":function(N,B,j){var U=j("d039");N.exports=!U(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"85a9":function(N){N.exports=JSON.parse('{"sm":"640px","md":"768px","lg":"1024px","xl":"1280px"}')},"85e3":function(N,B){function j(U,q,Y){switch(Y.length){case 0:return U.call(q);case 1:return U.call(q,Y[0]);case 2:return U.call(q,Y[0],Y[1]);case 3:return U.call(q,Y[0],Y[1],Y[2])}return U.apply(q,Y)}N.exports=j},8604:function(N,B,j){var U=j("26e8"),q=j("e2c0");function Y(K,G){return K!=null&&q(K,G,U)}N.exports=Y},"861d":function(N,B){N.exports=function(j){return typeof j=="object"?j!==null:typeof j=="function"}},"872a":function(N,B,j){var U=j("3b4a");function q(Y,K,G){K=="__proto__"&&U?U(Y,K,{configurable:!0,enumerable:!0,value:G,writable:!0}):Y[K]=G}N.exports=q},"87a9":function(N,B,j){var U=j("cecd"),q=j.n(U);q.a},8925:function(N,B,j){var U=j("c6cd"),q=Function.toString;typeof U.inspectSource!="function"&&(U.inspectSource=function(Y){return q.call(Y)}),N.exports=U.inspectSource},"89d9":function(N,B,j){var U=j("656b"),q=j("159a"),Y=j("e2e4");function K(G,J,Z){for(var ee=-1,te=J.length,re={};++ee<te;){var se=J[ee],ne=U(G,se);Z(ne,se)&&q(re,Y(se,G),ne)}return re}N.exports=K},"8a64":function(N,B,j){var U=j("ad82");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("5fdd58c2",U,!0,{sourceMap:!1,shadowMode:!1})},"8aa5":function(N,B,j){var U=j("6547").charAt;N.exports=function(q,Y,K){return Y+(K?U(q,Y).length:1)}},"8adb":function(N,B){function j(U,q){if((q!=="constructor"||typeof U[q]!="function")&&q!="__proto__")return U[q]}N.exports=j},"8bbf":function(N,B){N.exports=I},"8c86":function(N,B,j){function U(q,Y){if(Y.length<q)throw new TypeError(q+" argument"+(q>1?"s":"")+" required, but only "+Y.length+" present")}j.d(B,"a",function(){return U})},"8d74":function(N,B,j){var U=j("4cef"),q=/^\s+/;function Y(K){return K&&K.slice(0,U(K)+1).replace(q,"")}N.exports=Y},"8de2":function(N,B,j){var U=j("8eeb"),q=j("9934");function Y(K){return U(K,q(K))}N.exports=Y},"8eeb":function(N,B,j){var U=j("32b3"),q=j("872a");function Y(K,G,J,Z){var ee=!J;J||(J={});for(var te=-1,re=G.length;++te<re;){var se=G[te],ne=Z?Z(J[se],K[se],se,J,K):void 0;ne===void 0&&(ne=K[se]),ee?q(J,se,ne):U(J,se,ne)}return J}N.exports=Y},9010:function(N,B,j){var U=j("70b8"),q=j.n(U);q.a},"90e3":function(N,B){var j=0,U=Math.random();N.exports=function(q){return"Symbol("+String(q===void 0?"":q)+")_"+(++j+U).toString(36)}},9112:function(N,B,j){var U=j("83ab"),q=j("9bf2"),Y=j("5c6c");N.exports=U?function(K,G,J){return q.f(K,G,Y(1,J))}:function(K,G,J){return K[G]=J,K}},"91e9":function(N,B){function j(U,q){return function(Y){return U(q(Y))}}N.exports=j},9263:function(N,B,j){var U=j("ad6d"),q=j("9f7f"),Y=j("5692"),K=j("7c73"),G=j("69f3").get,J=j("fce3"),Z=j("107c"),ee=RegExp.prototype.exec,te=Y("native-string-replace",String.prototype.replace),re=ee,se=function(){var ue=/a/,_e=/b*/g;return ee.call(ue,"a"),ee.call(_e,"a"),ue.lastIndex!==0||_e.lastIndex!==0}(),ne=q.UNSUPPORTED_Y||q.BROKEN_CARET,le=/()??/.exec("")[1]!==void 0,ge=se||le||ne||J||Z;ge&&(re=function(ue){var _e,fe,me,ve,xe,oe,ye,be=this,we=G(be),Ae=we.raw;if(Ae)return Ae.lastIndex=be.lastIndex,_e=re.call(Ae,ue),be.lastIndex=Ae.lastIndex,_e;var ke=we.groups,Oe=ne&&be.sticky,Me=U.call(be),ze=be.source,Fe=0,Ze=ue;if(Oe&&(Me=Me.replace("y",""),Me.indexOf("g")===-1&&(Me+="g"),Ze=String(ue).slice(be.lastIndex),be.lastIndex>0&&(!be.multiline||be.multiline&&ue[be.lastIndex-1]!==`
- `)&&(ze="(?: "+ze+")",Ze=" "+Ze,Fe++),fe=new RegExp("^(?:"+ze+")",Me)),le&&(fe=new RegExp("^"+ze+"$(?!\\s)",Me)),se&&(me=be.lastIndex),ve=ee.call(Oe?fe:be,Ze),Oe?ve?(ve.input=ve.input.slice(Fe),ve[0]=ve[0].slice(Fe),ve.index=be.lastIndex,be.lastIndex+=ve[0].length):be.lastIndex=0:se&&ve&&(be.lastIndex=be.global?ve.index+ve[0].length:me),le&&ve&&ve.length>1&&te.call(ve[0],fe,function(){for(xe=1;xe<arguments.length-2;xe++)arguments[xe]===void 0&&(ve[xe]=void 0)}),ve&&ke)for(ve.groups=oe=K(null),xe=0;xe<ke.length;xe++)ye=ke[xe],oe[ye[0]]=ve[ye[1]];return ve}),N.exports=re},9349:function(N,B,j){j.d(B,"a",function(){return Y}),j("ddb0");var U=j("22f3"),q=j("2fa3");class Y{constructor(G,J,Z){this.theme=G,this.locale=J,this.map={},this.refresh(Z,!0)}destroy(){this.theme=null,this.locale=null,this.map={},this.list=[],this.pinAttr=null}refresh(G,J){var Z=this;const ee={},te=[];let re=null;const se=[],ne=J?new Set:new Set(Object.keys(this.map));return Object(q.b)(G)&&G.forEach(function(le,ge){if(!le||!le.dates)return;const ue=le.key?le.key.toString():ge.toString(),_e=le.order||0,fe=Object(q.g)(JSON.stringify(le));let me=Z.map[ue];!J&&me&&me.hashcode===fe?ne.delete(ue):(me=new U.a({key:ue,order:_e,hashcode:fe,...le},Z.theme,Z.locale),se.push(me)),me&&me.pinPage&&(re=me),ee[ue]=me,te.push(me)}),this.map=ee,this.list=te,this.pinAttr=re,{adds:se,deletes:Array.from(ne)}}}},"93ed":function(N,B,j){var U=j("4245");function q(Y){var K=U(this,Y).delete(Y);return this.size-=K?1:0,K}N.exports=q},9404:function(N,B,j){j.d(B,"j",function(){return Hn}),j.d(B,"m",function(){return On}),j.d(B,"e",function(){return Fn}),j.d(B,"f",function(){return In}),j.d(B,"v",function(){return dn});var U=j("6679"),q=j.n(U);j.d(B,"i",function(){return q.a});var Y=j("501e"),K=j.n(Y);j.d(B,"l",function(){return K.a});var G=j("e2a0"),J=j.n(G);j.d(B,"n",function(){return J.a});var Z=j("dcbe"),ee=j.n(Z);j.d(B,"h",function(){return ee.a});var te=j("9520"),re=j.n(te);j.d(B,"k",function(){return re.a});var se=j("4cfe"),ne=j.n(se);j.d(B,"o",function(){return ne.a});var le=j("6220"),ge=j.n(le),ue=j("f678"),_e=j.n(ue);j.d(B,"a",function(){return _e.a});var fe=j("9b02"),me=j.n(fe);j.d(B,"d",function(){return me.a});var ve=j("0f5c"),xe=j.n(ve);j.d(B,"u",function(){return xe.a});var oe=j("9e86"),ye=j.n(oe);j.d(B,"r",function(){return ye.a});var be=j("f542"),we=j.n(be);j.d(B,"w",function(){return we.a});var Ae=j("95ae"),ke=j.n(Ae);j.d(B,"b",function(){return ke.a});var Oe=j("3f84"),Me=j.n(Oe);j.d(B,"c",function(){return Me.a});var ze=j("2593"),Fe=j.n(ze);j.d(B,"t",function(){return Fe.a});var Ze=j("3eea"),lt=j.n(Ze);j.d(B,"s",function(){return lt.a});var qe=j("3852"),Ve=j.n(qe),At=j("dd61"),Nt=j.n(At);j.d(B,"q",function(){return Nt.a});var zt=j("a59b"),Ht=j.n(zt);j.d(B,"g",function(){return Ht.a});var qt=j("4416"),Qt=j.n(qt);j.d(B,"p",function(){return Qt.a});var Jt=j("3092"),yn=j.n(Jt);const _n=function(kt){return Object.prototype.toString.call(kt).slice(8,-1)},Hn=function(kt){return ge()(kt)&&!isNaN(kt.getTime())},On=function(kt){return _n(kt)==="Object"},Fn=Ve.a,In=function(kt,Ye){return yn()(Ye,function(_t){return Ve()(kt,_t)})},dn=yn.a},"94ca":function(N,B,j){var U=j("d039"),q=/#|\.prototype\./,Y=function(ee,te){var re=G[K(ee)];return re==Z||re!=J&&(typeof te=="function"?U(te):!!te)},K=Y.normalize=function(ee){return String(ee).replace(q,".").toLowerCase()},G=Y.data={},J=Y.NATIVE="N",Z=Y.POLYFILL="P";N.exports=Y},"950a":function(N,B,j){var U=j("30c9");function q(Y,K){return function(G,J){if(G==null)return G;if(!U(G))return Y(G,J);for(var Z=G.length,ee=K?Z:-1,te=Object(G);(K?ee--:++ee<Z)&&J(te[ee],ee,te)!==!1;);return G}}N.exports=q},9520:function(N,B,j){var U=j("3729"),q=j("1a8c"),Y="[object AsyncFunction]",K="[object Function]",G="[object GeneratorFunction]",J="[object Proxy]";function Z(ee){if(!q(ee))return!1;var te=U(ee);return te==K||te==G||te==Y||te==J}N.exports=Z},"95ae":function(N,B,j){var U=j("100e"),q=j("9638"),Y=j("9aff"),K=j("9934"),G=Object.prototype,J=G.hasOwnProperty,Z=U(function(ee,te){ee=Object(ee);var re=-1,se=te.length,ne=se>2?te[2]:void 0;for(ne&&Y(te[0],te[1],ne)&&(se=1);++re<se;)for(var le=te[re],ge=K(le),ue=-1,_e=ge.length;++ue<_e;){var fe=ge[ue],me=ee[fe];(me===void 0||q(me,G[fe])&&!J.call(ee,fe))&&(ee[fe]=le[fe])}return ee});N.exports=Z},9638:function(N,B){function j(U,q){return U===q||U!==U&&q!==q}N.exports=j},"966f":function(N,B,j){var U=j("7e64"),q=j("c05f"),Y=1,K=2;function G(J,Z,ee,te){var re=ee.length,se=re,ne=!te;if(J==null)return!se;for(J=Object(J);re--;){var le=ee[re];if(ne&&le[2]?le[1]!==J[le[0]]:!(le[0]in J))return!1}for(;++re<se;){le=ee[re];var ge=le[0],ue=J[ge],_e=le[1];if(ne&&le[2]){if(ue===void 0&&!(ge in J))return!1}else{var fe=new U;if(te)var me=te(ue,_e,ge,J,Z,fe);if(!(me===void 0?q(_e,ue,Y|K,te,fe):me))return!1}}return!0}N.exports=G},"96f3":function(N,B){var j=Object.prototype,U=j.hasOwnProperty;function q(Y,K){return Y!=null&&U.call(Y,K)}N.exports=q},"97d3":function(N,B,j){var U=j("48a0"),q=j("30c9");function Y(K,G){var J=-1,Z=q(K)?Array(K.length):[];return U(K,function(ee,te,re){Z[++J]=G(ee,te,re)}),Z}N.exports=Y},9934:function(N,B,j){var U=j("6fcd"),q=j("41c3"),Y=j("30c9");function K(G){return Y(G)?U(G,!0):q(G)}N.exports=K},"99cd":function(N,B){function j(U){return function(q,Y,K){for(var G=-1,J=Object(q),Z=K(q),ee=Z.length;ee--;){var te=Z[U?ee:++G];if(Y(J[te],te,J)===!1)break}return q}}N.exports=j},"99d3":function(N,B,j){(function(U){var q=j("585a"),Y=B&&!B.nodeType&&B,K=Y&&typeof U=="object"&&U&&!U.nodeType&&U,G=K&&K.exports===Y,J=G&&q.process,Z=function(){try{var ee=K&&K.require&&K.require("util").types;return ee||J&&J.binding&&J.binding("util")}catch{}}();U.exports=Z}).call(this,j("62e4")(N))},"9aff":function(N,B,j){var U=j("9638"),q=j("30c9"),Y=j("c098"),K=j("1a8c");function G(J,Z,ee){if(!K(ee))return!1;var te=typeof Z;return!!(te=="number"?q(ee)&&Y(Z,ee.length):te=="string"&&Z in ee)&&U(ee[Z],J)}N.exports=G},"9b02":function(N,B,j){var U=j("656b");function q(Y,K,G){var J=Y==null?void 0:U(Y,K);return J===void 0?G:J}N.exports=q},"9bf2":function(N,B,j){var U=j("83ab"),q=j("0cfb"),Y=j("825a"),K=j("c04e"),G=Object.defineProperty;B.f=U?G:function(J,Z,ee){if(Y(J),Z=K(Z,!0),Y(ee),q)try{return G(J,Z,ee)}catch{}if("get"in ee||"set"in ee)throw TypeError("Accessors not supported");return"value"in ee&&(J[Z]=ee.value),J}},"9e2e":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-pane-container{width:100%;position:relative}.vc-pane-container.in-transition{overflow:hidden}.vc-pane-layout{display:grid}.vc-arrow{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;pointer-events:auto;color:var(--gray-600);border-width:2px;border-style:solid;border-radius:var(--rounded);border-color:transparent}.vc-arrow:hover{background:var(--gray-200)}.vc-arrow:focus{border-color:var(--gray-300)}.vc-arrow.is-disabled{opacity:.25;pointer-events:none;cursor:not-allowed}.vc-day-popover-container{color:var(--white);background-color:var(--gray-800);border:1px solid;border-color:var(--gray-700);border-radius:var(--rounded);font-size:var(--text-xs);font-weight:var(--font-medium);padding:4px 8px;box-shadow:var(--shadow)}.vc-day-popover-header{font-size:var(--text-xs);color:var(--gray-300);font-weight:var(--font-semibold);text-align:center}.vc-arrows-container{width:100%;position:absolute;top:0;display:flex;justify-content:space-between;padding:8px 10px;pointer-events:none}.vc-arrows-container.title-left{justify-content:flex-end}.vc-arrows-container.title-right{justify-content:flex-start}.vc-is-dark .vc-arrow{color:var(--white)}.vc-is-dark .vc-arrow:hover{background:var(--gray-800)}.vc-is-dark .vc-arrow:focus{border-color:var(--gray-700)}.vc-is-dark .vc-day-popover-container{color:var(--gray-800);background-color:var(--white);border-color:var(--gray-100)}.vc-is-dark .vc-day-popover-header{color:var(--gray-700)}",""]),N.exports=B},"9e69":function(N,B,j){var U=j("2b3e"),q=U.Symbol;N.exports=q},"9e83":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-nav-popover-container{color:var(--white);font-size:var(--text-sm);font-weight:var(--font-semibold);background-color:var(--gray-800);border:1px solid;border-color:var(--gray-700);border-radius:var(--rounded-lg);padding:4px;box-shadow:var(--shadow)}.vc-is-dark .vc-nav-popover-container{color:var(--gray-800);background-color:var(--white);border-color:var(--gray-100)}",""]),N.exports=B},"9e86":function(N,B,j){var U=j("872a"),q=j("242e"),Y=j("badf");function K(G,J){var Z={};return J=Y(J,3),q(G,function(ee,te,re){U(Z,te,J(ee,te,re))}),Z}N.exports=K},"9ed3":function(N,B,j){var U=j("ae93").IteratorPrototype,q=j("7c73"),Y=j("5c6c"),K=j("d44e"),G=j("3f8c"),J=function(){return this};N.exports=function(Z,ee,te){var re=ee+" Iterator";return Z.prototype=q(U,{next:Y(1,te)}),K(Z,re,!1,!0),G[re]=J,Z}},"9f7f":function(N,B,j){var U=j("d039"),q=function(Y,K){return RegExp(Y,K)};B.UNSUPPORTED_Y=U(function(){var Y=q("a","y");return Y.lastIndex=2,Y.exec("abcd")!=null}),B.BROKEN_CARET=U(function(){var Y=q("^r","gy");return Y.lastIndex=2,Y.exec("str")!=null})},a029:function(N,B,j){var U=j("087d"),q=j("2dcb"),Y=j("32f4"),K=j("d327"),G=Object.getOwnPropertySymbols,J=G?function(Z){for(var ee=[];Z;)U(ee,Y(Z)),Z=q(Z);return ee}:K;N.exports=J},a10d:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-day[data-v-4420d078]{position:relative;min-height:32px;z-index:1}.vc-day.is-not-in-month *[data-v-4420d078]{opacity:0;pointer-events:none}.vc-day-layer[data-v-4420d078]{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none}.vc-day-box-center-center[data-v-4420d078]{display:flex;justify-content:center;align-items:center;transform-origin:50% 50%}.vc-day-box-left-center[data-v-4420d078]{display:flex;justify-content:flex-start;align-items:center;transform-origin:0 50%}.vc-day-box-right-center[data-v-4420d078]{display:flex;justify-content:flex-end;align-items:center;transform-origin:100% 50%}.vc-day-box-center-bottom[data-v-4420d078]{display:flex;justify-content:center;align-items:flex-end}.vc-day-content[data-v-4420d078]{display:flex;justify-content:center;align-items:center;font-size:var(--text-sm);font-weight:var(--font-medium);width:28px;height:28px;line-height:28px;border-radius:var(--rounded-full);-webkit-user-select:none;user-select:none;cursor:pointer}.vc-day-content[data-v-4420d078]:hover{background-color:rgba(204,214,224,.3)}.vc-day-content[data-v-4420d078]:focus{font-weight:var(--font-bold);background-color:rgba(204,214,224,.4)}.vc-day-content.is-disabled[data-v-4420d078]{color:var(--gray-400)}.vc-is-dark .vc-day-content[data-v-4420d078]:hover{background-color:rgba(114,129,151,.3)}.vc-is-dark .vc-day-content[data-v-4420d078]:focus{background-color:rgba(114,129,151,.4)}.vc-is-dark .vc-day-content.is-disabled[data-v-4420d078]{color:var(--gray-600)}.vc-highlights[data-v-4420d078]{overflow:hidden;pointer-events:none;z-index:-1}.vc-highlight[data-v-4420d078]{width:28px;height:28px}.vc-highlight.vc-highlight-base-start[data-v-4420d078]{width:50%!important;border-radius:0!important;border-right-width:0!important}.vc-highlight.vc-highlight-base-end[data-v-4420d078]{width:50%!important;border-radius:0!important;border-left-width:0!important}.vc-highlight.vc-highlight-base-middle[data-v-4420d078]{width:100%;border-radius:0!important;border-left-width:0!important;border-right-width:0!important;margin:0 -1px}.vc-dots[data-v-4420d078]{display:flex;justify-content:center;align-items:center}.vc-dot[data-v-4420d078]{width:5px;height:5px;border-radius:50%;transition:all var(--day-content-transition-time)}.vc-dot[data-v-4420d078]:not(:last-child){margin-right:3px}.vc-bars[data-v-4420d078]{display:flex;justify-content:flex-start;align-items:center;width:75%}.vc-bar[data-v-4420d078]{flex-grow:1;height:3px;transition:all var(--day-content-transition-time)}",""]),N.exports=B},a2be:function(N,B,j){var U=j("d612"),q=j("4284"),Y=j("c584"),K=1,G=2;function J(Z,ee,te,re,se,ne){var le=te&K,ge=Z.length,ue=ee.length;if(ge!=ue&&!(le&&ue>ge))return!1;var _e=ne.get(Z),fe=ne.get(ee);if(_e&&fe)return _e==ee&&fe==Z;var me=-1,ve=!0,xe=te&G?new U:void 0;for(ne.set(Z,ee),ne.set(ee,Z);++me<ge;){var oe=Z[me],ye=ee[me];if(re)var be=le?re(ye,oe,me,ee,Z,ne):re(oe,ye,me,Z,ee,ne);if(be!==void 0){if(be)continue;ve=!1;break}if(xe){if(!q(ee,function(we,Ae){if(!Y(xe,Ae)&&(oe===we||se(oe,we,te,re,ne)))return xe.push(Ae)})){ve=!1;break}}else if(oe!==ye&&!se(oe,ye,te,re,ne)){ve=!1;break}}return ne.delete(Z),ne.delete(ee),ve}N.exports=J},a2db:function(N,B,j){var U=j("9e69"),q=U?U.prototype:void 0,Y=q?q.valueOf:void 0;function K(G){return Y?Object(Y.call(G)):{}}N.exports=K},a3fd:function(N,B,j){var U=j("7948");function q(Y,K){return U(K,function(G){return[G,Y[G]]})}N.exports=q},a454:function(N,B,j){var U=j("72f0"),q=j("3b4a"),Y=j("cd9d"),K=q?function(G,J){return q(G,"toString",{configurable:!0,enumerable:!1,value:U(J),writable:!0})}:Y;N.exports=K},a524:function(N,B,j){var U=j("4245");function q(Y){return U(this,Y).has(Y)}N.exports=q},a59b:function(N,B){function j(U){return U&&U.length?U[0]:void 0}N.exports=j},a691:function(N,B){var j=Math.ceil,U=Math.floor;N.exports=function(q){return isNaN(q=+q)?0:(q>0?U:j)(q)}},a994:function(N,B,j){var U=j("7d1f"),q=j("32f4"),Y=j("ec69");function K(G){return U(G,Y,q)}N.exports=K},ac1f:function(N,B,j){var U=j("23e7"),q=j("9263");U({target:"RegExp",proto:!0,forced:/./.exec!==q},{exec:q})},ac41:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K){Y[++q]=K}),Y}N.exports=j},ad6d:function(N,B,j){var U=j("825a");N.exports=function(){var q=U(this),Y="";return q.global&&(Y+="g"),q.ignoreCase&&(Y+="i"),q.multiline&&(Y+="m"),q.dotAll&&(Y+="s"),q.unicode&&(Y+="u"),q.sticky&&(Y+="y"),Y}},ad82:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-time-picker[data-v-f4e11af8]{display:flex;align-items:center;padding:8px}.vc-time-picker.vc-invalid[data-v-f4e11af8]{pointer-events:none;opacity:.5}.vc-time-picker.vc-bordered[data-v-f4e11af8]{border-top:1px solid var(--gray-400)}.vc-date-time[data-v-f4e11af8]{margin-left:8px}.vc-disabled[data-v-f4e11af8]{pointer-events:none;opacity:.5}.vc-time-icon[data-v-f4e11af8]{width:16px;height:16px;color:var(--gray-600)}.vc-date[data-v-f4e11af8]{display:flex;align-items:center;font-size:var(--text-sm);font-weight:var(--font-semibold);text-transform:uppercase;padding:0 0 4px 4px;margin-top:-4px}.vc-date .vc-weekday[data-v-f4e11af8]{color:var(--gray-700);letter-spacing:var(--tracking-wide)}.vc-date .vc-month[data-v-f4e11af8]{color:var(--accent-600);margin-left:8px}.vc-date .vc-day[data-v-f4e11af8]{color:var(--accent-600);margin-left:4px}.vc-date .vc-year[data-v-f4e11af8]{color:var(--gray-500);margin-left:8px}.vc-am-pm[data-v-f4e11af8],.vc-time[data-v-f4e11af8]{display:flex;align-items:center}.vc-am-pm[data-v-f4e11af8]{background:var(--gray-200);margin-left:8px;padding:4px;border-radius:var(--rounded);height:30px}.vc-am-pm button[data-v-f4e11af8]{color:var(--gray-900);font-size:var(--text-sm);font-weight:var(--font-medium);padding:0 4px;background:transparent;border:2px solid transparent;border-radius:var(--rounded);line-height:var(--leading-snug)}.vc-am-pm button[data-v-f4e11af8]:hover{color:var(--gray-600)}.vc-am-pm button[data-v-f4e11af8]:focus{border-color:var(--accent-400)}.vc-am-pm button.active[data-v-f4e11af8]{background:var(--accent-600);color:var(--white)}.vc-am-pm button.active[data-v-f4e11af8]:hover{background:var(--accent-500)}.vc-am-pm button.active[data-v-f4e11af8]:focus{border-color:var(--accent-400)}.vc-is-dark .vc-time-picker[data-v-f4e11af8]{border-color:var(--gray-700)}.vc-is-dark .vc-time-icon[data-v-f4e11af8],.vc-is-dark .vc-weekday[data-v-f4e11af8]{color:var(--gray-400)}.vc-is-dark .vc-day[data-v-f4e11af8],.vc-is-dark .vc-month[data-v-f4e11af8]{color:var(--accent-400)}.vc-is-dark .vc-year[data-v-f4e11af8]{color:var(--gray-500)}.vc-is-dark .vc-am-pm[data-v-f4e11af8]{background:var(--gray-700)}.vc-is-dark .vc-am-pm[data-v-f4e11af8]:focus{border-color:var(--accent-500)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]{color:var(--gray-100)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]:hover{color:var(--gray-400)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]:focus{border-color:var(--accent-500)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]{background:var(--accent-500);color:var(--white)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]:hover{background:var(--accent-600)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]:focus{border-color:var(--accent-500)}",""]),N.exports=B},adc8:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-day-popover-row[data-v-eb5afd1a]{--day-content-transition-time:0.13s ease-in;display:flex;align-items:center;transition:all var(--day-content-transition-time)}.vc-day-popover-row[data-v-eb5afd1a]:not(:first-child){margin-top:3px}.vc-day-popover-row-indicator[data-v-eb5afd1a]{display:flex;justify-content:center;align-items:center;flex-grow:0;width:15px;margin-right:3px}.vc-day-popover-row-indicator span[data-v-eb5afd1a]{transition:all var(--day-content-transition-time)}.vc-day-popover-row-content[data-v-eb5afd1a]{display:flex;align-items:center;flex-wrap:none;flex-grow:1;width:max-content}",""]),N.exports=B},ae93:function(N,B,j){var U,q,Y,K=j("d039"),G=j("e163"),J=j("9112"),Z=j("5135"),ee=j("b622"),te=j("c430"),re=ee("iterator"),se=!1,ne=function(){return this};[].keys&&(Y=[].keys(),"next"in Y?(q=G(G(Y)),q!==Object.prototype&&(U=q)):se=!0);var le=U==null||K(function(){var ge={};return U[re].call(ge)!==ge});le&&(U={}),te&&!le||Z(U,re)||J(U,re,ne),N.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:se}},b047:function(N,B){function j(U){return function(q){return U(q)}}N.exports=j},b1d2:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Date]";function K(G){return q(G)&&U(G)==Y}N.exports=K},b1e5:function(N,B,j){var U=j("a994"),q=1,Y=Object.prototype,K=Y.hasOwnProperty;function G(J,Z,ee,te,re,se){var ne=ee&q,le=U(J),ge=le.length,ue=U(Z),_e=ue.length;if(ge!=_e&&!ne)return!1;for(var fe=ge;fe--;){var me=le[fe];if(!(ne?me in Z:K.call(Z,me)))return!1}var ve=se.get(J),xe=se.get(Z);if(ve&&xe)return ve==Z&&xe==J;var oe=!0;se.set(J,Z),se.set(Z,J);for(var ye=ne;++fe<ge;){me=le[fe];var be=J[me],we=Z[me];if(te)var Ae=ne?te(we,be,me,Z,J,se):te(be,we,me,J,Z,se);if(!(Ae===void 0?be===we||re(be,we,ee,te,se):Ae)){oe=!1;break}ye||(ye=me=="constructor")}if(oe&&!ye){var ke=J.constructor,Oe=Z.constructor;ke==Oe||!("constructor"in J)||!("constructor"in Z)||typeof ke=="function"&&ke instanceof ke&&typeof Oe=="function"&&Oe instanceof Oe||(oe=!1)}return se.delete(J),se.delete(Z),oe}N.exports=G},b218:function(N,B){var j=9007199254740991;function U(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=j}N.exports=U},b4b0:function(N,B,j){var U=j("8d74"),q=j("1a8c"),Y=j("ffd6"),K=NaN,G=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,Z=/^0o[0-7]+$/i,ee=parseInt;function te(re){if(typeof re=="number")return re;if(Y(re))return K;if(q(re)){var se=typeof re.valueOf=="function"?re.valueOf():re;re=q(se)?se+"":se}if(typeof re!="string")return re===0?re:+re;re=U(re);var ne=J.test(re);return ne||Z.test(re)?ee(re.slice(2),ne?2:8):G.test(re)?K:+re}N.exports=te},b4c0:function(N,B,j){var U=j("cb5a");function q(Y){var K=this.__data__,G=U(K,Y);return G<0?void 0:K[G][1]}N.exports=q},b5a7:function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"DataView");N.exports=Y},b622:function(N,B,j){var U=j("da84"),q=j("5692"),Y=j("5135"),K=j("90e3"),G=j("4930"),J=j("fdbf"),Z=q("wks"),ee=U.Symbol,te=J?ee:ee&&ee.withoutSetter||K;N.exports=function(re){return Y(Z,re)&&(G||typeof Z[re]=="string")||(G&&Y(ee,re)?Z[re]=ee[re]:Z[re]=te("Symbol."+re)),Z[re]}},b760:function(N,B,j){var U=j("872a"),q=j("9638");function Y(K,G,J){(J!==void 0&&!q(K[G],J)||J===void 0&&!(G in K))&&U(K,G,J)}N.exports=Y},badf:function(N,B,j){var U=j("642a"),q=j("1838"),Y=j("cd9d"),K=j("6747"),G=j("f9ce");function J(Z){return typeof Z=="function"?Z:Z==null?Y:typeof Z=="object"?K(Z)?q(Z[0],Z[1]):U(Z):G(Z)}N.exports=J},bbc0:function(N,B,j){var U=j("6044"),q="__lodash_hash_undefined__",Y=Object.prototype,K=Y.hasOwnProperty;function G(J){var Z=this.__data__;if(U){var ee=Z[J];return ee===q?void 0:ee}return K.call(Z,J)?Z[J]:void 0}N.exports=G},bdb3:function(N,B,j){var U=j("e052"),q=j.n(U);q.a},c04e:function(N,B,j){var U=j("861d");N.exports=function(q,Y){if(!U(q))return q;var K,G;if(Y&&typeof(K=q.toString)=="function"&&!U(G=K.call(q))||typeof(K=q.valueOf)=="function"&&!U(G=K.call(q))||!Y&&typeof(K=q.toString)=="function"&&!U(G=K.call(q)))return G;throw TypeError("Can't convert object to primitive value")}},c05f:function(N,B,j){var U=j("7b97"),q=j("1310");function Y(K,G,J,Z,ee){return K===G||(K==null||G==null||!q(K)&&!q(G)?K!==K&&G!==G:U(K,G,J,Z,Y,ee))}N.exports=Y},c098:function(N,B){var j=9007199254740991,U=/^(?:0|[1-9]\d*)$/;function q(Y,K){var G=typeof Y;return K=K??j,!!K&&(G=="number"||G!="symbol"&&U.test(Y))&&Y>-1&&Y%1==0&&Y<K}N.exports=q},c1c9:function(N,B,j){var U=j("a454"),q=j("f3c1"),Y=q(U);N.exports=Y},c2b6:function(N,B,j){var U=j("f8af"),q=j("5d89"),Y=j("6f6c"),K=j("a2db"),G=j("c8fe"),J="[object Boolean]",Z="[object Date]",ee="[object Map]",te="[object Number]",re="[object RegExp]",se="[object Set]",ne="[object String]",le="[object Symbol]",ge="[object ArrayBuffer]",ue="[object DataView]",_e="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ve="[object Int16Array]",xe="[object Int32Array]",oe="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",we="[object Uint32Array]";function Ae(ke,Oe,Me){var ze=ke.constructor;switch(Oe){case ge:return U(ke);case J:case Z:return new ze(+ke);case ue:return q(ke,Me);case _e:case fe:case me:case ve:case xe:case oe:case ye:case be:case we:return G(ke,Me);case ee:return new ze;case te:case ne:return new ze(ke);case re:return Y(ke);case se:return new ze;case le:return K(ke)}}N.exports=Ae},c3fc:function(N,B,j){var U=j("42a2"),q=j("1310"),Y="[object Set]";function K(G){return q(G)&&U(G)==Y}N.exports=K},c430:function(N,B){N.exports=!1},c584:function(N,B){function j(U,q){return U.has(q)}N.exports=j},c6b6:function(N,B){var j={}.toString;N.exports=function(U){return j.call(U).slice(8,-1)}},c6cd:function(N,B,j){var U=j("da84"),q=j("ce4e"),Y="__core-js_shared__",K=U[Y]||q(Y,{});N.exports=K},c6cf:function(N,B,j){var U=j("4d8c"),q=j("2286"),Y=j("c1c9");function K(G){return Y(q(G,void 0,U),G+"")}N.exports=K},c869:function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Set");N.exports=Y},c87c:function(N,B){var j=Object.prototype,U=j.hasOwnProperty;function q(Y){var K=Y.length,G=new Y.constructor(K);return K&&typeof Y[0]=="string"&&U.call(Y,"index")&&(G.index=Y.index,G.input=Y.input),G}N.exports=q},c8ba:function(N,B){var j;j=function(){return this}();try{j=j||new Function("return this")()}catch{typeof window=="object"&&(j=window)}N.exports=j},c8fe:function(N,B,j){var U=j("f8af");function q(Y,K){var G=K?U(Y.buffer):Y.buffer;return new Y.constructor(G,Y.byteOffset,Y.length)}N.exports=q},ca84:function(N,B,j){var U=j("5135"),q=j("fc6a"),Y=j("4d64").indexOf,K=j("d012");N.exports=function(G,J){var Z,ee=q(G),te=0,re=[];for(Z in ee)!U(K,Z)&&U(ee,Z)&&re.push(Z);for(;J.length>te;)U(ee,Z=J[te++])&&(~Y(re,Z)||re.push(Z));return re}},cb5a:function(N,B,j){var U=j("9638");function q(Y,K){for(var G=Y.length;G--;)if(U(Y[G][0],K))return G;return-1}N.exports=q},cc12:function(N,B,j){var U=j("da84"),q=j("861d"),Y=U.document,K=q(Y)&&q(Y.createElement);N.exports=function(G){return K?Y.createElement(G):{}}},cc45:function(N,B,j){var U=j("1a2d"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isMap,G=K?q(K):U;N.exports=G},cd9d:function(N,B){function j(U){return U}N.exports=j},ce4e:function(N,B,j){var U=j("da84"),q=j("9112");N.exports=function(Y,K){try{q(U,Y,K)}catch{U[Y]=K}return K}},ce86:function(N,B,j){var U=j("9e69"),q=j("7948"),Y=j("6747"),K=j("ffd6"),G=1/0,J=U?U.prototype:void 0,Z=J?J.toString:void 0;function ee(te){if(typeof te=="string")return te;if(Y(te))return q(te,ee)+"";if(K(te))return Z?Z.call(te):"";var re=te+"";return re=="0"&&1/te==-G?"-0":re}N.exports=ee},cebd:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K){Y[++q]=[K,K]}),Y}N.exports=j},cecd:function(N,B,j){var U=j("2202");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("8c0a5c0c",U,!0,{sourceMap:!1,shadowMode:!1})},cfe5:function(N,B,j){j.d(B,"a",function(){return J});var U=j("f7f1"),q=j("2fa3"),Y=j("9404"),K=j("29ae");const G=864e5;class J{constructor(ee,{order:te=0,locale:re,isFullDay:se}={}){if(this.isDateInfo=!0,this.order=te,this.locale=re instanceof K.b?re:new K.b(re),this.firstDayOfWeek=this.locale.firstDayOfWeek,!Object(Y.m)(ee)){const ue=this.locale.normalizeDate(ee);ee=se?{start:ue,end:ue}:{startOn:ue,endOn:ue}}let ne=null,le=null;if(ee.start?ne=this.locale.normalizeDate(ee.start,{...this.opts,time:"00:00:00"}):ee.startOn&&(ne=this.locale.normalizeDate(ee.startOn,this.opts)),ee.end?le=this.locale.normalizeDate(ee.end,{...this.opts,time:"23:59:59"}):ee.endOn&&(le=this.locale.normalizeDate(ee.endOn,this.opts)),ne&&le&&ne>le){const ue=ne;ne=le,le=ue}else ne&&ee.span>=1&&(le=Object(U.a)(ne,ee.span-1));this.start=ne,this.startTime=ne?ne.getTime():NaN,this.end=le,this.endTime=le?le.getTime():NaN,this.isDate=this.startTime&&this.startTime===this.endTime,this.isRange=!this.isDate;const ge=Object(q.i)(ee,{},J.patternProps);if(ge.assigned&&(this.on={and:ge.target}),ee.on){const ue=(Object(Y.h)(ee.on)?ee.on:[ee.on]).map(function(_e){if(Object(Y.k)(_e))return _e;const fe=Object(q.i)(_e,{},J.patternProps);return fe.assigned?fe.target:null}).filter(function(_e){return _e});ue.length&&(this.on={...this.on,or:ue})}this.isComplex=!!this.on}get opts(){return{order:this.order,locale:this.locale}}toDateInfo(ee){return ee.isDateInfo?ee:new J(ee,this.opts)}startOfWeek(ee){const te=ee.getDay()+1,re=te>=this.firstDayOfWeek?this.firstDayOfWeek-te:-(7-(this.firstDayOfWeek-te));return Object(U.a)(ee,re)}diffInDays(ee,te){return Math.round((te-ee)/G)}diffInWeeks(ee,te){return this.diffInDays(this.startOfWeek(ee),this.startOfWeek(te))}diffInYears(ee,te){return te.getUTCFullYear()-ee.getUTCFullYear()}diffInMonths(ee,te){return 12*this.diffInYears(ee,te)+(te.getMonth()-ee.getMonth())}static get patterns(){return{dailyInterval:{test:function(ee,te,re){return re.diffInDays(re.start||new Date,ee.date)%te===0}},weeklyInterval:{test:function(ee,te,re){return re.diffInWeeks(re.start||new Date,ee.date)%te===0}},monthlyInterval:{test:function(ee,te,re){return re.diffInMonths(re.start||new Date,ee.date)%te===0}},yearlyInterval:{test:function(){return function(ee,te,re){return re.diffInYears(re.start||new Date,ee.date)%te===0}}},days:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.day)||te.includes(-ee.dayFromEnd)}},weekdays:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.weekday)}},ordinalWeekdays:{validate:function(ee){return Object.keys(ee).reduce(function(te,re){const se=ee[re];return se&&(te[re]=Object(Y.h)(se)?se:[parseInt(se,10)]),te},{})},test:function(ee,te){return Object.keys(te).map(function(re){return parseInt(re,10)}).find(function(re){return te[re].includes(ee.weekday)&&(re===ee.weekdayOrdinal||re===-ee.weekdayOrdinalFromEnd)})}},weekends:{validate:function(ee){return ee},test:function(ee){return ee.weekday===1||ee.weekday===7}},workweek:{validate:function(ee){return ee},test:function(ee){return ee.weekday>=2&&ee.weekday<=6}},weeks:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.week)||te.includes(-ee.weekFromEnd)}},months:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.month)}},years:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.year)}}}}static get patternProps(){return Object.keys(J.patterns).map(function(ee){return{name:ee,validate:J.patterns[ee].validate}})}static testConfig(ee,te,re){return Object(Y.k)(ee)?ee(te):Object(Y.m)(ee)?Object.keys(ee).every(function(se){return J.patterns[se].test(te,ee[se],re)}):null}iterateDatesInRange({start:ee,end:te},re){if(!ee||!te||!Object(Y.k)(re))return null;ee=this.locale.normalizeDate(ee,{...this.opts,time:"00:00:00"});const se={i:0,date:ee,day:this.locale.getDateParts(ee),finished:!1};let ne=null;for(;!se.finished&&se.date<=te;se.i++)ne=re(se),se.date=Object(U.a)(se.date,1),se.day=this.locale.getDateParts(se.date);return ne}shallowIntersectingRange(ee){return this.rangeShallowIntersectingRange(this,this.toDateInfo(ee))}rangeShallowIntersectingRange(ee,te){if(!this.dateShallowIntersectsDate(ee,te))return null;const re=ee.toRange(),se=te.toRange();let ne=null,le=null;return re.start?ne=se.start?re.start>se.start?re.start:se.start:re.start:se.start&&(ne=se.start),re.end?le=se.end?re.end<se.end?re.end:se.end:re.end:se.end&&(le=se.end),{start:ne,end:le}}intersectsDate(ee){var te=this;const re=this.toDateInfo(ee);if(!this.shallowIntersectsDate(re))return null;if(!this.on)return this;const se=this.rangeShallowIntersectingRange(this,re);let ne=!1;return this.iterateDatesInRange(se,function(le){te.matchesDay(le.day)&&(ne=ne||re.matchesDay(le.day),le.finished=ne)}),ne}shallowIntersectsDate(ee){return this.dateShallowIntersectsDate(this,this.toDateInfo(ee))}dateShallowIntersectsDate(ee,te){return ee.isDate?te.isDate?ee.startTime===te.startTime:this.dateShallowIncludesDate(te,ee):te.isDate?this.dateShallowIncludesDate(ee,te):!(ee.start&&te.end&&ee.start>te.end)&&!(ee.end&&te.start&&ee.end<te.start)}includesDate(ee){var te=this;const re=this.toDateInfo(ee);if(!this.shallowIncludesDate(re))return!1;if(!this.on)return!0;const se=this.rangeShallowIntersectingRange(this,re);let ne=!0;return this.iterateDatesInRange(se,function(le){te.matchesDay(le.day)&&(ne=ne&&re.matchesDay(le.day),le.finished=!ne)}),ne}shallowIncludesDate(ee){return this.dateShallowIncludesDate(this,ee.isDate?ee:new J(ee,this.opts))}dateShallowIncludesDate(ee,te){return ee.isDate?te.isDate?ee.startTime===te.startTime:!(!te.startTime||!te.endTime)&&ee.startTime===te.startTime&&ee.startTime===te.endTime:te.isDate?!(ee.start&&te.start<ee.start)&&!(ee.end&&te.start>ee.end):!(ee.start&&(!te.start||te.start<ee.start))&&!(ee.end&&(!te.end||te.end>ee.end))}intersectsDay(ee){return this.shallowIntersectsDate(ee.range)&&this.matchesDay(ee)?this:null}matchesDay(ee){var te=this;return!this.on||!(this.on.and&&!J.testConfig(this.on.and,ee,this))&&!(this.on.or&&!this.on.or.some(function(re){return J.testConfig(re,ee,te)}))}toRange(){return new J({start:this.start,end:this.end},this.opts)}compare(ee){if(this.order!==ee.order)return this.order-ee.order;if(this.isDate!==ee.isDate)return this.isDate?1:-1;if(this.isDate)return 0;const te=this.start-ee.start;return te!==0?te:this.end-ee.end}}},d012:function(N,B){N.exports={}},d02c:function(N,B,j){var U=j("5e2e"),q=j("79bc"),Y=j("7b83"),K=200;function G(J,Z){var ee=this.__data__;if(ee instanceof U){var te=ee.__data__;if(!q||te.length<K-1)return te.push([J,Z]),this.size=++ee.size,this;ee=this.__data__=new Y(te)}return ee.set(J,Z),this.size=ee.size,this}N.exports=G},d039:function(N,B){N.exports=function(j){try{return!!j()}catch{return!0}}},d066:function(N,B,j){var U=j("428f"),q=j("da84"),Y=function(K){return typeof K=="function"?K:void 0};N.exports=function(K,G){return arguments.length<2?Y(U[K])||Y(q[K]):U[K]&&U[K][G]||q[K]&&q[K][G]}},d1e7:function(N,B,j){var U={}.propertyIsEnumerable,q=Object.getOwnPropertyDescriptor,Y=q&&!U.call({1:2},1);B.f=Y?function(K){var G=q(this,K);return!!G&&G.enumerable}:U},d2bb:function(N,B,j){var U=j("825a"),q=j("3bbe");N.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Y,K=!1,G={};try{Y=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Y.call(G,[]),K=G instanceof Array}catch{}return function(J,Z){return U(J),q(Z),K?Y.call(J,Z):J.__proto__=Z,J}}():void 0)},d327:function(N,B){function j(){return[]}N.exports=j},d370:function(N,B,j){var U=j("253c"),q=j("1310"),Y=Object.prototype,K=Y.hasOwnProperty,G=Y.propertyIsEnumerable,J=U(function(){return arguments}())?U:function(Z){return q(Z)&&K.call(Z,"callee")&&!G.call(Z,"callee")};N.exports=J},d438:function(N,B,j){var U=j("3db9"),q=j.n(U);q.a},d44e:function(N,B,j){var U=j("9bf2").f,q=j("5135"),Y=j("b622"),K=Y("toStringTag");N.exports=function(G,J,Z){G&&!q(G=Z?G:G.prototype,K)&&U(G,K,{configurable:!0,value:J})}},d612:function(N,B,j){var U=j("7b83"),q=j("7ed2"),Y=j("dc0f");function K(G){var J=-1,Z=G==null?0:G.length;for(this.__data__=new U;++J<Z;)this.add(G[J])}K.prototype.add=K.prototype.push=q,K.prototype.has=Y,N.exports=K},d784:function(N,B,j){j("ac1f");var U=j("6eeb"),q=j("9263"),Y=j("d039"),K=j("b622"),G=j("9112"),J=K("species"),Z=RegExp.prototype;N.exports=function(ee,te,re,se){var ne=K(ee),le=!Y(function(){var fe={};return fe[ne]=function(){return 7},""[ee](fe)!=7}),ge=le&&!Y(function(){var fe=!1,me=/a/;return ee==="split"&&(me={},me.constructor={},me.constructor[J]=function(){return me},me.flags="",me[ne]=/./[ne]),me.exec=function(){return fe=!0,null},me[ne](""),!fe});if(!le||!ge||re){var ue=/./[ne],_e=te(ne,""[ee],function(fe,me,ve,xe,oe){var ye=me.exec;return ye===q||ye===Z.exec?le&&!oe?{done:!0,value:ue.call(me,ve,xe)}:{done:!0,value:fe.call(ve,me,xe)}:{done:!1}});U(String.prototype,ee,_e[0]),U(Z,ne,_e[1])}se&&G(Z[ne],"sham",!0)}},d7ee:function(N,B,j){var U=j("c3fc"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isSet,G=K?q(K):U;N.exports=G},da03:function(N,B,j){var U=j("2b3e"),q=U["__core-js_shared__"];N.exports=q},da84:function(N,B,j){(function(U){var q=function(Y){return Y&&Y.Math==Math&&Y};N.exports=q(typeof globalThis=="object"&&globalThis)||q(typeof window=="object"&&window)||q(typeof self=="object"&&self)||q(typeof U=="object"&&U)||function(){return this}()||Function("return this")()}).call(this,j("c8ba"))},dc0f:function(N,B){function j(U){return this.__data__.has(U)}N.exports=j},dc57:function(N,B){var j=Function.prototype,U=j.toString;function q(Y){if(Y!=null){try{return U.call(Y)}catch{}try{return Y+""}catch{}}return""}N.exports=q},dc8c:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-container{--white:#fff;--black:#000;--gray-100:#f7fafc;--gray-200:#edf2f7;--gray-300:#e2e8f0;--gray-400:#cbd5e0;--gray-500:#a0aec0;--gray-600:#718096;--gray-700:#4a5568;--gray-800:#2d3748;--gray-900:#1a202c;--red-100:#fff5f5;--red-200:#fed7d7;--red-300:#feb2b2;--red-400:#fc8181;--red-500:#f56565;--red-600:#e53e3e;--red-700:#c53030;--red-800:#9b2c2c;--red-900:#742a2a;--orange-100:#fffaf0;--orange-200:#feebc8;--orange-300:#fbd38d;--orange-400:#f6ad55;--orange-500:#ed8936;--orange-600:#dd6b20;--orange-700:#c05621;--orange-800:#9c4221;--orange-900:#7b341e;--yellow-100:ivory;--yellow-200:#fefcbf;--yellow-300:#faf089;--yellow-400:#f6e05e;--yellow-500:#ecc94b;--yellow-600:#d69e2e;--yellow-700:#b7791f;--yellow-800:#975a16;--yellow-900:#744210;--green-100:#f0fff4;--green-200:#c6f6d5;--green-300:#9ae6b4;--green-400:#68d391;--green-500:#48bb78;--green-600:#38a169;--green-700:#2f855a;--green-800:#276749;--green-900:#22543d;--teal-100:#e6fffa;--teal-200:#b2f5ea;--teal-300:#81e6d9;--teal-400:#4fd1c5;--teal-500:#38b2ac;--teal-600:#319795;--teal-700:#2c7a7b;--teal-800:#285e61;--teal-900:#234e52;--blue-100:#ebf8ff;--blue-200:#bee3f8;--blue-300:#90cdf4;--blue-400:#63b3ed;--blue-500:#4299e1;--blue-600:#3182ce;--blue-700:#2b6cb0;--blue-800:#2c5282;--blue-900:#2a4365;--indigo-100:#ebf4ff;--indigo-200:#c3dafe;--indigo-300:#a3bffa;--indigo-400:#7f9cf5;--indigo-500:#667eea;--indigo-600:#5a67d8;--indigo-700:#4c51bf;--indigo-800:#434190;--indigo-900:#3c366b;--purple-100:#faf5ff;--purple-200:#e9d8fd;--purple-300:#d6bcfa;--purple-400:#b794f4;--purple-500:#9f7aea;--purple-600:#805ad5;--purple-700:#6b46c1;--purple-800:#553c9a;--purple-900:#44337a;--pink-100:#fff5f7;--pink-200:#fed7e2;--pink-300:#fbb6ce;--pink-400:#f687b3;--pink-500:#ed64a6;--pink-600:#d53f8c;--pink-700:#b83280;--pink-800:#97266d;--pink-900:#702459}.vc-container.vc-red{--accent-100:var(--red-100);--accent-200:var(--red-200);--accent-300:var(--red-300);--accent-400:var(--red-400);--accent-500:var(--red-500);--accent-600:var(--red-600);--accent-700:var(--red-700);--accent-800:var(--red-800);--accent-900:var(--red-900)}.vc-container.vc-orange{--accent-100:var(--orange-100);--accent-200:var(--orange-200);--accent-300:var(--orange-300);--accent-400:var(--orange-400);--accent-500:var(--orange-500);--accent-600:var(--orange-600);--accent-700:var(--orange-700);--accent-800:var(--orange-800);--accent-900:var(--orange-900)}.vc-container.vc-yellow{--accent-100:var(--yellow-100);--accent-200:var(--yellow-200);--accent-300:var(--yellow-300);--accent-400:var(--yellow-400);--accent-500:var(--yellow-500);--accent-600:var(--yellow-600);--accent-700:var(--yellow-700);--accent-800:var(--yellow-800);--accent-900:var(--yellow-900)}.vc-container.vc-green{--accent-100:var(--green-100);--accent-200:var(--green-200);--accent-300:var(--green-300);--accent-400:var(--green-400);--accent-500:var(--green-500);--accent-600:var(--green-600);--accent-700:var(--green-700);--accent-800:var(--green-800);--accent-900:var(--green-900)}.vc-container.vc-teal{--accent-100:var(--teal-100);--accent-200:var(--teal-200);--accent-300:var(--teal-300);--accent-400:var(--teal-400);--accent-500:var(--teal-500);--accent-600:var(--teal-600);--accent-700:var(--teal-700);--accent-800:var(--teal-800);--accent-900:var(--teal-900)}.vc-container.vc-blue{--accent-100:var(--blue-100);--accent-200:var(--blue-200);--accent-300:var(--blue-300);--accent-400:var(--blue-400);--accent-500:var(--blue-500);--accent-600:var(--blue-600);--accent-700:var(--blue-700);--accent-800:var(--blue-800);--accent-900:var(--blue-900)}.vc-container.vc-indigo{--accent-100:var(--indigo-100);--accent-200:var(--indigo-200);--accent-300:var(--indigo-300);--accent-400:var(--indigo-400);--accent-500:var(--indigo-500);--accent-600:var(--indigo-600);--accent-700:var(--indigo-700);--accent-800:var(--indigo-800);--accent-900:var(--indigo-900)}.vc-container.vc-purple{--accent-100:var(--purple-100);--accent-200:var(--purple-200);--accent-300:var(--purple-300);--accent-400:var(--purple-400);--accent-500:var(--purple-500);--accent-600:var(--purple-600);--accent-700:var(--purple-700);--accent-800:var(--purple-800);--accent-900:var(--purple-900)}.vc-container.vc-pink{--accent-100:var(--pink-100);--accent-200:var(--pink-200);--accent-300:var(--pink-300);--accent-400:var(--pink-400);--accent-500:var(--pink-500);--accent-600:var(--pink-600);--accent-700:var(--pink-700);--accent-800:var(--pink-800);--accent-900:var(--pink-900)}.vc-container{--font-normal:400;--font-medium:500;--font-semibold:600;--font-bold:700;--text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:18px;--leading-snug:1.375;--rounded:0.25rem;--rounded-lg:0.5rem;--rounded-full:9999px;--shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);--shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);--shadow-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--slide-translate:22px;--slide-duration:0.15s;--slide-timing:ease;--day-content-transition-time:0.13s ease-in;--weeknumber-offset:-34px;position:relative;display:inline-flex;width:max-content;height:max-content;font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--gray-900);background-color:var(--white);border:1px solid;border-color:var(--gray-400);border-radius:var(--rounded-lg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}.vc-container,.vc-container *{box-sizing:border-box}.vc-container:focus,.vc-container :focus{outline:none}.vc-container [role=button],.vc-container button{cursor:pointer}.vc-container.vc-is-expanded{min-width:100%}.vc-container .vc-container{border:none}.vc-container.vc-is-dark{color:var(--gray-100);background-color:var(--gray-900);border-color:var(--gray-700)}",""]),N.exports=B},dcbe:function(N,B,j){var U=j("30c9"),q=j("1310");function Y(K){return q(K)&&U(K)}N.exports=Y},dd61:function(N,B,j){var U=j("7948"),q=j("badf"),Y=j("97d3"),K=j("6747");function G(J,Z){var ee=K(J)?U:Y;return ee(J,q(Z,3))}N.exports=G},ddb0:function(N,B,j){var U=j("da84"),q=j("fdbc"),Y=j("e260"),K=j("9112"),G=j("b622"),J=G("iterator"),Z=G("toStringTag"),ee=Y.values;for(var te in q){var re=U[te],se=re&&re.prototype;if(se){if(se[J]!==ee)try{K(se,J,ee)}catch{se[J]=ee}if(se[Z]||K(se,Z,te),q[te]){for(var ne in Y)if(se[ne]!==Y[ne])try{K(se,ne,Y[ne])}catch{se[ne]=Y[ne]}}}}},de5e:function(N,B,j){var U=j("72f5"),q=j.n(U);q.a},df75:function(N,B,j){var U=j("ca84"),q=j("7839");N.exports=Object.keys||function(Y){return U(Y,q)}},df9e:function(N,B,j){var U=j("9e83");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("29f48e5f",U,!0,{sourceMap:!1,shadowMode:!1})},e031:function(N,B,j){var U=j("f909"),q=j("1a8c");function Y(K,G,J,Z,ee,te){return q(K)&&q(G)&&(te.set(G,K),U(K,G,void 0,Y,te),te.delete(G)),K}N.exports=Y},e052:function(N,B,j){var U=j("0fb2");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("54fe3190",U,!0,{sourceMap:!1,shadowMode:!1})},e0e7:function(N,B,j){var U=j("60ed");function q(Y){return U(Y)?void 0:Y}N.exports=q},e163:function(N,B,j){var U=j("5135"),q=j("7b0b"),Y=j("f772"),K=j("e177"),G=Y("IE_PROTO"),J=Object.prototype;N.exports=K?Object.getPrototypeOf:function(Z){return Z=q(Z),U(Z,G)?Z[G]:typeof Z.constructor=="function"&&Z instanceof Z.constructor?Z.constructor.prototype:Z instanceof Object?J:null}},e177:function(N,B,j){var U=j("d039");N.exports=!U(function(){function q(){}return q.prototype.constructor=null,Object.getPrototypeOf(new q)!==q.prototype})},e24b:function(N,B,j){var U=j("49f4"),q=j("1efc"),Y=j("bbc0"),K=j("7a48"),G=j("2524");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var re=Z[ee];this.set(re[0],re[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},e260:function(N,B,j){var U=j("fc6a"),q=j("44d2"),Y=j("3f8c"),K=j("69f3"),G=j("7dd0"),J="Array Iterator",Z=K.set,ee=K.getterFor(J);N.exports=G(Array,"Array",function(te,re){Z(this,{type:J,target:U(te),index:0,kind:re})},function(){var te=ee(this),re=te.target,se=te.kind,ne=te.index++;return!re||ne>=re.length?(te.target=void 0,{value:void 0,done:!0}):se=="keys"?{value:ne,done:!1}:se=="values"?{value:re[ne],done:!1}:{value:[ne,re[ne]],done:!1}},"values"),Y.Arguments=Y.Array,q("keys"),q("values"),q("entries")},e2a0:function(N,B,j){var U=j("3729"),q=j("6747"),Y=j("1310"),K="[object String]";function G(J){return typeof J=="string"||!q(J)&&Y(J)&&U(J)==K}N.exports=G},e2c0:function(N,B,j){var U=j("e2e4"),q=j("d370"),Y=j("6747"),K=j("c098"),G=j("b218"),J=j("f4d6");function Z(ee,te,re){te=U(te,ee);for(var se=-1,ne=te.length,le=!1;++se<ne;){var ge=J(te[se]);if(!(le=ee!=null&&re(ee,ge)))break;ee=ee[ge]}return le||++se!=ne?le:(ne=ee==null?0:ee.length,!!ne&&G(ne)&&K(ge,ne)&&(Y(ee)||q(ee)))}N.exports=Z},e2e4:function(N,B,j){var U=j("6747"),q=j("f608"),Y=j("18d8"),K=j("76dd");function G(J,Z){return U(J)?J:q(J,Z)?[J]:Y(K(J))}N.exports=G},e380:function(N,B,j){var U=j("7b83"),q="Expected a function";function Y(K,G){if(typeof K!="function"||G!=null&&typeof G!="function")throw new TypeError(q);var J=function(){var Z=arguments,ee=G?G.apply(this,Z):Z[0],te=J.cache;if(te.has(ee))return te.get(ee);var re=K.apply(this,Z);return J.cache=te.set(ee,re)||te,re};return J.cache=new(Y.Cache||U),J}Y.Cache=U,N.exports=Y},e3f8:function(N,B,j){var U=j("656b");function q(Y){return function(K){return U(K,Y)}}N.exports=q},e538:function(N,B,j){(function(U){var q=j("2b3e"),Y=B&&!B.nodeType&&B,K=Y&&typeof U=="object"&&U&&!U.nodeType&&U,G=K&&K.exports===Y,J=G?q.Buffer:void 0,Z=J?J.allocUnsafe:void 0;function ee(te,re){if(re)return te.slice();var se=te.length,ne=Z?Z(se):new te.constructor(se);return te.copy(ne),ne}U.exports=ee}).call(this,j("62e4")(N))},e893:function(N,B,j){var U=j("5135"),q=j("56ef"),Y=j("06cf"),K=j("9bf2");N.exports=function(G,J){for(var Z=q(J),ee=K.f,te=Y.f,re=0;re<Z.length;re++){var se=Z[re];U(G,se)||ee(G,se,te(J,se))}}},e969:function(N,B,j){var U=j("0da5");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("61c2bd5e",U,!0,{sourceMap:!1,shadowMode:!1})},eac5:function(N,B){var j=Object.prototype;function U(q){var Y=q&&q.constructor,K=typeof Y=="function"&&Y.prototype||j;return q===K}N.exports=U},ec47:function(N,B,j){var U=j("a3fd"),q=j("42a2"),Y=j("edfa"),K=j("cebd"),G="[object Map]",J="[object Set]";function Z(ee){return function(te){var re=q(te);return re==G?Y(te):re==J?K(te):U(te,ee(te))}}N.exports=Z},ec69:function(N,B,j){var U=j("6fcd"),q=j("03dd"),Y=j("30c9");function K(G){return Y(G)?U(G):q(G)}N.exports=K},ec8c:function(N,B){function j(U){var q=[];if(U!=null)for(var Y in Object(U))q.push(Y);return q}N.exports=j},ed08:function(N,B,j){j.r(B),j.d(B,"Locale",function(){return U.b}),j.d(B,"DateInfo",function(){return q.a}),j.d(B,"Attribute",function(){return Y.a}),j.d(B,"AttributeStore",function(){return K.a}),j.d(B,"setupCalendar",function(){return Z}),j.d(B,"pad",function(){return ee.m}),j.d(B,"evalFn",function(){return ee.f}),j.d(B,"mergeEvents",function(){return ee.h}),j.d(B,"pageIsValid",function(){return ee.r}),j.d(B,"pageIsBeforePage",function(){return ee.o}),j.d(B,"pageIsAfterPage",function(){return ee.n}),j.d(B,"pageIsBetweenPages",function(){return ee.p}),j.d(B,"pageIsEqualToPage",function(){return ee.q}),j.d(B,"addPages",function(){return ee.a}),j.d(B,"pageRangeToArray",function(){return ee.s}),j.d(B,"datesAreEqual",function(){return ee.d}),j.d(B,"arrayHasItems",function(){return ee.b}),j.d(B,"mixinOptionalProps",function(){return ee.i}),j.d(B,"on",function(){return ee.k}),j.d(B,"off",function(){return ee.j}),j.d(B,"elementContains",function(){return ee.e}),j.d(B,"onSpaceOrEnter",function(){return ee.l}),j.d(B,"createGuid",function(){return ee.c}),j.d(B,"hash",function(){return ee.g}),j.d(B,"addHorizontalSwipeHandler",function(){return te.a});var U=j("29ae"),q=j("cfe5"),Y=j("22f3"),K=j("9349"),G=j("51ec"),J=j("1315"),Z=function(re){const se=Object(G.b)(re);return Object(J.a)(se.screens,!0),se},ee=j("2fa3"),te=j("0733")},edfa:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K,G){Y[++q]=[G,K]}),Y}N.exports=j},ef5d:function(N,B){function j(U){return function(q){return q==null?void 0:q[U]}}N.exports=j},efb6:function(N,B,j){var U=j("5e2e");function q(){this.__data__=new U,this.size=0}N.exports=q},f15d:function(N,B,j){j("ddb0");var U=j("9404");const q={ar:{dow:7,L:"D/M/YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};q.en=q["en-US"],q.es=q["es-ES"],q.no=q.nb,q.zh=q["zh-CN"],Object(U.w)(q).forEach(function([Y,{dow:K,L:G}]){q[Y]={id:Y,firstDayOfWeek:K,masks:{L:G}}}),B.a=q},f3c1:function(N,B){var j=800,U=16,q=Date.now;function Y(K){var G=0,J=0;return function(){var Z=q(),ee=U-(Z-J);if(J=Z,ee>0){if(++G>=j)return arguments[0]}else G=0;return K.apply(void 0,arguments)}}N.exports=Y},f4d6:function(N,B,j){var U=j("ffd6"),q=1/0;function Y(K){if(typeof K=="string"||U(K))return K;var G=K+"";return G=="0"&&1/K==-q?"-0":G}N.exports=Y},f542:function(N,B,j){var U=j("ec47"),q=j("ec69"),Y=U(q);N.exports=Y},f608:function(N,B,j){var U=j("6747"),q=j("ffd6"),Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/;function G(J,Z){if(U(J))return!1;var ee=typeof J;return!(ee!="number"&&ee!="symbol"&&ee!="boolean"&&J!=null&&!q(J))||K.test(J)||!Y.test(J)||Z!=null&&J in Object(Z)}N.exports=G},f678:function(N,B,j){var U=j("8384"),q=j("b4b0");function Y(K,G,J){return J===void 0&&(J=G,G=void 0),J!==void 0&&(J=q(J),J=J===J?J:0),G!==void 0&&(G=q(G),G=G===G?G:0),U(q(K),G,J)}N.exports=Y},f772:function(N,B,j){var U=j("5692"),q=j("90e3"),Y=U("keys");N.exports=function(K){return Y[K]||(Y[K]=q(K))}},f7f1:function(N,B,j){j.d(B,"a",function(){return K});var U=j("fe1f"),q=j("fd3a"),Y=j("8c86");function K(G,J){Object(Y.a)(2,arguments);var Z=Object(q.a)(G),ee=Object(U.a)(J);return isNaN(ee)?new Date(NaN):(ee&&Z.setDate(Z.getDate()+ee),Z)}},f8af:function(N,B,j){var U=j("2474");function q(Y){var K=new Y.constructor(Y.byteLength);return new U(K).set(new U(Y)),K}N.exports=q},f909:function(N,B,j){var U=j("7e64"),q=j("b760"),Y=j("72af"),K=j("4f50"),G=j("1a8c"),J=j("9934"),Z=j("8adb");function ee(te,re,se,ne,le){te!==re&&Y(re,function(ge,ue){if(le||(le=new U),G(ge))K(te,re,ue,se,ee,ne,le);else{var _e=ne?ne(Z(te,ue),ge,ue+"",te,re,le):void 0;_e===void 0&&(_e=ge),q(te,ue,_e)}},J)}N.exports=ee},f9ce:function(N,B,j){var U=j("ef5d"),q=j("e3f8"),Y=j("f608"),K=j("f4d6");function G(J){return Y(J)?U(K(J)):q(J)}N.exports=G},fa21:function(N,B,j){var U=j("7530"),q=j("2dcb"),Y=j("eac5");function K(G){return typeof G.constructor!="function"||Y(G)?{}:U(q(G))}N.exports=K},fb15:function(N,B,j){if(j.r(B),j.d(B,"Calendar",function(){return Y.c}),j.d(B,"CalendarNav",function(){return Y.d}),j.d(B,"DatePicker",function(){return Y.f}),j.d(B,"Popover",function(){return Y.h}),j.d(B,"Locale",function(){return Y.g}),j.d(B,"DateInfo",function(){return Y.e}),j.d(B,"Attribute",function(){return Y.a}),j.d(B,"AttributeStore",function(){return Y.b}),j.d(B,"setupCalendar",function(){return Y.D}),j.d(B,"pad",function(){return Y.w}),j.d(B,"evalFn",function(){return Y.p}),j.d(B,"mergeEvents",function(){return Y.r}),j.d(B,"pageIsValid",function(){return Y.B}),j.d(B,"pageIsBeforePage",function(){return Y.y}),j.d(B,"pageIsAfterPage",function(){return Y.x}),j.d(B,"pageIsBetweenPages",function(){return Y.z}),j.d(B,"pageIsEqualToPage",function(){return Y.A}),j.d(B,"addPages",function(){return Y.j}),j.d(B,"pageRangeToArray",function(){return Y.C}),j.d(B,"datesAreEqual",function(){return Y.m}),j.d(B,"arrayHasItems",function(){return Y.k}),j.d(B,"mixinOptionalProps",function(){return Y.s}),j.d(B,"on",function(){return Y.u}),j.d(B,"off",function(){return Y.t}),j.d(B,"elementContains",function(){return Y.o}),j.d(B,"onSpaceOrEnter",function(){return Y.v}),j.d(B,"createGuid",function(){return Y.l}),j.d(B,"hash",function(){return Y.q}),j.d(B,"addHorizontalSwipeHandler",function(){return Y.i}),typeof window<"u"){var U=window.document.currentScript,q=U&&U.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);q&&(j.p=q[1])}var Y=j("34e9");B.default=Y.n},fba5:function(N,B,j){var U=j("cb5a");function q(Y){return U(this.__data__,Y)>-1}N.exports=q},fc6a:function(N,B,j){var U=j("44ad"),q=j("1d80");N.exports=function(Y){return U(q(Y))}},fccf:function(N,B,j){var U=j("53b1"),q=j.n(U);q.a},fce3:function(N,B,j){var U=j("d039");N.exports=U(function(){var q=RegExp(".","string".charAt(0));return!(q.dotAll&&q.exec(`
- `)&&q.flags==="s")})},fcff:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-svg-icon[data-v-63f7b5ec]{display:inline-block;stroke:currentColor;stroke-width:0}.vc-svg-icon path[data-v-63f7b5ec]{fill:currentColor}",""]),N.exports=B},fd3a:function(N,B,j){j.d(B,"a",function(){return q});var U=j("8c86");function q(Y){Object(U.a)(1,arguments);var K=Object.prototype.toString.call(Y);return Y instanceof Date||typeof Y=="object"&&K==="[object Date]"?new Date(Y.getTime()):typeof Y=="number"||K==="[object Number]"?new Date(Y):(typeof Y!="string"&&K!=="[object String]"||typeof console>"u"||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}},fdbc:function(N,B){N.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(N,B,j){var U=j("4930");N.exports=U&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},fe1f:function(N,B,j){function U(q){if(q===null||q===!0||q===!1)return NaN;var Y=Number(q);return isNaN(Y)?Y:Y<0?Math.ceil(Y):Math.floor(Y)}j.d(B,"a",function(){return U})},ffd6:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Symbol]";function K(G){return typeof G=="symbol"||q(G)&&U(G)==Y}N.exports=K}})})})(vCalendar_umd_min);var vCalendar_umd_minExports=vCalendar_umd_min.exports;const VCalendar=getDefaultExportFromCjs(vCalendar_umd_minExports);//! moment.js
- //! version : 2.29.4
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
- //! license : MIT
- //! momentjs.com
- var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(M){hookCallback=M}function isArray(M){return M instanceof Array||Object.prototype.toString.call(M)==="[object Array]"}function isObject(M){return M!=null&&Object.prototype.toString.call(M)==="[object Object]"}function hasOwnProp(M,$){return Object.prototype.hasOwnProperty.call(M,$)}function isObjectEmpty(M){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(M).length===0;var $;for($ in M)if(hasOwnProp(M,$))return!1;return!0}function isUndefined(M){return M===void 0}function isNumber(M){return typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]"}function isDate(M){return M instanceof Date||Object.prototype.toString.call(M)==="[object Date]"}function map(M,$){var I=[],N,B=M.length;for(N=0;N<B;++N)I.push($(M[N],N));return I}function extend(M,$){for(var I in $)hasOwnProp($,I)&&(M[I]=$[I]);return hasOwnProp($,"toString")&&(M.toString=$.toString),hasOwnProp($,"valueOf")&&(M.valueOf=$.valueOf),M}function createUTC(M,$,I,N){return createLocalOrUTC(M,$,I,N,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(M){return M._pf==null&&(M._pf=defaultParsingFlags()),M._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(M){var $=Object(this),I=$.length>>>0,N;for(N=0;N<I;N++)if(N in $&&M.call(this,$[N],N,$))return!0;return!1};function isValid(M){if(M._isValid==null){var $=getParsingFlags(M),I=some.call($.parsedDateParts,function(B){return B!=null}),N=!isNaN(M._d.getTime())&&$.overflow<0&&!$.empty&&!$.invalidEra&&!$.invalidMonth&&!$.invalidWeekday&&!$.weekdayMismatch&&!$.nullInput&&!$.invalidFormat&&!$.userInvalidated&&(!$.meridiem||$.meridiem&&I);if(M._strict&&(N=N&&$.charsLeftOver===0&&$.unusedTokens.length===0&&$.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(M))M._isValid=N;else return N}return M._isValid}function createInvalid(M){var $=createUTC(NaN);return M!=null?extend(getParsingFlags($),M):getParsingFlags($).userInvalidated=!0,$}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(M,$){var I,N,B,j=momentProperties.length;if(isUndefined($._isAMomentObject)||(M._isAMomentObject=$._isAMomentObject),isUndefined($._i)||(M._i=$._i),isUndefined($._f)||(M._f=$._f),isUndefined($._l)||(M._l=$._l),isUndefined($._strict)||(M._strict=$._strict),isUndefined($._tzm)||(M._tzm=$._tzm),isUndefined($._isUTC)||(M._isUTC=$._isUTC),isUndefined($._offset)||(M._offset=$._offset),isUndefined($._pf)||(M._pf=getParsingFlags($)),isUndefined($._locale)||(M._locale=$._locale),j>0)for(I=0;I<j;I++)N=momentProperties[I],B=$[N],isUndefined(B)||(M[N]=B);return M}function Moment(M){copyConfig(this,M),this._d=new Date(M._d!=null?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(M){return M instanceof Moment||M!=null&&M._isAMomentObject!=null}function warn(M){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+M)}function deprecate(M,$){var I=!0;return extend(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,M),I){var N=[],B,j,U,q=arguments.length;for(j=0;j<q;j++){if(B="",typeof arguments[j]=="object"){B+=`
- [`+j+"] ";for(U in arguments[0])hasOwnProp(arguments[0],U)&&(B+=U+": "+arguments[0][U]+", ");B=B.slice(0,-2)}else B=arguments[j];N.push(B)}warn(M+`
- Arguments: `+Array.prototype.slice.call(N).join("")+`
- `+new Error().stack),I=!1}return $.apply(this,arguments)},$)}var deprecations={};function deprecateSimple(M,$){hooks.deprecationHandler!=null&&hooks.deprecationHandler(M,$),deprecations[M]||(warn($),deprecations[M]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction(M){return typeof Function<"u"&&M instanceof Function||Object.prototype.toString.call(M)==="[object Function]"}function set(M){var $,I;for(I in M)hasOwnProp(M,I)&&($=M[I],isFunction($)?this[I]=$:this["_"+I]=$);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(M,$){var I=extend({},M),N;for(N in $)hasOwnProp($,N)&&(isObject(M[N])&&isObject($[N])?(I[N]={},extend(I[N],M[N]),extend(I[N],$[N])):$[N]!=null?I[N]=$[N]:delete I[N]);for(N in M)hasOwnProp(M,N)&&!hasOwnProp($,N)&&isObject(M[N])&&(I[N]=extend({},I[N]));return I}function Locale(M){M!=null&&this.set(M)}var keys;Object.keys?keys=Object.keys:keys=function(M){var $,I=[];for($ in M)hasOwnProp(M,$)&&I.push($);return I};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(M,$,I){var N=this._calendar[M]||this._calendar.sameElse;return isFunction(N)?N.call($,I):N}function zeroFill(M,$,I){var N=""+Math.abs(M),B=$-N.length,j=M>=0;return(j?I?"+":"":"-")+Math.pow(10,Math.max(0,B)).toString().substr(1)+N}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(M,$,I,N){var B=N;typeof N=="string"&&(B=function(){return this[N]()}),M&&(formatTokenFunctions[M]=B),$&&(formatTokenFunctions[$[0]]=function(){return zeroFill(B.apply(this,arguments),$[1],$[2])}),I&&(formatTokenFunctions[I]=function(){return this.localeData().ordinal(B.apply(this,arguments),M)})}function removeFormattingTokens(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function makeFormatFunction(M){var $=M.match(formattingTokens),I,N;for(I=0,N=$.length;I<N;I++)formatTokenFunctions[$[I]]?$[I]=formatTokenFunctions[$[I]]:$[I]=removeFormattingTokens($[I]);return function(B){var j="",U;for(U=0;U<N;U++)j+=isFunction($[U])?$[U].call(B,M):$[U];return j}}function formatMoment(M,$){return M.isValid()?($=expandFormat($,M.localeData()),formatFunctions[$]=formatFunctions[$]||makeFormatFunction($),formatFunctions[$](M)):M.localeData().invalidDate()}function expandFormat(M,$){var I=5;function N(B){return $.longDateFormat(B)||B}for(localFormattingTokens.lastIndex=0;I>=0&&localFormattingTokens.test(M);)M=M.replace(localFormattingTokens,N),localFormattingTokens.lastIndex=0,I-=1;return M}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(M){var $=this._longDateFormat[M],I=this._longDateFormat[M.toUpperCase()];return $||!I?$:(this._longDateFormat[M]=I.match(formattingTokens).map(function(N){return N==="MMMM"||N==="MM"||N==="DD"||N==="dddd"?N.slice(1):N}).join(""),this._longDateFormat[M])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(M){return this._ordinal.replace("%d",M)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(M,$,I,N){var B=this._relativeTime[I];return isFunction(B)?B(M,$,I,N):B.replace(/%d/i,M)}function pastFuture(M,$){var I=this._relativeTime[M>0?"future":"past"];return isFunction(I)?I($):I.replace(/%s/i,$)}var aliases={};function addUnitAlias(M,$){var I=M.toLowerCase();aliases[I]=aliases[I+"s"]=aliases[$]=M}function normalizeUnits(M){return typeof M=="string"?aliases[M]||aliases[M.toLowerCase()]:void 0}function normalizeObjectUnits(M){var $={},I,N;for(N in M)hasOwnProp(M,N)&&(I=normalizeUnits(N),I&&($[I]=M[N]));return $}var priorities={};function addUnitPriority(M,$){priorities[M]=$}function getPrioritizedUnits(M){var $=[],I;for(I in M)hasOwnProp(M,I)&&$.push({unit:I,priority:priorities[I]});return $.sort(function(N,B){return N.priority-B.priority}),$}function isLeapYear(M){return M%4===0&&M%100!==0||M%400===0}function absFloor(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function toInt(M){var $=+M,I=0;return $!==0&&isFinite($)&&(I=absFloor($)),I}function makeGetSet(M,$){return function(I){return I!=null?(set$1(this,M,I),hooks.updateOffset(this,$),this):get(this,M)}}function get(M,$){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+$]():NaN}function set$1(M,$,I){M.isValid()&&!isNaN(I)&&($==="FullYear"&&isLeapYear(M.year())&&M.month()===1&&M.date()===29?(I=toInt(I),M._d["set"+(M._isUTC?"UTC":"")+$](I,M.month(),daysInMonth(I,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+$](I))}function stringGet(M){return M=normalizeUnits(M),isFunction(this[M])?this[M]():this}function stringSet(M,$){if(typeof M=="object"){M=normalizeObjectUnits(M);var I=getPrioritizedUnits(M),N,B=I.length;for(N=0;N<B;N++)this[I[N].unit](M[I[N].unit])}else if(M=normalizeUnits(M),isFunction(this[M]))return this[M]($);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes;regexes={};function addRegexToken(M,$,I){regexes[M]=isFunction($)?$:function(N,B){return N&&I?I:$}}function getParseRegexForToken(M,$){return hasOwnProp(regexes,M)?regexes[M]($._strict,$._locale):new RegExp(unescapeFormat(M))}function unescapeFormat(M){return regexEscape(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function($,I,N,B,j){return I||N||B||j}))}function regexEscape(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(M,$){var I,N=$,B;for(typeof M=="string"&&(M=[M]),isNumber($)&&(N=function(j,U){U[$]=toInt(j)}),B=M.length,I=0;I<B;I++)tokens[M[I]]=N}function addWeekParseToken(M,$){addParseToken(M,function(I,N,B,j){B._w=B._w||{},$(I,B._w,B,j)})}function addTimeToArrayFromToken(M,$,I){$!=null&&hasOwnProp(tokens,M)&&tokens[M]($,I._a,I,M)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(M,$){return(M%$+$)%$}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(M){var $;for($=0;$<this.length;++$)if(this[$]===M)return $;return-1};function daysInMonth(M,$){if(isNaN(M)||isNaN($))return NaN;var I=mod($,12);return M+=($-I)/12,I===1?isLeapYear(M)?29:28:31-I%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(M){return this.localeData().monthsShort(this,M)});addFormatToken("MMMM",0,0,function(M){return this.localeData().months(this,M)});addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",match1to2);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(M,$){return $.monthsShortRegex(M)});addRegexToken("MMMM",function(M,$){return $.monthsRegex(M)});addParseToken(["M","MM"],function(M,$){$[MONTH]=toInt(M)-1});addParseToken(["MMM","MMMM"],function(M,$,I,N){var B=I._locale.monthsParse(M,N,I._strict);B!=null?$[MONTH]=B:getParsingFlags(I).invalidMonth=M});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(M,$){return M?isArray(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test($)?"format":"standalone"][M.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(M,$){return M?isArray(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[MONTHS_IN_FORMAT.test($)?"format":"standalone"][M.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(M,$,I){var N,B,j,U=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],N=0;N<12;++N)j=createUTC([2e3,N]),this._shortMonthsParse[N]=this.monthsShort(j,"").toLocaleLowerCase(),this._longMonthsParse[N]=this.months(j,"").toLocaleLowerCase();return I?$==="MMM"?(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:null):(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:null):$==="MMM"?(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:null)):(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:null))}function localeMonthsParse(M,$,I){var N,B,j;if(this._monthsParseExact)return handleStrictParse.call(this,M,$,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(B=createUTC([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(B,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(B,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(j="^"+this.months(B,"")+"|^"+this.monthsShort(B,""),this._monthsParse[N]=new RegExp(j.replace(".",""),"i")),I&&$==="MMMM"&&this._longMonthsParse[N].test(M))return N;if(I&&$==="MMM"&&this._shortMonthsParse[N].test(M))return N;if(!I&&this._monthsParse[N].test(M))return N}}function setMonth(M,$){var I;if(!M.isValid())return M;if(typeof $=="string"){if(/^\d+$/.test($))$=toInt($);else if($=M.localeData().monthsParse($),!isNumber($))return M}return I=Math.min(M.date(),daysInMonth(M.year(),$)),M._d["set"+(M._isUTC?"UTC":"")+"Month"]($,I),M}function getSetMonth(M){return M!=null?(setMonth(this,M),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(M){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(M){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),M?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function M(U,q){return q.length-U.length}var $=[],I=[],N=[],B,j;for(B=0;B<12;B++)j=createUTC([2e3,B]),$.push(this.monthsShort(j,"")),I.push(this.months(j,"")),N.push(this.months(j,"")),N.push(this.monthsShort(j,""));for($.sort(M),I.sort(M),N.sort(M),B=0;B<12;B++)$[B]=regexEscape($[B]),I[B]=regexEscape(I[B]);for(B=0;B<24;B++)N[B]=regexEscape(N[B]);this._monthsRegex=new RegExp("^("+N.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+$.join("|")+")","i")}addFormatToken("Y",0,0,function(){var M=this.year();return M<=9999?zeroFill(M,4):"+"+M});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(M,$){$[YEAR]=M.length===2?hooks.parseTwoDigitYear(M):toInt(M)});addParseToken("YY",function(M,$){$[YEAR]=hooks.parseTwoDigitYear(M)});addParseToken("Y",function(M,$){$[YEAR]=parseInt(M,10)});function daysInYear(M){return isLeapYear(M)?366:365}hooks.parseTwoDigitYear=function(M){return toInt(M)+(toInt(M)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(M,$,I,N,B,j,U){var q;return M<100&&M>=0?(q=new Date(M+400,$,I,N,B,j,U),isFinite(q.getFullYear())&&q.setFullYear(M)):q=new Date(M,$,I,N,B,j,U),q}function createUTCDate(M){var $,I;return M<100&&M>=0?(I=Array.prototype.slice.call(arguments),I[0]=M+400,$=new Date(Date.UTC.apply(null,I)),isFinite($.getUTCFullYear())&&$.setUTCFullYear(M)):$=new Date(Date.UTC.apply(null,arguments)),$}function firstWeekOffset(M,$,I){var N=7+$-I,B=(7+createUTCDate(M,0,N).getUTCDay()-$)%7;return-B+N-1}function dayOfYearFromWeeks(M,$,I,N,B){var j=(7+I-N)%7,U=firstWeekOffset(M,N,B),q=1+7*($-1)+j+U,Y,K;return q<=0?(Y=M-1,K=daysInYear(Y)+q):q>daysInYear(M)?(Y=M+1,K=q-daysInYear(M)):(Y=M,K=q),{year:Y,dayOfYear:K}}function weekOfYear(M,$,I){var N=firstWeekOffset(M.year(),$,I),B=Math.floor((M.dayOfYear()-N-1)/7)+1,j,U;return B<1?(U=M.year()-1,j=B+weeksInYear(U,$,I)):B>weeksInYear(M.year(),$,I)?(j=B-weeksInYear(M.year(),$,I),U=M.year()+1):(U=M.year(),j=B),{week:j,year:U}}function weeksInYear(M,$,I){var N=firstWeekOffset(M,$,I),B=firstWeekOffset(M+1,$,I);return(daysInYear(M)-N+B)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(M,$,I,N){$[N.substr(0,1)]=toInt(M)});function localeWeek(M){return weekOfYear(M,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(M){var $=this.localeData().week(this);return M==null?$:this.add((M-$)*7,"d")}function getSetISOWeek(M){var $=weekOfYear(this,1,4).week;return M==null?$:this.add((M-$)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(M){return this.localeData().weekdaysMin(this,M)});addFormatToken("ddd",0,0,function(M){return this.localeData().weekdaysShort(this,M)});addFormatToken("dddd",0,0,function(M){return this.localeData().weekdays(this,M)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(M,$){return $.weekdaysMinRegex(M)});addRegexToken("ddd",function(M,$){return $.weekdaysShortRegex(M)});addRegexToken("dddd",function(M,$){return $.weekdaysRegex(M)});addWeekParseToken(["dd","ddd","dddd"],function(M,$,I,N){var B=I._locale.weekdaysParse(M,N,I._strict);B!=null?$.d=B:getParsingFlags(I).invalidWeekday=M});addWeekParseToken(["d","e","E"],function(M,$,I,N){$[N]=toInt(M)});function parseWeekday(M,$){return typeof M!="string"?M:isNaN(M)?(M=$.weekdaysParse(M),typeof M=="number"?M:null):parseInt(M,10)}function parseIsoWeekday(M,$){return typeof M=="string"?$.weekdaysParse(M)%7||7:isNaN(M)?null:M}function shiftWeekdays(M,$){return M.slice($,7).concat(M.slice(0,$))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(M,$){var I=isArray(this._weekdays)?this._weekdays:this._weekdays[M&&M!==!0&&this._weekdays.isFormat.test($)?"format":"standalone"];return M===!0?shiftWeekdays(I,this._week.dow):M?I[M.day()]:I}function localeWeekdaysShort(M){return M===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function localeWeekdaysMin(M){return M===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function handleStrictParse$1(M,$,I){var N,B,j,U=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)j=createUTC([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(j,"").toLocaleLowerCase();return I?$==="dddd"?(B=indexOf.call(this._weekdaysParse,U),B!==-1?B:null):$==="ddd"?(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1?B:null):(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null):$==="dddd"?(B=indexOf.call(this._weekdaysParse,U),B!==-1||(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null)):$==="ddd"?(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1||(B=indexOf.call(this._weekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null)):(B=indexOf.call(this._minWeekdaysParse,U),B!==-1||(B=indexOf.call(this._weekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1?B:null))}function localeWeekdaysParse(M,$,I){var N,B,j;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,M,$,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(B=createUTC([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(B,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(B,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(B,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(j="^"+this.weekdays(B,"")+"|^"+this.weekdaysShort(B,"")+"|^"+this.weekdaysMin(B,""),this._weekdaysParse[N]=new RegExp(j.replace(".",""),"i")),I&&$==="dddd"&&this._fullWeekdaysParse[N].test(M))return N;if(I&&$==="ddd"&&this._shortWeekdaysParse[N].test(M))return N;if(I&&$==="dd"&&this._minWeekdaysParse[N].test(M))return N;if(!I&&this._weekdaysParse[N].test(M))return N}}function getSetDayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;var $=this._isUTC?this._d.getUTCDay():this._d.getDay();return M!=null?(M=parseWeekday(M,this.localeData()),this.add(M-$,"d")):$}function getSetLocaleDayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;var $=(this.day()+7-this.localeData()._week.dow)%7;return M==null?$:this.add(M-$,"d")}function getSetISODayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;if(M!=null){var $=parseIsoWeekday(M,this.localeData());return this.day(this.day()%7?$:$-7)}else return this.day()||7}function weekdaysRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function M(G,J){return J.length-G.length}var $=[],I=[],N=[],B=[],j,U,q,Y,K;for(j=0;j<7;j++)U=createUTC([2e3,1]).day(j),q=regexEscape(this.weekdaysMin(U,"")),Y=regexEscape(this.weekdaysShort(U,"")),K=regexEscape(this.weekdays(U,"")),$.push(q),I.push(Y),N.push(K),B.push(q),B.push(Y),B.push(K);$.sort(M),I.sort(M),N.sort(M),B.sort(M),this._weekdaysRegex=new RegExp("^("+B.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+$.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(M,$){addFormatToken(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),$)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(M,$){return $._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(M,$,I){var N=toInt(M);$[HOUR]=N===24?0:N});addParseToken(["a","A"],function(M,$,I){I._isPm=I._locale.isPM(M),I._meridiem=M});addParseToken(["h","hh"],function(M,$,I){$[HOUR]=toInt(M),getParsingFlags(I).bigHour=!0});addParseToken("hmm",function(M,$,I){var N=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N)),getParsingFlags(I).bigHour=!0});addParseToken("hmmss",function(M,$,I){var N=M.length-4,B=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N,2)),$[SECOND]=toInt(M.substr(B)),getParsingFlags(I).bigHour=!0});addParseToken("Hmm",function(M,$,I){var N=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N))});addParseToken("Hmmss",function(M,$,I){var N=M.length-4,B=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N,2)),$[SECOND]=toInt(M.substr(B))});function localeIsPM(M){return(M+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(M,$,I){return M>11?I?"pm":"PM":I?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(M,$){var I,N=Math.min(M.length,$.length);for(I=0;I<N;I+=1)if(M[I]!==$[I])return I;return N}function normalizeLocale(M){return M&&M.toLowerCase().replace("_","-")}function chooseLocale(M){for(var $=0,I,N,B,j;$<M.length;){for(j=normalizeLocale(M[$]).split("-"),I=j.length,N=normalizeLocale(M[$+1]),N=N?N.split("-"):null;I>0;){if(B=loadLocale(j.slice(0,I).join("-")),B)return B;if(N&&N.length>=I&&commonPrefix(j,N)>=I-1)break;I--}$++}return globalLocale}function isLocaleNameSane(M){return M.match("^[^/\\\\]*$")!=null}function loadLocale(M){var $=null,I;if(locales[M]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(M))try{$=globalLocale._abbr,I=require,I("./locale/"+M),getSetGlobalLocale($)}catch{locales[M]=null}return locales[M]}function getSetGlobalLocale(M,$){var I;return M&&(isUndefined($)?I=getLocale(M):I=defineLocale(M,$),I?globalLocale=I:typeof console<"u"&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(M,$){if($!==null){var I,N=baseConfig;if($.abbr=M,locales[M]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),N=locales[M]._config;else if($.parentLocale!=null)if(locales[$.parentLocale]!=null)N=locales[$.parentLocale]._config;else if(I=loadLocale($.parentLocale),I!=null)N=I._config;else return localeFamilies[$.parentLocale]||(localeFamilies[$.parentLocale]=[]),localeFamilies[$.parentLocale].push({name:M,config:$}),null;return locales[M]=new Locale(mergeConfigs(N,$)),localeFamilies[M]&&localeFamilies[M].forEach(function(B){defineLocale(B.name,B.config)}),getSetGlobalLocale(M),locales[M]}else return delete locales[M],null}function updateLocale(M,$){if($!=null){var I,N,B=baseConfig;locales[M]!=null&&locales[M].parentLocale!=null?locales[M].set(mergeConfigs(locales[M]._config,$)):(N=loadLocale(M),N!=null&&(B=N._config),$=mergeConfigs(B,$),N==null&&($.abbr=M),I=new Locale($),I.parentLocale=locales[M],locales[M]=I),getSetGlobalLocale(M)}else locales[M]!=null&&(locales[M].parentLocale!=null?(locales[M]=locales[M].parentLocale,M===getSetGlobalLocale()&&getSetGlobalLocale(M)):locales[M]!=null&&delete locales[M]);return locales[M]}function getLocale(M){var $;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return globalLocale;if(!isArray(M)){if($=loadLocale(M),$)return $;M=[M]}return chooseLocale(M)}function listLocales(){return keys(locales)}function checkOverflow(M){var $,I=M._a;return I&&getParsingFlags(M).overflow===-2&&($=I[MONTH]<0||I[MONTH]>11?MONTH:I[DATE]<1||I[DATE]>daysInMonth(I[YEAR],I[MONTH])?DATE:I[HOUR]<0||I[HOUR]>24||I[HOUR]===24&&(I[MINUTE]!==0||I[SECOND]!==0||I[MILLISECOND]!==0)?HOUR:I[MINUTE]<0||I[MINUTE]>59?MINUTE:I[SECOND]<0||I[SECOND]>59?SECOND:I[MILLISECOND]<0||I[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(M)._overflowDayOfYear&&($<YEAR||$>DATE)&&($=DATE),getParsingFlags(M)._overflowWeeks&&$===-1&&($=WEEK),getParsingFlags(M)._overflowWeekday&&$===-1&&($=WEEKDAY),getParsingFlags(M).overflow=$),M}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(M){var $,I,N=M._i,B=extendedIsoRegex.exec(N)||basicIsoRegex.exec(N),j,U,q,Y,K=isoDates.length,G=isoTimes.length;if(B){for(getParsingFlags(M).iso=!0,$=0,I=K;$<I;$++)if(isoDates[$][1].exec(B[1])){U=isoDates[$][0],j=isoDates[$][2]!==!1;break}if(U==null){M._isValid=!1;return}if(B[3]){for($=0,I=G;$<I;$++)if(isoTimes[$][1].exec(B[3])){q=(B[2]||" ")+isoTimes[$][0];break}if(q==null){M._isValid=!1;return}}if(!j&&q!=null){M._isValid=!1;return}if(B[4])if(tzRegex.exec(B[4]))Y="Z";else{M._isValid=!1;return}M._f=U+(q||"")+(Y||""),configFromStringAndFormat(M)}else M._isValid=!1}function extractFromRFC2822Strings(M,$,I,N,B,j){var U=[untruncateYear(M),defaultLocaleMonthsShort.indexOf($),parseInt(I,10),parseInt(N,10),parseInt(B,10)];return j&&U.push(parseInt(j,10)),U}function untruncateYear(M){var $=parseInt(M,10);return $<=49?2e3+$:$<=999?1900+$:$}function preprocessRFC2822(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(M,$,I){if(M){var N=defaultLocaleWeekdaysShort.indexOf(M),B=new Date($[0],$[1],$[2]).getDay();if(N!==B)return getParsingFlags(I).weekdayMismatch=!0,I._isValid=!1,!1}return!0}function calculateOffset(M,$,I){if(M)return obsOffsets[M];if($)return 0;var N=parseInt(I,10),B=N%100,j=(N-B)/100;return j*60+B}function configFromRFC2822(M){var $=rfc2822.exec(preprocessRFC2822(M._i)),I;if($){if(I=extractFromRFC2822Strings($[4],$[3],$[2],$[5],$[6],$[7]),!checkWeekday($[1],I,M))return;M._a=I,M._tzm=calculateOffset($[8],$[9],$[10]),M._d=createUTCDate.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),getParsingFlags(M).rfc2822=!0}else M._isValid=!1}function configFromString(M){var $=aspNetJsonRegex.exec(M._i);if($!==null){M._d=new Date(+$[1]);return}if(configFromISO(M),M._isValid===!1)delete M._isValid;else return;if(configFromRFC2822(M),M._isValid===!1)delete M._isValid;else return;M._strict?M._isValid=!1:hooks.createFromInputFallback(M)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))});function defaults(M,$,I){return M??$??I}function currentDateArray(M){var $=new Date(hooks.now());return M._useUTC?[$.getUTCFullYear(),$.getUTCMonth(),$.getUTCDate()]:[$.getFullYear(),$.getMonth(),$.getDate()]}function configFromArray(M){var $,I,N=[],B,j,U;if(!M._d){for(B=currentDateArray(M),M._w&&M._a[DATE]==null&&M._a[MONTH]==null&&dayOfYearFromWeekInfo(M),M._dayOfYear!=null&&(U=defaults(M._a[YEAR],B[YEAR]),(M._dayOfYear>daysInYear(U)||M._dayOfYear===0)&&(getParsingFlags(M)._overflowDayOfYear=!0),I=createUTCDate(U,0,M._dayOfYear),M._a[MONTH]=I.getUTCMonth(),M._a[DATE]=I.getUTCDate()),$=0;$<3&&M._a[$]==null;++$)M._a[$]=N[$]=B[$];for(;$<7;$++)M._a[$]=N[$]=M._a[$]==null?$===2?1:0:M._a[$];M._a[HOUR]===24&&M._a[MINUTE]===0&&M._a[SECOND]===0&&M._a[MILLISECOND]===0&&(M._nextDay=!0,M._a[HOUR]=0),M._d=(M._useUTC?createUTCDate:createDate).apply(null,N),j=M._useUTC?M._d.getUTCDay():M._d.getDay(),M._tzm!=null&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[HOUR]=24),M._w&&typeof M._w.d<"u"&&M._w.d!==j&&(getParsingFlags(M).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(M){var $,I,N,B,j,U,q,Y,K;$=M._w,$.GG!=null||$.W!=null||$.E!=null?(j=1,U=4,I=defaults($.GG,M._a[YEAR],weekOfYear(createLocal(),1,4).year),N=defaults($.W,1),B=defaults($.E,1),(B<1||B>7)&&(Y=!0)):(j=M._locale._week.dow,U=M._locale._week.doy,K=weekOfYear(createLocal(),j,U),I=defaults($.gg,M._a[YEAR],K.year),N=defaults($.w,K.week),$.d!=null?(B=$.d,(B<0||B>6)&&(Y=!0)):$.e!=null?(B=$.e+j,($.e<0||$.e>6)&&(Y=!0)):B=j),N<1||N>weeksInYear(I,j,U)?getParsingFlags(M)._overflowWeeks=!0:Y!=null?getParsingFlags(M)._overflowWeekday=!0:(q=dayOfYearFromWeeks(I,N,B,j,U),M._a[YEAR]=q.year,M._dayOfYear=q.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(M){if(M._f===hooks.ISO_8601){configFromISO(M);return}if(M._f===hooks.RFC_2822){configFromRFC2822(M);return}M._a=[],getParsingFlags(M).empty=!0;var $=""+M._i,I,N,B,j,U,q=$.length,Y=0,K,G;for(B=expandFormat(M._f,M._locale).match(formattingTokens)||[],G=B.length,I=0;I<G;I++)j=B[I],N=($.match(getParseRegexForToken(j,M))||[])[0],N&&(U=$.substr(0,$.indexOf(N)),U.length>0&&getParsingFlags(M).unusedInput.push(U),$=$.slice($.indexOf(N)+N.length),Y+=N.length),formatTokenFunctions[j]?(N?getParsingFlags(M).empty=!1:getParsingFlags(M).unusedTokens.push(j),addTimeToArrayFromToken(j,N,M)):M._strict&&!N&&getParsingFlags(M).unusedTokens.push(j);getParsingFlags(M).charsLeftOver=q-Y,$.length>0&&getParsingFlags(M).unusedInput.push($),M._a[HOUR]<=12&&getParsingFlags(M).bigHour===!0&&M._a[HOUR]>0&&(getParsingFlags(M).bigHour=void 0),getParsingFlags(M).parsedDateParts=M._a.slice(0),getParsingFlags(M).meridiem=M._meridiem,M._a[HOUR]=meridiemFixWrap(M._locale,M._a[HOUR],M._meridiem),K=getParsingFlags(M).era,K!==null&&(M._a[YEAR]=M._locale.erasConvertYear(K,M._a[YEAR])),configFromArray(M),checkOverflow(M)}function meridiemFixWrap(M,$,I){var N;return I==null?$:M.meridiemHour!=null?M.meridiemHour($,I):(M.isPM!=null&&(N=M.isPM(I),N&&$<12&&($+=12),!N&&$===12&&($=0)),$)}function configFromStringAndArray(M){var $,I,N,B,j,U,q=!1,Y=M._f.length;if(Y===0){getParsingFlags(M).invalidFormat=!0,M._d=new Date(NaN);return}for(B=0;B<Y;B++)j=0,U=!1,$=copyConfig({},M),M._useUTC!=null&&($._useUTC=M._useUTC),$._f=M._f[B],configFromStringAndFormat($),isValid($)&&(U=!0),j+=getParsingFlags($).charsLeftOver,j+=getParsingFlags($).unusedTokens.length*10,getParsingFlags($).score=j,q?j<N&&(N=j,I=$):(N==null||j<N||U)&&(N=j,I=$,U&&(q=!0));extend(M,I||$)}function configFromObject(M){if(!M._d){var $=normalizeObjectUnits(M._i),I=$.day===void 0?$.date:$.day;M._a=map([$.year,$.month,I,$.hour,$.minute,$.second,$.millisecond],function(N){return N&&parseInt(N,10)}),configFromArray(M)}}function createFromConfig(M){var $=new Moment(checkOverflow(prepareConfig(M)));return $._nextDay&&($.add(1,"d"),$._nextDay=void 0),$}function prepareConfig(M){var $=M._i,I=M._f;return M._locale=M._locale||getLocale(M._l),$===null||I===void 0&&$===""?createInvalid({nullInput:!0}):(typeof $=="string"&&(M._i=$=M._locale.preparse($)),isMoment($)?new Moment(checkOverflow($)):(isDate($)?M._d=$:isArray(I)?configFromStringAndArray(M):I?configFromStringAndFormat(M):configFromInput(M),isValid(M)||(M._d=null),M))}function configFromInput(M){var $=M._i;isUndefined($)?M._d=new Date(hooks.now()):isDate($)?M._d=new Date($.valueOf()):typeof $=="string"?configFromString(M):isArray($)?(M._a=map($.slice(0),function(I){return parseInt(I,10)}),configFromArray(M)):isObject($)?configFromObject(M):isNumber($)?M._d=new Date($):hooks.createFromInputFallback(M)}function createLocalOrUTC(M,$,I,N,B){var j={};return($===!0||$===!1)&&(N=$,$=void 0),(I===!0||I===!1)&&(N=I,I=void 0),(isObject(M)&&isObjectEmpty(M)||isArray(M)&&M.length===0)&&(M=void 0),j._isAMomentObject=!0,j._useUTC=j._isUTC=B,j._l=I,j._i=M,j._f=$,j._strict=N,createFromConfig(j)}function createLocal(M,$,I,N){return createLocalOrUTC(M,$,I,N,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=createLocal.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=createLocal.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:createInvalid()});function pickBy(M,$){var I,N;if($.length===1&&isArray($[0])&&($=$[0]),!$.length)return createLocal();for(I=$[0],N=1;N<$.length;++N)(!$[N].isValid()||$[N][M](I))&&(I=$[N]);return I}function min(){var M=[].slice.call(arguments,0);return pickBy("isBefore",M)}function max(){var M=[].slice.call(arguments,0);return pickBy("isAfter",M)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(M){var $,I=!1,N,B=ordering.length;for($ in M)if(hasOwnProp(M,$)&&!(indexOf.call(ordering,$)!==-1&&(M[$]==null||!isNaN(M[$]))))return!1;for(N=0;N<B;++N)if(M[ordering[N]]){if(I)return!1;parseFloat(M[ordering[N]])!==toInt(M[ordering[N]])&&(I=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(M){var $=normalizeObjectUnits(M),I=$.year||0,N=$.quarter||0,B=$.month||0,j=$.week||$.isoWeek||0,U=$.day||0,q=$.hour||0,Y=$.minute||0,K=$.second||0,G=$.millisecond||0;this._isValid=isDurationValid($),this._milliseconds=+G+K*1e3+Y*6e4+q*1e3*60*60,this._days=+U+j*7,this._months=+B+N*3+I*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(M){return M instanceof Duration}function absRound(M){return M<0?Math.round(-1*M)*-1:Math.round(M)}function compareArrays(M,$,I){var N=Math.min(M.length,$.length),B=Math.abs(M.length-$.length),j=0,U;for(U=0;U<N;U++)(I&&M[U]!==$[U]||!I&&toInt(M[U])!==toInt($[U]))&&j++;return j+B}function offset(M,$){addFormatToken(M,0,0,function(){var I=this.utcOffset(),N="+";return I<0&&(I=-I,N="-"),N+zeroFill(~~(I/60),2)+$+zeroFill(~~I%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(M,$,I){I._useUTC=!0,I._tzm=offsetFromString(matchShortOffset,M)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(M,$){var I=($||"").match(M),N,B,j;return I===null?null:(N=I[I.length-1]||[],B=(N+"").match(chunkOffset)||["-",0,0],j=+(B[1]*60)+toInt(B[2]),j===0?0:B[0]==="+"?j:-j)}function cloneWithOffset(M,$){var I,N;return $._isUTC?(I=$.clone(),N=(isMoment(M)||isDate(M)?M.valueOf():createLocal(M).valueOf())-I.valueOf(),I._d.setTime(I._d.valueOf()+N),hooks.updateOffset(I,!1),I):createLocal(M).local()}function getDateOffset(M){return-Math.round(M._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(M,$,I){var N=this._offset||0,B;if(!this.isValid())return M!=null?this:NaN;if(M!=null){if(typeof M=="string"){if(M=offsetFromString(matchShortOffset,M),M===null)return this}else Math.abs(M)<16&&!I&&(M=M*60);return!this._isUTC&&$&&(B=getDateOffset(this)),this._offset=M,this._isUTC=!0,B!=null&&this.add(B,"m"),N!==M&&(!$||this._changeInProgress?addSubtract(this,createDuration(M-N,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?N:getDateOffset(this)}function getSetZone(M,$){return M!=null?(typeof M!="string"&&(M=-M),this.utcOffset(M,$),this):-this.utcOffset()}function setOffsetToUTC(M){return this.utcOffset(0,M)}function setOffsetToLocal(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var M=offsetFromString(matchOffset,this._i);M!=null?this.utcOffset(M):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(M){return this.isValid()?(M=M?createLocal(M).utcOffset():0,(this.utcOffset()-M)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var M={},$;return copyConfig(M,this),M=prepareConfig(M),M._a?($=M._isUTC?createUTC(M._a):createLocal(M._a),this._isDSTShifted=this.isValid()&&compareArrays(M._a,$.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(M,$){var I=M,N=null,B,j,U;return isDuration(M)?I={ms:M._milliseconds,d:M._days,M:M._months}:isNumber(M)||!isNaN(+M)?(I={},$?I[$]=+M:I.milliseconds=+M):(N=aspNetRegex.exec(M))?(B=N[1]==="-"?-1:1,I={y:0,d:toInt(N[DATE])*B,h:toInt(N[HOUR])*B,m:toInt(N[MINUTE])*B,s:toInt(N[SECOND])*B,ms:toInt(absRound(N[MILLISECOND]*1e3))*B}):(N=isoRegex.exec(M))?(B=N[1]==="-"?-1:1,I={y:parseIso(N[2],B),M:parseIso(N[3],B),w:parseIso(N[4],B),d:parseIso(N[5],B),h:parseIso(N[6],B),m:parseIso(N[7],B),s:parseIso(N[8],B)}):I==null?I={}:typeof I=="object"&&("from"in I||"to"in I)&&(U=momentsDifference(createLocal(I.from),createLocal(I.to)),I={},I.ms=U.milliseconds,I.M=U.months),j=new Duration(I),isDuration(M)&&hasOwnProp(M,"_locale")&&(j._locale=M._locale),isDuration(M)&&hasOwnProp(M,"_isValid")&&(j._isValid=M._isValid),j}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(M,$){var I=M&&parseFloat(M.replace(",","."));return(isNaN(I)?0:I)*$}function positiveMomentsDifference(M,$){var I={};return I.months=$.month()-M.month()+($.year()-M.year())*12,M.clone().add(I.months,"M").isAfter($)&&--I.months,I.milliseconds=+$-+M.clone().add(I.months,"M"),I}function momentsDifference(M,$){var I;return M.isValid()&&$.isValid()?($=cloneWithOffset($,M),M.isBefore($)?I=positiveMomentsDifference(M,$):(I=positiveMomentsDifference($,M),I.milliseconds=-I.milliseconds,I.months=-I.months),I):{milliseconds:0,months:0}}function createAdder(M,$){return function(I,N){var B,j;return N!==null&&!isNaN(+N)&&(deprecateSimple($,"moment()."+$+"(period, number) is deprecated. Please use moment()."+$+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=I,I=N,N=j),B=createDuration(I,N),addSubtract(this,B,M),this}}function addSubtract(M,$,I,N){var B=$._milliseconds,j=absRound($._days),U=absRound($._months);M.isValid()&&(N=N??!0,U&&setMonth(M,get(M,"Month")+U*I),j&&set$1(M,"Date",get(M,"Date")+j*I),B&&M._d.setTime(M._d.valueOf()+B*I),N&&hooks.updateOffset(M,j||U))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(M){return typeof M=="string"||M instanceof String}function isMomentInput(M){return isMoment(M)||isDate(M)||isString(M)||isNumber(M)||isNumberOrStringArray(M)||isMomentInputObject(M)||M===null||M===void 0}function isMomentInputObject(M){var $=isObject(M)&&!isObjectEmpty(M),I=!1,N=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],B,j,U=N.length;for(B=0;B<U;B+=1)j=N[B],I=I||hasOwnProp(M,j);return $&&I}function isNumberOrStringArray(M){var $=isArray(M),I=!1;return $&&(I=M.filter(function(N){return!isNumber(N)&&isString(M)}).length===0),$&&I}function isCalendarSpec(M){var $=isObject(M)&&!isObjectEmpty(M),I=!1,N=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],B,j;for(B=0;B<N.length;B+=1)j=N[B],I=I||hasOwnProp(M,j);return $&&I}function getCalendarFormat(M,$){var I=M.diff($,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"}function calendar$1(M,$){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(M=arguments[0],$=void 0):isCalendarSpec(arguments[0])&&($=arguments[0],M=void 0):(M=void 0,$=void 0));var I=M||createLocal(),N=cloneWithOffset(I,this).startOf("day"),B=hooks.calendarFormat(this,N)||"sameElse",j=$&&(isFunction($[B])?$[B].call(this,I):$[B]);return this.format(j||this.localeData().calendar(B,this,createLocal(I)))}function clone$1(){return new Moment(this)}function isAfter(M,$){var I=isMoment(M)?M:createLocal(M);return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()>I.valueOf():I.valueOf()<this.clone().startOf($).valueOf()):!1}function isBefore(M,$){var I=isMoment(M)?M:createLocal(M);return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()<I.valueOf():this.clone().endOf($).valueOf()<I.valueOf()):!1}function isBetween(M,$,I,N){var B=isMoment(M)?M:createLocal(M),j=isMoment($)?$:createLocal($);return this.isValid()&&B.isValid()&&j.isValid()?(N=N||"()",(N[0]==="("?this.isAfter(B,I):!this.isBefore(B,I))&&(N[1]===")"?this.isBefore(j,I):!this.isAfter(j,I))):!1}function isSame(M,$){var I=isMoment(M)?M:createLocal(M),N;return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()===I.valueOf():(N=I.valueOf(),this.clone().startOf($).valueOf()<=N&&N<=this.clone().endOf($).valueOf())):!1}function isSameOrAfter(M,$){return this.isSame(M,$)||this.isAfter(M,$)}function isSameOrBefore(M,$){return this.isSame(M,$)||this.isBefore(M,$)}function diff(M,$,I){var N,B,j;if(!this.isValid())return NaN;if(N=cloneWithOffset(M,this),!N.isValid())return NaN;switch(B=(N.utcOffset()-this.utcOffset())*6e4,$=normalizeUnits($),$){case"year":j=monthDiff(this,N)/12;break;case"month":j=monthDiff(this,N);break;case"quarter":j=monthDiff(this,N)/3;break;case"second":j=(this-N)/1e3;break;case"minute":j=(this-N)/6e4;break;case"hour":j=(this-N)/36e5;break;case"day":j=(this-N-B)/864e5;break;case"week":j=(this-N-B)/6048e5;break;default:j=this-N}return I?j:absFloor(j)}function monthDiff(M,$){if(M.date()<$.date())return-monthDiff($,M);var I=($.year()-M.year())*12+($.month()-M.month()),N=M.clone().add(I,"months"),B,j;return $-N<0?(B=M.clone().add(I-1,"months"),j=($-N)/(N-B)):(B=M.clone().add(I+1,"months"),j=($-N)/(B-N)),-(I+j)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(M){if(!this.isValid())return null;var $=M!==!0,I=$?this.clone().utc():this;return I.year()<0||I.year()>9999?formatMoment(I,$?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?$?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(I,"Z")):formatMoment(I,$?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M="moment",$="",I,N,B,j;return this.isLocal()||(M=this.utcOffset()===0?"moment.utc":"moment.parseZone",$="Z"),I="["+M+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",B="-MM-DD[T]HH:mm:ss.SSS",j=$+'[")]',this.format(I+N+B+j)}function format(M){M||(M=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var $=formatMoment(this,M);return this.localeData().postformat($)}function from(M,$){return this.isValid()&&(isMoment(M)&&M.isValid()||createLocal(M).isValid())?createDuration({to:this,from:M}).locale(this.locale()).humanize(!$):this.localeData().invalidDate()}function fromNow(M){return this.from(createLocal(),M)}function to(M,$){return this.isValid()&&(isMoment(M)&&M.isValid()||createLocal(M).isValid())?createDuration({from:this,to:M}).locale(this.locale()).humanize(!$):this.localeData().invalidDate()}function toNow(M){return this.to(createLocal(),M)}function locale(M){var $;return M===void 0?this._locale._abbr:($=getLocale(M),$!=null&&(this._locale=$),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(M){return M===void 0?this.localeData():this.locale(M)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(M,$){return(M%$+$)%$}function localStartOfDate(M,$,I){return M<100&&M>=0?new Date(M+400,$,I)-MS_PER_400_YEARS:new Date(M,$,I).valueOf()}function utcStartOfDate(M,$,I){return M<100&&M>=0?Date.UTC(M+400,$,I)-MS_PER_400_YEARS:Date.UTC(M,$,I)}function startOf(M){var $,I;if(M=normalizeUnits(M),M===void 0||M==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?utcStartOfDate:localStartOfDate,M){case"year":$=I(this.year(),0,1);break;case"quarter":$=I(this.year(),this.month()-this.month()%3,1);break;case"month":$=I(this.year(),this.month(),1);break;case"week":$=I(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":$=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":$=I(this.year(),this.month(),this.date());break;case"hour":$=this._d.valueOf(),$-=mod$1($+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":$=this._d.valueOf(),$-=mod$1($,MS_PER_MINUTE);break;case"second":$=this._d.valueOf(),$-=mod$1($,MS_PER_SECOND);break}return this._d.setTime($),hooks.updateOffset(this,!0),this}function endOf(M){var $,I;if(M=normalizeUnits(M),M===void 0||M==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?utcStartOfDate:localStartOfDate,M){case"year":$=I(this.year()+1,0,1)-1;break;case"quarter":$=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":$=I(this.year(),this.month()+1,1)-1;break;case"week":$=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":$=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":$=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":$=this._d.valueOf(),$+=MS_PER_HOUR-mod$1($+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":$=this._d.valueOf(),$+=MS_PER_MINUTE-mod$1($,MS_PER_MINUTE)-1;break;case"second":$=this._d.valueOf(),$+=MS_PER_SECOND-mod$1($,MS_PER_SECOND)-1;break}return this._d.setTime($),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function toObject(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(M,$,I,N){var B=I._locale.erasParse(M,N,I._strict);B?getParsingFlags(I).era=B:getParsingFlags(I).invalidEra=M});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(M,$,I,N){var B;I._locale._eraYearOrdinalRegex&&(B=M.match(I._locale._eraYearOrdinalRegex)),I._locale.eraYearOrdinalParse?$[YEAR]=I._locale.eraYearOrdinalParse(M,B):$[YEAR]=parseInt(M,10)});function localeEras(M,$){var I,N,B,j=this._eras||getLocale("en")._eras;for(I=0,N=j.length;I<N;++I){switch(typeof j[I].since){case"string":B=hooks(j[I].since).startOf("day"),j[I].since=B.valueOf();break}switch(typeof j[I].until){case"undefined":j[I].until=1/0;break;case"string":B=hooks(j[I].until).startOf("day").valueOf(),j[I].until=B.valueOf();break}}return j}function localeErasParse(M,$,I){var N,B,j=this.eras(),U,q,Y;for(M=M.toUpperCase(),N=0,B=j.length;N<B;++N)if(U=j[N].name.toUpperCase(),q=j[N].abbr.toUpperCase(),Y=j[N].narrow.toUpperCase(),I)switch($){case"N":case"NN":case"NNN":if(q===M)return j[N];break;case"NNNN":if(U===M)return j[N];break;case"NNNNN":if(Y===M)return j[N];break}else if([U,q,Y].indexOf(M)>=0)return j[N]}function localeErasConvertYear(M,$){var I=M.since<=M.until?1:-1;return $===void 0?hooks(M.since).year():hooks(M.since).year()+($-M.offset)*I}function getEraName(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].name;return""}function getEraNarrow(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].narrow;return""}function getEraAbbr(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].abbr;return""}function getEraYear(){var M,$,I,N,B=this.localeData().eras();for(M=0,$=B.length;M<$;++M)if(I=B[M].since<=B[M].until?1:-1,N=this.clone().startOf("day").valueOf(),B[M].since<=N&&N<=B[M].until||B[M].until<=N&&N<=B[M].since)return(this.year()-hooks(B[M].since).year())*I+B[M].offset;return this.year()}function erasNameRegex(M){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),M?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(M){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),M?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(M){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),M?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(M,$){return $.erasAbbrRegex(M)}function matchEraName(M,$){return $.erasNameRegex(M)}function matchEraNarrow(M,$){return $.erasNarrowRegex(M)}function matchEraYearOrdinal(M,$){return $._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var M=[],$=[],I=[],N=[],B,j,U=this.eras();for(B=0,j=U.length;B<j;++B)$.push(regexEscape(U[B].name)),M.push(regexEscape(U[B].abbr)),I.push(regexEscape(U[B].narrow)),N.push(regexEscape(U[B].name)),N.push(regexEscape(U[B].abbr)),N.push(regexEscape(U[B].narrow));this._erasRegex=new RegExp("^("+N.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+$.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+M.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+I.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(M,$){addFormatToken(0,[M,M.length],0,$)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(M,$,I,N){$[N.substr(0,2)]=toInt(M)});addWeekParseToken(["gg","GG"],function(M,$,I,N){$[N]=hooks.parseTwoDigitYear(M)});function getSetWeekYear(M){return getSetWeekYearHelper.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(M){return getSetWeekYearHelper.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var M=this.localeData()._week;return weeksInYear(this.year(),M.dow,M.doy)}function getWeeksInWeekYear(){var M=this.localeData()._week;return weeksInYear(this.weekYear(),M.dow,M.doy)}function getSetWeekYearHelper(M,$,I,N,B){var j;return M==null?weekOfYear(this,N,B).year:(j=weeksInYear(M,N,B),$>j&&($=j),setWeekAll.call(this,M,$,I,N,B))}function setWeekAll(M,$,I,N,B){var j=dayOfYearFromWeeks(M,$,I,N,B),U=createUTCDate(j.year,0,j.dayOfYear);return this.year(U.getUTCFullYear()),this.month(U.getUTCMonth()),this.date(U.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(M,$){$[MONTH]=(toInt(M)-1)*3});function getSetQuarter(M){return M==null?Math.ceil((this.month()+1)/3):this.month((M-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(M,$){return M?$._dayOfMonthOrdinalParse||$._ordinalParse:$._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(M,$){$[DATE]=toInt(M.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(M,$,I){I._dayOfYear=toInt(M)});function getSetDayOfYear(M){var $=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return M==null?$:this.add(M-$,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(M,$){$[MILLISECOND]=toInt(("0."+M)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone$1;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(M){return createLocal(M*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(M){return M}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(M,$,I,N){var B=getLocale(),j=createUTC().set(N,$);return B[I](j,M)}function listMonthsImpl(M,$,I){if(isNumber(M)&&($=M,M=void 0),M=M||"",$!=null)return get$1(M,$,I,"month");var N,B=[];for(N=0;N<12;N++)B[N]=get$1(M,N,I,"month");return B}function listWeekdaysImpl(M,$,I,N){typeof M=="boolean"?(isNumber($)&&(I=$,$=void 0),$=$||""):($=M,I=$,M=!1,isNumber($)&&(I=$,$=void 0),$=$||"");var B=getLocale(),j=M?B._week.dow:0,U,q=[];if(I!=null)return get$1($,(I+j)%7,N,"day");for(U=0;U<7;U++)q[U]=get$1($,(U+j)%7,N,"day");return q}function listMonths(M,$){return listMonthsImpl(M,$,"months")}function listMonthsShort(M,$){return listMonthsImpl(M,$,"monthsShort")}function listWeekdays(M,$,I){return listWeekdaysImpl(M,$,I,"weekdays")}function listWeekdaysShort(M,$,I){return listWeekdaysImpl(M,$,I,"weekdaysShort")}function listWeekdaysMin(M,$,I){return listWeekdaysImpl(M,$,I,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var $=M%10,I=toInt(M%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th";return M+I}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var M=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),M.milliseconds=mathAbs(M.milliseconds),M.seconds=mathAbs(M.seconds),M.minutes=mathAbs(M.minutes),M.hours=mathAbs(M.hours),M.months=mathAbs(M.months),M.years=mathAbs(M.years),this}function addSubtract$1(M,$,I,N){var B=createDuration($,I);return M._milliseconds+=N*B._milliseconds,M._days+=N*B._days,M._months+=N*B._months,M._bubble()}function add$1(M,$){return addSubtract$1(this,M,$,1)}function subtract$1(M,$){return addSubtract$1(this,M,$,-1)}function absCeil(M){return M<0?Math.floor(M):Math.ceil(M)}function bubble(){var M=this._milliseconds,$=this._days,I=this._months,N=this._data,B,j,U,q,Y;return M>=0&&$>=0&&I>=0||M<=0&&$<=0&&I<=0||(M+=absCeil(monthsToDays(I)+$)*864e5,$=0,I=0),N.milliseconds=M%1e3,B=absFloor(M/1e3),N.seconds=B%60,j=absFloor(B/60),N.minutes=j%60,U=absFloor(j/60),N.hours=U%24,$+=absFloor(U/24),Y=absFloor(daysToMonths($)),I+=Y,$-=absCeil(monthsToDays(Y)),q=absFloor(I/12),I%=12,N.days=$,N.months=I,N.years=q,this}function daysToMonths(M){return M*4800/146097}function monthsToDays(M){return M*146097/4800}function as(M){if(!this.isValid())return NaN;var $,I,N=this._milliseconds;if(M=normalizeUnits(M),M==="month"||M==="quarter"||M==="year")switch($=this._days+N/864e5,I=this._months+daysToMonths($),M){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch($=this._days+Math.round(monthsToDays(this._months)),M){case"week":return $/7+N/6048e5;case"day":return $+N/864e5;case"hour":return $*24+N/36e5;case"minute":return $*1440+N/6e4;case"second":return $*86400+N/1e3;case"millisecond":return Math.floor($*864e5)+N;default:throw new Error("Unknown unit "+M)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(M){return function(){return this.as(M)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1$1(){return createDuration(this)}function get$2(M){return M=normalizeUnits(M),this.isValid()?this[M+"s"]():NaN}function makeGetter(M){return function(){return this.isValid()?this._data[M]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(M,$,I,N,B){return B.relativeTime($||1,!!I,M,N)}function relativeTime$1(M,$,I,N){var B=createDuration(M).abs(),j=round(B.as("s")),U=round(B.as("m")),q=round(B.as("h")),Y=round(B.as("d")),K=round(B.as("M")),G=round(B.as("w")),J=round(B.as("y")),Z=j<=I.ss&&["s",j]||j<I.s&&["ss",j]||U<=1&&["m"]||U<I.m&&["mm",U]||q<=1&&["h"]||q<I.h&&["hh",q]||Y<=1&&["d"]||Y<I.d&&["dd",Y];return I.w!=null&&(Z=Z||G<=1&&["w"]||G<I.w&&["ww",G]),Z=Z||K<=1&&["M"]||K<I.M&&["MM",K]||J<=1&&["y"]||["yy",J],Z[2]=$,Z[3]=+M>0,Z[4]=N,substituteTimeAgo.apply(null,Z)}function getSetRelativeTimeRounding(M){return M===void 0?round:typeof M=="function"?(round=M,!0):!1}function getSetRelativeTimeThreshold(M,$){return thresholds[M]===void 0?!1:$===void 0?thresholds[M]:(thresholds[M]=$,M==="s"&&(thresholds.ss=$-1),!0)}function humanize(M,$){if(!this.isValid())return this.localeData().invalidDate();var I=!1,N=thresholds,B,j;return typeof M=="object"&&($=M,M=!1),typeof M=="boolean"&&(I=M),typeof $=="object"&&(N=Object.assign({},thresholds,$),$.s!=null&&$.ss==null&&(N.ss=$.s-1)),B=this.localeData(),j=relativeTime$1(this,!I,N,B),I&&(j=B.pastFuture(+this,j)),B.postformat(j)}var abs$1=Math.abs;function sign(M){return(M>0)-(M<0)||+M}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var M=abs$1(this._milliseconds)/1e3,$=abs$1(this._days),I=abs$1(this._months),N,B,j,U,q=this.asSeconds(),Y,K,G,J;return q?(N=absFloor(M/60),B=absFloor(N/60),M%=60,N%=60,j=absFloor(I/12),I%=12,U=M?M.toFixed(3).replace(/\.?0+$/,""):"",Y=q<0?"-":"",K=sign(this._months)!==sign(q)?"-":"",G=sign(this._days)!==sign(q)?"-":"",J=sign(this._milliseconds)!==sign(q)?"-":"",Y+"P"+(j?K+j+"Y":"")+(I?K+I+"M":"")+($?G+$+"D":"")+(B||N||M?"T":"")+(B?J+B+"H":"")+(N?J+N+"M":"")+(M?J+U+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(M,$,I){I._d=new Date(parseFloat(M)*1e3)});addParseToken("x",function(M,$,I){I._d=new Date(toInt(M))});//! moment.js
- hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};class ToastBus{constructor($){this.instance=$}success($,I){this.instance.$events.$emit("toast.success",$,I)}info($,I){this.instance.$events.$emit("toast.info",$,I)}error($,I){this.instance.$events.$emit("toast.error",$,I)}intercept(){this.instance.$axios.interceptors.response.use($=>{var N;return(((N=$==null?void 0:$.data)==null?void 0:N._toasts)??[]).forEach(B=>this.instance.$toast[B.type](B.message,{duration:B.duration})),$})}}Object.defineProperties(Vue$3.prototype,{$toast:{get(){return new ToastBus(this)}}});class Portal{constructor($,I,N={}){this.portals=$,this.id=`${I}-${uniqid$1()}`,this.data=N}destroy(){this.portals.destroy(this.id)}}class Portals{constructor($){this.portals=$.$root.portals}all(){return this.portals}create($,I={}){let N=new Portal(this,$,I);return this.portals.push(N),N}destroy($){const I=_.findIndex(this.portals,N=>N.id===$);this.portals.splice(I,1)}}Object.defineProperties(Vue$3.prototype,{$portals:{get(){return new Portals(this)}}});class Stacks{constructor($){this.portals=$.$root.portals}count(){return this.stacks().length}add($){return $.$portals.create("stack",{type:"stack",depth:this.count()+1,vm:$})}stacks(){return this.portals.filter($=>{var I;return((I=$.data)==null?void 0:I.type)==="stack"})}}Object.defineProperties(Vue$3.prototype,{$stacks:{get(){return new Stacks(this)}}});var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
- * @license MIT */(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){var I={};I.version="0.2.0";var N=I.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};I.configure=function(te){var re,se;for(re in te)se=te[re],se!==void 0&&te.hasOwnProperty(re)&&(N[re]=se);return this},I.status=null,I.set=function(te){var re=I.isStarted();te=B(te,N.minimum,1),I.status=te===1?null:te;var se=I.render(!re),ne=se.querySelector(N.barSelector),le=N.speed,ge=N.easing;return se.offsetWidth,q(function(ue){N.positionUsing===""&&(N.positionUsing=I.getPositioningCSS()),Y(ne,U(te,le,ge)),te===1?(Y(se,{transition:"none",opacity:1}),se.offsetWidth,setTimeout(function(){Y(se,{transition:"all "+le+"ms linear",opacity:0}),setTimeout(function(){I.remove(),ue()},le)},le)):setTimeout(ue,le)}),this},I.isStarted=function(){return typeof I.status=="number"},I.start=function(){I.status||I.set(0);var te=function(){setTimeout(function(){I.status&&(I.trickle(),te())},N.trickleSpeed)};return N.trickle&&te(),this},I.done=function(te){return!te&&!I.status?this:I.inc(.3+.5*Math.random()).set(1)},I.inc=function(te){var re=I.status;return re?(typeof te!="number"&&(te=(1-re)*B(Math.random()*re,.1,.95)),re=B(re+te,0,.994),I.set(re)):I.start()},I.trickle=function(){return I.inc(Math.random()*N.trickleRate)},function(){var te=0,re=0;I.promise=function(se){return!se||se.state()==="resolved"?this:(re===0&&I.start(),te++,re++,se.always(function(){re--,re===0?(te=0,I.done()):I.set((te-re)/te)}),this)}}(),I.render=function(te){if(I.isRendered())return document.getElementById("nprogress");G(document.documentElement,"nprogress-busy");var re=document.createElement("div");re.id="nprogress",re.innerHTML=N.template;var se=re.querySelector(N.barSelector),ne=te?"-100":j(I.status||0),le=document.querySelector(N.parent),ge;return Y(se,{transition:"all 0 linear",transform:"translate3d("+ne+"%,0,0)"}),N.showSpinner||(ge=re.querySelector(N.spinnerSelector),ge&&ee(ge)),le!=document.body&&G(le,"nprogress-custom-parent"),le.appendChild(re),re},I.remove=function(){J(document.documentElement,"nprogress-busy"),J(document.querySelector(N.parent),"nprogress-custom-parent");var te=document.getElementById("nprogress");te&&ee(te)},I.isRendered=function(){return!!document.getElementById("nprogress")},I.getPositioningCSS=function(){var te=document.body.style,re="WebkitTransform"in te?"Webkit":"MozTransform"in te?"Moz":"msTransform"in te?"ms":"OTransform"in te?"O":"";return re+"Perspective"in te?"translate3d":re+"Transform"in te?"translate":"margin"};function B(te,re,se){return te<re?re:te>se?se:te}function j(te){return(-1+te)*100}function U(te,re,se){var ne;return N.positionUsing==="translate3d"?ne={transform:"translate3d("+j(te)+"%,0,0)"}:N.positionUsing==="translate"?ne={transform:"translate("+j(te)+"%,0)"}:ne={"margin-left":j(te)+"%"},ne.transition="all "+re+"ms "+se,ne}var q=function(){var te=[];function re(){var se=te.shift();se&&se(re)}return function(se){te.push(se),te.length==1&&re()}}(),Y=function(){var te=["Webkit","O","Moz","ms"],re={};function se(ue){return ue.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_e,fe){return fe.toUpperCase()})}function ne(ue){var _e=document.body.style;if(ue in _e)return ue;for(var fe=te.length,me=ue.charAt(0).toUpperCase()+ue.slice(1),ve;fe--;)if(ve=te[fe]+me,ve in _e)return ve;return ue}function le(ue){return ue=se(ue),re[ue]||(re[ue]=ne(ue))}function ge(ue,_e,fe){_e=le(_e),ue.style[_e]=fe}return function(ue,_e){var fe=arguments,me,ve;if(fe.length==2)for(me in _e)ve=_e[me],ve!==void 0&&_e.hasOwnProperty(me)&&ge(ue,me,ve);else ge(ue,fe[1],fe[2])}}();function K(te,re){var se=typeof te=="string"?te:Z(te);return se.indexOf(" "+re+" ")>=0}function G(te,re){var se=Z(te),ne=se+re;K(se,re)||(te.className=ne.substring(1))}function J(te,re){var se=Z(te),ne;K(te,re)&&(ne=se.replace(" "+re+" "," "),te.className=ne.substring(1,ne.length-1))}function Z(te){return(" "+(te.className||"")+" ").replace(/\s+/gi," ")}function ee(te){te&&te.parentNode&&te.parentNode.removeChild(te)}return I})})(nprogress);var nprogressExports=nprogress.exports;const progress=getDefaultExportFromCjs(nprogressExports),vm$1=new Vue$3({data:{progressing:!1,names:[],timer:null},watch:{names(M){M.length>0&&!this.progressing&&this.start(),M.length===0&&this.progressing&&this.stop()}},methods:{start(){this.progressing=!0,this.timer=setTimeout(()=>progress.start(),500)},stop(){this.timer&&clearTimeout(this.timer),progress.done(),this.progressing=!1},add(M){this.names.indexOf(M)==-1&&this.names.push(M)},remove(M){const $=this.names.indexOf(M);this.names.splice($,1)}}});class ProgressBar{loading($,I){I?this.start($):this.complete($)}start($){vm$1.add($)}complete($){vm$1.remove($)}names(){return vm$1.names}count(){return vm$1.names.length}isComplete(){return this.count()===0}}Object.defineProperties(Vue$3.prototype,{$progress:{get(){return new ProgressBar}}});const vm=new Vue$3({data:{names:[]},watch:{names(M){M.length&&this.enableWarning(),M.length===0&&this.disableWarning()}},methods:{add(M){this.names.indexOf(M)==-1&&this.names.push(M)},remove(M){this.names=this.names.filter($=>$!==M)},enableWarning(){Statamic.$preferences.get("confirm_dirty_navigation",!0)&&(window.onbeforeunload=()=>"")},disableWarning(){window.onbeforeunload=null}}});class DirtyState{state($,I){I?this.add($):this.remove($)}add($){vm.add($)}remove($){vm.remove($)}names(){return vm.names}count(){return vm.names.length}has($){return vm.names.includes($)}disableWarning(){vm.disableWarning()}}Object.defineProperties(Vue$3.prototype,{$dirty:{get(){return new DirtyState}}});class Config{constructor($){this.instance=$}all(){return this.instance.$store.state.statamic.config}get($,I){return data_get(this.all(),$,I)}set($,I){this.instance.$store.commit("statamic/configValue",{key:$,value:I})}}Object.defineProperties(Vue$3.prototype,{$config:{get(){return new Config(this)}}});class Preference{constructor($){this.instance=$,this.url=cp_url("preferences/js")}all(){return this.instance.$store.state.statamic.config.user.preferences}get($,I){return data_get(this.all(),$,I)}set($,I){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.post(this.url,{key:$,value:I}))}append($,I){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.post(this.url,{key:$,value:I,append:!0}))}remove($,I=null,N=!0){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.delete(`${this.url}/${$}`,{data:{value:I,cleanup:N}}))}removeValue($,I){return this.remove($,I)}commitOnSuccessAndReturnPromise($){return $.then(I=>{this.instance.$store.commit("statamic/preferences",I.data)}),$}}Object.defineProperties(Vue$3.prototype,{$preferences:{get(){return new Preference(this)}}});class Permission{constructor($){this.instance=$}all(){return this.instance.$store.state.statamic.config.user.permissions}has($){return this.all().includes($)||this.all().includes("super")}}Object.defineProperties(Vue$3.prototype,{$permissions:{get(){return new Permission(this)}}});const _sfc_main$R={mixins:[mixin_1],props:{endpoint:String,placeholder:String},data(){return{results:[],query:"",current:-1,searching:!1,focused:!1}},computed:{hasResults(){return this.results.length>0},favorites(){return this.$preferences.get("favorites",[])},hasFavorites(){return this.favorites.length>0},isEmpty(){return!this.query&&!this.searching},isDirty(){return!!this.query&&!this.searching}},methods:{update:_.debounce(function(){if(!this.query){this.results=[],this.searching=!1;return}let M={params:{q:this.query}};this.$axios.get(this.endpoint,M).then($=>{this.results=$.data,this.current=-1,this.searching=!1})},300),reset(){this.results=[],this.query="",this.focused=!1,this.searching=!1},setActive(M){this.current=M},focus(){this.$refs.input.focus(),this.focused=!0},hit(M){const $=this.hasResults?this.results[this.current]:this.favorites[this.current];if(!$)return;const I=this.hasResults?$.url:`${this.$config.get("cpRoot")}/${$.url}`;M.metaKey?window.open(I):window.location=I},moveUp(){this.current>0&&this.current--},moveDown(){this.hasResults?this.current<this.results.length-1&&this.current++:this.current<this.favorites.length-1&&this.current++},getResultIcon(M){return M.reference.startsWith("asset::")?"assets":M.reference.startsWith("user::")?"user":"content-writing"},removeFavorite(M){this.$preferences.remove("favorites",M).then($=>{this.$toast.success(__("Favorite removed"))})}},watch:{query(M){this.searching=!0,this.update()},searching(M){}},created(){this.$events.$on("favorites.added",this.focus)},mounted(){this.$keys.bind("/",M=>{M.preventDefault(),this.focus()})}};var _sfc_render$R=function M(){var $=this,I=$._self._c;return I("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:$.reset,expression:"reset"}],staticClass:"global-search",class:{dirty:$.isDirty}},[I("div",{staticClass:"state-container w-4 h-4 text-gray-500 flex items-center",on:{click:$.focus}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/magnifying-glass"}})],1),I("label",{staticClass:"sr-only",attrs:{for:"global-search"},domProps:{textContent:$._s($.__("Global Search"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.query,expression:"query"}],ref:"input",staticClass:"search-input",attrs:{type:"text",autocomplete:"off",name:"search",id:"global-search",placeholder:$.placeholder,tabindex:"-1"},domProps:{value:$.query},on:{keydown:[function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"up",38,N.key,["Up","ArrowUp"])?null:(N.preventDefault(),$.moveUp.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"down",40,N.key,["Down","ArrowDown"])?null:(N.preventDefault(),$.moveDown.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.hit.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:(N.preventDefault(),$.reset.apply(null,arguments))}],focus:function(N){$.focused=!0},input:function(N){N.target.composing||($.query=N.target.value)}}}),$.isDirty||$.searching?$._e():I("span",{staticClass:"rounded px-1 pb-px text-2xs border text-gray-600"},[$._v("/")]),$.searching?I("loading-graphic",{staticClass:"global-search-loading-indicator",attrs:{size:14,inline:!0,text:""}}):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.focused&&($.hasResults||$.hasFavorites),expression:"focused && (hasResults || hasFavorites)"}],staticClass:"global-search-results"},[$._l($.results,function(N,B){return $.hasResults?I("div",{staticClass:"global-search-result-item p-2 flex items-center",class:{active:$.current==B},on:{click:$.hit,mousemove:function(j){return $.setActive(B)}}},[I("svg-icon",{staticClass:"icon",attrs:{name:`light/${$.getResultIcon(N)}`}}),I("div",{staticClass:"flex-1 rtl:mr-2 ltr:ml-2 title",domProps:{innerHTML:$._s(N.title)}}),I("span",{staticClass:"rounded px-1 text-2xs border bg-gray-200 text-gray",domProps:{textContent:$._s(N.badge)}})],1):$._e()}),!$.hasResults&&$.hasFavorites?I("div",[I("div",{staticClass:"px-3 py-2 text-gray uppercase text-3xs"},[$._v($._s($.__("Your Favorites")))]),$._l($.favorites,function(N,B){return I("div",{staticClass:"global-search-result-item flex items-center",class:{active:$.current==B},on:{mousemove:function(j){return $.setActive(B)}}},[I("div",{staticClass:"flex items-center flex-1 p-2",on:{click:$.hit}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/pin"}}),I("div",{staticClass:"rtl:mr-2 ltr:ml-2 title",domProps:{textContent:$._s(N.name)}})],1),I("div",{staticClass:"p-2 text-gray-600 hover:text-gray-800",on:{click:function(j){return $.removeFavorite(N)}}},[$._v("×")])])}),I("div",{staticClass:"text-gray text-xs px-3 py-2 border-t text-center"},[I("b",{staticClass:"tracking-widest uppercase text-3xs"},[$._v($._s($.__("Pro Tip"))+":")]),I("span",{domProps:{innerHTML:$._s($.__("messages.global_search_open_using_slash"))}})])],2):$._e()],2)],1)},_sfc_staticRenderFns$R=[],__component__$R=normalizeComponent$3(_sfc_main$R,_sfc_render$R,_sfc_staticRenderFns$R,!1,null,null,null,null);const GlobalSearch=__component__$R.exports,_sfc_main$Q={computed:{sites(){return Statamic.$config.get("sites")},active(){return Statamic.$config.get("selectedSite")},activeName(){return _.findWhere(this.sites,{handle:this.active}).name}},methods:{selected(M){M.handle!==this.active&&(window.location=cp_url(`select-site/${M.handle}`))}}};var _sfc_render$Q=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"site-selector flex items-center rtl:ml-4 ltr:mr-4 h-full border-l border-r"},[I("v-select",{attrs:{options:$.sites,label:"name","get-option-key":N=>N.handle,value:$.activeName,clearable:!1,searchable:!1},on:{input:$.selected},scopedSlots:$._u([{key:"selected-option",fn:function(N){return[I("div",{staticClass:"flex items-center px-2 text-sm text-gray hover:text-gray-800 anti"},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-4 w-4",attrs:{name:"light/sites"}}),I("div",{staticClass:"whitespace-nowrap"},[$._v($._s($.__(N.name)))])],1)]}},{key:"option",fn:function({name:N,handle:B}){return[I("div",{class:{"text-gray-500":B===$.active}},[$._v($._s($.__(N)))])]}}])})],1)},_sfc_staticRenderFns$Q=[],__component__$Q=normalizeComponent$3(_sfc_main$Q,_sfc_render$Q,_sfc_staticRenderFns$Q,!1,null,null,null,null);const GlobalSiteSelector=__component__$Q.exports,Login={props:{showEmailLogin:{default:!1},hasError:{default:!1}},mounted(){this.hasError&&this.$el.parentElement.parentElement.classList.add("animation-shake")}},_sfc_main$P={props:["username"],data(){return{show:!0,errors:[],password:null}},mounted(){this.$http.get(cp_url("auth/token")).success(M=>{Vue$3.http.headers.common["X-CSRF-TOKEN"]=M}),this.$refs.password.focus()},computed:{hasErrors(){return!_.isEmpty(this.errors)}},methods:{submit(){this.errors=[];let M={username:this.username,password:this.password};this.$axios.post(cp_url("auth/login"),M).then($=>{this.errors=[],this.$toast.success(__("Logged in")),this.show=!1,this.$emit("closed")}).catch($=>{this.errors=$})}}};var _sfc_render$P=function M(){var $=this,I=$._self._c;return I("div",[I("modal",{staticClass:"modal-login",attrs:{show:$.show,shake:$.hasErrors}},[I("template",{slot:"header"},[$._v(" "+$._s($.__("Log in to continue"))+" ")]),I("template",{slot:"body"},[I("div",{staticClass:"mb-4"},[I("label",{class:{"text-red-500":$.errors.password.length}},[$._v($._s($.__("Password for :username",{username:this.username}))+" "),I("i",{staticClass:"required"},[$._v("*")])]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.password,expression:"password"}],ref:"password",staticClass:"input-text",attrs:{type:"password",name:"password"},domProps:{value:$.password},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.submit.apply(null,arguments))},input:function(N){N.target.composing||($.password=N.target.value)}}}),$.errors.username.length?I("small",{staticClass:"block text-red-500 mt-2"},[$._v($._s($.errors.username[0]))]):$._e(),$.errors.password.length?I("small",{staticClass:"block text-red-500 mt-2"},[$._v($._s($.errors.password[0]))]):$._e()])]),I("template",{slot:"footer"},[I("button",{staticClass:"btn-primary",on:{click:function(N){return N.preventDefault(),$.submit.apply(null,arguments)}}},[$._v($._s($.__("Submit")))])])],2)],1)},_sfc_staticRenderFns$P=[],__component__$P=normalizeComponent$3(_sfc_main$P,_sfc_render$P,_sfc_staticRenderFns$P,!1,null,null,null,null);const LoginModal=__component__$P.exports,_sfc_main$O={props:["actions","collectionHandle","collectionCreateLabel","collectionHasRoutes","fieldset","values","meta","localizations","revisions","breadcrumbs","site","canManagePublishState","createAnotherUrl","listingUrl","previewTargets"],methods:{saved(M){window.location=M.data.data.edit_url+"?created=true"}}};var _sfc_render$O=function M(){var $=this,I=$._self._c;return I("entry-publish-form",{attrs:{"is-creating":!0,"publish-container":"base","initial-actions":$.actions,method:"post","initial-title":$.collectionCreateLabel,"collection-handle":$.collectionHandle,"collection-has-routes":$.collectionHasRoutes,"initial-fieldset":$.fieldset,"initial-values":$.values,"initial-meta":$.meta,"initial-localizations":$.localizations,"initial-has-origin":!1,"initial-is-root":!0,"initial-origin-values":{},"revisions-enabled":$.revisions,breadcrumbs:$.breadcrumbs,"initial-site":$.site,"can-manage-publish-state":$.canManagePublishState,"create-another-url":$.createAnotherUrl,"initial-listing-url":$.listingUrl,"preview-targets":$.previewTargets},on:{saved:$.saved}})},_sfc_staticRenderFns$O=[],__component__$O=normalizeComponent$3(_sfc_main$O,_sfc_render$O,_sfc_staticRenderFns$O,!1,null,null,null,null);const BaseEntryCreateForm=__component__$O.exports,_sfc_main$N={props:["actions","taxonomyHandle","breadcrumbs","fieldset","values","meta","published","localizations","site","createAnotherUrl","listingUrl","previewTargets"],methods:{saved(M){window.location=M.data.data.edit_url+"?created=true"}}};var _sfc_render$N=function M(){var $=this,I=$._self._c;return I("term-publish-form",{attrs:{"is-creating":!0,"publish-container":"base","initial-actions":$.actions,method:"post","initial-title":$.__("Create"),"taxonomy-handle":$.taxonomyHandle,breadcrumbs:$.breadcrumbs,"initial-fieldset":$.fieldset,"initial-values":$.values,"initial-meta":$.meta,"initial-published":$.published,"initial-localizations":$.localizations,"initial-has-origin":!1,"initial-is-root":!0,"initial-origin-values":{},"initial-site":$.site,"create-another-url":$.createAnotherUrl,"listing-url":$.listingUrl,"preview-targets":$.previewTargets},on:{saved:$.saved}})},_sfc_staticRenderFns$N=[],__component__$N=normalizeComponent$3(_sfc_main$N,_sfc_render$N,_sfc_staticRenderFns$N,!1,null,null,null,null);const BaseTermCreateForm=__component__$N.exports,_sfc_main$M={props:{url:String,blueprints:Array},methods:{create(){this.blueprints.length===1&&this.select()},select(M){let $=this.url;M&&($=$+=`?blueprint=${M}`),window.location=$}}};var _sfc_render$M=function M(){var $=this,I=$._self._c;return I("dropdown-list",{staticClass:"inline-block",attrs:{disabled:$.blueprints.length===1},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary flex items-center",on:{click:$.create}},[I("span",{domProps:{textContent:$._s($.__("Create Term"))}}),$.blueprints.length>1?I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 -mr-2 w-2",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}])},$._l($.blueprints,function(N){return I("div",{key:N.handle},[I("dropdown-item",{attrs:{text:N.title},on:{click:function(B){return $.select(N.handle)}}})],1)}),0)},_sfc_staticRenderFns$M=[],__component__$M=normalizeComponent$3(_sfc_main$M,_sfc_render$M,_sfc_staticRenderFns$M,!1,null,null,null,null);const CreateTermButton=__component__$M.exports,Importer={props:["importer"],data:function(){return{exporting:!1,exported:!1,exportFailed:!1,exportError:null,importing:!1,imported:!1,summary:null,showAllPages:!1,showCollections:[],showTaxonomies:[],showGlobals:[]}},computed:{totalPages:function(){return Object.keys(this.summary.pages).length}},mounted(){this.summary=Statamic.ImportSummary},methods:{import:function(){this.importing=!0,this.$http.post(cp_url("import/import"),{summary:this.summary}).success(function(M){this.importing=!1,this.imported=!0,console.log(M)})},hasDuplicates(M){return!!this.duplicateCount(M)},duplicateCount:function(M){let $=0;return _.each(M,I=>{I.exists&&$++}),$},uncheckDuplicates:function(M){_.each(M,$=>{$.exists&&($._checked=!1)})},size:function(M){return _.size(M)},showCollection:function(M){this.showCollections.push(M),_.uniq(this.showCollections)},hideCollection:function(M){this.showCollections=_.reject(this.showCollections,function($){return $===M})},shouldShowCollection:function(M){return _.contains(this.showCollections,M)},showTaxonomy:function(M){this.showTaxonomies.push(M),_.uniq(this.showTaxonomies)},hideTaxonomy:function(M){this.showTaxonomies=_.reject(this.showTaxonomies,function($){return $===M})},shouldShowTaxonomy:function(M){return _.contains(this.showTaxonomies,M)},showGlobal:function(M){this.showGlobals.push(M),_.uniq(this.showGlobals)},hideGlobal:function(M){this.showGlobals=_.reject(this.showGlobals,function($){return $===M})},shouldShowGlobal:function(M){return _.contains(this.showGlobals,M)}}},_sfc_main$L={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{deleting:!1,redirectFromServer:null}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Delete :resource",{resource:__(this.title)})},deleteUrl(){let M=data_get(this.resource,"delete_url",this.route);return M||console.error("ResourceDeleter cannot find delete url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.deleting=!0},confirmed(){this.$axios.delete(this.deleteUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong"))})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Deleted")),this.$emit("deleted")},cancel(){this.deleting=!1}}};var _sfc_render$L=function M(){var $=this,I=$._self._c;return $.deleting?I("confirmation-modal",{attrs:{title:$.modalTitle,buttonText:$.__("Delete"),danger:!0,disabled:Object.keys($.resource.imported_by).length>0},on:{confirm:$.confirmed,cancel:$.cancel}},[I("template",{slot:"body"},[Object.keys($.resource.imported_by).length>0?[I("p",{staticClass:"mb-2"},[$._v($._s($.__("Before you can delete this fieldset, you need to remove references to it in blueprints and fieldsets:")))]),$._l($.resource.imported_by,function(N,B){return I("div",[I("h3",{staticClass:"little-heading rtl:pr-0 ltr:pl-0 mb-2"},[$._v($._s(B))]),I("ul",{staticClass:"list-disc rtl:pr-4 ltr:pl-4"},$._l(N,function(j){return I("li",{key:j.handle,staticClass:"font-mono text-sm mb-1.5",domProps:{textContent:$._s(j.title)}})}),0)])})]:[I("p",[$._v($._s($.__("Are you sure you want to delete this item?")))])]],2)],2):$._e()},_sfc_staticRenderFns$L=[],__component__$L=normalizeComponent$3(_sfc_main$L,_sfc_render$L,_sfc_staticRenderFns$L,!1,null,null,null,null);const FieldsetDeleter=__component__$L.exports,_sfc_main$K={mixins:[Listing],components:{FieldsetDeleter},props:["initialRows"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle",width:"25%"},{label:__("Fields"),field:"fields",width:"15%"}]}}};var _sfc_render$K=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.is_deletable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("fieldset-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)])}}])})},_sfc_staticRenderFns$K=[],__component__$K=normalizeComponent$3(_sfc_main$K,_sfc_render$K,_sfc_staticRenderFns$K,!1,null,null,null,null);const FieldsetListing=__component__$K.exports,_sfc_main$J={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$J=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Fieldset")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.fields_fieldsets_description"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.fieldsets_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.fieldsets_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Fieldset"))+" ")])])])},_sfc_staticRenderFns$J=[],__component__$J=normalizeComponent$3(_sfc_main$J,_sfc_render$J,_sfc_staticRenderFns$J,!1,null,null,null,null);const FieldsetCreateForm=__component__$J.exports,_sfc_main$I={mixins:[SuggestsConditionalFields],components:{Fields},props:["action","initialFieldset","breadcrumbUrl"],data(){return{method:"patch",initialTitle:this.initialFieldset.title,fieldset:clone(this.initialFieldset),errors:{},editingField:null}},computed:{fields:{get(){return this.fieldset.fields},set(M){this.fieldset.fields=M}},fieldsForConditionSuggestions(){return this.fields}},mounted(){this.makeSortable()},methods:{save(){this.$axios[this.method](this.action,this.fieldset).then(M=>{this.$toast.success(__("Saved")),this.errors={}}).catch(M=>{this.$toast.error(M.response.data.message),this.errors=M.response.data.errors})},fieldCreated(M){this.fields.push(M)},fieldUpdated(M,$){this.fields.splice(M,1,$)},deleteField(M){this.fields.splice(M,1)},fieldLinked(M){this.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},makeSortable(){new draggable_bundleExports.Sortable(this.$el.querySelector(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("sortable:stop",M=>{this.fieldset.fields.splice(M.newIndex,0,this.fieldset.fields.splice(M.oldIndex,1)[0])})}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$I=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Fieldsets")}}),I("div",{staticClass:"flex items-center justify-between"},[I("h1",[$._v($._s($.__($.initialTitle)))]),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})])],1),I("div",{staticClass:"publish-form card p-0 @container mb-8"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group w-full"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Title")))]),I("small",{staticClass:"help-block -mt-2"},[$._v($._s($.__("messages.fieldsets_title_instructions")))]),$.errors.title?I("div",$._l($.errors.title,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.fieldset.title,expression:"fieldset.title"}],staticClass:"input-text",attrs:{type:"text",name:"title",autofocus:"autofocus"},domProps:{value:$.fieldset.title},on:{input:function(N){N.target.composing||$.$set($.fieldset,"title",N.target.value)}}})])])])]),I("div",{staticClass:"content mt-10 mb-4"},[I("h2",{domProps:{textContent:$._s($.__("Fields"))}})]),I("div",{staticClass:"card @container",class:{"pt-2":!$.fields.length}},[I("fields",{attrs:{fields:$.fields,"editing-field":$.editingField,"exclude-fieldset":$.fieldset.handle,"suggestable-condition-fields":$.suggestableConditionFields(this)},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-linked":$.fieldLinked,"field-deleted":$.deleteField,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}}})],1)])},_sfc_staticRenderFns$I=[],__component__$I=normalizeComponent$3(_sfc_main$I,_sfc_render$I,_sfc_staticRenderFns$I,!1,null,null,null,null);const FieldsetEditForm=__component__$I.exports,_sfc_main$H={mixins:[Listing],props:["initialRows","reorderable"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"},{label:__("Fields"),field:"fields"}]}},watch:{initialRows(M){this.rows=M}}};var _sfc_render$H=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.rows,sort:!1},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{reorderable:$.reorderable},on:{reordered:function(B){return $.$emit("reordered",B)}},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:[B.hidden?"hollow":"bg-green-600"]}),I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$H=[],__component__$H=normalizeComponent$3(_sfc_main$H,_sfc_render$H,_sfc_staticRenderFns$H,!1,null,null,null,null);const BlueprintListing=__component__$H.exports,_sfc_main$G={mixins:[SuggestsConditionalFields],components:{Tabs},props:{action:String,initialBlueprint:Object,showTitle:Boolean,useTabs:{type:Boolean,default:!0},isFormBlueprint:{type:Boolean,default:!1},showHidden:{type:Boolean,default:!0}},data(){return{blueprint:this.initializeBlueprint(),errors:{}}},computed:{tabs(){return this.blueprint.tabs}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()}),this.isFormBlueprint&&Statamic.$config.set("isFormBlueprint",!0)},watch:{blueprint:{deep:!0,handler(){this.$dirty.add("blueprints")}}},methods:{initializeBlueprint(){let M=clone(this.initialBlueprint);return this.showTitle||delete M.title,M},tabsUpdated(M){this.blueprint.tabs=M},save(){this.$axios.patch(this.action,this.blueprint).then(M=>this.saved(M)).catch(M=>{this.$toast.error(M.response.data.message),this.errors=M.response.data.errors})},saved(M){this.$toast.success(__("Saved")),this.errors={},this.$dirty.remove("blueprints")}}};var _sfc_render$G=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-builder"},[I("header",{staticClass:"mb-6"},[I("div",{staticClass:"flex items-center justify-between"},[I("h1",{domProps:{textContent:$._s($.__("Edit Blueprint"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})])]),$.showTitle?I("div",{staticClass:"publish-form card p-0 @container mb-8"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group config-field"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Title")))]),I("p",{staticClass:"help-block"},[$._v($._s($.__("messages.blueprints_title_instructions")))]),$.errors.title?I("div",$._l($.errors.title,function(N,B){return I("p",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.blueprint.title,expression:"blueprint.title"}],staticClass:"input-text",attrs:{type:"text",name:"title",autofocus:"autofocus"},domProps:{value:$.blueprint.title},on:{input:function(N){N.target.composing||$.$set($.blueprint,"title",N.target.value)}}})])]),$.showHidden?I("div",{staticClass:"form-group config-field"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Hidden")))]),I("p",{staticClass:"help-block"},[$._v($._s($.__("messages.blueprints_hidden_instructions")))]),$.errors.hidden?I("div",$._l($.errors.hidden,function(N,B){return I("p",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("toggle-input",{attrs:{name:"hidden"},model:{value:$.blueprint.hidden,callback:function(N){$.$set($.blueprint,"hidden",N)},expression:"blueprint.hidden"}})],1)]):$._e()])]):$._e(),I("tabs",{attrs:{"single-tab":!$.useTabs,"initial-tabs":$.tabs,errors:$.errors.tabs},on:{updated:$.tabsUpdated}})],1)},_sfc_staticRenderFns$G=[],__component__$G=normalizeComponent$3(_sfc_main$G,_sfc_render$G,_sfc_staticRenderFns$G,!1,null,null,null,null);const BlueprintBuilder=__component__$G.exports,_sfc_main$F={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$F=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Form")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.form_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.form_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.form_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Form"))+" ")])])])},_sfc_staticRenderFns$F=[],__component__$F=normalizeComponent$3(_sfc_main$F,_sfc_render$F,_sfc_staticRenderFns$F,!1,null,null,null,null);const FormCreateForm=__component__$F.exports,_sfc_main$E={mixins:[Listing],props:["initialColumns"],data(){return{columns:this.initialColumns,requestUrl:cp_url("forms")}}};var _sfc_render$E=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.items},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("data-list-bulk-actions",{staticClass:"rounded",attrs:{url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("data-list-table",{attrs:{"allow-bulk-actions":!0},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.show_url}},[$._v($._s(B.title))])]}},{key:"actions",fn:function({row:B,index:j}){return[B.can_edit||B.can_edit_blueprint||B.actions.length?I("dropdown-list",[B.can_edit?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):$._e(),B.can_edit_blueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:B.blueprint_url}}):$._e(),B.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$E=[],__component__$E=normalizeComponent$3(_sfc_main$E,_sfc_render$E,_sfc_staticRenderFns$E,!1,null,null,null,null);const FormListing=__component__$E.exports,_sfc_main$D={mixins:[Listing],props:{form:String},data(){return{listingKey:"submissions",preferencesPrefix:`forms.${this.form}`,requestUrl:cp_url(`forms/${this.form}/submissions`)}},computed:{actionContext(){return{form:this.form}}}};var _sfc_render$D=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),!$.loading&&!$.searchQuery&&$.items.length===0?$._t("no-results"):$.initializing?$._e():I("data-list",{attrs:{columns:$.columns,rows:$.items,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between p-2 text-sm border-b"},[I("data-list-search",{ref:"search",staticClass:"h-8 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("data-list-column-picker",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{"preferences-key":$.preferencesKey("columns")}})],1),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),$.items.length?I("data-list-table",{attrs:{"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-datestamp",fn:function({row:B,value:j}){return[I("a",{staticClass:"text-blue",attrs:{href:B.url}},[$._v($._s(j))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.url}}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)}):$._e()],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}])})],2)},_sfc_staticRenderFns$D=[],__component__$D=normalizeComponent$3(_sfc_main$D,_sfc_render$D,_sfc_staticRenderFns$D,!1,null,null,null,null);const FormSubmissionListing=__component__$D.exports,_sfc_main$C={mixins:[Listing],props:["globals"],data(){return{rows:this.globals,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"}]}}};var _sfc_render$C=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-2xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$C=[],__component__$C=normalizeComponent$3(_sfc_main$C,_sfc_render$C,_sfc_staticRenderFns$C,!1,null,null,null,null);const GlobalListing=__component__$C.exports,_sfc_main$B={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$B=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",reference:"collection",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}}),I("div",{staticClass:"py-4 border-t flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,415989080)}):$._e()},_sfc_staticRenderFns$B=[],__component__$B=normalizeComponent$3(_sfc_main$B,_sfc_render$B,_sfc_staticRenderFns$B,!1,null,null,null,null);const GlobalEditForm=__component__$B.exports,_sfc_main$A={props:{sites:{type:Array,required:!0},value:{type:String,required:!0}},computed:{site(){return _.findWhere(this.sites,{handle:this.value})}}};var _sfc_render$A=function M(){var $=this,I=$._self._c;return I("v-select",{staticClass:"text-sm",attrs:{value:$.site,clearable:!1,searchable:!1,"get-option-label":N=>$.__(N.name),options:$.sites},on:{input:function(N){return $.$emit("input",N)}}})},_sfc_staticRenderFns$A=[],__component__$A=normalizeComponent$3(_sfc_main$A,_sfc_render$A,_sfc_staticRenderFns$A,!1,null,null,null,null);const SiteSelector=__component__$A.exports,_sfc_main$z={mixins:[HasHiddenFields],components:{SiteSelector},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialTitle:String,initialHandle:String,initialBlueprintHandle:String,initialLocalizations:Array,initialLocalizedFields:Array,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,globalsUrl:String,initialActions:Object,method:String,isCreating:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,canEdit:Boolean,canConfigure:Boolean,configureUrl:String,canEditBlueprint:Boolean},data(){return{actions:this.initialActions,saving:!1,localizing:!1,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,error:null,errors:{},isRoot:this.initialIsRoot}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return this.canEdit&&this.isDirty&&!this.somethingIsLoading},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},originLocalization(){return _.findWhere(this.localizations,{origin:!0})}},watch:{saving(M){this.$progress.loading(`${this.publishContainer}-global-publish-form`,M)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.canSave&&(this.saving=!0,this.clearErrors(),this.runBeforeSaveHook())},runBeforeSaveHook(){Statamic.$hooks.run("global-set.saving",{globalSet:this.initialHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,blueprint:this.fieldset.handle,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error("Couldn't save global set");this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},runAfterSaveHook(M){Statamic.$hooks.run("global-set.saved",{globalSet:this.initialHandle,reference:this.initialReference,response:M}).then(()=>{this.$nextTick(()=>this.$emit("saved",M))}).catch($=>{})},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))},localizationSelected(M){M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.localizing=M.handle,this.publishContainer==="base"&&window.history.replaceState({},"",M.url),this.$axios.get(M.url).then($=>{const I=$.data;this.values=I.values,this.originValues=I.originValues,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.site=M.handle,this.localizing=!1,this.$nextTick(()=>this.$refs.container.clearDirtyState())}))},localizationStatusText(M){return M.exists?"This global set exists in this site.":"This global set does not exist for this site."},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm(__("Are you sure? This field's value will be replaced by the value in the original entry."))&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},created(){window.history.replaceState({},document.title,document.location.href.replace("created=true",""))}};var _sfc_render$z=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.globalsUrl,title:$.__("Globals")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.canEdit?$._e():I("div",{staticClass:"pt-px text-2xs text-gray-600 rtl:mr-4 ltr:ml-4 flex"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1),$.canConfigure||$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$.canConfigure?I("dropdown-item",{attrs:{redirect:$.configureUrl},domProps:{textContent:$._s($.__("Configure"))}}):$._e(),$.canEditBlueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}}):$._e()],1):$._e(),$.localizations.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.localizations,value:$.site},on:{input:$.localizationSelected}}):$._e(),$.canEdit?I("button",{staticClass:"btn-primary min-w-100",class:{"opacity-25":!$.canSave},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}):$._e(),$._t("action-buttons-right")],2)],1),$.fieldset.empty?I("div",{staticClass:"text-center mt-10 border-2 border-dashed rounded-lg px-8 py-32"},[I("div",{staticClass:"max-w-md mx-auto opacity-50"},[I("h1",{staticClass:"my-6",domProps:{textContent:$._s($.__("This Global Set has no fields."))}}),I("p",{domProps:{textContent:$._s($.__("messages.global_set_no_fields_description"))}})])]):$._e(),$.fieldset&&!$.fieldset.empty?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("div",{},[$._l(B,function(U){return I(U.name,$._b({key:U.name,tag:"component",attrs:{container:N}},"component",U.props,!1))}),I("publish-tabs",{attrs:{"read-only":!$.canEdit,syncable:$.hasOrigin,"enable-sidebar":!1},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],2)}}],null,!1,1376230189)}):$._e()],1)},_sfc_staticRenderFns$z=[],__component__$z=normalizeComponent$3(_sfc_main$z,_sfc_render$z,_sfc_staticRenderFns$z,!1,null,null,null,null);const GlobalPublishForm=__component__$z.exports,_sfc_main$y={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Global Set")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.globals_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.globals_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.globals_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Global Set"))+" ")])])])},_sfc_staticRenderFns$y=[],__component__$y=normalizeComponent$3(_sfc_main$y,_sfc_render$y,_sfc_staticRenderFns$y,!1,null,null,null,null);const GlobalCreateForm=__component__$y.exports,_sfc_main$x={mixins:[Listing],props:{listingKey:String,group:String,allowFilterPresets:{default:!0}},data(){return{preferencesPrefix:"users",requestUrl:cp_url("users"),pushQuery:!0}},computed:{additionalParameters(){return{group:this.group}}}};var _sfc_render$x=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b"},[I("data-list-filter-presets",{directives:[{name:"show",rawName:"v-show",value:$.allowFilterPresets,expression:"allowFilterPresets"}],ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.allowFilterPresets&&$.isDirty,expression:"allowFilterPresets && isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{staticClass:"rounded",attrs:{url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-email",fn:function({row:B,value:j}){return[I("a",{staticClass:"flex items-center",attrs:{href:B.edit_url}},[I("avatar",{staticClass:"w-8 h-8 rounded-full rtl:ml-2 ltr:mr-2",attrs:{user:B}}),$._v(" "+$._s(j)+" ")],1)]}},{key:"cell-roles",fn:function({row:B,value:j}){return[I("div",{staticClass:"role-index-field"},[B.super?I("div",{staticClass:"role-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__("Super Admin")))]):$._e(),!j||j.length===0?I("div"):$._e(),$._l(j||[],function(U,q){return I("div",{staticClass:"role-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__(U.title)))])})],2)]}},{key:"cell-groups",fn:function({row:B,value:j}){return[I("div",{staticClass:"groups-index-field"},$._l(j||[],function(U){return I("div",{staticClass:"groups-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__(U.title)))])}),0)]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"right-start"}},[B.editable?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.edit_url}}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1)],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,722961836)})],1)},_sfc_staticRenderFns$x=[],__component__$x=normalizeComponent$3(_sfc_main$x,_sfc_render$x,_sfc_staticRenderFns$x,!1,null,null,null,null);const UserListing=__component__$x.exports;var isEmail$1={exports:{}},assertString={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=N;function I(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(U){return typeof U}:I=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},I(B)}function N(B){var j=typeof B=="string"||B instanceof String;if(!j){var U=I(B);throw B===null?U="null":U==="object"&&(U=B.constructor.name),new TypeError("Expected a string but received a ".concat(U))}}M.exports=$.default,M.exports.default=$.default})(assertString,assertString.exports);var assertStringExports=assertString.exports,merge={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=I;function I(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1?arguments[1]:void 0;for(var j in B)typeof N[j]>"u"&&(N[j]=B[j]);return N}M.exports=$.default,M.exports.default=$.default})(merge,merge.exports);var mergeExports=merge.exports,isByteLength={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=j;var I=N(assertStringExports);function N(U){return U&&U.__esModule?U:{default:U}}function B(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(Y){return typeof Y}:B=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},B(U)}function j(U,q){(0,I.default)(U);var Y,K;B(q)==="object"?(Y=q.min||0,K=q.max):(Y=arguments[1],K=arguments[2]);var G=encodeURI(U).split(/%..|./).length-1;return G>=Y&&(typeof K>"u"||G<=K)}M.exports=$.default,M.exports.default=$.default})(isByteLength,isByteLength.exports);var isByteLengthExports=isByteLength.exports,isFQDN={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=U;var I=B(assertStringExports),N=B(mergeExports);function B(q){return q&&q.__esModule?q:{default:q}}var j={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function U(q,Y){(0,I.default)(q),Y=(0,N.default)(Y,j),Y.allow_trailing_dot&&q[q.length-1]==="."&&(q=q.substring(0,q.length-1)),Y.allow_wildcard===!0&&q.indexOf("*.")===0&&(q=q.substring(2));var K=q.split("."),G=K[K.length-1];return Y.require_tld&&(K.length<2||!Y.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(G)||/\s/.test(G))||!Y.allow_numeric_tld&&/^\d+$/.test(G)?!1:K.every(function(J){return!(J.length>63&&!Y.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(J)||/[\uff01-\uff5e]/.test(J)||/^-|-$/.test(J)||!Y.allow_underscores&&/_/.test(J))})}M.exports=$.default,M.exports.default=$.default})(isFQDN,isFQDN.exports);var isFQDNExports=isFQDN.exports,isIP={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=K;var I=N(assertStringExports);function N(G){return G&&G.__esModule?G:{default:G}}var B="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",j="(".concat(B,"[.]){3}").concat(B),U=new RegExp("^".concat(j,"$")),q="(?:[0-9a-fA-F]{1,4})",Y=new RegExp("^("+"(?:".concat(q,":){7}(?:").concat(q,"|:)|")+"(?:".concat(q,":){6}(?:").concat(j,"|:").concat(q,"|:)|")+"(?:".concat(q,":){5}(?::").concat(j,"|(:").concat(q,"){1,2}|:)|")+"(?:".concat(q,":){4}(?:(:").concat(q,"){0,1}:").concat(j,"|(:").concat(q,"){1,3}|:)|")+"(?:".concat(q,":){3}(?:(:").concat(q,"){0,2}:").concat(j,"|(:").concat(q,"){1,4}|:)|")+"(?:".concat(q,":){2}(?:(:").concat(q,"){0,3}:").concat(j,"|(:").concat(q,"){1,5}|:)|")+"(?:".concat(q,":){1}(?:(:").concat(q,"){0,4}:").concat(j,"|(:").concat(q,"){1,6}|:)|")+"(?::((?::".concat(q,"){0,5}:").concat(j,"|(?::").concat(q,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function K(G){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,I.default)(G),J=String(J),J?J==="4"?U.test(G):J==="6"?Y.test(G):!1:K(G,4)||K(G,6)}M.exports=$.default,M.exports.default=$.default})(isIP,isIP.exports);var isIPExports=isIP.exports;(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=ne;var I=q(assertStringExports),N=q(mergeExports),B=q(isByteLengthExports),j=q(isFQDNExports),U=q(isIPExports);function q(le){return le&&le.__esModule?le:{default:le}}var Y={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},K=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,G=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,J=/^[a-z\d]+$/,Z=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,ee=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,te=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,re=254;function se(le){var ge=le.replace(/^"(.+)"$/,"$1");if(!ge.trim())return!1;var ue=/[\.";<>]/.test(ge);if(ue){if(ge===le)return!1;var _e=ge.split('"').length===ge.split('\\"').length;if(!_e)return!1}return!0}function ne(le,ge){if((0,I.default)(le),ge=(0,N.default)(ge,Y),ge.require_display_name||ge.allow_display_name){var ue=le.match(K);if(ue){var _e=ue[1];if(le=le.replace(_e,"").replace(/(^<|>$)/g,""),_e.endsWith(" ")&&(_e=_e.slice(0,-1)),!se(_e))return!1}else if(ge.require_display_name)return!1}if(!ge.ignore_max_length&&le.length>re)return!1;var fe=le.split("@"),me=fe.pop(),ve=me.toLowerCase();if(ge.host_blacklist.includes(ve)||ge.host_whitelist.length>0&&!ge.host_whitelist.includes(ve))return!1;var xe=fe.join("@");if(ge.domain_specific_validation&&(ve==="gmail.com"||ve==="googlemail.com")){xe=xe.toLowerCase();var oe=xe.split("+")[0];if(!(0,B.default)(oe.replace(/\./g,""),{min:6,max:30}))return!1;for(var ye=oe.split("."),be=0;be<ye.length;be++)if(!J.test(ye[be]))return!1}if(ge.ignore_max_length===!1&&(!(0,B.default)(xe,{max:64})||!(0,B.default)(me,{max:254})))return!1;if(!(0,j.default)(me,{require_tld:ge.require_tld,ignore_max_length:ge.ignore_max_length})){if(!ge.allow_ip_domain)return!1;if(!(0,U.default)(me)){if(!me.startsWith("[")||!me.endsWith("]"))return!1;var we=me.slice(1,-1);if(we.length===0||!(0,U.default)(we))return!1}}if(xe[0]==='"')return xe=xe.slice(1,xe.length-1),ge.allow_utf8_local_part?te.test(xe):Z.test(xe);for(var Ae=ge.allow_utf8_local_part?ee:G,ke=xe.split("."),Oe=0;Oe<ke.length;Oe++)if(!Ae.test(ke[Oe]))return!1;return!(ge.blacklisted_chars&&xe.search(new RegExp("[".concat(ge.blacklisted_chars,"]+"),"g"))!==-1)}M.exports=$.default,M.exports.default=$.default})(isEmail$1,isEmail$1.exports);var isEmailExports=isEmail$1.exports;const isEmail=getDefaultExportFromCjs(isEmailExports),HasWizardSteps={data(){return{currentStep:0}},computed:{onFirstStep(){return this.currentStep===0},onLastStep(){return this.currentStep===this.steps.length-1},canContinue(){return this.canGoToStep(this.currentStep+1)}},methods:{goToStep(M){this.canGoToStep(M)&&(this.currentStep=M)},next(){this.onLastStep||this.goToStep(this.currentStep+1)},previous(){this.onFirstStep||this.goToStep(this.currentStep-1)}}},Wizard_vue_vue_type_style_index_0_scoped_ab38c990_lang="",_sfc_main$w={mixins:[HasWizardSteps],props:{route:{type:String},usersCreateUrl:{type:String},usersIndexUrl:{type:String},canCreateSupers:{type:Boolean},canAssignRoles:{type:Boolean},canAssignGroups:{type:Boolean},activationExpiry:{type:Number},separateNameFields:{type:Boolean},canSendInvitation:{type:Boolean},blueprint:{type:Object},initialValues:{type:Object},fields:{type:Array},meta:{type:Object}},data(){return{user:{super:this.canCreateSupers,roles:[],groups:[]},invitation:{send:this.canSendInvitation,subject:__("messages.user_wizard_invitation_subject",{site:window.location.hostname}),message:__("messages.user_wizard_invitation_body",{site:window.location.hostname,expiry:this.activationExpiry})},userExists:!1,completed:!1,activationUrl:null,editUrl:null,errors:{},error:null,storeName:"userwizard",values:this.initialValues}},computed:{steps(){let M=[__("User Information")];return this.canAssignPermissions&&M.push(__("Roles & Groups")),this.canSendInvitation&&M.push(__("Customize Invitation")),M},canAssignPermissions(){return this.canAssignRoles||this.canAssignGroups},onUserInfoStep(){return this.onFirstStep},onPermissionStep(){return this.canAssignPermissions?this.currentStep===1:!1},onInvitationStep(){return this.canAssignPermissions?this.currentStep===2:this.currentStep===1},finishButtonText(){return this.invitation.send?__("Create and Send Email"):__("Create User")},direction(){return this.$config.get("direction","rtl")}},methods:{canGoToStep(M){return this.completed?!1:M===0?!0:this.valid},checkIfUserExists(M){this.$axios.post(cp_url("user-exists"),{email:M}).then($=>{this.userExists=$.data.exists}).catch($=>{this.$toast.error($.response.data.message)})},nextStep(){if(this.onUserInfoStep)return this.submit(!0).then(this.next).catch(()=>{});this.next()},submit(M){let $={...this.user,...this.values,invitation:this.invitation};return M===!0&&($._validate_only=!0),this.clearErrors(),this.$axios.post(this.route,$).then(I=>{this.valid=!0,!$._validate_only&&(this.invitation.send?window.location=I.data.redirect:(this.completed=!0,this.editUrl=I.data.redirect,this.activationUrl=I.data.activationUrl))}).catch(I=>{throw this.handleAxiosError(I),I})},handleAxiosError(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.valid=!1,this.$toast.error($)}else this.$toast.error(__(M.response.data.message))},clearErrors(){this.error=null,this.errors={}}},watch:{"values.email":function(M){M&&isEmail(M)&&this.checkIfUserExists(M)},userExists(M){let $=this.errors.email||[];const I=__("statamic::validation.unique");M?$.push(I):$=$.filter(N=>N!==N),this.errors={...this.errors,email:uniq($)}},errors:function(M){this.onUserInfoStep&&this.$store.commit(`publish/${this.storeName}/setErrors`,M)}},mounted(){this.$keys.bindGlobal(["command+return"],M=>{this.next()}),this.$keys.bindGlobal(["command+delete"],M=>{this.previous()})}};var _sfc_render$w=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-xl mx-auto rounded shadow bg-white"},[$.steps.length>1?I("div",{staticClass:"max-w-lg mx-auto pt-16 relative"},[I("div",{staticClass:"wizard-steps"},$._l($.steps,function(N,B){return I("a",{staticClass:"step",class:{complete:$.currentStep>=B},on:{click:function(j){return $.goToStep(B)}}},[I("div",{staticClass:"ball"},[$._v($._s(B+1))]),I("div",{staticClass:"label"},[$._v($._s(N))])])}),0)]):$._e(),!$.completed&&$.onUserInfoStep?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create User")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.user_wizard_intro"))}})]),I("publish-container",{staticClass:"max-w-md mx-auto -mt-6 py-0 px-4 pb-20",attrs:{name:$.storeName,blueprint:$.blueprint,values:$.values,meta:$.meta,"track-dirty-state":!1},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("div",{staticClass:"-mx-6"},[I("publish-fields",{attrs:{fields:$.fields},on:{updated:N,"meta-updated":B}})],1)])}}],null,!1,2953505525)})],1):$._e(),!$.completed&&$.onPermissionStep?I("div",{staticClass:"max-w-md mx-auto px-4 pb-4"},[I("div",{staticClass:"py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Roles & Groups")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.user_wizard_roles_groups_intro"))}})]),$.canCreateSupers?I("div",{staticClass:"pb-10"},[I("div",{staticClass:"flex items-center"},[I("toggle-input",{model:{value:$.user.super,callback:function(N){$.$set($.user,"super",N)},expression:"user.super"}}),I("label",{staticClass:"font-bold rtl:mr-2 ltr:ml-2"},[$._v($._s($.__("Super Admin")))])],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-1 ltr:mr-1 flex items-center mb-px",attrs:{name:"info-circle"}}),$._v(" "+$._s($.__("messages.user_wizard_super_admin_instructions"))+" ")],1)]):$._e(),!$.user.super&&$.canAssignRoles?I("div",{staticClass:"pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"role"}},[$._v($._s($.__("Roles")))]),I("publish-field-meta",{attrs:{config:{handle:"user.roles",type:"user_roles"},"initial-value":$.user.roles},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return I("div",{},[j?$._e():I("relationship-fieldtype",{attrs:{handle:"user.roles",config:{type:"user_roles",mode:"select"},value:B,meta:N},on:{input:function(U){$.user.roles=U}}})],1)}}],null,!1,2649799008)})],1):$._e(),!$.user.super&&$.canAssignGroups?I("div",{staticClass:"pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"group"}},[$._v($._s($.__("Groups")))]),I("publish-field-meta",{attrs:{config:{handle:"user.groups",type:"user_groups"},"initial-value":$.user.groups},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return I("div",{},[j?$._e():I("relationship-fieldtype",{attrs:{handle:"user.groups",config:{type:"user_groups",mode:"select"},value:B,meta:N},on:{input:function(U){$.user.groups=U}}})],1)}}],null,!1,3148282667)})],1):$._e()]):$._e(),!$.completed&&$.onInvitationStep?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Invitation")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.user_wizard_invitation_intro"))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 mb-6 flex items-center"},[I("toggle-input",{model:{value:$.invitation.send,callback:function(N){$.$set($.invitation,"send",N)},expression:"invitation.send"}}),I("label",{staticClass:"font-bold rtl:mr-2 ltr:ml-2"},[$._v($._s($.__("Send Email Invitation")))])],1),$.invitation.send?I("div",{staticClass:"max-w-lg mx-auto bg-gray-100 py-10 mb-20 border rounded-lg"},[I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"email"}},[$._v($._s($.__("Email Subject")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.invitation.subject,expression:"invitation.subject"}],staticClass:"input-text bg-white",attrs:{type:"text"},domProps:{value:$.invitation.subject},on:{input:function(N){N.target.composing||$.$set($.invitation,"subject",N.target.value)}}})]),I("div",{staticClass:"max-w-md mx-auto px-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"email"}},[$._v($._s($.__("Email Content")))]),I("textarea",{directives:[{name:"model",rawName:"v-model",value:$.invitation.message,expression:"invitation.message"},{name:"elastic",rawName:"v-elastic"}],staticClass:"input-text min-h-40 p-4 bg-white",domProps:{value:$.invitation.message},on:{input:function(N){N.target.composing||$.$set($.invitation,"message",N.target.value)}}})])]):I("div",{staticClass:"max-w-md mx-auto px-4 pb-20"},[I("p",{staticClass:"mb-2",domProps:{innerHTML:$._s($.__("messages.user_wizard_invitation_share_before",{email:$.values.email}))}})])]):$._e(),$.completed?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("User created")))]),I("p",{staticClass:"text-gray",domProps:{innerHTML:$._s($.__("messages.user_wizard_account_created"))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("p",{staticClass:"mb-2",domProps:{innerHTML:$._s($.__("messages.user_wizard_invitation_share",{email:$.values.email}))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"email"}},[$._v($._s($.__("Activation URL")))]),I("input",{staticClass:"input-text",attrs:{type:"text",readonly:"",onclick:"this.select()"},domProps:{value:$.activationUrl}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-20"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"email"}},[$._v($._s($.__("Email Address")))]),I("input",{staticClass:"input-text",attrs:{type:"text",readonly:"",onclick:"this.select()"},domProps:{value:$.values.email}})])]):$._e(),I("div",{staticClass:"border-t p-4"},[I("div",{staticClass:"max-w-md mx-auto flex items-center justify-center"},[!$.completed&&!$.onFirstStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"3"},on:{click:$.previous}},[I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"←":"→")}}),$._v(" "+$._s($.__("Previous"))+" ")]):$._e(),$.onUserInfoStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"4"},on:{click:$.nextStep}},[$._v(" "+$._s($.__("Next"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]):$._e(),!$.onUserInfoStep&&!$.completed&&!$.onLastStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"4",disabled:!$.canContinue},on:{click:$.nextStep}},[$._v(" "+$._s($.__("Next"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]):$._e(),!$.completed&&$.onLastStep?I("button",{staticClass:"btn-primary mx-4",attrs:{tabindex:"4"},on:{click:$.submit}},[$._v(" "+$._s($.finishButtonText)+" ")]):$._e(),$.completed?I("a",{staticClass:"btn mx-4",attrs:{href:$.usersIndexUrl}},[$._v(" "+$._s($.__("Back to Users"))+" ")]):$._e(),$.completed?I("a",{staticClass:"btn-primary mx-4",attrs:{href:$.usersCreateUrl}},[$._v(" "+$._s($.__("Create Another"))+" ")]):$._e()])])])},_sfc_staticRenderFns$w=[],__component__$w=normalizeComponent$3(_sfc_main$w,_sfc_render$w,_sfc_staticRenderFns$w,!1,null,"ab38c990",null,null);const UserWizard=__component__$w.exports,_sfc_main$v={mixins:[Listing],props:["initialRows","initialColumns"],data(){return{rows:this.initialRows,columns:this.initialColumns}}};var _sfc_render$v=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:N,index:B}){return[I("a",{attrs:{href:N.edit_url}},[$._v($._s($.__(N.title)))])]}},{key:"cell-handle",fn:function({value:N}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(N))])]}},{key:"actions",fn:function({row:N,index:B}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:N.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(j){$.$refs[`deleter_${N.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${N.id}`,attrs:{resource:N},on:{deleted:function(j){return $.removeRow(N)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$v=[],__component__$v=normalizeComponent$3(_sfc_main$v,_sfc_render$v,_sfc_staticRenderFns$v,!1,null,null,null,null);const RoleListing=__component__$v.exports,checked=function(M){return M.reduce(($,I)=>I.checked?[...$,I.value,...checked(I.children)]:$,[])},_sfc_main$u={props:{initialTitle:String,initialHandle:String,initialPermissions:Array,initialSuper:Boolean,canAssignSuper:Boolean,action:String,method:String,breadcrumbUrl:String,indexUrl:String},data(){return{error:null,errors:{},title:this.initialTitle,handle:this.initialHandle,permissions:this.initialPermissions,isSuper:this.initialSuper}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},payload(){return{title:this.title,handle:this.handle,super:this.isSuper,permissions:this.checkedPermissions}},checkedPermissions(){return this.permissions.reduce((M,$)=>[...M,...checked($.permissions)],[])}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.action,this.payload).then(M=>{window.location=M.data.redirect}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Unable to save role"))})}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$u=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Roles & Permissions")}}),I("div",{staticClass:"flex items-center justify-between"},[I("h1",{domProps:{textContent:$._s($.__($.initialTitle)||$.__("Create Role"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.save}},[$._v($._s($.__("Save")))])])],1),I("div",{staticClass:"card p-0 mb-6 configure-tab publish-fields @container"},[I("form-group",{staticClass:"border-b",attrs:{handle:"title",display:$.__("Title"),errors:$.errors.title,instructions:$.__("messages.role_title_instructions"),focus:!0},model:{value:$.title,callback:function(N){$.title=N},expression:"title"}}),I("form-group",{staticClass:"border-b",attrs:{fieldtype:"slug",handle:"handle",display:$.__("Handle"),instructions:$.__("messages.role_handle_instructions"),errors:$.errors.title},model:{value:$.handle,callback:function(N){$.handle=N},expression:"handle"}}),$.initialHandle&&$.handle!=$.initialHandle?I("div",{staticClass:"text-xs text-red-500 p-6 pt-0"},[$._v(" "+$._s($.__("messages.role_change_handle_warning"))+" ")]):$._e(),$.canAssignSuper?I("form-group",{staticClass:"toggle-fieldtype",attrs:{fieldtype:"toggle",handle:"super",display:$.__("permissions.super"),instructions:$.__("permissions.super_desc")},model:{value:$.isSuper,callback:function(N){$.isSuper=N},expression:"isSuper"}}):$._e()],1),$.isSuper?$._e():I("div",$._l($.permissions,function(N){return I("div",{key:N.handle,staticClass:"mt-6 content"},[I("h2",{staticClass:"mt-10 text-base mb-2"},[$._v($._s(N.label))]),I("role-permission-tree",{staticClass:"card p-0",attrs:{depth:1,"initial-permissions":N.permissions}})],1)}),0)])},_sfc_staticRenderFns$u=[],__component__$u=normalizeComponent$3(_sfc_main$u,_sfc_render$u,_sfc_staticRenderFns$u,!1,null,null,null,null);const RolePublishForm=__component__$u.exports,_sfc_main$t={mixins:[Listing],props:{initialRows:Array},data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"},{label:__("Users"),field:"users"},{label:__("Roles"),field:"roles"}]}}};var _sfc_render$t=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:N,index:B}){return[I("a",{attrs:{href:N.show_url}},[$._v($._s($.__(N.title)))])]}},{key:"cell-handle",fn:function({value:N}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(N))])]}},{key:"actions",fn:function({row:N,index:B}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:N.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(j){$.$refs[`deleter_${N.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${N.id}`,attrs:{resource:N},on:{deleted:function(j){return $.removeRow(N)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$t=[],__component__$t=normalizeComponent$3(_sfc_main$t,_sfc_render$t,_sfc_staticRenderFns$t,!1,null,null,null,null);const UserGroupListing=__component__$t.exports,_sfc_main$s={mixins:[HasHiddenFields],props:{publishContainer:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialReference:String,initialTitle:String,actions:Object,method:String,canEditBlueprint:Boolean,isCreating:Boolean},data(){return{fieldset:_.clone(this.initialFieldset),values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),error:null,errors:{},title:this.initialTitle}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.actions.save,this.visibleValues).then(M=>{this.title=M.data.title,this.$refs.container.saved(),this.isCreating&&(window.location=M.data.redirect),this.$toast.success(__("Saved")),this.$nextTick(()=>this.$emit("saved",M))}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))})}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$s=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-3"},[I("breadcrumb",{attrs:{url:$.cp_url("user-groups"),title:$.__("User Groups")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}})],1):$._e(),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$._t("action-buttons-right")],2)],1),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,setFieldValue:B,setFieldMeta:j}){return I("div",{},[I("publish-tabs",{attrs:{"enable-sidebar":!1},on:{updated:B,"meta-updated":j,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],1)}}],null,!1,1371828665)}):$._e()],1)},_sfc_staticRenderFns$s=[],__component__$s=normalizeComponent$3(_sfc_main$s,_sfc_render$s,_sfc_staticRenderFns$s,!1,null,null,null,null);const UserGroupPublishForm=__component__$s.exports,_sfc_main$r={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$r=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Collection")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.collection_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.collection_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.collection_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Collection"))+" ")])])])},_sfc_staticRenderFns$r=[],__component__$r=normalizeComponent$3(_sfc_main$r,_sfc_render$r,_sfc_staticRenderFns$r,!1,null,null,null,null);const CollectionCreateForm=__component__$r.exports,_sfc_main$q={props:{route:{type:String},title:{type:String},handle:{type:String}},data(){return{index:this.handle+"/index",show:this.handle+"/show",selected:{blueprint:!0,index:!0,show:!0}}},computed:{canSubmit(){return!_.isEmpty(this.files)},files(){var M={};return this.selected.index&&(M.index=this.index),this.selected.show&&(M.show=this.show),M}},methods:{submit(){this.$axios.post(this.route,this.files).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$q=function M(){var $=this,I=$._self._c;return I("div",{},[I("div",{staticClass:"card p-6"},[I("header",{staticClass:"mb-6"},[I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.collection_scaffold_instructions"))}})]),I("table",{staticClass:"data-table border rounded"},[I("tbody",[I("tr",[I("td",{staticClass:"checkbox-column border-r",on:{click:function(N){$.selected.index=!$.selected.index}}},[I("div",{staticClass:"flex items-center h-full"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.selected.index,expression:"selected.index"}],staticClass:"rtl:ml-4 ltr:mr-4",attrs:{type:"checkbox",id:"field_index"},domProps:{checked:Array.isArray($.selected.index)?$._i($.selected.index,null)>-1:$.selected.index},on:{change:function(N){var B=$.selected.index,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&$.$set($.selected,"index",B.concat([q])):Y>-1&&$.$set($.selected,"index",B.slice(0,Y).concat(B.slice(Y+1)))}else $.$set($.selected,"index",U)}}})])]),I("td",{staticClass:"border-r"},[I("label",{attrs:{for:"field_index"},domProps:{textContent:$._s($.__("Index Template"))}})]),I("td",{class:{"opacity-25":!$.selected.index}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.index,expression:"index"}],staticClass:"input-text font-mono",attrs:{type:"text",dir:"ltr"},domProps:{value:$.index},on:{input:function(N){N.target.composing||($.index=N.target.value)}}})])]),I("tr",[I("td",{staticClass:"checkbox-column border-r",on:{click:function(N){$.selected.show=!$.selected.show}}},[I("div",{staticClass:"flex items-center h-full"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.selected.show,expression:"selected.show"}],staticClass:"rtl:ml-4 ltr:mr-4",attrs:{type:"checkbox",id:"field_template"},domProps:{checked:Array.isArray($.selected.show)?$._i($.selected.show,null)>-1:$.selected.show},on:{change:function(N){var B=$.selected.show,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&$.$set($.selected,"show",B.concat([q])):Y>-1&&$.$set($.selected,"show",B.slice(0,Y).concat(B.slice(Y+1)))}else $.$set($.selected,"show",U)}}})])]),I("td",{staticClass:"border-r"},[I("label",{attrs:{for:"field_template"},domProps:{textContent:$._s($.__("Show Template"))}})]),I("td",{class:{"opacity-25":!$.selected.show}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.show,expression:"show"}],staticClass:"input-text font-mono",attrs:{type:"text",dir:"ltr"},domProps:{value:$.show},on:{input:function(N){N.target.composing||($.show=N.target.value)}}})])])])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Views"))+" ")])])])},_sfc_staticRenderFns$q=[],__component__$q=normalizeComponent$3(_sfc_main$q,_sfc_render$q,_sfc_staticRenderFns$q,!1,null,null,null,null);const CollectionScaffolder=__component__$q.exports,_sfc_main$p={props:{blueprint:Object,editTitle:String,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})},computed:{site(){return this.$config.get("selectedSite")}}};var _sfc_render$p=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",reference:"collection",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors,site:$.site},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.url,title:$.values.title}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.editTitle??"Configure Collection"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,799660290)}):$._e()},_sfc_staticRenderFns$p=[],__component__$p=normalizeComponent$3(_sfc_main$p,_sfc_render$p,_sfc_staticRenderFns$p,!1,null,null,null,null);const CollectionEditForm=__component__$p.exports,_sfc_main$o={props:{children:Number},data(){return{shouldDeleteChildren:!1}}};var _sfc_render$o=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"delete-entry-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Delete Entry"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray"},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to delete this entry?"))}}),$.children?I("label",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.shouldDeleteChildren,expression:"shouldDeleteChildren"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.shouldDeleteChildren)?$._i($.shouldDeleteChildren,null)>-1:$.shouldDeleteChildren},on:{change:function(N){var B=$.shouldDeleteChildren,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.shouldDeleteChildren=B.concat([q])):Y>-1&&($.shouldDeleteChildren=B.slice(0,Y).concat(B.slice(Y+1)))}else $.shouldDeleteChildren=U}}}),$._v(" "+$._s($.__n("Delete child entry|Delete :count child entries",$.children))+" ")]):$._e()]),I("div",{staticClass:"p-4 bg-gray-200 border-t flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray hover:text-gray-900",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"btn rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Delete"))},on:{click:function(N){return $.$emit("confirm",$.shouldDeleteChildren)}}})])])])},_sfc_staticRenderFns$o=[],__component__$o=normalizeComponent$3(_sfc_main$o,_sfc_render$o,_sfc_staticRenderFns$o,!1,null,null,null,null);const DeleteEntryConfirmation=__component__$o.exports,_sfc_main$n={props:{entries:{type:Number,required:!0}},data(){return{behavior:null,error:!1}},computed:{instructions(){let M=docs_url("/tips/localizing-entries#deleting");return`${__("messages.choose_entry_localization_deletion_behavior")} <a href="${M}" target="_blank">${__("Learn more")}</a>`}},methods:{confirm(){if(!this.behavior){this.error=!0;return}this.$emit("confirm",this.behavior)}}};var _sfc_render$n=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"delete-entry-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Delete"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group",class:{"has-error":this.error}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"publish-field-label",attrs:{for:"field_behavior"}},[I("span",{domProps:{textContent:$._s($.__("Localizations"))}}),I("i",{staticClass:"required rtl:mr-1 ltr:ml-1"},[$._v("*")])]),I("div",{staticClass:"help-block -mt-2"},[I("p",{domProps:{innerHTML:$._s($.instructions)}})])]),I("div",{staticClass:"button-group-fieldtype-wrapper"},[I("div",{staticClass:"btn-group"},[I("button",{staticClass:"btn px-4",class:{active:$.behavior==="delete"},on:{click:function(N){$.behavior="delete"}}},[I("span",{domProps:{textContent:$._s($.__("Delete"))}})]),I("button",{staticClass:"btn px-4",class:{active:$.behavior==="copy"},on:{click:function(N){$.behavior="copy"}}},[I("span",{domProps:{textContent:$._s($.__("Detach"))}})])])]),$.error?I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("statamic::validation.required"))}}):$._e()])])]),I("div",{staticClass:"p-4 bg-gray-200 border-t flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray hover:text-gray-900",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"btn rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Confirm"))},on:{click:$.confirm}})])])])},_sfc_staticRenderFns$n=[],__component__$n=normalizeComponent$3(_sfc_main$n,_sfc_render$n,_sfc_staticRenderFns$n,!1,null,null,null,null);const DeleteLocalizationConfirmation=__component__$n.exports,_sfc_main$m={components:{PageTree,DeleteEntryConfirmation,DeleteLocalizationConfirmation,SiteSelector},props:{title:{type:String,required:!0},handle:{type:String,required:!0},canCreate:{type:Boolean,required:!0},createUrls:{type:Object,required:!0},createLabel:{type:String,required:!0},blueprints:{type:Array,required:!0},breadcrumbUrl:{type:String,required:!0},structured:{type:Boolean,default:!1},sortColumn:{type:String,required:!0},sortDirection:{type:String,required:!0},columns:{type:Array,required:!0},filters:{type:Array,required:!0},actionUrl:{type:String,required:!0},reorderUrl:{type:String,required:!0},initialSite:{type:String,required:!0},sites:{type:Array},structurePagesUrl:{type:String},structureSubmitUrl:{type:String},structureMaxDepth:{type:Number,default:1/0},structureExpectsRoot:{type:Boolean},structureShowSlugs:{type:Boolean}},data(){return{mounted:!1,view:null,deletedEntries:[],showEntryDeletionConfirmation:!1,entryBeingDeleted:null,entryDeletionConfirmCallback:null,deleteLocalizationBehavior:null,showLocalizationDeleteBehaviorConfirmation:!1,localizationDeleteBehaviorConfirmCallback:null,site:this.initialSite,reordering:!1,preferencesPrefix:`collections.${this.handle}`}},computed:{treeIsDirty(){return this.$dirty.has("page-tree")},canUseStructureTree(){return this.structured&&this.structureMaxDepth!==1},reorderable(){return this.structured&&this.structureMaxDepth===1},numberOfChildrenToBeDeleted(){let M=0;const $=I=>{I.children.forEach(N=>{M++,$(N)})};return $(this.entryBeingDeleted),M},createUrl(){return this.createUrls[this.site||this.initialSite]}},watch:{view(M){this.site=this.site||this.initialSite,this.$config.set("wrapperClass",M==="tree"?void 0:"max-w-full"),localStorage.setItem("statamic.collection-view."+this.handle,M)}},mounted(){this.view=this.initialView(),this.mounted=!0},methods:{cancelTreeProgress(){this.$refs.tree.cancel(),this.deletedEntries=[]},saveTree(){if(this.sites.length===1||this.deletedEntries.length===0){this.performTreeSaving();return}this.showLocalizationDeleteBehaviorConfirmation=!0,this.localizationDeleteBehaviorConfirmCallback=M=>{this.deleteLocalizationBehavior=M,this.showLocalizationDeleteBehaviorConfirmation=!1,this.$nextTick(()=>this.performTreeSaving())}},performTreeSaving(){this.$refs.tree.save().then(()=>this.deletedEntries=[]).catch(()=>{})},markTreeDirty(){this.$dirty.add("page-tree")},markTreeClean(){this.$dirty.remove("page-tree")},initialView(){if(!this.canUseStructureTree)return"list";const M=this.canUseStructureTree?"tree":"list";return localStorage.getItem("statamic.collection-view."+this.handle)||M},deleteTreeBranch(M,$,I){this.showEntryDeletionConfirmation=!0,this.entryBeingDeleted=M,this.entryDeletionConfirmCallback=N=>{this.deletedEntries.push(M.id),N?this.markEntriesForDeletion(M):I(),$(),this.showEntryDeletionConfirmation=!1,this.entryBeingDeleted=!1}},markEntriesForDeletion(M){const $=I=>{I.children.forEach(N=>{this.deletedEntries.push(N.id),$(N)})};$(M)},isRedirectBranch(M){return M.redirect!=null},createEntry(M,$){let I=`${this.createUrl}?blueprint=${M}`;$&&(I+="&parent="+$),window.location=I},editPage(M,$,I,N){const B=M.edit_url;N.metaKey?window.open(B):window.location=B}}};var _sfc_render$m=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Collections")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),this.$scopedSlots.twirldown?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$._t("twirldown")],2):$._e(),$.canUseStructureTree&&!$.treeIsDirty?I("div",{staticClass:"btn-group rtl:ml-4 ltr:mr-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)]):$._e(),$.view==="tree"?[$.treeIsDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.cancelTreeProgress}}):$._e(),$.sites.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:function(N){$.site=N.handle}}}):$._e(),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.deletedEntries.length?$.__n("An entry will be deleted|:count entries will be deleted",$.deletedEntries.length):null,expression:"deletedEntries.length ? __n('An entry will be deleted|:count entries will be deleted', deletedEntries.length) : null"}],staticClass:"btn rtl:ml-4 ltr:mr-4",class:{disabled:!$.treeIsDirty,"btn-danger":$.deletedEntries.length},attrs:{disabled:!$.treeIsDirty},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.saveTree}})]:$._e(),$.view==="list"&&$.reorderable?[$.sites.length>1&&$.reordering&&$.site?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:function(N){$.site=N.handle}}}):$._e(),$.reordering?$._e():I("button",{staticClass:"btn rtl:ml-4 ltr:mr-4",domProps:{textContent:$._s($.__("Reorder"))},on:{click:function(N){$.reordering=!0}}}),$.reordering?[I("button",{staticClass:"btn rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){$.reordering=!1}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save Order"))},on:{click:$.$refs.list.saveOrder}})]:$._e()]:$._e(),!$.reordering&&$.canCreate?I("create-entry-button",{attrs:{"button-class":"btn-primary",url:$.createUrl,blueprints:$.blueprints,text:$.createLabel}}):$._e()],2)],1),$.view==="list"?I("entry-list",{ref:"list",attrs:{collection:$.handle,"initial-sort-column":$.sortColumn,"initial-sort-direction":$.sortDirection,"initial-columns":$.columns,filters:$.filters,"action-url":$.actionUrl,reordering:$.reordering,"reorder-url":$.reorderUrl,site:$.site},on:{reordered:function(N){$.reordering=!1},"site-changed":function(N){$.site=N}}}):$._e(),$.canUseStructureTree&&$.view==="tree"?I("page-tree",{ref:"tree",attrs:{collections:[$.handle],blueprints:$.blueprints,"create-url":$.createUrl,"pages-url":$.structurePagesUrl,"submit-url":$.structureSubmitUrl,"submit-parameters":{deletedEntries:$.deletedEntries,deleteLocalizationBehavior:$.deleteLocalizationBehavior},"max-depth":$.structureMaxDepth,"expects-root":$.structureExpectsRoot,"show-slugs":$.structureShowSlugs,site:$.site,"preferences-prefix":$.preferencesPrefix},on:{"edit-page":$.editPage,changed:$.markTreeDirty,saved:$.markTreeClean,canceled:$.markTreeClean},scopedSlots:$._u([{key:"branch-icon",fn:function({branch:N}){return[$.isRedirectBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Redirect"),expression:"__('Redirect')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/external-link"}}):$._e()]}},{key:"branch-options",fn:function({branch:N,removeBranch:B,orphanChildren:j,depth:U}){return[U<$.structureMaxDepth?[$.blueprints.length>1?I("h6",{staticClass:"px-2",domProps:{textContent:$._s($.__("Create Child Entry"))}}):$._e(),$.blueprints.length>1?I("li",{staticClass:"divider"}):$._e(),$._l($.blueprints,function(q){return I("dropdown-item",{key:q.handle,domProps:{textContent:$._s($.blueprints.length>1?$.__(q.title):$.__("Create Child Entry"))},on:{click:function(Y){return $.createEntry(q.handle,N.id)}}})})]:$._e(),N.can_delete?[I("li",{staticClass:"divider"}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(q){return $.deleteTreeBranch(N,B,j)}}})]:$._e()]}}],null,!1,2247965176)}):$._e(),$.showEntryDeletionConfirmation?I("delete-entry-confirmation",{attrs:{children:$.numberOfChildrenToBeDeleted},on:{confirm:$.entryDeletionConfirmCallback,cancel:function(N){$.showEntryDeletionConfirmation=!1,$.entryBeingDeleted=null}}}):$._e(),$.showLocalizationDeleteBehaviorConfirmation?I("delete-localization-confirmation",{attrs:{entries:$.deletedEntries.length},on:{confirm:$.localizationDeleteBehaviorConfirmCallback,cancel:function(N){$.showLocalizationDeleteBehaviorConfirmation=!1}}}):$._e()],1)},_sfc_staticRenderFns$m=[],__component__$m=normalizeComponent$3(_sfc_main$m,_sfc_render$m,_sfc_staticRenderFns$m,!1,null,null,null,null);const CollectionView=__component__$m.exports,_sfc_main$l={components:{BlueprintListing},props:{initialRows:Array,reorderUrl:String},data(){return{rows:this.initialRows,hasBeenReordered:!1}},methods:{reordered(M){this.rows=M,this.hasBeenReordered=!0},saveOrder(){let M=this.rows.map($=>$.handle);this.$axios.post(this.reorderUrl,{order:M}).then($=>this.$toast.success(__("Blueprints successfully reordered"))).catch($=>this.$toast.error(__("Something went wrong")))}}},_sfc_render$l=null,_sfc_staticRenderFns$l=null;var __component__$l=normalizeComponent$3(_sfc_main$l,_sfc_render$l,_sfc_staticRenderFns$l,!1,null,null,null,null);const CollectionBlueprintListing=__component__$l.exports,_sfc_main$k={props:{warnAt:Number,lifetime:Number,email:String,oauthProvider:String},data(){return{isShowingLogin:!1,count:this.lifetime,remaining:this.lifetime,errors:{},password:null,pinging:!1,lastCount:Vue$3.moment(),isPageHidden:!1}},computed:{isWarning(){return this.count<=this.warnAt},warningText(){return this.remaining===0?__("messages.session_expiry_logged_out_for_inactivity"):__("messages.session_expiry_logging_out_in_seconds",{seconds:this.remaining})},isUsingOauth(){return this.oauthProvider!=null}},created(){this.startCountdown(),document.addEventListener("visibilitychange",()=>this.isPageHidden=document.hidden,!1)},watch:{count(M){this.isShowingLogin=this.remaining<=0;const $=M<=this.warnAt,N=Vue$3.moment().diff(this.lastCount,"seconds")>10;($||N)&&this.ping().catch(B=>{}),this.lastCount=Vue$3.moment()}},methods:{startCountdown(){setInterval(()=>{this.count--},1e3)},restartCountdown(){this.count=this.remaining=this.lifetime,this.startCountdown()},ping(){return this.pinging||this.isPageHidden?Promise.resolve():(this.pinging=!0,this.$axios.get(cp_url("session-timeout")).then(M=>{this.count=this.remaining=M.data}).catch(M=>{throw M.response.status===401&&(this.remaining=0),M}).finally(M=>{this.pinging=!1}))},updateCsrfToken(){return this.$axios.get(cp_url("auth/token")).then(M=>{const $=M.data;this.$axios.defaults.headers.common["X-CSRF-TOKEN"]=$,this.$config.set("csrfToken",$)})},submit(){this.updateCsrfToken().then(()=>{this.login()})},login(){this.$axios.post(cp_url("auth/login"),{email:this.email,password:this.password}).then(M=>{this.errors={},this.password=null,this.isShowingLogin=!1,this.$toast.success(__("Logged in")),this.restartCountdown(),this.updateCsrfToken()}).catch(M=>{M.response.status===422?(this.errors=M.response.data.errors,this.$toast.error(M.response.data.message)):this.$toast.error(__("Something went wrong"))})},extend(){this.$axios.get(cp_url("auth/extend")).then(M=>{this.remaining=this.lifetime})}}};var _sfc_render$k=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"session-expiry"},[$.isWarning?I("button",{staticClass:"session-expiry-stripe",domProps:{textContent:$._s($.warningText)},on:{click:$.extend}}):$._e(),$.isShowingLogin?I("modal",{attrs:{name:"session-timeout-login",height:"auto",width:"500px",adaptive:!0}},[I("div",{staticClass:"-max-h-screen-px"},[I("div",{staticClass:"flex items-center p-6 bg-gray-200 border-b text-center"},[$._v(" "+$._s($.__("Resume Your Session"))+" ")]),$.isUsingOauth?I("div",{staticClass:"p-6"},[I("a",{staticClass:"btn-primary",attrs:{href:$.oauthProvider.loginUrl,target:"_blank"}},[$._v(" "+$._s($.__("Log in with :provider",{provider:$.oauthProvider.label}))+" ")]),I("div",{staticClass:"text-2xs text-gray mt-4"},[$._v(" "+$._s($.__("messages.session_expiry_new_window"))+" ")])]):$._e(),$.isUsingOauth?$._e():I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("messages.session_expiry_enter_password"))}}),$.errors.email?I("small",{staticClass:"help-block text-red-500",domProps:{textContent:$._s($.errors.email[0])}}):$._e(),$.errors.password?I("small",{staticClass:"help-block text-red-500",domProps:{textContent:$._s($.errors.password[0])}}):$._e(),I("div",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.password,expression:"password"}],ref:"password",staticClass:"input-text",attrs:{type:"password",tabindex:"1",autofocus:""},domProps:{value:$.password},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.submit.apply(null,arguments))},input:function(N){N.target.composing||($.password=N.target.value)}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Log in"))},on:{click:$.submit}})])])])])]):$._e()],1)},_sfc_staticRenderFns$k=[],__component__$k=normalizeComponent$3(_sfc_main$k,_sfc_render$k,_sfc_staticRenderFns$k,!1,null,null,null,null);const SessionExpiry=__component__$k.exports,_sfc_main$j={mixins:[Listing],props:["initialRows"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title",visible:!0}]}}};var _sfc_render$j=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{staticClass:"flex items-center",attrs:{href:B.available_in_selected_site?B.show_url:B.edit_url},domProps:{textContent:$._s($.__(B.title))}})]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$j=[],__component__$j=normalizeComponent$3(_sfc_main$j,_sfc_render$j,_sfc_staticRenderFns$j,!1,null,null,null,null);const NavigationListing=__component__$j.exports,_sfc_main$i={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$i=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Navigation")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.navigation_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.navigation_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.navigation_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Navigation"))+" ")])])])},_sfc_staticRenderFns$i=[],__component__$i=normalizeComponent$3(_sfc_main$i,_sfc_render$i,_sfc_staticRenderFns$i,!1,null,null,null,null);const NavigationCreateForm=__component__$i.exports,_sfc_main$h={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$h=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}}),I("div",{staticClass:"py-4 border-t flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,415989080)}):$._e()},_sfc_staticRenderFns$h=[],__component__$h=normalizeComponent$3(_sfc_main$h,_sfc_render$h,_sfc_staticRenderFns$h,!1,null,null,null,null);const NavigationEditForm=__component__$h.exports,_sfc_main$g={props:{blueprint:{required:!0,type:Object},meta:{required:!0,type:Object},values:{required:!0,type:Object},title:{required:!0,type:String},name:{type:String,default:"base"},breadcrumbs:Array,action:String,readOnly:{type:Boolean,default:!1},reloadOnSave:{type:Boolean,default:!1},saveAsOptions:{type:Array,default:()=>[]}},data(){return{saving:!1,currentValues:this.values,error:null,errors:{},hasSidebar:this.blueprint.tabs.map(M=>M.handle).includes("sidebar")}},computed:{hasSaveAsOptions(){return this.saveAsOptions.length},isDirty(){return this.$dirty.has(this.name)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.saveAs(this.action)},saveAs(M){this.saving=!0,this.clearErrors(),this.$axios.patch(M,this.currentValues).then(()=>{this.$refs.container.saved(),location.reload()}).catch($=>this.handleAxiosError($))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else{const $=data_get(M,"response.data.message");this.$toast.error($||M),console.log(M)}}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},watch:{saving(M){this.$progress.loading("preferences-edit-form",M)}}};var _sfc_render$g=function M(){var $=this,I=$._self._c;return I("publish-container",{ref:"container",attrs:{name:$.name,blueprint:$.blueprint,reference:"collection",meta:$.meta,errors:$.errors},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return[I("div",[$.breadcrumbs?I("breadcrumbs",{attrs:{crumbs:$.breadcrumbs}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.title))]),I("div",{staticClass:"rtl:mr-4 ltr:ml-4 rtl:text-right ltr:text-left",class:{"btn-group":$.hasSaveAsOptions}},[I("button",{staticClass:"btn-primary rtl:pr-4 ltr:pl-4",class:{disabled:!$.isDirty},attrs:{disabled:!$.isDirty},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}}),$.hasSaveAsOptions?I("dropdown-list",{staticClass:"rtl:mr-0 ltr:ml-0",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary rtl:rounded-r-none ltr:rounded-l-none flex items-center"},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!0)},[I("h6",{staticClass:"p-2"},[$._v($._s($.__("Save to"))+"...")]),$._l($.saveAsOptions,function(j){return I("dropdown-item",{key:j.url,on:{click:function(U){return $.saveAs(j.url)}}},[I("div",{staticClass:"flex items-start rtl:pl-4 ltr:pr-4"},[I("svg-icon",{staticClass:"text-gray shrink-0 rtl:ml-2 ltr:mr-2 w-4 group-hover:text-white",attrs:{name:j.icon}}),I("span",{staticClass:"whitespace-normal"},[$._v($._s(j.label))])],1)])})],2):$._e()],1)]),I("publish-tabs",{attrs:{"enable-sidebar":$.hasSidebar,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)]}}]),model:{value:$.currentValues,callback:function(N){$.currentValues=N},expression:"currentValues"}})},_sfc_staticRenderFns$g=[],__component__$g=normalizeComponent$3(_sfc_main$g,_sfc_render$g,_sfc_staticRenderFns$g,!1,null,null,null,null);const PreferencesEditForm=__component__$g.exports,_sfc_main$f={props:{id:String,entry:String,site:String,publishInfo:Object,blueprint:Object,handle:String,editEntryUrl:String,creating:Boolean,readOnly:Boolean},data(){return{type:this.entry?"entry":"url",values:null,meta:null,originValues:null,originMeta:null,localizedFields:null,syncableFields:null,loading:!0,error:null,errors:{},validating:!1,saveKeyBinding:null,publishContainer:"tree-page"}},computed:{headerText(){return this.entry?__("Link to Entry"):__("Nav Item")},adjustedBlueprint(){function M(j){return _.chain(j.tabs[0].sections).map(U=>U.fields).flatten(!0).value()}function $(j,U){return!M(j).some(q=>q.handle===U)}function I(j,U){return!$(j,U)}function N(j){for(let U=0;U<B.tabs[0].sections.length;U++){const q=B.tabs[0].sections[U];for(let Y=0;Y<q.fields.length;Y++)if(q.fields[Y].handle===j)return{section:U,field:Y}}return{section:null,field:null}}const B=clone(this.blueprint);if(this.type=="url"&&$(B,"url")&&B.tabs[0].sections[0].fields.unshift({handle:"url",type:"text",display:__("URL"),instructions:__("Enter any internal or external URL.")}),this.type=="entry"&&I(B,"url")){const{section:j,field:U}=N("url");B.tabs[0].sections[j].fields.splice(U,1)}return $(B,"title")&&B.tabs[0].sections[0].fields.unshift({handle:"title",type:"text",display:__("Title")}),B}},watch:{localizedFields(M){this.loading||this.$emit("localized-fields-updated",M)}},methods:{submit(){this.validating=!0;const M=cp_url(`navigation/${this.handle}/pages`);this.$axios.post(M,{type:this.type,values:this.values}).then($=>{this.$emit("submitted",this.values)}).catch($=>{if(this.validating=!1,$.response&&$.response.status===422){const{message:I,errors:N}=$.response.data;this.error=I,this.errors=N,this.$toast.error(I)}else $.response?this.$toast.error($.response.data.message):this.$toast.error($||"Something went wrong")})},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))},confirmClose(M){this.shouldClose()&&M()},syncField(M){confirm("Are you sure? This field's value will be replaced by the value in the original entry.")&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()},setFieldValue(M,$){this.desyncField(M),this.$refs.container.setFieldValue(M,$)},getPageValues(){const M=!!this.publishInfo,$=M&&this.publishInfo.hasOwnProperty("values");if(M&&$){this.updatePublishInfo(this.publishInfo),this.loading=!1;return}const I=this.creating||M&&!$;let N=I?cp_url(`navigation/${this.handle}/pages/create`):cp_url(`navigation/${this.handle}/pages/${this.id}/edit`);N+=`?site=${this.site}`,I&&this.type=="entry"&&(N+=`&entry=${this.entry}`),this.$axios.get(N).then(B=>{this.updatePublishInfo(B.data),this.emitPublishInfoUpdated(M&&this.publishInfo.new),this.loading=!1})},updatePublishInfo(M){this.values=M.values,this.originValues=M.originValues,this.meta=M.meta,this.originMeta=M.originMeta,this.localizedFields=M.localizedFields,this.syncableFields=M.syncableFields},emitPublishInfoUpdated(M){this.$emit("publish-info-updated",{values:this.values,originValues:this.originValues,meta:this.meta,originMeta:this.originMeta,localizedFields:this.localizedFields,syncableFields:this.syncableFields,entry:this.entry,new:M})}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+enter","mod+s"],M=>{M.preventDefault(),this.submit()}),this.getPageValues()},destroyed(){this.saveKeyBinding.destroy()}};var _sfc_render$f=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"page-tree-linker","before-close":$.shouldClose},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-gray-100 h-full flex flex-col"},[I("header",{staticClass:"bg-white rtl:pr-6 ltr:pl-6 rtl:pl-3 ltr:pr-3 py-2 mb-4 border-b shadow-md text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.headerText)+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:function(B){return $.confirmClose(N)}}})]),$.loading?I("div",{staticClass:"flex-1 overflow-auto relative"},[I("div",{staticClass:"absolute inset-0 z-10 bg-white bg-opacity-75 flex items-center justify-center text-center"},[I("loading-graphic")],1)]):$._e(),$.loading?$._e():I("div",{staticClass:"flex-1 overflow-auto px-1"},[I("publish-container",{ref:"container",staticClass:"px-2",attrs:{name:$.publishContainer,blueprint:$.adjustedBlueprint,values:$.values,meta:$.meta,errors:$.errors,"localized-fields":$.localizedFields,site:$.site},on:{updated:function(B){$.values=B}},scopedSlots:$._u([{key:"default",fn:function({container:B,setFieldMeta:j}){return I("div",{},[$.validating?I("div",{staticClass:"absolute inset-0 z-10 bg-white bg-opacity-75 flex items-center justify-center"},[I("loading-graphic",{attrs:{text:""}})],1):$._e(),I("publish-sections",{attrs:{sections:$.adjustedBlueprint.tabs[0].sections,syncable:$.type=="entry","syncable-fields":$.syncableFields,"read-only":$.readOnly},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return B.$emit("focus",U)},blur:function(U){return B.$emit("blur",U)}}})],1)}}],null,!0)})],1),!$.loading&&(!$.readOnly||$.type==="entry")?I("div",{staticClass:"bg-gray-200 p-4 border-t flex items-center justify-between flex-row-reverse"},[$.readOnly?$._e():I("div",[I("button",{staticClass:"btn rtl:ml-2 ltr:mr-2",on:{click:function(B){return $.confirmClose(N)}}},[$._v($._s($.__("Cancel")))]),I("button",{staticClass:"btn-primary",on:{click:$.submit}},[$._v($._s($.__("Submit")))])]),$.type==="entry"?I("div",[I("a",{staticClass:"text-xs flex items-center justify-center text-blue hover:text-blue underline rtl:ml-4 ltr:mr-4",attrs:{href:$.editEntryUrl,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/external-link"}}),$._v(" "+$._s($.__("Edit Entry"))+" ")],1)]):$._e()]):$._e()])}}])})},_sfc_staticRenderFns$f=[],__component__$f=normalizeComponent$3(_sfc_main$f,_sfc_render$f,_sfc_staticRenderFns$f,!1,null,null,null,null);const PageEditor=__component__$f.exports,_sfc_main$e={props:{site:String,collections:Array},data(){return{config:{type:"entries",collections:this.collections},columns:[{label:__("Title"),field:"title"},{label:__("Slug"),field:"slug"}]}},computed:{itemDataUrl(){return cp_url("fieldtypes/relationship/data")+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return cp_url("fieldtypes/relationship")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},filtersUrl(){return cp_url("fieldtypes/relationship/filters")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},configParameter(){return utf8btoa(JSON.stringify(this.config))}},methods:{linkExistingItem(){this.$refs.input.$refs.existing.click()},itemDataUpdated(M){M.length&&this.$emit("selected",M)}}};var _sfc_render$e=function M(){var $=this,I=$._self._c;return I("relationship-input",{ref:"input",staticClass:"hidden",attrs:{name:"entries",value:[],config:$.config,site:$.site,"item-data-url":$.itemDataUrl,"selections-url":$.selectionsUrl,"filters-url":$.filtersUrl,search:!0,columns:$.columns,"can-create":!1,"can-reorder":!1},on:{"item-data-updated":$.itemDataUpdated}})},_sfc_staticRenderFns$e=[],__component__$e=normalizeComponent$3(_sfc_main$e,_sfc_render$e,_sfc_staticRenderFns$e,!1,null,null,null,null);const PageSelector=__component__$e.exports,_sfc_main$d={props:{children:Number},data(){return{shouldDeleteChildren:!1}}};var _sfc_render$d=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"remove-page-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Remove Page"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray"},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to remove this page?"))}}),I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Only the references will be removed. Entries will not be deleted."))}}),$.children?I("label",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.shouldDeleteChildren,expression:"shouldDeleteChildren"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.shouldDeleteChildren)?$._i($.shouldDeleteChildren,null)>-1:$.shouldDeleteChildren},on:{change:function(N){var B=$.shouldDeleteChildren,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.shouldDeleteChildren=B.concat([q])):Y>-1&&($.shouldDeleteChildren=B.slice(0,Y).concat(B.slice(Y+1)))}else $.shouldDeleteChildren=U}}}),$._v(" "+$._s($.__n("Remove child page|Remove :count child pages",$.children))+" ")]):$._e()]),I("div",{staticClass:"p-4 bg-gray-200 border-t flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray hover:text-gray-900",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"btn rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Remove"))},on:{click:function(N){return $.$emit("confirm",$.shouldDeleteChildren)}}})])])])},_sfc_staticRenderFns$d=[],__component__$d=normalizeComponent$3(_sfc_main$d,_sfc_render$d,_sfc_staticRenderFns$d,!1,null,null,null,null);const RemovePageConfirmation=__component__$d.exports,_sfc_main$c={components:{PageTree,PageEditor,PageSelector,RemovePageConfirmation,SiteSelector},props:{title:{type:String,required:!0},handle:{type:String,required:!0},collections:{type:Array,required:!0},breadcrumbUrl:{type:String,required:!0},editUrl:{type:String,required:!0},pagesUrl:{type:String,required:!0},submitUrl:{type:String,required:!0},maxDepth:{type:Number,default:1/0},expectsRoot:{type:Boolean,required:!0},site:{type:String,required:!0},sites:{type:Array,required:!0},blueprint:{type:Object,required:!0},canEdit:{type:Boolean,required:!0}},data(){return{mounted:!1,changed:!1,creatingPage:!1,editingPage:!1,targetParent:null,showPageDeletionConfirmation:!1,pageBeingDeleted:null,pageDeletionConfirmCallback:null,preferencesPrefix:`navs.${this.handle}`,publishInfo:{}}},computed:{isDirty(){return this.$dirty.has("page-tree")},numberOfChildrenToBeDeleted(){let M=0;const $=I=>{I.children.forEach(N=>{M++,$(N)})};return $(this.pageBeingDeleted),M},hasCollections(){return this.collections.length>0},submissionData(){return _.mapObject(this.publishInfo,M=>_.pick(M,["entry","values","localizedFields","new"]))},direction(){return this.$config.get("direction","rtl")}},watch:{changed(M){this.$dirty.state("page-tree",M)}},mounted(){this.mounted=!0},methods:{addLink(){this.hasCollections||this.linkPage()},linkPage(M){this.targetParent=M,this.openPageCreator()},linkEntries(M){this.targetParent=M,this.$refs.selector.linkExistingItem()},entriesSelected(M){M=M.map($=>({...$,id:uniqid$1(),entry:$.id,entry_title:$.title,title:null})),M.forEach($=>{this.publishInfo={...this.publishInfo,[$.id]:{entry:$.entry,new:!0}}}),this.$refs.tree.addPages(M,this.targetParent)},isEntryBranch(M){return!!M.entry},isLinkBranch(M){return!this.isEntryBranch(M)&&M.url},isTextBranch(M){return!this.isEntryBranch(M)&&!this.isLinkBranch(M)},editPage(M,$,I){this.editingPage={page:M,vm:$,store:I}},updatePage(M){this.editingPage.page.url=M.url,this.editingPage.page.title=M.title,this.editingPage.page.values=M,this.$refs.tree.pageUpdated(this.editingPage.store),this.publishInfo[this.editingPage.page.id].values=M,this.editingPage=!1},closePageEditor(){this.editingPage=!1},openPageCreator(){this.creatingPage={info:null}},closePageCreator(){this.creatingPage=!1},pageCreated(M){const $={id:uniqid$1(),title:M.title,url:M.url,children:[]};this.$set(this.publishInfo,$.id,{...this.creatingPage.info,values:M,entry:null,new:!0}),this.$refs.tree.addPages([$],this.targetParent),this.closePageCreator()},deleteTreeBranch(M,$,I){this.showPageDeletionConfirmation=!0,this.pageBeingDeleted=M,this.pageDeletionConfirmCallback=N=>{N||I(),$(),this.showPageDeletionConfirmation=!1,this.pageBeingDeleted=M}},siteSelected(M){window.location=M.url},updatePublishInfo(M){this.publishInfo={...this.publishInfo,[this.editingPage.page.id]:M}},updatePendingCreatedPagePublishInfo(M){this.creatingPage.info=M},updateLocalizedFields(M){this.publishInfo[this.editingPage.page.id].localizedFields=M},updatePendingCreatedPageLocalizedFields(M){this.creatingPage.info.localizedFields=M},treeSaved(M){this.replaceGeneratedIds(M.data.generatedIds),this.changed=!1},replaceGeneratedIds(M){for(let[$,I]of Object.entries(M)){this.$set(this.publishInfo,I,{...this.publishInfo[$],new:!1}),this.$delete(this.publishInfo,$);let N=this.$refs.tree.getNodeByBranchId($);N.id=I,this.$refs.tree.pageUpdated(N._vm.store)}}}};var _sfc_render$c=function M(){var $=this,I=$._self._c;return I("div",[$.mounted?I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Navigation")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.editable?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$._t("twirldown")],2):$._e(),$.isDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.$refs.tree.cancel}}):$._e(),$.sites.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:$.siteSelected}}):$._e(),$.canEdit?I("dropdown-list",{attrs:{disabled:!$.hasCollections},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn",class:{"flex items-center rtl:pl-4 ltr:pr-4":$.hasCollections},on:{click:$.addLink}},[$._v(" "+$._s($.__("Add Nav Item"))+" "),$.hasCollections?I("svg-icon",{staticClass:"w-2 rtl:mr-4 ltr:ml-4",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}],null,!1,1142844671)},[I("dropdown-item",{attrs:{text:$.__("Add Nav Item")},on:{click:function(N){return $.linkPage()}}}),I("dropdown-item",{attrs:{text:$.__("Link to Entry")},on:{click:function(N){return $.linkEntries()}}})],1):$._e(),$.canEdit?I("button",{staticClass:"btn-primary rtl:mr-4 ltr:ml-4",class:{disabled:!$.changed},attrs:{disabled:!$.changed},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.$refs.tree.save}}):$._e()],1)],1):$._e(),I("page-tree",{ref:"tree",attrs:{"pages-url":$.pagesUrl,"submit-url":$.submitUrl,"submit-parameters":{data:$.submissionData},"max-depth":$.maxDepth,"expects-root":$.expectsRoot,site:$.site,"preferences-prefix":$.preferencesPrefix,editable:$.canEdit},on:{"edit-page":$.editPage,changed:function(N){$.changed=!0,$.targetParent=null},saved:$.treeSaved,canceled:function(N){$.changed=!1}},scopedSlots:$._u([{key:"empty",fn:function(){return[I("div",{staticClass:"card p-4 content w-full"},[I("div",{staticClass:"flex flex-wrap w-full"},[I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 rounded-md group",attrs:{href:$.editUrl}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800",attrs:{name:"light/hammer-wrench"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue"},[$._v($._s($.__("Configure Navigation"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_configure_settings_intro")))])])],1),I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 rounded-md group",on:{click:function(N){return $.linkPage()}}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800",attrs:{name:"paperclip"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue"},[$._v($._s($.__("Link to URL"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_link_to_url_instructions")))])])],1),$.hasCollections?I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 rounded-md group",on:{click:function(N){return $.linkEntries()}}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800",attrs:{name:"light/hierarchy-files"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue"},[$._v($._s($.__("Link to Entry"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_link_to_entry_instructions")))])])],1):$._e(),I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 rounded-md group",attrs:{href:$.docs_url("navigation")}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800",attrs:{name:"light/book-pages"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue"},[$._v($._s($.__("Read the Documentation"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_documentation_instructions")))])])],1)])])]},proxy:!0},{key:"branch-icon",fn:function({branch:N}){return[$.isEntryBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Entry link"),expression:"__('Entry link')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/hyperlink"}}):$._e(),$.isLinkBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("External link"),expression:"__('External link')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/external-link"}}):$._e(),$.isTextBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Text"),expression:"__('Text')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/file-text"}}):$._e()]}},$.canEdit?{key:"branch-options",fn:function({branch:N,removeBranch:B,orphanChildren:j,vm:U,depth:q}){return[$.isEntryBranch(N)?I("dropdown-item",{attrs:{text:$.__("Edit Entry"),redirect:N.edit_url}}):$._e(),q<$.maxDepth?I("dropdown-item",{attrs:{text:$.__("Add child nav item")},on:{click:function(Y){return $.linkPage(U)}}}):$._e(),q<$.maxDepth&&$.hasCollections?I("dropdown-item",{attrs:{text:$.__("Add child link to entry")},on:{click:function(Y){return $.linkEntries(U)}}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Remove")},on:{click:function(Y){return $.deleteTreeBranch(N,B,j)}}})]}}:null],null,!0)}),$.hasCollections&&$.$refs.tree?I("page-selector",{ref:"selector",attrs:{site:$.site,collections:$.collections},on:{selected:$.entriesSelected}}):$._e(),$.editingPage?I("page-editor",{attrs:{site:$.site,id:$.editingPage.page.id,entry:$.editingPage.page.entry,editEntryUrl:$.editingPage.page.entry?$.editingPage.page.edit_url:null,"publish-info":$.publishInfo[$.editingPage.page.id],blueprint:$.blueprint,handle:$.handle,"read-only":!$.canEdit},on:{"publish-info-updated":$.updatePublishInfo,"localized-fields-updated":$.updateLocalizedFields,closed:$.closePageEditor,submitted:$.updatePage}}):$._e(),$.creatingPage?I("page-editor",{attrs:{creating:"",site:$.site,blueprint:$.blueprint,handle:$.handle,"read-only":!$.canEdit},on:{"publish-info-updated":$.updatePendingCreatedPagePublishInfo,"localized-fields-updated":$.updatePendingCreatedPageLocalizedFields,closed:$.closePageCreator,submitted:$.pageCreated}}):$._e(),$.showPageDeletionConfirmation?I("remove-page-confirmation",{attrs:{children:$.numberOfChildrenToBeDeleted},on:{confirm:$.pageDeletionConfirmCallback,cancel:function(N){$.showPageDeletionConfirmation=!1,$.pageBeingDeleted=null}}}):$._e()],1)},_sfc_staticRenderFns$c=[],__component__$c=normalizeComponent$3(_sfc_main$c,_sfc_render$c,_sfc_staticRenderFns$c,!1,null,null,null,null);const NavigationView=__component__$c.exports,_sfc_main$b={props:{route:{type:String}},data(){return{title:null,handle:null}},watch:{title:function(M){this.handle=this.$slugify(M,"_")}},computed:{canSubmit(){return!!(this.title&&this.handle)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$b=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Taxonomy")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.taxonomy_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.taxonomy_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.taxonomy_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Taxonomy"))+" ")])])])},_sfc_staticRenderFns$b=[],__component__$b=normalizeComponent$3(_sfc_main$b,_sfc_render$b,_sfc_staticRenderFns$b,!1,null,null,null,null);const TaxonomyCreateForm=__component__$b.exports,_sfc_main$a={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["command+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$a=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"taxonomy",reference:"taxonomy",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.url,title:$.values.title}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__("Configure Taxonomy"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,2309978015)}):$._e()},_sfc_staticRenderFns$a=[],__component__$a=normalizeComponent$3(_sfc_main$a,_sfc_render$a,_sfc_staticRenderFns$a,!1,null,null,null,null);const TaxonomyEditForm=__component__$a.exports,_sfc_main$9={components:{BlueprintListing},props:{initialRows:Array,reorderUrl:String},data(){return{rows:this.initialRows,hasBeenReordered:!1}},methods:{reordered(M){this.rows=M,this.hasBeenReordered=!0},saveOrder(){let M=this.rows.map($=>$.handle);this.$axios.post(this.reorderUrl,{order:M}).then($=>this.$toast.success(__("Blueprints successfully reordered"))).catch($=>this.$toast.error(__("Something went wrong")))}}},_sfc_render$9=null,_sfc_staticRenderFns$9=null;var __component__$9=normalizeComponent$3(_sfc_main$9,_sfc_render$9,_sfc_staticRenderFns$9,!1,null,null,null,null);const TaxonomyBlueprintListing=__component__$9.exports,_sfc_main$8={props:{blueprint:Object,initialValues:Object,meta:Object,initialTitle:String,url:String,listingUrl:String},data(){return{title:this.initialTitle,values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.post(this.url,this.values).then(M=>{this.$refs.container.saved(),this.$nextTick(()=>window.location=M.data.redirect)}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}}};var _sfc_render$8=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("div",{},[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("small",{staticClass:"subhead block"},[I("a",{attrs:{href:$.listingUrl},domProps:{textContent:$._s($.__("Assets"))}})]),$._v(" "+$._s($.title)+" ")]),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])]),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N}})],1)}}],null,!1,971208353)}):$._e()},_sfc_staticRenderFns$8=[],__component__$8=normalizeComponent$3(_sfc_main$8,_sfc_render$8,_sfc_staticRenderFns$8,!1,null,null,null,null);const AssetContainerCreateForm=__component__$8.exports,_sfc_main$7={props:{blueprint:Object,initialValues:Object,meta:Object,initialTitle:String,url:String,listingUrl:String},data(){return{title:this.initialTitle,values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{window.location=M.data.redirect}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Unable to save changes"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$7=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N}}),I("div",{staticClass:"py-4 border-t flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,3541244583)}):$._e()},_sfc_staticRenderFns$7=[],__component__$7=normalizeComponent$3(_sfc_main$7,_sfc_render$7,_sfc_staticRenderFns$7,!1,null,null,null,null);const AssetContainerEditForm=__component__$7.exports,_sfc_main$6={props:{item:Object,parentSection:Object,depth:Number,root:Boolean,vm:Object,isOpen:Boolean,hasChildren:Boolean,disableSections:Boolean,topLevel:Boolean},data(){return{editing:!1}},computed:{isSection(){return this.disableSections?!1:this.depth===1},title(){return this.item.title||this.item.entry_title||this.item.url},icon(){return data_get$1(this.item.config,"icon")||"entries"},isAlreadySvg(){return this.icon.startsWith("<svg")},isRenamedSection(){return this.isSection&&this.item.text!==data_get$1(this.item,"config.display_original")},isHidden(){return data_get$1(this.item,"manipulations.action")==="@hide"},isInHiddenSection(){return data_get$1(this.parentSection,"manipulations.action")==="@hide"},isPinnedAlias(){return data_get$1(this.item,"manipulations.action")==="@alias"&&this.topLevel},isAlias(){return data_get$1(this.item,"manipulations.action")==="@alias"},isMoved(){return data_get$1(this.item,"manipulations.action")==="@move"},isModified(){return data_get$1(this.item,"manipulations.action")==="@modify"},isCustom(){return data_get$1(this.item,"manipulations.action")==="@create"}},methods:{remove(){const M=this.item._vm.store;M.deleteNode(this.item),this.$emit("removed",M)}}};var _sfc_render$6=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[I("div",{staticClass:"page-move w-6"}),I("div",{staticClass:"flex items-center flex-1 p-2 rtl:mr-2 ltr:ml-2 text-xs leading-normal"},[I("div",{staticClass:"flex items-center flex-1",class:{"opacity-50":$.isHidden||$.isInHiddenSection}},[$.isSection?$._e():[$.isAlreadySvg?I("i",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",domProps:{innerHTML:$._s($.icon)}}):I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:$.icon}})],I("a",{class:{"text-sm font-medium":$.isSection},domProps:{textContent:$._s($.__($.item.text))},on:{click:function(N){return $.$emit("edit",N)}}}),$.hasChildren&&!$.isSection?I("button",{staticClass:"p-2 text-gray-600 hover:text-gray-700 transition duration-100 outline-none flex",class:{"-rotate-90":!$.isOpen},on:{click:function(N){return $.$emit("toggle-open")}}},[I("svg-icon",{staticClass:"h-1.5",attrs:{name:"micro/chevron-down-xs"}})],1):$._e(),$.item.collection?I("div",{staticClass:"rtl:mr-4 ltr:ml-4 flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/content-writing"}}),I("div",{staticClass:"rtl:mr-1 ltr:ml-1"},[I("a",{attrs:{href:$.item.collection.create_url},domProps:{textContent:$._s($.__("Add"))}}),I("span",{staticClass:"text-gray"},[$._v("/")]),I("a",{attrs:{href:$.item.collection.edit_url},domProps:{textContent:$._s($.__("Edit"))}})])],1):$._e()],2),I("div",{staticClass:"rtl:pl-2 ltr:pr-2 flex items-center"},[$._t("branch-icon",null,{branch:$.item}),$.isRenamedSection?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Renamed Section"),expression:"__('Renamed Section')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/content-writing"}}):$.isHidden?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.isSection?$.__("Hidden Section"):$.__("Hidden Item"),expression:"isSection ? __('Hidden Section') : __('Hidden Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"hidden"}}):$.isPinnedAlias?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pinned Item"),expression:"__('Pinned Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/pin"}}):$.isAlias?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Alias Item"),expression:"__('Alias Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/duplicate-ids"}}):$.isMoved?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Moved Item"),expression:"__('Moved Item')"}],staticClass:"inline-block w-4 text-gray-500",attrs:{name:"flip-vertical"}}):$.isModified?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Modified Item"),expression:"__('Modified Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/content-writing"}}):$.isCustom?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.isSection?$.__("Custom Section"):$.__("Custom Item"),expression:"isSection ? __('Custom Section') : __('Custom Item')"}],staticClass:"inline-block w-4 text-gray-500",attrs:{name:"light/user-edit"}}):$._e(),I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4"},[$._t("branch-options",null,{item:$.item,depth:$.depth,removeBranch:$.remove})],2)],2)])])},_sfc_staticRenderFns$6=[],__component__$6=normalizeComponent$3(_sfc_main$6,_sfc_render$6,_sfc_staticRenderFns$6,!1,null,null,null,null);const TreeBranch=__component__$6.exports,_sfc_main$5={props:{creating:!1,item:{}},data(){return{config:data_get$1(this.item,"config",this.createNewItem()),saveKeyBinding:null,validateDisplay:!1,validateUrl:!1}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["enter","mod+enter","mod+s"],M=>{M.preventDefault(),this.save()})},destroyed(){this.saveKeyBinding.destroy()},methods:{createNewItem(){return{display:"",url:""}},save(){this.validateDisplay=!1,this.validateUrl=!1,this.config.display||(this.validateDisplay=!0),this.config.url||(this.validateUrl=!0),!(this.validateDisplay||this.validateUrl)&&this.$emit("updated",this.config,this.item)}}};var _sfc_render$5=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"nav-item-editor"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-6 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.creating?$.__("Add Nav Item"):$.__("Edit Nav Item"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto"},[I("div",{staticClass:"px-2"},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validateDisplay}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("Display"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("text-input",{attrs:{focus:!0},model:{value:$.config.display,callback:function(B){$.$set($.config,"display",B)},expression:"config.display"}}),$.validateDisplay?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)]),I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validateUrl}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("URL"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("div",{staticClass:"help-block -mt-2"},[I("p",{domProps:{textContent:$._s($.__("Enter any internal or external URL."))}})]),I("text-input",{model:{value:$.config.url,callback:function(B){$.$set($.config,"url",B)},expression:"config.url"}}),$.validateUrl?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)])])]),I("div",{staticClass:"p-6"},[I("button",{staticClass:"btn-primary w-full",class:{"opacity-50":!1},attrs:{disabled:!1},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})])])])}}])})},_sfc_staticRenderFns$5=[],__component__$5=normalizeComponent$3(_sfc_main$5,_sfc_render$5,_sfc_staticRenderFns$5,!1,null,null,null,null);const ItemEditor=__component__$5.exports,_sfc_main$4={props:{creating:!1,sectionItem:{}},data(){return{section:data_get$1(this.sectionItem,"text")||"",saveKeyBinding:null,validate:!1}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["enter","mod+enter","mod+s"],M=>{M.preventDefault(),this.save()})},destroyed(){this.saveKeyBinding.destroy()},methods:{save(){if(this.validate=!1,!this.section){this.validate=!0;return}this.$emit("updated",this.section,this.sectionItem)}}};var _sfc_render$4=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"nav-item-editor"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 px-6 py-2 border-b border-gray-300 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.creating?$.__("Add Section"):$.__("Edit Section"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto"},[I("div",{staticClass:"px-2"},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validate}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("Display"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("text-input",{attrs:{focus:!0},model:{value:$.section,callback:function(B){$.section=B},expression:"section"}}),$.validate?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)])])]),I("div",{staticClass:"p-6"},[I("button",{staticClass:"btn-primary w-full",class:{"opacity-50":!1},attrs:{disabled:!1},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})])])])}}])})},_sfc_staticRenderFns$4=[],__component__$4=normalizeComponent$3(_sfc_main$4,_sfc_render$4,_sfc_staticRenderFns$4,!1,null,null,null,null);const SectionEditor=__component__$4.exports,_sfc_main$3={components:{DraggableTree:vueDraggableNestedTreeExports.DraggableTree,TreeBranch,ItemEditor,SectionEditor},props:{title:{type:String,require:!0},nav:{type:Array,required:!0},indexUrl:{type:String},updateUrl:{type:String,require:!0},destroyUrl:{type:String,require:!0},saveAsOptions:{type:Array,default:()=>[]}},data(){return{initialNav:clone(this.nav),loading:!1,topLevelTreeData:[],mainTreeData:[],originalSectionItems:{},changed:!1,targetDataArray:null,creatingItem:!1,editingItem:!1,creatingSection:!1,editingSection:!1,confirmingReset:!1,confirmingRemoval:!1,draggingNode:!1,draggingNodeParent:!1}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},mounted(){this.setInitialNav(this.nav)},computed:{isDirty(){return this.changed},hasSaveAsOptions(){return this.saveAsOptions.length},showTopLevelSectionPlaceholder(){return this.topLevelTreeData.length?this.draggingNode&&this.topLevelTreeData.length===1&&this.topLevelTreeData[0]._id===this.draggingNode._id:!0},direction(){return this.$config.get("direction","rtl")}},methods:{setInitialNav(M){let $=clone(M);this.setOriginalSectionItems($);let I=$.shift();this.topLevelTreeData=_.chain(I.items).map(N=>this.normalizeNavConfig(N,!1)).values().value(),this.mainTreeData=_.chain($).mapObject(N=>this.normalizeNavConfig(N)).values().value()},setOriginalSectionItems(M){M.forEach($=>this.originalSectionItems[$.display_original]=$.items_original||[])},discardChanges(){this.setInitialNav(this.initialNav),this.changed=!1},normalizeNavConfig(M,$=!0){let I={text:M.display,config:M,original:M.original,manipulations:$?M:M.manipulations||{},isSection:$,open:$},N=M.items||M.children;return N&&(I.children=N.map(B=>({text:B.display,children:B.children.map(j=>this.normalizeNavConfig(j,!1)),open:!1,config:B,original:B.original,manipulations:B.manipulations||{},isSection:!1}))),I},treeDrag(M){this.draggingNode=M,this.draggingNodeParent=M.parent;let $=1;this.traverseTree(M,(B,{depth:j})=>{$=Math.max($,j)}),this.$set(this.$refs.topLevelTree.rootData,"droppable",!this.isSectionNode(M)),this.$set(this.$refs.mainTree.rootData,"droppable",this.isSectionNode(M));const I=2-$,N=3-$;this.traverseTree(this.topLevelTreeData,(B,{depth:j})=>{B!==M&&this.$set(B,"droppable",j<=I&&!this.isSectionNode(M))}),this.traverseTree(this.mainTreeData,(B,{depth:j})=>{B!==M&&this.$set(B,"droppable",j<=N&&!this.isSectionNode(M))})},treeDrop(M){this.updateItemAction(M),data_get$1(this.draggingNodeParent,"isRoot")!==!0&&this.updateItemAction(this.draggingNodeParent),this.$nextTick(()=>{this.draggingNode=!1,this.draggingNodeParent=!1})},isSectionNode(M){return data_get$1(M,"isSection",!1)},isCustomSectionNode(M){return this.isSectionNode(M)&&data_get$1(M,"manipulations.action")==="@create"},getParentSectionNode(M){return!this.isSectionNode(M)&&M!==void 0?this.getParentSectionNode(M.parent):M},isChildItemNode(M){return data_get$1(M,"parent.isRoot")?!1:!this.isSectionNode(M.parent)},traverseTree(M,$,I=[]){(Array.isArray(M)?M:[M]).every((B,j)=>{const U=[...I,j],q=U.join("."),Y=U.length;return $(B,{path:q,depth:Y,index:j})===!1?!1:(B.children.length&&this.traverseTree(B.children,$,U),!0)})},addItem(M){this.targetDataArray=M,this.creatingItem=!0},addSection(){this.creatingSection=!0},itemAdded(M){let $=this.normalizeNavConfig(M,!1);$.manipulations={action:"@create",display:M.display,url:M.url},this.targetDataArray.push($),this.resetItemEditor(),this.changed=!0},sectionAdded(M){let $=this.normalizeNavConfig({action:"@create",display:M,display_original:!1});this.mainTreeData.push($),this.resetSectionEditor(),this.changed=!0},editItem(M,$){this.isSectionNode(M)&&!$?this.editingSection=M:this.editingItem=M},itemUpdated(M,$){$.text=M.display,this.updateItemManipulation($,"display",M.display),this.updateItemManipulation($,"url",M.url),this.updateItemAction($),this.resetItemEditor(),this.changed=!0},sectionUpdated(M,$){$.text=M,this.resetSectionEditor(),this.changed=!0},updateItemManipulation(M,$,I){data_get$1(M.manipulations,"action")==="@create"||I!==data_get$1(M.original,$)?M.manipulations[$]=I:Vue$3.delete(M.manipulations,$)},updateItemAction(M){if(this.isSectionNode(M))return;let $=this.detectItemAction(M);$?M.manipulations.action=$:Vue$3.delete(M.manipulations,"action"),this.isChildItemNode(M)&&this.updateItemAction(M.parent)},detectItemAction(M){let $=data_get$1(M.manipulations,"action");switch(!0){case $==="@create":return"@create";case $==="@alias":return"@alias";case $==="@hide":return"@hide";case this.itemHasMoved(M):return"@move";case this.itemHasBeenModified(M):return"@modify"}return null},itemHasMoved(M){return this.itemIsWithinOriginalParentItem(M)?!1:this.itemHasMovedWithinSection(M)||this.itemHasMovedToAnotherSection(M)},itemIsWithinOriginalParentItem(M){let $=data_get$1(M.parent,"original",{children:[]}).children.map(I=>I.id);return this.isChildItemNode(M)&&$.includes(M.config.id)},itemHasMovedWithinSection(M){let $=data_get$1(M.parent,"original",{children:[]}).children.map(B=>B.id);if(this.isChildItemNode(M)&&!$.includes(M.config.id))return!0;let I=data_get$1(this.getParentSectionNode(M),"config.display_original","Top Level"),N=this.originalSectionItems[I];return N===void 0?!1:!this.isChildItemNode(M)&&!N.includes(M.config.id)},itemHasMovedToAnotherSection(M){let $=data_get$1(this.getParentSectionNode(M),"config.display_original","Top Level"),I=data_get$1(M.original,"section")||data_get$1(M.parent,"original.section");return $!==I},itemHasBeenModified(M){return this.itemHasModifiedProperties(M)||this.itemHasModifiedChildren(M)},itemHasModifiedProperties(M){return _.chain(M.manipulations).omit(["action","reorder","children"]).keys().value().length>0},itemHasModifiedChildren(M){return M.children.filter($=>_.chain($.manipulations).keys().value().length>0).length>0},expandAll(){this.traverseTree(this.topLevelTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!0)}),this.traverseTree(this.mainTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!0)})},collapseAll(){this.traverseTree(this.topLevelTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!1)}),this.traverseTree(this.mainTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!1)})},resetItemEditor(){this.editingItem=!1,this.creatingItem=!1,this.targetDataArray=!1},resetSectionEditor(){this.editingSection=!1,this.creatingSection=!1},pinItem(M){this.aliasItem(M,this.topLevelTreeData)},aliasItem(M,$){let I=data_get$1(M.manipulations,"action"),N=this.normalizeNavConfig(clone(M.config),!1);I==="@create"?N.manipulations=clone(M.manipulations):N.manipulations={action:"@alias"},N.children=[],N.original&&(N.original.children=[]),($||M.parent.children).push(N),this.changed=!0},itemIsVisible(M){return data_get$1(M.manipulations,"action")!=="@hide"},isHideable(M){let $=data_get$1(M.manipulations,"action");return this.isSectionNode(M)&&$==="@create"?!1:!["@alias","@create"].includes($)},removeItem(M,$=!1){if(this.isCustomSectionNode(M)&&M.children.length&&!$)return this.confirmingRemoval=M;M._vm.store.deleteNode(M),this.changed=!0,this.confirmingRemoval=!1},hideItem(M){Vue$3.set(M.manipulations,"action","@hide"),this.updateItemAction(M),this.changed=!0},showItem(M){Vue$3.delete(M.manipulations,"action"),this.updateItemAction(M),this.changed=!0},reset(){this.$axios.delete(this.destroyUrl).then(()=>window.location.reload()).catch(()=>this.$toast.error(__("Something went wrong")))},save(){this.changed&&this.saveAs(this.updateUrl)},saveAs(M){let $=this.preparePreferencesSubmission();this.$axios.patch(M,{tree:$}).then(()=>location.reload()).catch(()=>this.$toast.error(__("Something went wrong")))},preparePreferencesSubmission(){let M=[];return M.push({display:"Top Level",display_original:"Top Level",action:!1,items:this.prepareItemsForSubmission(this.topLevelTreeData)}),this.mainTreeData.forEach($=>{M.push({display:$.text,display_original:$.config.display_original||$.text,action:$.manipulations.action||!1,items:this.prepareItemsForSubmission($.children)})}),M},prepareItemsForSubmission(M){let $=[];return M.forEach(I=>{$.push({id:this.prepareItemIdForSubmission(I),manipulations:I.manipulations,children:I.children?this.prepareItemsForSubmission(I.children):[]})}),$},prepareItemIdForSubmission(M){return data_get$1(M,"original.id",M.text.toLowerCase().replaceAll(" ","_"))}}};var _sfc_render$3=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[$.indexUrl?I("breadcrumb",{attrs:{url:$.indexUrl,title:$.__("CP Nav Preferences")}}):$._e(),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.__($.title)))]),I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Reset Nav Customizations")},on:{click:function(N){$.confirmingReset=!0}}})],1),$.isDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.discardChanges}}):$._e(),I("dropdown-list",{scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn flex items-center rtl:pl-4 ltr:pr-4"},[$._v(" "+$._s($.__("Add Item"))+" "),I("svg-icon",{staticClass:"w-2 rtl:mr-4 ltr:ml-4",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}])},[I("dropdown-item",{attrs:{text:$.__("Add Nav Item")},on:{click:function(N){return $.addItem($.topLevelTreeData)}}}),I("dropdown-item",{attrs:{text:$.__("Add Section")},on:{click:$.addSection}})],1),I("div",{staticClass:"rtl:mr-4 ltr:ml-4 rtl:text-right ltr:text-left",class:{"btn-group":$.hasSaveAsOptions}},[I("button",{staticClass:"btn-primary rtl:pr-4 ltr:pl-4",class:{disabled:!$.changed},attrs:{disabled:!$.changed},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.save}}),$.hasSaveAsOptions?I("dropdown-list",{staticClass:"rtl:mr-0 ltr:ml-0",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary rtl:rounded-r-none ltr:rounded-l-none flex items-center"},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!1,459937082)},[I("h6",{staticClass:"p-2"},[$._v($._s($.__("Save to"))+"...")]),$._l($.saveAsOptions,function(N){return I("dropdown-item",{key:N.url,staticClass:"group",on:{click:function(B){return $.saveAs(N.url)}}},[I("div",{staticClass:"flex items-start rtl:pl-4 ltr:pr-4"},[I("svg-icon",{staticClass:"text-gray shrink-0 rtl:ml-2 ltr:mr-2 w-4 group-hover:text-white",attrs:{name:N.icon}}),I("span",{staticClass:"whitespace-normal"},[$._v($._s($.__(N.label)))])],1)])})],2):$._e()],1)],1)],1),I("div",{staticClass:"mb-2 flex justify-end"},[I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Expand All"))},on:{click:$.expandAll}}),I("a",{staticClass:"text-2xs text-blue rtl:ml-2 ltr:mr-2 underline",domProps:{textContent:$._s($.__("Collapse All"))},on:{click:$.collapseAll}})]),$.loading?$._e():I("div",{staticClass:"page-tree page-tree-with-sections w-full"},[I("draggable-tree",{ref:"topLevelTree",staticClass:"mb-8",class:{"section-placeholder-inner":$.showTopLevelSectionPlaceholder},attrs:{draggable:"","cross-tree":"",data:$.topLevelTreeData,space:1,indent:24,dir:$.direction},on:{change:function(N){$.changed=!0},drag:$.treeDrag,drop:$.treeDrop},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){return I("tree-branch",{attrs:{item:N,depth:j.level,vm:j,"is-open":N.open,"has-children":N.children.length>0,"disable-sections":!0,"top-level":!0},on:{edit:function(U){return $.editItem(N,!0)},"toggle-open":function(U){return B.toggleOpen(N)}},scopedSlots:$._u([{key:"branch-options",fn:function({item:U}){return[j.level<2?I("dropdown-item",{attrs:{text:$.__("Add Item")},on:{click:function(q){return $.addItem(U.children)}}}):$._e(),I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:function(q){$.editingItem=U}}}),I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:function(q){return $.aliasItem(U)}}}),I("li",{staticClass:"divider"}),$.itemIsVisible(U)?I("dropdown-item",{staticClass:"warning",attrs:{text:$.isHideable(U)?$.__("Hide"):$.__("Remove")},on:{click:function(q){$.isHideable(U)?$.hideItem(U):$.removeItem(U,j)}}}):I("dropdown-item",{attrs:{text:$.__("Show")},on:{click:function(q){return $.showItem(U)}}})]}}],null,!1,117829338)})}}],null,!1,2293229315)}),I("draggable-tree",{ref:"mainTree",staticClass:"page-tree-with-sections",attrs:{draggable:"","cross-tree":"",data:$.mainTreeData,space:1,indent:24,dir:$.direction},on:{change:function(N){$.changed=!0},drag:$.treeDrag,drop:$.treeDrop},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){return I("tree-branch",{attrs:{item:N,"parent-section":$.getParentSectionNode(N),depth:j.level,vm:j,"is-open":N.open,"has-children":N.children.length>0},on:{edit:function(U){return $.editItem(N)},"toggle-open":function(U){return B.toggleOpen(N)}},scopedSlots:$._u([{key:"branch-options",fn:function({item:U}){return[j.level<3?I("dropdown-item",{attrs:{text:$.__("Add Item")},on:{click:function(q){return $.addItem(U.children)}}}):$._e(),I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:function(q){return $.editItem(U)}}}),$.isSectionNode(U)?$._e():I("dropdown-item",{attrs:{text:$.__("Pin to Top Level")},on:{click:function(q){return $.pinItem(U)}}}),$.isSectionNode(U)?$._e():I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:function(q){return $.aliasItem(U)}}}),I("li",{staticClass:"divider"}),$.itemIsVisible(U)?I("dropdown-item",{staticClass:"warning",attrs:{text:$.isHideable(U)?$.__("Hide"):$.__("Remove")},on:{click:function(q){$.isHideable(U)?$.hideItem(U):$.removeItem(U)}}}):I("dropdown-item",{attrs:{text:$.__("Show")},on:{click:function(q){return $.showItem(U)}}})]}}],null,!1,51606589)})}}],null,!1,2021589096)})],1),$.creatingItem?I("item-editor",{attrs:{creating:!0},on:{closed:$.resetItemEditor,updated:$.itemAdded}}):$._e(),$.editingItem?I("item-editor",{attrs:{item:$.editingItem},on:{closed:$.resetItemEditor,updated:$.itemUpdated}}):$._e(),$.creatingSection?I("section-editor",{attrs:{creating:!0},on:{closed:$.resetSectionEditor,updated:$.sectionAdded}}):$._e(),$.editingSection?I("section-editor",{attrs:{"section-item":$.editingSection},on:{closed:$.resetSectionEditor,updated:$.sectionUpdated}}):$._e(),$.confirmingReset?I("confirmation-modal",{attrs:{title:$.__("Reset"),bodyText:$.__("Are you sure you want to reset nav customizations?"),buttonText:$.__("Reset"),danger:!0},on:{confirm:$.reset,cancel:function(N){$.confirmingReset=!1}}}):$._e(),$.confirmingRemoval?I("confirmation-modal",{attrs:{title:$.__("Remove"),bodyText:$.__("Are you sure you want to remove this section and all of its children?"),buttonText:$.__("Remove"),danger:!0},on:{confirm:function(N){return $.removeItem($.confirmingRemoval,!0)},cancel:function(N){$.confirmingReset=!1}}}):$._e()],1)},_sfc_staticRenderFns$3=[],__component__$3=normalizeComponent$3(_sfc_main$3,_sfc_render$3,_sfc_staticRenderFns$3,!1,null,null,null,null);const NavBuilder=__component__$3.exports,_sfc_main$2={props:{release:{type:Object,required:!0},package:{type:String,required:!0},packageName:{type:String,required:!0},showActions:{type:Boolean}},data(){return{confirmationPrompt:null}},computed:{body(){return markdown(this.release.body).replaceAll("[new]",'<span class="label" style="background: #5bc0de;">NEW</span>').replaceAll("[fix]",'<span class="label" style="background: #5cb85c;">FIX</span>').replaceAll("[break]",'<span class="label" style="background: #d9534f;">BREAK</span>').replaceAll("[na]",'<span class="label" style="background: #e8e8e8;">N/A</span>')},installButtonText(){return this.release.type==="current"?__("Current Version"):this.release.latest?__("Update to Latest"):this.release.type==="upgrade"?__("Update to :version",{version:this.release.version}):__("Downgrade to :version",{version:this.release.version})},confirmationText(){return this.release.latest?`${__("messages.updater_update_to_latest_command")}:`:`${__("messages.updater_require_version_command")}:`},command(){return this.release.latest?`composer update ${this.package}`:`composer require "${this.package} ${this.release.version}"`}}};var _sfc_render$2=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"card update-release mb-10"},[I("div",{staticClass:"flex justify-between mb-6"},[I("div",[I("h1",[$._v($._s($.release.version))]),I("h5",{staticClass:"date",domProps:{textContent:$._s($.__("Released on :date",{date:$.release.date}))}})]),$.showActions?I("div",[I("button",{staticClass:"btn",attrs:{disabled:$.release.type==="current"},domProps:{textContent:$._s($.installButtonText)},on:{click:function(N){$.confirmationPrompt=$.release}}})]):$._e()]),I("div",{staticClass:"card-body"},[I("div",{domProps:{innerHTML:$._s($.body)}})]),$.confirmationPrompt?I("confirmation-modal",{attrs:{buttonText:$.__("OK"),cancellable:!1},on:{confirm:function(N){$.confirmationPrompt=null}}},[I("div",{staticClass:"prose"},[I("p",{domProps:{textContent:$._s($.confirmationText)}}),I("code-block",{attrs:{copyable:"",text:$.command}}),I("p",[$._v($._s($.__("Learn more about"))+" "),I("a",{attrs:{href:"https://statamic.dev/updating",target:"_blank"}},[$._v($._s($.__("Updates")))]),$._v(".")])],1)]):$._e()],1)},_sfc_staticRenderFns$2=[],__component__$2=normalizeComponent$3(_sfc_main$2,_sfc_render$2,_sfc_staticRenderFns$2,!1,null,null,null,null);const Release=__component__$2.exports,_sfc_main$1={components:{Release},props:["slug","package","name"],data(){return{gettingChangelog:!0,changelog:[],currentVersion:null,modalOpen:!1,latestRelease:null,showingUnlicensedReleases:!1}},computed:{toEleven(){return{timeout:Statamic.$config.get("ajaxTimeout")}},showActions(){return!this.gettingChangelog},onLatestVersion(){return this.currentVersion&&this.currentVersion==this.latestVersion},licensedReleases(){return this.changelog.filter(M=>M.licensed)},unlicensedReleases(){return this.changelog.filter(M=>!M.licensed)},hasUnlicensedReleases(){return this.unlicensedReleases.length>0},latestVersion(){return this.latestRelease&&this.latestRelease.version}},created(){this.getChangelog()},methods:{getChangelog(){this.gettingChangelog=!0,this.$axios.get(cp_url(`/updater/${this.slug}/changelog`)).then(M=>{this.gettingChangelog=!1,this.changelog=M.data.changelog,this.currentVersion=M.data.currentVersion,this.latestRelease=M.data.changelog[0]})}}};var _sfc_render$1=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("span",{domProps:{textContent:$._s($.name)}}),$.currentVersion?I("span",{staticClass:"font-normal text-gray-700 rtl:mr-2 ltr:ml-2"},[$._v($._s($.currentVersion))]):$._e()]),$.onLatestVersion?$._e():I("button",{staticClass:"btn-primary rtl:mr-4 ltr:ml-4",on:{click:function(N){$.modalOpen=!0}}},[$._v($._s($.__("Update")))]),$.onLatestVersion?I("div",{domProps:{textContent:$._s($.__("Up to date"))}}):$._e()]),$.gettingChangelog?I("div",{staticClass:"card p-6 text-center"},[I("loading-graphic")],1):$._e(),!$.showingUnlicensedReleases&&$.hasUnlicensedReleases?I("div",{staticClass:"bg-yellow border-yellow-dark border-dashed p-4 text-xs border mb-6 rounded cursor-pointer flex items-center justify-between",on:{click:function(N){$.showingUnlicensedReleases=!0}}},[I("div",[I("h4",{domProps:{textContent:$._s($.__("messages.addon_has_more_releases_beyond_license_heading"))}}),I("p",{domProps:{textContent:$._s($.__("messages.addon_has_more_releases_beyond_license_body"))}})]),I("button",{staticClass:"btn btn-xs",domProps:{textContent:$._s($.__("View additional releases"))}})]):$._e(),$.showingUnlicensedReleases?$._l($.unlicensedReleases,function(N){return I("release",{key:N.version,attrs:{release:N,"package-name":$.name,package:$.package,"show-actions":$.showActions}})}):$._e(),$._l($.licensedReleases,function(N){return I("release",{key:N.version,attrs:{release:N,"package-name":$.name,package:$.package,"show-actions":$.showActions}})}),$.modalOpen?I("confirmation-modal",{attrs:{cancellable:!1,"button-text":$.__("OK")},on:{confirm:function(N){$.modalOpen=!1}}},[I("div",{staticClass:"prose"},[I("p",{domProps:{textContent:$._s(`${$.__("messages.updater_update_to_latest_command")}:`)}}),I("code-block",{attrs:{copyable:"",text:`composer update ${$.package}`}}),I("p",[$._v($._s($.__("Learn more about"))+" "),I("a",{attrs:{href:"https://statamic.dev/updating",target:"_blank"}},[$._v($._s($.__("Updates")))]),$._v(".")])],1)]):$._e()],2)},_sfc_staticRenderFns$1=[],__component__$1=normalizeComponent$3(_sfc_main$1,_sfc_render$1,_sfc_staticRenderFns$1,!1,null,null,null,null);const Updater=__component__$1.exports,_sfc_main={computed:{portals(){return this.$portals.all()},hasStacks(){return this.$stacks.count()>0}},watch:{hasStacks(M){M?this.initStacks():this.destroyStacks()}},methods:{initStacks(){this.$events.$on("stacks.hit-area-clicked",M=>{for(let $=this.$stacks.count();$>M;$--)if(!this.$stacks.stacks()[$-1].data.vm.runCloseCallback())return}),disableBodyScroll(this.$el,{allowTouchMove:M=>{for(;M&&M!==document.body;){if(M.classList.contains("overflow-scroll"))return!0;M=M.parentElement}}})},destroyStacks(){this.$events.$off("stacks.hit-area-clicked"),enableBodyScroll(this.$el)}}};var _sfc_render=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"portal-targets",class:{"stacks-on-stacks":$.hasStacks}},$._l($.portals,function(N,B){return I("portal-target",{key:N.id,attrs:{name:N.id}})}),1)},_sfc_staticRenderFns=[],__component__=normalizeComponent$3(_sfc_main,_sfc_render,_sfc_staticRenderFns,!1,null,null,null,null);const PortalTargets=__component__.exports;let global_functions=Object.keys(Globals);global_functions.forEach(M=>{window[M]=Globals[M]});Vue$3.config.silent=!1;Vue$3.config.devtools=!0;Vue$3.config.productionTip=!1;window.Cookies=Cookies$1;window.Alpine=module_default;window.Vue=Vue$3;window.Statamic=Statamic$1;window._=_;vSelect.props.components.default=()=>({Deselect:{render:M=>M("span",__("×"))},OpenIndicator:{render:M=>M("span",{class:{toggle:!0},domProps:{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 20 20"><path fill="currentColor" d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>'}})}});Statamic$1.booting(M=>{axios$2.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",axios$2.defaults.headers.common["X-CSRF-TOKEN"]=M.$config.get("csrfToken")});module_default.start();Vue$3.prototype.$axios=axios$2;Vue$3.prototype.$events=new Vue$3;Vue$3.prototype.$echo=Statamic$1.$echo;Vue$3.prototype.$bard=Statamic$1.$bard;Vue$3.prototype.$keys=Statamic$1.$keys;Vue$3.prototype.$reveal=Statamic$1.$reveal;window.moment=Vue$3.moment=Vue$3.prototype.$moment=hooks;Vue$3.use(PortalVue,{portalName:"v-portal"});Vue$3.use(VModal,{componentName:"v-modal"});Vue$3.use(Vuex);Vue$3.use(VCalendar);Vue$3.component(vSelect);Statamic$1.$store=new Vuex.Store({modules:{statamic:StatamicStore,publish:{namespaced:!0}}});Statamic$1.app({el:"#statamic",mixins:[Toast],store:Statamic$1.$store,components:{GlobalSearch,GlobalSiteSelector,Login,LoginModal,BaseEntryCreateForm,BaseTermCreateForm,CreateTermButton,Importer,FieldsetListing,FieldsetCreateForm,FieldsetEditForm,BlueprintListing,BlueprintBuilder,FormCreateForm,FormListing,FormSubmissionListing,GlobalListing,GlobalEditForm,GlobalPublishForm,GlobalCreateForm,UserListing,UserWizard,RoleListing,RolePublishForm,UserGroupListing,UserGroupPublishForm,CollectionCreateForm,CollectionScaffolder,CollectionEditForm,CollectionView,CollectionBlueprintListing,SessionExpiry,NavigationListing,NavigationCreateForm,NavigationEditForm,PreferencesEditForm,NavigationView,TaxonomyCreateForm,TaxonomyEditForm,TaxonomyBlueprintListing,AssetContainerCreateForm,AssetContainerEditForm,NavBuilder,Updater,PortalTargets},data:{navOpen:!0,mobileNavOpen:!1,showBanner:!0,portals:[],appendedComponents:[]},computed:{version(){return Statamic$1.$config.get("version")},stackCount(){return this.$stacks.count()},wrapperClass(){return this.$config.get("wrapperClass","max-w-xl")}},mounted(){this.bindWindowResizeListener(),this.$keys.bind(["command+\\"],M=>{M.preventDefault(),this.toggleNav()}),this.$config.get("broadcasting.enabled")&&this.$echo.start(),window.moment.locale(Statamic$1.$config.get("locale")),Vue$3.moment.locale(Statamic$1.$config.get("locale")),Vue$3.prototype.$moment.locale(Statamic$1.$config.get("locale")),this.fixAutofocus(),this.showBanner=Statamic$1.$config.get("hasLicenseBanner"),this.$toast.intercept()},created(){const M=localStorage.getItem("statamic.nav")||"open";this.navOpen=M==="open",Statamic$1.$callbacks.add("copyToClipboard",async function($){try{await navigator.clipboard.writeText($),Statamic$1.$toast.success(__("Copied to clipboard"))}catch{await alert($)}}),Statamic$1.$callbacks.add("bustAndReloadImageCaches",function($){$.forEach(async I=>{await fetch(I,{cache:"reload",mode:"no-cors"}),document.body.querySelectorAll(`img[src='${I}']`).forEach(N=>N.src=I)})})},methods:{bindWindowResizeListener(){window.addEventListener("resize",()=>{this.$store.commit("statamic/windowWidth",document.documentElement.clientWidth)}),window.dispatchEvent(new Event("resize"))},toggleNav(){this.navOpen=!this.navOpen,localStorage.setItem("statamic.nav",this.navOpen?"open":"closed")},toggleMobileNav(){this.mobileNavOpen=!this.mobileNavOpen},hideBanner(){this.showBanner=!1},fixAutofocus(){setTimeout(()=>{const M=document.querySelectorAll("input[autofocus]");for(let $ of M)$.blur();M.length&&M[0].focus()},100)}}});
|